:root {
    color-scheme: dark;
    --bg: #050a13;
    --bg-2: #07111f;
    --panel: #0b1729;
    --panel-2: #0e1c31;
    --line: rgba(255,255,255,.11);
    --text: #ffffff;
    --muted: #a8b6ca;
    --primary: #3b82f6;
    --primary-2: #7c3aed;
    --accent: #ff4d6d;
    --gold: #f6c453;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding-bottom: 106px;
    background:
        radial-gradient(circle at 12% 0%, rgba(59,130,246,.20), transparent 33rem),
        radial-gradient(circle at 88% 18%, rgba(124,58,237,.16), transparent 30rem),
        linear-gradient(180deg, var(--bg-2), var(--bg));
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
    -webkit-user-select: none;
    user-select: none;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .20;
    background-image: radial-gradient(rgba(255,255,255,.16) .65px, transparent .65px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to bottom, #000, transparent 55%);
}

.reader-header {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 72px;
    padding: 12px max(16px, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: rgba(5,10,19,.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

a.reader-brand,
a.reader-brand:link,
a.reader-brand:visited,
a.reader-brand:hover,
a.reader-brand:active,
a.reader-brand:focus {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    color: var(--text);
    text-decoration: none;
    border: 0;
    outline: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

a.reader-brand img {
    flex: 0 0 auto;
    filter: drop-shadow(0 8px 18px rgba(59,130,246,.25));
}

.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-copy strong {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1.05;
}
.brand-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .025em;
    line-height: 1.1;
}
a.reader-brand:hover .brand-copy strong { color: var(--gold); }
a.reader-brand:focus-visible { border-radius: 9px; outline: 2px solid #fff; outline-offset: 5px; }

.read-only {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid rgba(59,130,246,.40);
    border-radius: 999px;
    background: rgba(59,130,246,.10);
    color: #b9d6ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #39d98a;
    box-shadow: 0 0 0 5px rgba(57,217,138,.10), 0 0 14px rgba(57,217,138,.65);
}

.guide-intro {
    width: min(100%, 920px);
    margin: 0 auto;
    padding: 44px 20px 8px;
    text-align: center;
}
.guide-intro .eyebrow {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid rgba(246,196,83,.28);
    border-radius: 999px;
    background: rgba(246,196,83,.08);
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
}
.guide-intro h1 {
    max-width: 760px;
    margin: 18px auto 12px;
    font-size: clamp(27px, 5vw, 48px);
    line-height: 1.08;
    letter-spacing: -.035em;
}
.guide-intro p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--muted);
    font-size: clamp(14px, 2vw, 17px);
    line-height: 1.65;
}

.reader {
    width: min(100%, 920px);
    margin: 0 auto;
    padding: 28px 12px 60px;
}

.page-shell {
    position: relative;
    overflow: hidden;
    margin: 0 auto 28px;
    padding-top: 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0,0,0,.46), 0 0 0 1px rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
    isolation: isolate;
}
.page-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.page-topline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px;
    background: linear-gradient(90deg, #081426, #10233d);
    color: rgba(255,255,255,.78);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .13em;
}
.page-topline span:first-child { color: var(--gold); }

.page-shell img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    -webkit-user-drag: none;
}

.page-shell::after {
    content: "YTBOSS26  •  YTBOSS26.COM";
    position: absolute;
    right: 15px;
    bottom: 13px;
    z-index: 4;
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 7px;
    background: rgba(4,10,20,.54);
    color: rgba(255,255,255,.58);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    pointer-events: none;
}

.page-number {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 4;
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 999px;
    background: rgba(4,10,20,.74);
    color: rgba(255,255,255,.86);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    pointer-events: none;
}

.reader-footer {
    padding: 38px 16px 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}
.reader-footer img { margin-bottom: 10px; }
.reader-footer strong { color: #fff; font-size: 14px; letter-spacing: .10em; }
.reader-footer span { max-width: 560px; margin-top: 8px; line-height: 1.55; }
.reader-footer a { margin-top: 10px; color: #b9d6ff; text-decoration: none; font-weight: 700; }
.reader-footer small { margin-top: 8px; color: #66768c; }

/* Premium fixed CTA */
a.course-cta,
a.course-cta:link,
a.course-cta:visited,
a.course-cta:hover,
a.course-cta:active {
    position: fixed;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 50;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 36px 1fr 22px;
    align-items: center;
    gap: 11px;
    width: min(570px, calc(100% - 24px));
    min-height: 64px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    box-shadow: 0 20px 52px rgba(0,0,0,.50), 0 8px 26px rgba(59,130,246,.28);
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.cta-play {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgba(255,255,255,.17);
    font-size: 13px;
}
a.course-cta > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
a.course-cta strong { font-size: 12px; font-weight: 900; letter-spacing: .055em; }
a.course-cta small { margin-top: 3px; color: rgba(255,255,255,.75); font-size: 10px; font-weight: 600; }
.cta-arrow { font-size: 21px; font-weight: 500; }
a.course-cta:hover { filter: brightness(1.08); transform: translateX(-50%) translateY(-2px); }
a.course-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@media (min-width: 760px) {
    .reader-header { padding-left: 24px; padding-right: 24px; }
    .reader { padding: 38px 22px 80px; }
    .page-shell { margin-bottom: 40px; border-radius: 20px; }
}

@media (max-width: 520px) {
    body { padding-bottom: 98px; }
    .reader-header { min-height: 64px; padding-top: 9px; padding-bottom: 9px; }
    a.reader-brand img { width: 38px; height: 38px; }
    .brand-copy strong { font-size: 14px; }
    .brand-copy small { font-size: 10px; }
    .read-only { padding: 7px 9px; font-size: 8px; }
    .guide-intro { padding: 34px 16px 4px; }
    .guide-intro p { font-size: 14px; }
    .reader { padding-top: 22px; }
    .page-shell { padding-top: 28px; border-radius: 12px; }
    .page-topline { height: 28px; padding: 0 10px; font-size: 7px; }
    a.course-cta { width: calc(100% - 18px); min-height: 60px; border-radius: 16px; }
}

@media print {
    body { display: none !important; }
    .course-cta { display: none !important; }
}
