/* Author's Lounge marketing — interactive demo (scoped .ald-) */
#al-demo { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; color: #fff; }
#al-demo button, #al-demo input, #al-demo select { font: inherit; color: inherit; }
#al-demo button { cursor: pointer; background: none; border: 0; }
#al-demo button:focus-visible, #al-demo input:focus-visible, #al-demo select:focus-visible { outline: 2px solid #33CCFF; outline-offset: 2px; }

.ald-win {
  position: relative; overflow: hidden;
  background: #0B1222; border: 1px solid rgba(255,255,255,.09); border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.2), 0 0 0 1px rgba(51,204,255,.06);
}
.ald-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.02); font-size: 12px; color: #8b9bb4; }
.ald-dots { display: flex; gap: 6px; }
.ald-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.ald-bar-title { color: #c9d4e6; font-weight: 600; }
.ald-bar-note { margin-left: auto; color: #00F5D4; }

.ald-cols { display: grid; grid-template-columns: 200px minmax(0,1fr); min-height: 640px; }
.ald-rail { border-right: 1px solid rgba(255,255,255,.06); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; background: rgba(255,255,255,.012); }
.ald-navbtn { display: flex; align-items: center; justify-content: space-between; text-align: left; padding: 10px 12px; border-radius: 12px; font-size: 14px; color: #8b9bb4; }
.ald-navbtn:hover { background: rgba(255,255,255,.04); color: #fff; }
.ald-navbtn.is-on { background: rgba(51,204,255,.12); color: #33CCFF; font-weight: 600; }
.ald-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: linear-gradient(135deg,#33CCFF,#00F5D4); color: #06121A; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

.ald-main { padding: 20px 22px 26px; min-width: 0; }
.ald-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.ald-head h3 { font-size: 20px; font-weight: 700; margin: 0; }
.ald-segs { display: inline-flex; background: rgba(255,255,255,.05); border-radius: 12px; padding: 3px; }
.ald-seg { padding: 6px 12px; border-radius: 9px; font-size: 12px; color: #8b9bb4; }
.ald-seg.is-on { background: rgba(255,255,255,.1); color: #fff; font-weight: 600; }

.ald-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 12px; font-size: 13px; font-weight: 700; white-space: nowrap; }
#al-demo .ald-btn-pri { background: linear-gradient(135deg,#33CCFF,#00F5D4); color: #06121A; }
#al-demo .ald-btn-ghost { border: 1px solid rgba(255,255,255,.16); color: #c9d4e6; }
#al-demo .ald-link { color: #33CCFF; font-size: 12px; font-weight: 600; padding: 0 2px; }
#al-demo .ald-link:hover { text-decoration: underline; }

/* KPIs */
.ald-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.ald-kpi { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: 14px; }
.ald-kpi span { font-size: 11px; color: #8b9bb4; text-transform: uppercase; letter-spacing: .06em; }
.ald-kpi b { display: block; font-size: 24px; letter-spacing: -.01em; margin: 2px 0 4px; font-variant-numeric: tabular-nums; }
.ald-kpi-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 26px; }
.ald-kpi em { font-style: normal; font-size: 12px; font-weight: 600; color: #2ECC71; }
.ald-spark { width: 90px; height: 26px; }

/* blocks */
.ald-block { background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: 16px; margin-top: 14px; }
.ald-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.ald-block-head h4 { margin: 0; font-size: 15px; }
.ald-block-head span { font-size: 12px; color: #8b9bb4; }
.ald-empty { margin: 0; color: #8b9bb4; font-size: 13px; }

.ald-plat { flex: none; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 8px; }
.ald-plat-amz { background: rgba(245,165,36,.14); color: #F5B54A; }
.ald-plat-meta { background: rgba(124,152,255,.16); color: #9DB2FF; }

.ald-sugg { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid rgba(51,204,255,.22); background: rgba(51,204,255,.05); }
.ald-sugg + .ald-sugg { margin-top: 8px; }
.ald-sugg-txt { flex: 1; min-width: 0; }
.ald-sugg-txt b { display: block; font-size: 14px; }
.ald-sugg-txt small { display: block; font-size: 12px; color: #8b9bb4; line-height: 1.45; margin-top: 2px; }
.ald-sugg-btns { display: flex; gap: 8px; }

.ald-bookrow { display: grid; grid-template-columns: 26px 150px minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.05); font-size: 13px; font-variant-numeric: tabular-nums; }
.ald-bookrow:first-of-type { border-top: 0; }
.ald-bookrow small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #8b9bb4; }
.ald-cover { display: inline-block; width: 26px; height: 38px; border-radius: 3px; flex: none; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.ald-cover.sm { width: 20px; height: 29px; }

/* connection */
.ald-connbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: #c9d4e6; margin-bottom: 14px; }
.ald-dot { width: 8px; height: 8px; border-radius: 50%; background: #2ECC71; box-shadow: 0 0 8px #2ECC71; }
.ald-push { margin-left: auto; }
.ald-connect { text-align: center; padding: 56px 20px; border: 1px dashed rgba(255,255,255,.14); border-radius: 16px; }
.ald-connect-icon { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #06121A; background: linear-gradient(135deg,#33CCFF,#00F5D4); }
.ald-connect h4 { font-size: 18px; margin: 0 0 8px; }
.ald-connect p { max-width: 420px; margin: 0 auto 18px; color: #8b9bb4; font-size: 14px; }

/* table */
.ald-tablewrap { overflow-x: auto; border: 1px solid rgba(255,255,255,.06); border-radius: 16px; }
.ald-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ald-table th { text-align: left; font-weight: 600; font-size: 11px; color: #8b9bb4; text-transform: uppercase; letter-spacing: .06em; padding: 10px; border-bottom: 1px solid rgba(255,255,255,.07); white-space: nowrap; }
.ald-table td { padding: 10px; border-bottom: 1px solid rgba(255,255,255,.05); white-space: nowrap; vertical-align: middle; }
.ald-table tr:last-child td { border-bottom: 0; }
.ald-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.ald-table tr.is-off td { color: #66748c; }
.ald-camp { display: flex; align-items: center; gap: 10px; text-align: left; }
.ald-camp span { white-space: normal; font-weight: 600; }
.ald-camp small { display: block; font-weight: 400; font-size: 11px; color: #33CCFF; }
.ald-kw td { background: rgba(255,255,255,.018); }
.ald-kw-name { padding-left: 30px; display: inline-block; white-space: normal; }
.ald-flag { font-style: normal; font-size: 10px; font-weight: 700; color: #F5A524; background: rgba(245,165,36,.12); padding: 2px 6px; border-radius: 6px; margin-left: 4px; }
.ald-good { color: #2ECC71; font-weight: 600; }
.ald-warn { color: #F5A524; font-weight: 600; }

.ald-switch { width: 38px; height: 22px; border-radius: 11px; background: rgba(255,255,255,.14) !important; position: relative; transition: background .2s; }
.ald-switch i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.ald-switch.is-on { background: linear-gradient(135deg,#33CCFF,#00F5D4) !important; }
.ald-switch.is-on i { transform: translateX(16px); }
.ald-switch.sm { width: 32px; height: 18px; }
.ald-switch.sm i { width: 12px; height: 12px; }
.ald-switch.sm.is-on i { transform: translateX(14px); }

/* Meta ads */
.ald-ad { display: grid; grid-template-columns: minmax(0, 300px) minmax(0,1fr); gap: 20px; padding: 16px; border: 1px solid rgba(255,255,255,.06); border-radius: 16px; background: rgba(255,255,255,.02); }
.ald-ad + .ald-ad { margin-top: 12px; }
.ald-ad.is-off { opacity: .55; }
.ald-post { background: #fff; color: #1c1e21; border-radius: 12px; overflow: hidden; font-size: 13px; }
.ald-post-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 6px; }
.ald-post-av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#33CCFF,#00F5D4); }
.ald-post-head b { display: block; font-size: 13px; }
.ald-post-head small { font-size: 11px; color: #65676b; }
.ald-post p { margin: 0; padding: 0 12px 10px; line-height: 1.45; color: #1c1e21; }
.ald-post-img { aspect-ratio: 1.6 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 12px; }
.ald-post-img span { font-family: "Libre Baskerville", Georgia, serif; font-size: 22px; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.ald-post-img small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin-top: 6px; }
.ald-post-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: #f0f2f5; font-weight: 600; font-size: 12px; }
.ald-post-foot em { font-style: normal; background: #e4e6eb; padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.ald-ad-side { min-width: 0; }
.ald-ad-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ald-ad-title b { font-size: 15px; }
.ald-ad-meta { display: block; color: #8b9bb4; font-size: 12px; margin: 4px 0 14px; }
.ald-ad-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.ald-ad-stats div { background: rgba(255,255,255,.035); border-radius: 12px; padding: 10px 12px; }
.ald-ad-stats span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #8b9bb4; }
.ald-ad-stats b { font-size: 18px; font-variant-numeric: tabular-nums; }
.ald-ad-note { display: block; color: #8b9bb4; font-size: 11px; margin-top: 10px; }

.ald-plat-promo { background: rgba(46,204,113,.14); color: #5EDB94; }
.ald-cover.xs { width: 12px; height: 17px; border-radius: 2px; vertical-align: -3px; margin-right: 6px; box-shadow: none; }
.ald-intro { font-size: 13px; color: #8b9bb4; margin: -6px 0 14px; }
.ald-sub { display: block; font-size: 11px; color: #8b9bb4; margin-top: 2px; font-weight: 400; }
.ald-flat { border: 0; border-radius: 0; }
.ald-flat .ald-table th:first-child, .ald-flat .ald-table td:first-child { padding-left: 0; }
.ald-table td.ald-date { color: #8b9bb4; font-variant-numeric: tabular-nums; }
.ald-svc { font-weight: 600; }
.ald-sched { font-size: 11px; font-weight: 700; color: #33CCFF; background: rgba(51,204,255,.1); padding: 3px 8px; border-radius: 6px; }

/* More channels */
.ald-chgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.ald-ch { border: 1px solid rgba(255,255,255,.07); border-radius: 16px; padding: 14px; background: rgba(255,255,255,.02); display: flex; flex-direction: column; gap: 10px; }
.ald-ch.is-off { opacity: .55; }
.ald-ch.is-new { border-style: dashed; }
.ald-ch.is-new p { font-size: 12px; color: #8b9bb4; margin: 0; line-height: 1.45; }
.ald-ch.is-new .ald-btn { align-self: flex-start; }
.ald-ch-head { display: flex; align-items: center; gap: 10px; }
.ald-ch-head > div { flex: 1; min-width: 0; }
.ald-ch-head b { display: block; font-size: 14px; }
.ald-ch-head small { display: block; font-size: 11px; color: #8b9bb4; }
.ald-ch-mark { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: rgba(51,204,255,.12); color: #33CCFF; }
.ald-ch-book { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #c9d4e6; }
.ald-ch-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.ald-ch-stats div { background: rgba(255,255,255,.035); border-radius: 10px; padding: 8px 10px; }
.ald-ch-stats span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #8b9bb4; }
.ald-ch-stats b { font-size: 16px; font-variant-numeric: tabular-nums; }
.ald-ch-foot { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #c9d4e6; }

/* Newsletter */
.ald-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ald-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 7px 12px; border-radius: 12px; border: 1px dashed rgba(255,255,255,.16); color: #c9d4e6; }
.ald-chip.is-on { border-style: solid; border-color: rgba(46,204,113,.35); background: rgba(46,204,113,.06); }
.ald-chip .ald-dot { width: 6px; height: 6px; }
.ald-an-grid.ald-an-grid-2 { grid-template-columns: 1.3fr 1fr; }

/* analytics */
.ald-anhero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.ald-eyebrow { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8b9bb4; }
.ald-big { display: block; font-size: 44px; line-height: 1.05; letter-spacing: -.02em; background: linear-gradient(135deg,#33CCFF,#00F5D4); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.ald-up { font-size: 12px; color: #2ECC71; font-weight: 600; }
.ald-anhero-side { display: flex; gap: 22px; }
.ald-anhero-side b { font-size: 22px; font-variant-numeric: tabular-nums; }
.ald-chart { width: 100%; height: 190px; display: block; }
.ald-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: #8b9bb4; margin: 8px 0 4px; }
.ald-legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.ald-an-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; }
.ald-an-grid .ald-block { margin-top: 14px; min-width: 0; }
.ald-barrow { display: grid; grid-template-columns: 90px 1fr 36px; gap: 10px; align-items: center; font-size: 13px; padding: 4px 0; }
.ald-barrow span:last-child { text-align: right; color: #8b9bb4; font-variant-numeric: tabular-nums; }
.ald-bartrack { height: 8px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.ald-bartrack i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg,#33CCFF,#00F5D4); }
.ald-donutwrap { display: flex; align-items: center; gap: 14px; }
.ald-donut { width: 110px; height: 110px; flex: none; }
.ald-donut-n { fill: #fff; font-size: 16px; font-weight: 700; }
.ald-donut-l { fill: #8b9bb4; font-size: 8px; }
.ald-donutwrap ul { list-style: none; margin: 0; padding: 0; font-size: 13px; display: grid; gap: 6px; flex: 1; }
.ald-donutwrap li { display: flex; align-items: center; gap: 8px; }
.ald-donutwrap li i { width: 8px; height: 8px; border-radius: 50%; }
.ald-donutwrap li b { margin-left: auto; }
.ald-pages { margin: 0; padding: 0; list-style: none; counter-reset: p; font-size: 13px; }
.ald-pages li { counter-increment: p; display: flex; gap: 10px; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.05); }
.ald-pages li:first-child { border-top: 0; }
.ald-pages li::before { content: counter(p); color: #33CCFF; font-weight: 700; width: 14px; }
.ald-pages b { margin-left: auto; font-variant-numeric: tabular-nums; }
.ald-fine { font-size: 12px; color: #8b9bb4; margin: 14px 0 0; }

/* sheet */
.ald-scrim { position: absolute; inset: 0; background: rgba(4,8,16,.66); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 5; }
.ald-sheet {
  position: absolute; z-index: 6; left: 50%; top: 56px; transform: translateX(-50%);
  width: min(480px, calc(100% - 24px)); max-height: calc(100% - 72px); overflow: auto;
  background: #111A2E; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.ald-sheet h4 { font-size: 17px; margin: 0 0 10px; }
.ald-sheet p { font-size: 13px; color: #c9d4e6; line-height: 1.5; margin: 0 0 12px; }
.ald-sheet-tag { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #8b9bb4; margin-bottom: 10px; }
.ald-change { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; background: rgba(255,255,255,.04); border-radius: 12px; padding: 12px 14px; margin: 4px 0 10px; }
.ald-change span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #8b9bb4; }
.ald-change b { font-size: 18px; font-variant-numeric: tabular-nums; }
.ald-new b { color: #00F5D4; }
.ald-arrow { color: #8b9bb4; }
#al-demo .ald-amt { font-size: 12px; color: #8b9bb4; }
.ald-sheet-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.ald-sheet-btns .ald-btn { padding: 10px 16px; }
.ald-field { display: block; margin-bottom: 12px; }
.ald-field span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #8b9bb4; margin-bottom: 5px; }
.ald-field input, .ald-field select { width: 100%; background: #0B1222; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.ald-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ald-draft-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #8b9bb4; margin-bottom: 6px; }
.ald-ad .ald-post { max-width: 360px; width: 100%; }
.ald-sheet .ald-post { margin-bottom: 12px; }
.ald-sheet .ald-post-img { aspect-ratio: 2.4 / 1; }
.ald-sheet .ald-post p { color: #1c1e21; font-size: 13px; margin: 0; }
.ald-perms { margin: 0 0 12px; padding-left: 18px; font-size: 13px; color: #c9d4e6; display: grid; gap: 4px; }

.ald-toast { position: absolute; z-index: 7; left: 50%; bottom: 18px; transform: translateX(-50%); background: #fff; color: #0B1222; font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 12px; box-shadow: 0 4px 24px rgba(0,0,0,.2); max-width: calc(100% - 32px); text-align: center; }

@media (max-width: 980px) {
  .ald-cols { grid-template-columns: 1fr; }
  .ald-rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.06); padding: 8px; }
  .ald-navbtn { flex: none; gap: 8px; }
  .ald-an-grid, .ald-an-grid.ald-an-grid-2 { grid-template-columns: 1fr; }
  .ald-ad { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ald-main { padding: 16px 14px 22px; }
  .ald-kpis { grid-template-columns: 1fr 1fr; }
  .ald-kpi b { font-size: 20px; }
  .ald-spark { display: none; }
  .ald-sugg { flex-wrap: wrap; }
  .ald-sugg-btns { width: 100%; justify-content: flex-end; }
  .ald-bookrow { grid-template-columns: 26px minmax(0,1fr); }
  .ald-bookrow > div { grid-column: 2; }
  .ald-hide-sm { display: none; }
  .ald-bar-note { display: none; }
  .ald-ad-stats { grid-template-columns: 1fr 1fr; }
  .ald-chgrid { grid-template-columns: 1fr; }
  .ald-big { font-size: 36px; }
  .ald-row2 { grid-template-columns: 1fr; }
  .ald-cols { min-height: 560px; }
}
