/* Shared design tokens, reset and site chrome. styles.css remains the compatibility bundle. */
/* 01. Variables */
    :root {
      --bg: #020202;
      --bg-soft: #080101;
      --surface: #0d0505;
      --surface-2: #150707;
      --surface-3: #1d0909;
      --red: #ff1010;
      --red-bright: #ff3636;
      --red-deep: #a00000;
      --red-dark: #450000;
      --green: #16f56e;
      --green-soft: #0c7a3a;
      --white: #fff;
      --text: #f5f2f2;
      --muted: #aaa2a2;
      --dim: #746b6b;
      --gold: #ffc857;
      --border: rgba(255, 25, 25, .34);
      --border-soft: rgba(255, 255, 255, .11);
      --glow: 0 0 10px rgba(255, 20, 20, .68), 0 0 28px rgba(255, 20, 20, .27);
      --glow-strong: 0 0 14px rgba(255, 15, 15, .94), 0 0 36px rgba(255, 15, 15, .55), 0 0 80px rgba(255, 15, 15, .22);
      --green-glow: 0 0 10px rgba(22, 245, 110, .48), 0 0 28px rgba(22, 245, 110, .18);
      --container: 1500px;
      --nav-h: 74px;
      --radius-sm: 10px;
      --radius-md: 18px;
      --radius-lg: 28px;
      --radius-xl: 36px;
      --ease: cubic-bezier(.2, .8, .2, 1);
    }

    /* 02. Reset and global */
    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; overflow-x: hidden; }
    body {
      margin: 0;
      overflow-x: hidden;
      background: var(--bg);
      color: var(--text);
      font-family: Manrope, Arial, sans-serif;
      line-height: 1.6;
      min-width: 320px;
    }
    body.modal-open { overflow: hidden; }
    a { color: inherit; text-decoration: none; }
    button, input, textarea, select { font: inherit; }
    button { color: inherit; cursor: pointer; }
    img, video, iframe { display: block; max-width: 100%; }
    section { position: relative; scroll-margin-top: calc(var(--nav-h) + 20px); }
    .container { width: min(var(--container), calc(100% - 96px)); margin: 0 auto; }
    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
    :focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

    .site-shell { position: relative; isolation: isolate; overflow: clip; background: linear-gradient(180deg, #050000 0%, #020202 42%, #080000 100%); }
    .site-shell::before {
      content: ""; position: fixed; inset: 0; z-index: -5; pointer-events: none; opacity: .48;
      background-image: linear-gradient(rgba(255, 15, 15, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 15, 15, .025) 1px, transparent 1px);
      background-size: 58px 58px;
      mask-image: linear-gradient(to bottom, black, transparent 82%);
    }
    .site-shell::after { content: ""; position: fixed; inset: 0; z-index: -4; pointer-events: none; opacity: .22; background: radial-gradient(circle at 50% 0%, rgba(255, 0, 0, .28), transparent 34%), radial-gradient(circle at 10% 58%, rgba(130, 0, 0, .15), transparent 28%); }
    .orb { position: fixed; z-index: -3; width: 440px; height: 440px; border-radius: 50%; filter: blur(80px); opacity: .15; pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
    .orb-a { top: 9%; left: -170px; background: #cf0000; }
    .orb-b { top: 30%; right: -220px; width: 520px; height: 520px; background: #600000; animation-delay: -5s; }
    .orb-c { top: 77%; left: 35%; width: 300px; height: 300px; background: #a30000; animation-delay: -9s; }
    .noise { position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .035; mix-blend-mode: screen; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.48'/%3E%3C/svg%3E"); }
    .section-pad { padding: 128px 0; }
    .eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 17px; color: var(--red-bright); font-family: "DM Mono", monospace; font-size: .73rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
    .eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--red); box-shadow: var(--glow); }
    .section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 50px; }
    .section-head h2 { max-width: 780px; margin: 0; font-family: "Space Grotesk", sans-serif; font-size: clamp(2.45rem, 5.4vw, 5.2rem); line-height: .95; letter-spacing: -.065em; }
    .section-head h2 span { color: var(--red); text-shadow: 0 0 22px rgba(255, 16, 16, .35); }
    .section-head p { max-width: 455px; margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.75; }
    .section-actions { display: flex; align-items: center; gap: 10px; }
    .micro-label { color: var(--dim); font-family: "DM Mono", monospace; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; }

    /* 03. Buttons and icons */
    .btn { position: relative; display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 11px; padding: 0 20px; border: 1px solid transparent; border-radius: 12px; font-size: .82rem; font-weight: 800; letter-spacing: .01em; transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s, background .28s; overflow: hidden; }
    .btn::after { content: ""; position: absolute; inset: 0 auto 0 -120%; width: 80%; transform: skewX(-24deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.26), transparent); transition: left .7s var(--ease); }
    .btn:hover::after { left: 145%; }
    .btn:hover { transform: translateY(-3px); }
    .btn:active { transform: translateY(0) scale(.98); }
    .btn:disabled { cursor: not-allowed; opacity: .48; transform: none; }
    .btn-primary { color: white; background: linear-gradient(135deg, #ff3434, #bb0000 72%); border-color: #ff4b4b; box-shadow: 0 10px 28px rgba(217, 0, 0, .2), var(--glow); }
    .btn-primary:hover { box-shadow: 0 14px 34px rgba(217, 0, 0, .27), var(--glow-strong); }
    .btn-secondary { color: white; border-color: var(--green); background: rgba(4, 24, 13, .6); box-shadow: var(--green-glow); }
    .btn-secondary:hover { background: rgba(10, 95, 47, .35); box-shadow: 0 0 15px rgba(22, 245, 110, .7), 0 0 33px rgba(22, 245, 110, .24); }
    .btn-ghost { color: var(--muted); border-color: var(--border-soft); background: rgba(255,255,255,.035); }
    .btn-ghost:hover { color: white; border-color: var(--border); background: rgba(255, 18, 18, .08); }
    .btn-icon { width: 44px; min-height: 44px; padding: 0; border-color: var(--border-soft); background: rgba(16, 3, 3, .86); border-radius: 50%; }
    .btn-icon:hover { color: white; border-color: var(--red); box-shadow: var(--glow); }
    .btn .icon-circle { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: rgba(0,0,0,.25); font-size: .7rem; transition: transform .28s var(--ease); }
    .btn:hover .icon-circle { transform: translateX(3px); }
    .tag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--border-soft); border-radius: 999px; color: var(--muted); background: rgba(0,0,0,.38); font-family: "DM Mono", monospace; font-size: .68rem; white-space: nowrap; }
    .tag.live { border-color: rgba(255, 16, 16, .6); color: #ff7777; }
    .tag.live i { color: var(--red); font-size: .5rem; animation: blink 1.7s ease-in-out infinite; }
    .tag.green { border-color: rgba(22, 245, 110, .4); color: var(--green); }
    .tag.gold { border-color: rgba(255, 200, 87, .35); color: var(--gold); }

    /* 04. Navbar */
    .navbar { position: sticky; top: 0; z-index: 80; height: var(--nav-h); border-bottom: 1px solid rgba(255, 20, 20, .3); background: rgba(28, 0, 0, .78); box-shadow: 0 14px 40px rgba(0,0,0,.24); backdrop-filter: blur(18px); }
    .navbar::after { content: ""; position: absolute; right: 12%; bottom: -1px; left: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--red), transparent); box-shadow: var(--glow); animation: line-scan 6s linear infinite; }
    .nav-inner { display: flex; height: 100%; align-items: center; justify-content: space-between; gap: 25px; }
    .brand { display: inline-flex; min-width: max-content; align-items: center; gap: 11px; font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: -.035em; }
    .brand-mark { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid #ff6464; border-radius: 11px; color: white; background: linear-gradient(145deg, #ff4242, #790000); box-shadow: inset 0 1px 12px rgba(255,255,255,.2), var(--glow); font-size: 1.35rem; font-style: italic; }
    .brand-copy { font-size: 1.03rem; }
    .brand-copy small { display: block; margin-top: -3px; color: #ff5656; font-family: "DM Mono", monospace; font-size: .47rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; }
    .nav-links { display: flex; height: 100%; align-items: center; gap: clamp(18px, 2.3vw, 38px); }
    .nav-link { position: relative; display: inline-flex; height: 100%; align-items: center; color: #b7adad; font-size: .76rem; font-weight: 700; transition: color .25s, text-shadow .25s; }
    .nav-link::after { content: ""; position: absolute; right: 50%; bottom: 18px; left: 50%; height: 2px; border-radius: 10px; background: var(--red); box-shadow: var(--glow); transition: left .3s var(--ease), right .3s var(--ease); }
    .nav-link:hover, .nav-link.active { color: #ff6a6a; text-shadow: 0 0 12px rgba(255,16,16,.42); }
    .nav-cart-count { display: inline-grid; min-width: 16px; height: 16px; margin-left: 4px; padding: 0 4px; place-items: center; border: 1px solid rgba(255,200,87,.5); border-radius: 999px; color: var(--gold); background: rgba(255,200,87,.1); font-family: "DM Mono", monospace; font-size: .5rem; line-height: 1; }
    .nav-link:hover::after, .nav-link.active::after { right: 0; left: 0; }
    .nav-login { min-height: 40px; padding: 0 17px; border-color: rgba(22,245,110,.68); border-radius: 9px; color: white; background: linear-gradient(145deg, rgba(14, 102, 52, .74), rgba(2, 34, 16, .8)); box-shadow: var(--green-glow); font-size: .74rem; font-weight: 800; }
    .nav-login:hover { transform: translateY(-2px); box-shadow: 0 0 16px rgba(22,245,110,.62), 0 0 30px rgba(22,245,110,.18); }
    .menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,0,0,.06); }
    .menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; border-radius: 4px; background: white; transition: transform .25s, opacity .25s; }
    .menu-toggle.open span:first-child { transform: translateY(6px) rotate(45deg); }
    .menu-toggle.open span:nth-child(2) { opacity: 0; }
    .menu-toggle.open span:last-child { transform: translateY(-6px) rotate(-45deg); }
    .mobile-panel { position: fixed; top: var(--nav-h); right: 16px; left: 16px; z-index: 75; display: none; padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: rgba(17, 0, 0, .96); box-shadow: 0 22px 70px rgba(0,0,0,.58), var(--glow); backdrop-filter: blur(18px); }
    .mobile-panel.open { display: grid; animation: pop-in .25s var(--ease) both; }
    .mobile-panel a { padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,.07); color: var(--muted); font-size: .85rem; font-weight: 700; }
    .mobile-panel a:hover { color: #ff7474; }
    .mobile-panel .nav-login { width: 100%; margin-top: 14px; }

    /* 14. Modal and toast system */
    .modal-backdrop { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 20px; background: rgba(0,0,0,.76); backdrop-filter: blur(10px); }
    .modal-backdrop.open { display: grid; animation: fade-in .2s ease both; }
    .modal { position: relative; width: min(690px, 100%); max-height: min(800px, calc(100vh - 40px)); overflow: auto; border: 1px solid rgba(255,25,25,.58); border-radius: 23px; background: linear-gradient(145deg, #1d0404, #090202); box-shadow: 0 30px 90px rgba(0,0,0,.7), var(--glow); animation: modal-in .34s var(--ease) both; }
    .modal.large { width: min(930px, 100%); }
    .modal-close { position: absolute; top: 15px; right: 15px; z-index: 3; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; color: #c7b0b0; background: rgba(0,0,0,.35); }
    .modal-close:hover { border-color: var(--red); color: white; box-shadow: var(--glow); }
    .modal-content { padding: 32px; }
    .modal-content h2 { margin: 0 40px 9px 0; font-family: "Space Grotesk", sans-serif; font-size: 2.1rem; line-height: 1; letter-spacing: -.06em; }
    .modal-content > p { margin: 0 0 23px; color: var(--muted); font-size: .78rem; }
    .video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--border); border-radius: 15px; background: #000; }
    .video-frame iframe { width: 100%; height: 100%; border: 0; }
    .video-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; }
    .service-detail-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; }
    .detail-icon { display: grid; width: 62px; height: 62px; place-items: center; border: 1px solid rgba(255,25,25,.45); border-radius: 17px; color: #ff6d6d; background: rgba(255,16,16,.08); font-size: 1.4rem; box-shadow: var(--glow); }
    .detail-side { padding: 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; background: rgba(0,0,0,.2); }
    .detail-side h3 { margin: 0 0 12px; font-family: "Space Grotesk", sans-serif; font-size: .85rem; }
    .detail-side ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
    .detail-side li { display: flex; gap: 8px; color: var(--muted); font-size: .67rem; }
    .detail-side li i { margin-top: 4px; color: var(--red); font-size: .53rem; }
    .step-list { display: grid; gap: 12px; margin: 23px 0; }
    .step { display: flex; gap: 11px; color: var(--muted); font-size: .7rem; }
    .step b { display: grid; flex: 0 0 24px; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: white; background: var(--red-deep); font-family: "DM Mono", monospace; font-size: .55rem; }
    .star-picker { display: flex; gap: 5px; margin: 4px 0 4px; }
    .star-picker button { padding: 0; border: 0; color: #5e4c4c; background: transparent; font-size: 1.25rem; }
    .star-picker button.selected, .star-picker button:hover { color: var(--gold); text-shadow: 0 0 10px rgba(255,200,87,.35); }
    .modal-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .modal-form-grid .field.full { grid-column: 1 / -1; }
    .toast-region { position: fixed; top: 92px; right: 22px; z-index: 300; display: grid; gap: 9px; width: min(340px, calc(100% - 44px)); }
    .toast { display: flex; align-items: start; gap: 10px; padding: 13px 14px; border: 1px solid rgba(255,25,25,.5); border-radius: 12px; color: #eadede; background: rgba(25,2,2,.96); box-shadow: 0 14px 32px rgba(0,0,0,.35), var(--glow); font-size: .7rem; animation: toast-in .35s var(--ease) both; }
    .toast i { color: var(--red); }
    .toast.success i { color: var(--green); }
    .spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.25); border-top-color: currentColor; border-radius: 50%; animation: spin 0.7s linear infinite; }

    /* 15. Reveal and motion */
    .reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
    .reveal.left { transform: translateX(-26px); }
    .reveal.right { transform: translateX(26px); }
    .reveal.scale { transform: scale(.96); }
    .reveal.visible { opacity: 1; transform: none; }
    @keyframes drift { to { transform: translate3d(45px, 28px, 0) scale(1.08); } }
    @keyframes line-scan { 0%, 100% { opacity: .55; transform: scaleX(.5); } 50% { opacity: 1; transform: scaleX(1); } }
    @keyframes blink { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
    @keyframes pulse { 0%, 100% { transform: scale(.8); opacity: .42; } 50% { transform: scale(1.3); opacity: .9; } }
    @keyframes pulse-ring { 0% { transform: scale(.72); opacity: .8; } 80%, 100% { transform: scale(1.25); opacity: 0; } }
    @keyframes spin-border { to { transform: rotate(360deg); } }
    @keyframes float-card { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
    @keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
    @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
    @keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
    @keyframes pop-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
    @keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
    @keyframes heart-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
    @keyframes burst { from { opacity: 1; transform: translate(0,0) scale(.5); } to { opacity: 0; transform: translate(8px,-28px) scale(1.6); } }
    @keyframes marquee { to { transform: translateX(-50%); } }
    @keyframes spin { to { transform: rotate(360deg); } }

/* Siskul Academy upgrade layer: shared chrome, accounts, videos, chat and ads */
[hidden] { display: none !important; }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: max-content; }
.nav-icon-btn { position: relative; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 11px; color: #d9caca; background: rgba(12, 0, 0, .72); transition: transform .25s var(--ease), border-color .25s, color .25s, box-shadow .25s; }
.nav-icon-btn[type="button"] { font: inherit; cursor: pointer; }
.nav-icon-btn:hover { color: #fff; border-color: var(--red); box-shadow: var(--glow); transform: translateY(-2px); }
.notification-badge { position: absolute; top: -5px; right: -5px; display: grid; min-width: 17px; height: 17px; padding: 0 4px; place-items: center; border: 2px solid #160000; border-radius: 999px; color: #160000; background: var(--green); font-size: .55rem; font-weight: 900; }
.register-link { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 9px; color: #ffd8d8; background: rgba(255,255,255,.045); font-size: .72rem; font-weight: 800; transition: .25s var(--ease); }
.register-link:hover { color: #fff; border-color: var(--red); background: rgba(255, 16, 16, .12); transform: translateY(-2px); }
.nav-link-icon { margin-right: 6px; color: var(--red-bright); font-size: .7rem; }
.profile-nav { position: relative; }
.profile-toggle { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; padding: 3px 9px 3px 4px; border: 1px solid rgba(22,245,110,.45); border-radius: 999px; color: #fff; background: rgba(4, 30, 16, .72); box-shadow: 0 0 16px rgba(22,245,110,.14); }
.profile-toggle:hover { border-color: var(--green); box-shadow: var(--green-glow); }
.profile-avatar { display: grid; width: 34px; height: 34px; overflow: hidden; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #fff; background: linear-gradient(135deg, #ff4a4a, #5b0000); font-size: .75rem; font-weight: 900; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-toggle-copy { display: grid; min-width: 70px; text-align: left; line-height: 1.05; }
.profile-toggle-copy strong { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; }
.profile-toggle-copy small { margin-top: 4px; color: #a8daa6; font-family: "DM Mono", monospace; font-size: .49rem; letter-spacing: .07em; text-transform: uppercase; }
.profile-toggle > i { color: var(--green); font-size: .65rem; }
.profile-dropdown { position: absolute; top: calc(100% + 13px); right: 0; z-index: 120; width: 285px; padding: 9px; border: 1px solid rgba(255, 30, 30, .42); border-radius: 17px; background: rgba(20, 2, 2, .97); box-shadow: 0 24px 70px rgba(0,0,0,.62), var(--glow); backdrop-filter: blur(20px); }
.profile-dropdown::before { content: ""; position: absolute; top: -6px; right: 30px; width: 11px; height: 11px; transform: rotate(45deg); border-top: 1px solid rgba(255,30,30,.42); border-left: 1px solid rgba(255,30,30,.42); background: #160202; }
.profile-menu-head { display: flex; align-items: center; gap: 11px; padding: 11px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
.profile-menu-head { color: #fff; text-decoration: none; }
.profile-menu-head:hover { color: #fff; background: rgba(255, 20, 20, .08); }
.profile-menu-head .profile-avatar { width: 42px; height: 42px; }
.profile-menu-head strong { display: block; font-size: .75rem; }
.profile-menu-head small { display: block; margin-top: 4px; color: var(--muted); font-size: .63rem; }
.profile-menu-link, .profile-menu-button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 11px; border: 0; border-radius: 10px; color: #cdbcbc; background: transparent; font-size: .72rem; text-align: left; transition: .22s; }
.profile-menu-link:hover, .profile-menu-button:hover { color: #fff; background: rgba(255, 20, 20, .13); }
.profile-menu-link.staff-link { color: var(--green); background: rgba(22,245,110,.045); }
.profile-menu-link i, .profile-menu-button i { width: 17px; color: var(--red-bright); text-align: center; }
.profile-menu-sep { height: 1px; margin: 6px 5px; background: rgba(255,255,255,.08); }
.profile-menu-button.danger { color: #ff8585; }
.profile-menu-button.danger i { color: #ff5a5a; }
.notification-panel { position: fixed; top: calc(var(--nav-h) + 13px); right: max(24px, calc((100vw - var(--container)) / 2)); z-index: 115; width: min(350px, calc(100vw - 32px)); padding: 10px; border: 1px solid rgba(255, 30, 30, .42); border-radius: 17px; background: rgba(20, 2, 2, .97); box-shadow: 0 24px 70px rgba(0,0,0,.62), var(--glow); backdrop-filter: blur(20px); }
.notification-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px 13px; border-bottom: 1px solid rgba(255,255,255,.08); }
.notification-head h3 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 1rem; }
.notification-head button { border: 0; color: var(--green); background: none; font-size: .62rem; }
.notification-head .notification-browser-button { padding: 3px 6px; border: 1px solid rgba(98,255,155,.35); border-radius: 6px; color: #9dffbd; background: rgba(98,255,155,.06); cursor: pointer; }
.notification-head .notification-browser-button:disabled { cursor: default; opacity: .7; }
.notification-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-bottom: 1px solid rgba(255,255,255,.06); color: #d9caca; font-size: .68rem; line-height: 1.45; text-decoration: none; }
.notification-item:last-child { border-bottom: 0; }
.notification-item i { flex: 0 0 25px; display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(255,16,16,.38); border-radius: 8px; color: var(--red-bright); background: rgba(255,16,16,.08); }
.notification-item.unread { background: rgba(255,16,16,.075); }
.notification-item > span { display: grid; min-width: 0; gap: 2px; }
.notification-item strong { color: #f4e1e1; font-size: .68rem; }
.notification-item small { display: block; margin-top: 4px; color: var(--dim); font-family: "DM Mono", monospace; font-size: .55rem; }
.notification-item time { display: block; margin-top: 5px; color: #806f6f; font: 500 .5rem "DM Mono", monospace; }
.notification-empty { display: grid; justify-items: center; gap: 8px; padding: 28px 15px; color: #a38d8d; text-align: center; font-size: .66rem; }
.notification-empty i { color: var(--green); font-size: 1.15rem; }
.mobile-panel .register-link { width: 100%; margin-top: 9px; }
.mobile-account-link { color: var(--green) !important; }

.page-shell { min-height: 100vh; }
.page-main { min-height: calc(100vh - var(--nav-h)); }
.page-hero { position: relative; display: grid; align-items: center; min-height: 48vh; padding-top: 86px; padding-bottom: 68px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr); align-items: center; gap: 50px; }
.page-hero h1 { max-width: 800px; margin: 0; font-family: "Space Grotesk", sans-serif; font-size: clamp(3.3rem, 7vw, 7.3rem); line-height: .88; letter-spacing: -.08em; }
.page-hero h1 span { color: var(--red); text-shadow: var(--glow); }
.page-hero p:not(.eyebrow) { max-width: 640px; margin: 25px 0 0; color: var(--muted); font-size: .96rem; line-height: 1.75; }
.page-hero-card { position: relative; min-height: 260px; padding: 26px; overflow: hidden; border: 1px solid rgba(255,40,40,.55); border-radius: 25px; background: linear-gradient(140deg, rgba(48,4,4,.9), rgba(7,1,1,.96)); box-shadow: var(--glow); }
.page-hero-card::before { content: ""; position: absolute; right: -52px; bottom: -76px; width: 240px; height: 240px; border: 1px solid rgba(255,200,87,.46); border-radius: 50%; box-shadow: 0 0 0 26px rgba(255,200,87,.04), 0 0 0 52px rgba(255,200,87,.03); }
.page-hero-card strong { position: relative; display: block; max-width: 235px; font-family: "Space Grotesk", sans-serif; font-size: clamp(1.7rem, 3vw, 3rem); line-height: .96; letter-spacing: -.06em; }
.page-hero-card .hero-card-stats { position: absolute; right: 26px; bottom: 24px; display: grid; gap: 7px; color: #e9d1d1; font-family: "DM Mono", monospace; font-size: .6rem; text-align: right; text-transform: uppercase; letter-spacing: .1em; }
.page-hero-card .hero-card-stats b { color: var(--green); font-size: 1.1rem; }
.ad-container { margin-top: -14px; margin-bottom: 18px; }
.ad-slot { position: relative; display: grid; min-height: 88px; place-items: center; padding: 20px; overflow: hidden; border: 1px dashed rgba(255, 200, 87, .4); border-radius: 15px; color: #a88f72; background: linear-gradient(100deg, rgba(255,200,87,.05), rgba(255,20,20,.035)); text-align: center; }
.ad-slot::before { content: "ADVERTISEMENT"; position: absolute; top: 9px; left: 13px; color: rgba(255,200,87,.54); font-family: "DM Mono", monospace; font-size: .5rem; letter-spacing: .18em; }
.ad-slot strong { color: #f3d9a2; font-size: .75rem; }
.ad-slot small { display: block; margin-top: 5px; color: var(--dim); font-size: .6rem; }
.form-error { margin-top: 9px; color: #ff8383; font-size: .65rem; }
.chat-dock { position: fixed; right: 24px; bottom: 23px; z-index: 105; }
.chat-launcher { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid rgba(255,90,90,.85); border-radius: 50%; color: #fff; background: linear-gradient(145deg,#ff3d3d,#920000); box-shadow: var(--glow-strong); transition: transform .28s var(--ease); }
.chat-launcher:hover { transform: translateY(-4px) rotate(-5deg); }
.chat-launcher .chat-dot { position: absolute; top: 1px; right: 1px; width: 11px; height: 11px; border: 2px solid #200000; border-radius: 50%; background: var(--green); }
.chat-panel { position: absolute; right: 0; bottom: 68px; display: grid; width: min(410px, calc(100vw - 32px)); overflow: hidden; border: 1px solid rgba(255,45,45,.55); border-radius: 18px; background: rgba(19,2,2,.97); box-shadow: 0 22px 70px rgba(0,0,0,.58), var(--glow); backdrop-filter: blur(18px); }
.chat-panel.open { animation: pop-in .25s var(--ease) both; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.chat-head strong { font-family: "Space Grotesk", sans-serif; font-size: .86rem; }
.chat-head small { display: block; margin-top: 3px; color: var(--green); font-family: "DM Mono", monospace; font-size: .53rem; text-transform: uppercase; }
.chat-head button { border: 0; color: var(--muted); background: none; }
.chat-messages { display: grid; max-height: 365px; gap: 9px; padding: 14px; overflow: auto; }
.chat-bubble { max-width: 85%; padding: 9px 11px; border-radius: 11px 11px 11px 3px; color: #d9caca; background: rgba(255,255,255,.08); font-size: .68rem; line-height: 1.5; }
.chat-bubble.user { justify-self: end; border-radius: 11px 11px 3px 11px; color: #fff; background: rgba(255,16,16,.32); }
.assistant-bubble { max-width: 96%; white-space: normal; }
.assistant-typing { color: #a99191; font-style: italic; }
.assistant-sources { display: grid; gap: 6px; margin-top: 10px; }
.assistant-source { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid rgba(22,245,110,.2); border-radius: 9px; color: #fff; background: rgba(22,245,110,.045); text-decoration: none; }
.assistant-source > i { color: var(--green); }
.assistant-source > span { display: grid; min-width: 0; gap: 2px; }
.assistant-source strong { overflow: hidden; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.assistant-source small { overflow: hidden; color: #a99a9a; font-size: .52rem; text-overflow: ellipsis; white-space: nowrap; }
.assistant-source em { margin-left: auto; color: var(--green); font: 500 .48rem "DM Mono", monospace; font-style: normal; white-space: nowrap; }
.assistant-source em i { margin-left: 3px; }
.assistant-suggestions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.assistant-suggestions button { padding: 6px 8px; border: 1px solid rgba(255,45,45,.35); border-radius: 999px; color: #ffaaaa; background: rgba(255,16,16,.06); font-size: .52rem; }
.assistant-suggestions button:hover { border-color: var(--green); color: #fff; }
.chat-composer { display: flex; gap: 7px; padding: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.chat-composer input { min-width: 0; flex: 1; height: 38px; padding: 0 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; color: #fff; background: rgba(0,0,0,.3); font-size: .67rem; }
.chat-composer button { width: 39px; border: 1px solid rgba(255,40,40,.5); border-radius: 9px; color: #fff; background: var(--red-deep); }
@media (max-width: 1100px) {
  .nav-links { gap: 15px; }
  .nav-actions .nav-icon-btn, .nav-actions .register-link, .nav-actions .nav-login, .nav-actions .profile-nav { display: none; }
  .nav-inner { gap: 12px; }
}
@media (max-width: 900px) {
  .page-hero-grid, .account-content-grid { grid-template-columns: 1fr; }
  .page-hero-card { min-height: 210px; }
  .video-toolbar { align-items: start; flex-direction: column; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .account-menu-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .container { width: min(var(--container), calc(100% - 34px)); }
  .page-hero { min-height: 0; padding-top: 53px; padding-bottom: 45px; }
  .page-hero h1 { font-size: clamp(2.8rem, 15vw, 5rem); }
  .video-hub { padding-top: 38px; padding-bottom: 75px; }
  .video-grid, .video-social-strip { grid-template-columns: 1fr; }
  .reel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-main { padding-top: 35px; padding-bottom: 70px; }
  .account-panel { padding: 18px; }
  .account-menu-list { grid-template-columns: repeat(2, 1fr); }
  .affiliate-dashboard { grid-template-columns: 1fr; }
  .chat-dock { right: 16px; bottom: 16px; }
  .notification-panel { right: 16px; }
  .profile-toggle-copy { display: none; }
}
/* Mobile/tablet app shell: keep the desktop navigation and layout unchanged. */
.mobile-bottom-bar { display: none; }

@media (max-width: 1023px) {
  body { padding-bottom: 78px; }
  .navbar { height: var(--nav-h); }
  .nav-inner { gap: 9px; }
  .nav-links, .menu-toggle, .mobile-panel { display: none !important; }
  .nav-actions { display: flex !important; gap: 6px; margin-left: auto; }
  .nav-actions > .nav-icon-btn:not([hidden]),
  .nav-actions > .nav-login:not([hidden]),
  .nav-actions > .register-link:not([hidden]) { display: inline-flex !important; }
  .nav-actions > .profile-nav:not([hidden]) { display: block !important; }
  .nav-icon-btn { width: 38px; height: 38px; }
  .nav-login { min-height: 38px; padding-inline: 11px; font-size: .68rem; }
  .register-link { min-height: 38px; padding-inline: 11px; font-size: .66rem; }
  .profile-toggle { min-height: 38px; }

  .mobile-bottom-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 130;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    min-height: 72px;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 38, 38, .42);
    background: rgba(18, 1, 1, .96);
    box-shadow: 0 -15px 38px rgba(0,0,0,.38), 0 0 24px rgba(255,16,16,.08);
    backdrop-filter: blur(20px);
  }
  .mobile-bottom-item {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 55px;
    align-content: center;
    justify-items: center;
    gap: 4px;
    padding: 5px 3px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #aa9696;
    font-family: "Manrope", sans-serif;
    font-size: .57rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    transition: color .22s, border-color .22s, background .22s, transform .22s;
  }
  .mobile-bottom-item i { font-size: 1rem; }
  .mobile-bottom-item:hover,
  .mobile-bottom-item.active {
    color: #fff;
    border-color: rgba(255, 46, 46, .42);
    background: rgba(255, 16, 16, .12);
    box-shadow: 0 0 18px rgba(255,16,16,.12);
  }
  .mobile-bottom-item.active i { color: var(--red-bright); text-shadow: var(--glow); }
  .mobile-bottom-item:active { transform: translateY(1px); }

  .notification-panel { top: calc(var(--nav-h) + 8px); right: 12px; }
  .chat-dock { right: 18px; bottom: 88px; }
  .toast-region { top: auto; right: 16px; bottom: 86px; left: 16px; width: auto; }
}

@media (max-width: 640px) {
  body { padding-bottom: 74px; }
  .nav-inner { gap: 6px; }
  .brand { gap: 7px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 9px; font-size: 1.15rem; }
  .brand-copy { font-size: .86rem; }
  .brand-copy small { font-size: .39rem; letter-spacing: .13em; }
  .nav-actions { gap: 4px; }
  .nav-icon-btn { width: 35px; height: 35px; border-radius: 10px; }
  .nav-login { min-height: 35px; padding-inline: 8px; font-size: .6rem; }
  .register-link { min-height: 35px; padding-inline: 8px; font-size: .58rem; }
  .profile-toggle { min-height: 35px; padding-right: 4px; }
  .profile-avatar { width: 29px; height: 29px; }
  .profile-toggle > i { display: none; }
  .mobile-bottom-bar { min-height: 68px; padding: 5px 7px calc(5px + env(safe-area-inset-bottom)); }
  .mobile-bottom-item { min-height: 53px; font-size: .52rem; }
  .mobile-bottom-item i { font-size: .94rem; }
  .chat-dock { right: 14px; bottom: 81px; }
  .toast-region { right: 12px; bottom: 80px; left: 12px; }
  .notification-panel { right: 12px; width: min(350px, calc(100vw - 24px)); }
}

/* Global live search shared by the desktop navbar and mobile app shell. */
.brand-logo { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; border-radius: 0; }
.ad-slot-action { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: #f3d9a2; font-size: .6rem; font-weight: 800; }
.ad-slot-action:hover { color: #fff; }
.global-search-backdrop { position: fixed; inset: 0; z-index: 210; display: grid; place-items: start center; padding: clamp(82px, 12vh, 142px) 20px 30px; background: rgba(0,0,0,.78); opacity: 0; pointer-events: none; visibility: hidden; backdrop-filter: blur(12px); transition: opacity .2s ease, visibility .2s ease; }
.global-search-backdrop.open { opacity: 1; pointer-events: auto; visibility: visible; }
.global-search-dialog { width: min(760px, 100%); max-height: min(760px, calc(100vh - 150px)); overflow: auto; padding: 25px; border: 1px solid rgba(255, 35, 35, .64); border-radius: 23px; background: linear-gradient(145deg, rgba(28,3,3,.98), rgba(8,1,1,.98)); box-shadow: 0 30px 90px rgba(0,0,0,.72), var(--glow); transform: translateY(-12px) scale(.985); transition: transform .28s var(--ease); }
.global-search-backdrop.open .global-search-dialog { transform: none; }
.global-search-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.global-search-head h2 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: clamp(2rem, 4vw, 3.1rem); line-height: .95; letter-spacing: -.07em; }
.global-search-head h2 span { color: var(--red-bright); text-shadow: var(--glow); }
.global-search-close { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; color: #d4bebe; background: rgba(0,0,0,.32); cursor: pointer; }
.global-search-close:hover { border-color: var(--red); color: #fff; box-shadow: var(--glow); }
.global-search-form { position: relative; display: flex; align-items: center; gap: 11px; margin-top: 22px; padding: 0 12px 0 16px; border: 1px solid rgba(255, 45, 45, .54); border-radius: 13px; background: rgba(0,0,0,.38); box-shadow: inset 0 0 24px rgba(255,0,0,.04); }
.global-search-form > i { color: var(--red-bright); }
.global-search-form input { min-width: 0; flex: 1; height: 54px; border: 0; outline: 0; color: #fff; background: transparent; font: 700 .86rem "Manrope", sans-serif; }
.global-search-form input::placeholder { color: #826c6c; }
.global-search-form:focus-within { border-color: var(--red-bright); box-shadow: 0 0 0 3px rgba(255,16,16,.1), var(--glow); }
.global-search-form kbd { padding: 5px 7px; border: 1px solid rgba(255,255,255,.13); border-radius: 6px; color: #a28c8c; background: rgba(255,255,255,.05); font: 500 .55rem "DM Mono", monospace; }
.global-search-status { display: flex; align-items: center; gap: 8px; min-height: 18px; margin: 14px 2px 12px; color: var(--muted); font-size: .68rem; }
.global-search-results { display: grid; gap: 14px; }
.global-search-group { display: grid; gap: 7px; }
.global-search-group h3 { display: flex; align-items: center; gap: 7px; margin: 3px 2px 2px; color: #f0dede; font: 700 .65rem "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.global-search-group h3 i { color: var(--red-bright); }
.global-search-group h3 span { display: grid; min-width: 19px; height: 19px; margin-left: 2px; place-items: center; border: 1px solid rgba(22,245,110,.34); border-radius: 999px; color: var(--green); background: rgba(22,245,110,.06); font-size: .52rem; }
.global-search-result { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; color: #fff; background: rgba(255,255,255,.035); transition: transform .22s var(--ease), border-color .22s, background .22s, box-shadow .22s; }
.global-search-result:hover { border-color: rgba(255, 45, 45, .66); background: rgba(255, 16, 16, .09); box-shadow: var(--glow); transform: translateX(3px); }
.global-search-result-icon { display: grid; flex: 0 0 37px; width: 37px; height: 37px; place-items: center; border: 1px solid rgba(255,35,35,.34); border-radius: 10px; color: var(--red-bright); background: rgba(255,16,16,.08); }
.global-search-result-copy { display: grid; min-width: 0; gap: 3px; }
.global-search-result-copy small { overflow: hidden; color: #ff7979; font: 500 .53rem "DM Mono", monospace; letter-spacing: .08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.global-search-result-copy strong { overflow: hidden; color: #f6eeee; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.global-search-result-copy > span { overflow: hidden; color: #a99696; font-size: .62rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.global-search-result-arrow { margin-left: auto; color: #a36d6d; font-size: .67rem; }
.global-search-empty { display: grid; justify-items: center; gap: 8px; padding: 38px 15px; border: 1px dashed rgba(255,255,255,.13); border-radius: 14px; color: #a99696; text-align: center; }
.global-search-empty i { color: var(--red-bright); font-size: 1.3rem; }
.global-search-empty strong { color: #f0dddd; font-size: .8rem; }
.global-search-empty span { font-size: .66rem; }

@media (max-width: 640px) {
  .global-search-backdrop { padding: 76px 12px 20px; }
  .global-search-dialog { max-height: calc(100vh - 108px); padding: 18px 14px; border-radius: 18px; }
  .global-search-head h2 { font-size: 2rem; }
  .global-search-form input { height: 48px; font-size: .78rem; }
  .global-search-form kbd { display: none; }
  .global-search-result { padding: 10px; }
}

/* AI assistant readability, actions, expansion and branded scrolling. */
html { scrollbar-width: thin; scrollbar-color: var(--red-bright) #080000; }
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: #080000; }
html::-webkit-scrollbar-thumb { border: 2px solid #080000; border-radius: 999px; background: linear-gradient(var(--red-bright), var(--red-deep)); }
html::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--green), var(--red-bright)); }
.chat-head-actions { display: inline-flex; align-items: center; gap: 6px; }
.chat-head-actions button { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; color: #cdbcbc; background: rgba(0,0,0,.24); }
.chat-head-actions button:hover { border-color: var(--green); color: var(--green); box-shadow: var(--green-glow); }
.chat-panel { width: min(450px, calc(100vw - 28px)); max-height: min(76vh, 780px); grid-template-rows: auto minmax(0, 1fr) auto; }
.chat-messages { min-height: 245px; max-height: min(50vh, 500px); padding: 16px; scrollbar-width: thin; scrollbar-color: var(--red-bright) rgba(255,16,16,.12); }
.chat-messages::-webkit-scrollbar, .notification-items::-webkit-scrollbar { width: 9px; }
.chat-messages::-webkit-scrollbar-track, .notification-items::-webkit-scrollbar-track { border-radius: 999px; background: rgba(255,16,16,.08); }
.chat-messages::-webkit-scrollbar-thumb, .notification-items::-webkit-scrollbar-thumb { border: 2px solid rgba(19,2,2,.96); border-radius: 999px; background: linear-gradient(var(--red-bright), var(--red-deep)); }
.chat-messages::-webkit-scrollbar-thumb:hover, .notification-items::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--green), var(--red-bright)); }
.notification-items { max-height: min(60vh, 520px); overflow: auto; scrollbar-width: thin; scrollbar-color: var(--red-bright) rgba(255,16,16,.12); }
.chat-bubble { max-width: 94%; padding: 12px 14px; font-size: .92rem; line-height: 1.62; }
.chat-head strong { font-size: 1rem; }
.chat-head small { font-size: .62rem; }
.chat-composer { padding: 12px; }
.chat-composer input { height: 45px; font-size: .86rem; }
.chat-composer button { width: 45px; font-size: .92rem; }
.assistant-sources { gap: 8px; margin-top: 12px; }
.assistant-source { gap: 10px; padding: 10px; }
.assistant-source strong { font-size: .78rem; }
.assistant-source small { font-size: .68rem; }
.assistant-source em { font-size: .62rem; }
.assistant-suggestions { gap: 7px; margin-top: 12px; }
.assistant-suggestions button { padding: 8px 11px; color: #ffd0d0; font-size: .72rem; line-height: 1.35; }
.assistant-actions { display: grid; gap: 8px; margin-top: 12px; }
.assistant-action { display: flex; min-height: 42px; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid rgba(22,245,110,.34); border-radius: 10px; color: #fff; background: linear-gradient(90deg, rgba(22,245,110,.1), rgba(255,16,16,.08)); font-size: .78rem; font-weight: 800; text-decoration: none; }
.assistant-action:hover { border-color: var(--green); color: #fff; box-shadow: var(--green-glow); transform: translateX(2px); }
.assistant-action > i:first-child { width: 22px; color: var(--green); text-align: center; }
.assistant-action > span { flex: 1; text-align: left; }
.assistant-action > i:last-child { color: var(--red-bright); font-size: .68rem; }
.chat-dock.chat-expanded { z-index: 205; }
.chat-dock.chat-expanded .chat-panel { position: fixed; right: clamp(12px, 5vw, 80px); bottom: clamp(12px, 5vh, 56px); width: min(760px, calc(100vw - 24px)); height: min(820px, calc(100vh - 24px)); max-height: none; }
.chat-dock.chat-expanded .chat-messages { min-height: 0; max-height: none; }

/* Readability pass: keep the neon brand and spacing, but make supporting copy
   readable on normal laptop screens. Micro labels remain compact; nothing
   below here is allowed to shrink essential text into the old 7–9px range. */
body { font-size: 16px; }
.eyebrow { font-size: .78rem; }
.micro-label { font-size: .76rem; }
.step, .toast { font-size: .82rem; }
.nav-link { font-size: .86rem; }
.nav-link-icon { font-size: .76rem; }
.profile-toggle-copy strong { font-size: .78rem; }
.profile-toggle-copy small { font-size: .58rem; }
.profile-menu-head strong { font-size: .84rem; }
.profile-menu-head small { font-size: .7rem; }
.profile-menu-link, .profile-menu-button { font-size: .82rem; }
.notification-head button { font-size: .7rem; }
.notification-item { font-size: .8rem; line-height: 1.5; }
.notification-item strong { font-size: .82rem; }
.notification-item small { font-size: .68rem; line-height: 1.45; }
.notification-item time { font-size: .62rem; }
.notification-empty { font-size: .78rem; }
.notification-empty-links a { font-size: .72rem; }
.btn { font-size: .88rem; }
.tag { font-size: .7rem; }

@media (max-width: 640px) {
  .mobile-bottom-item { font-size: .62rem; }
  .notification-item { font-size: .78rem; }
}

@media (max-width: 640px) {
  .chat-bubble { font-size: .86rem; }
  .chat-dock.chat-expanded .chat-panel { inset: 8px; right: 8px; bottom: 8px; width: auto; height: calc(100vh - 16px); }
}

/* Responsive public shell: keep the shared navbar and touch category strips
   usable on every public page, including tablet-width screens. */
.navbar {
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
  will-change: transform;
}
.navbar.is-scroll-hidden {
  transform: translate3d(0, calc(-100% - 4px), 0);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .navbar { transition: none; }
}
body,
.site-shell,
main,
section,
.container,
.nav-inner,
.hero-inner,
.hero-copy,
.hero-media-wrap {
  min-width: 0;
}
body { overflow-x: hidden; }
img, video, iframe { max-width: 100%; }

@media (max-width: 1023px) {
  .container { width: min(var(--container), calc(100% - 40px)); max-width: 100%; }
  .nav-inner { width: 100%; }
  .brand { min-width: 0; max-width: calc(100vw - 124px); }
  .brand-art { flex: 0 1 auto; max-width: min(220px, 44vw); }
  .brand-copy { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-actions { min-width: 0; flex: 0 0 auto; }
  .hero-inner,
  .page-hero-grid,
  .course-main,
  .contact-grid,
  .service-grid,
  .footer-grid { min-width: 0; max-width: 100%; }
  .hero-media-wrap { width: 100%; max-width: 100%; }
  .hero-media { width: 100%; max-width: 100%; }
  .feature-stack { right: 12px; max-width: calc(100% - 24px); }
  .hero-category-bar,
  .course-category-bar {
    justify-content: flex-start !important;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
  }
  .hero-category-bar::-webkit-scrollbar,
  .course-category-bar::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .hero-category-bar > .category-item,
  .course-category-bar > * {
    flex: 0 0 clamp(165px, 27vw, 240px) !important;
    width: auto !important;
    min-width: clamp(165px, 27vw, 240px) !important;
    overflow: visible !important;
    text-overflow: clip;
  }
}

@media (max-width: 767px) {
  .container { width: calc(100% - 28px); }
  .navbar { overflow: visible; }
  .nav-inner { gap: 7px; }
  .brand { max-width: calc(100vw - 116px); }
  .brand-art { max-width: min(175px, 46vw); height: 48px; }
  .brand-art .brand-logo { max-width: 175px; height: 48px; max-height: 48px; }
  .brand-copy { font-size: .88rem; }
  .brand-copy small { font-size: .4rem; letter-spacing: .12em; }
  .nav-icon-btn { width: 36px; height: 36px; }
  .nav-actions { gap: 5px; }
  .hero { max-width: 100%; overflow: visible; }
  .hero-copy { max-width: 100%; }
  .hero-title { max-width: 100%; overflow-wrap: normal; word-break: normal; }
  .hero-actions { max-width: 100%; }
  .hero-media-wrap { padding-right: 0; }
  .hero-media { min-height: clamp(235px, 58vw, 330px); }
  .feature-stack { position: relative; right: auto; bottom: auto; width: 100%; max-width: 100%; margin-top: 12px; }
  .hero-category-bar,
  .course-category-bar { width: 100%; min-height: 54px; }
  .hero-category-bar > .category-item,
  .course-category-bar > * {
    flex-basis: 158px !important;
    min-width: 158px !important;
    font-size: .72rem;
  }
  .course-stack-item,
  .course-card,
  .course-main,
  .course-content,
  .course-visual,
  .course-features { width: 100%; max-width: 100%; min-width: 0; }
  .course-features { overflow: hidden; }
  .course-feature { min-width: 0; }
  .footer { overflow: hidden; }
  .footer-grid { width: 100%; }
}

/* Final responsive overrides. Keep this block last so shared public pages do
   not inherit the clipped desktop category layout at tablet widths. The
   public navbar is fixed to the viewport and never retracts while scrolling. */
.site-shell { padding-top: var(--nav-h); }
.navbar,
.navbar.is-scroll-hidden {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  width: 100% !important;
  height: var(--nav-h) !important;
  transform: none !important;
  pointer-events: auto !important;
  transition: none !important;
  will-change: auto;
}
body { overflow-x: hidden; }
body, .site-shell, main, section, .container, .nav-inner, .hero-inner, .hero-copy, .hero-media-wrap { min-width: 0; }
img, video, iframe { max-width: 100%; }
@media (prefers-reduced-motion: reduce) { .navbar { transition: none; } }

@media (max-width: 1023px) {
  .container { width: min(var(--container), calc(100% - 40px)); max-width: 100%; }
  .nav-inner { width: 100%; }
  .brand { min-width: 0; max-width: calc(100vw - 124px); }
  .brand-art { flex: 0 1 auto; max-width: min(220px, 44vw); }
  .brand-copy, .brand-copy small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-actions { min-width: 0; flex: 0 0 auto; }
  .hero-inner, .page-hero-grid, .course-main, .contact-grid, .service-grid, .footer-grid { min-width: 0; max-width: 100%; }
  .hero-media-wrap, .hero-media { width: 100%; max-width: 100%; }
  .feature-stack { right: 12px; max-width: calc(100% - 24px); }
  .hero-category-bar, .course-category-bar {
    justify-content: flex-start !important;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
  }
  .hero-category-bar::-webkit-scrollbar, .course-category-bar::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .hero-category-bar > .category-item, .course-category-bar > * {
    flex: 0 0 clamp(165px, 27vw, 240px) !important;
    width: auto !important;
    min-width: clamp(165px, 27vw, 240px) !important;
    overflow: visible !important;
    text-overflow: clip;
  }
}
@media (max-width: 767px) {
  .container { width: calc(100% - 28px); }
  .nav-inner { gap: 7px; }
  .brand { max-width: calc(100vw - 116px); }
  .brand-art { max-width: min(175px, 46vw); height: 48px; }
  .brand-art .brand-logo { max-width: 175px; height: 48px; max-height: 48px; }
  .brand-copy { font-size: .88rem; }
  .brand-copy small { font-size: .4rem; letter-spacing: .12em; }
  .nav-icon-btn { width: 36px; height: 36px; }
  .nav-actions { gap: 5px; }
  .hero, .hero-copy { max-width: 100%; }
  .hero-title { max-width: 100%; overflow-wrap: normal; word-break: normal; }
  .hero-media-wrap { padding-right: 0; }
  .hero-media { min-height: clamp(235px, 58vw, 330px); }
  .feature-stack { position: relative; right: auto; bottom: auto; width: 100%; max-width: 100%; margin-top: 12px; }
  .hero-category-bar, .course-category-bar { width: 100%; min-height: 54px; }
  .hero-category-bar > .category-item, .course-category-bar > * { flex-basis: 158px !important; min-width: 158px !important; font-size: .72rem; }
  .course-stack-item, .course-card, .course-main, .course-content, .course-visual, .course-features { width: 100%; max-width: 100%; min-width: 0; }
  .course-features { overflow: hidden; }
  .course-feature { min-width: 0; }
  .footer { overflow: hidden; }
  .footer-grid { width: 100%; }
}
