/* 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-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 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; gap: 10px; padding: 12px; border-bottom: 1px solid rgba(255,255,255,.06); color: #d9caca; font-size: .68rem; line-height: 1.45; }
.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 small { display: block; margin-top: 4px; color: var(--dim); font-family: "DM Mono", monospace; font-size: .55rem; }
.notification-empty-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; margin-top: 12px; }
.notification-empty-links a { padding: 9px 8px; border: 1px solid rgba(255,31,45,.32); border-radius: 9px; color: #ffd8d8; background: rgba(255,16,16,.06); font-size: .62rem; text-align: center; }
.notification-empty-links a:hover { border-color: var(--green); color: var(--green); }
.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(350px, 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: 240px; 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); }
.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: flex;
    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;
    flex: 1 1 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; }
}

/* Compatibility forms and footer used by account/contact pages. */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { color: #bcaeae; font-size: .7rem; font-weight: 700; }
.field-control { position: relative; }
.field-control > i { position: absolute; top: 17px; left: 14px; z-index: 1; color: #8f5454; font-size: .75rem; pointer-events: none; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; outline: 0; color: #fff; background: rgba(0,0,0,.5); transition: border-color .25s, box-shadow .25s; }
.field input, .field select { height: 47px; padding: 0 13px 0 38px; }
.field textarea { min-height: 110px; padding: 13px 14px 13px 38px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #615858; }
.field select { appearance: none; }
.field-control:has(select)::after { content: "\\f078"; position: absolute; top: 15px; right: 14px; color: #9f5555; font: 700 .65rem/1 "Font Awesome 6 Free"; pointer-events: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(255,50,50,.85); box-shadow: 0 0 0 3px rgba(255,16,16,.1), var(--glow); }
.field-error { min-height: 14px; color: #ff7070; font-size: .61rem; }
.footer { position: relative; padding: 72px 0 27px; border-top: 1px solid rgba(255,25,25,.32); background: #060101; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.1fr; gap: 40px; padding-bottom: 55px; }
.footer-brand p { max-width: 270px; margin: 18px 0 22px; color: var(--muted); font-size: .72rem; line-height: 1.7; }
.footer-socials { display: flex; gap: 8px; }
.footer-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-col li, .footer-col li a { color: var(--muted); font-size: .69rem; }
.newsletter { display: flex; margin-top: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; }
.newsletter input { flex: 1; min-width: 0; height: 39px; padding: 0 10px; border: 0; outline: 0; color: white; background: rgba(255,255,255,.04); font-size: .63rem; }
.newsletter button { width: 42px; border: 0; color: white; background: var(--red-deep); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); color: #716464; font-family: "DM Mono", monospace; font-size: .57rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 17px; }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } .field.full { grid-column: auto; } .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .footer { padding-top: 57px; } .footer-grid { grid-template-columns: 1fr; gap: 31px; padding-bottom: 38px; } }

/* Final site-chrome sizing: the uploaded logo is contained without a
   clipping frame, while the text and touch targets remain readable. */
:root { --nav-h: 82px; }
.navbar, .nav-inner { min-height: var(--nav-h); }
.navbar { height: var(--nav-h); }
.brand { gap: 14px; }
.brand-mark { display: grid; flex: 0 0 58px; width: 58px; height: 58px; overflow: visible; place-items: center; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.brand-mark .brand-logo { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; border-radius: 0; }
.brand-fallback { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid #ff6464; border-radius: 14px; color: #fff; background: linear-gradient(145deg, #ff4242, #790000); box-shadow: inset 0 1px 12px rgba(255,255,255,.2), var(--glow); font-size: 1.65rem; font-style: italic; }
.brand-copy { font-size: 1.15rem; }
.brand-copy small { margin-top: 0; font-size: .54rem; letter-spacing: .2em; }
.nav-link { font-size: .86rem; }
.footer .brand-mark { flex-basis: 64px; width: 64px; height: 64px; }
.footer .brand-fallback { width: 58px; height: 58px; }
.footer .brand-copy { font-size: 1.15rem; }
.footer-brand p { font-size: .79rem; }
.footer-col h3 { font-size: .74rem; }
.footer-col li, .footer-col li a { font-size: .76rem; }
.footer-bottom { font-size: .63rem; }
.newsletter input { font-size: .7rem; }

@media (max-width: 1023px) {
  :root { --nav-h: 72px; }
  .brand { gap: 10px; }
  .brand-mark { flex-basis: 52px; width: 52px; height: 52px; }
  .brand-fallback { width: 47px; height: 47px; font-size: 1.45rem; }
  .brand-copy { font-size: 1rem; }
  .brand-copy small { font-size: .48rem; }
  .nav-link { font-size: .78rem; }
}

@media (max-width: 640px) {
  :root { --nav-h: 68px; }
  .brand { gap: 8px; }
  .brand-mark { flex-basis: 46px; width: 46px; height: 46px; }
  .brand-fallback { width: 42px; height: 42px; border-radius: 11px; font-size: 1.3rem; }
  .brand-copy { font-size: .94rem; }
  .brand-copy small { font-size: .42rem; letter-spacing: .15em; }
  .footer .brand-mark { flex-basis: 56px; width: 56px; height: 56px; }
  .footer .brand-fallback { width: 50px; height: 50px; }
  .footer .brand-copy { font-size: 1rem; }
  .footer-brand p { font-size: .75rem; }
  .footer-col li, .footer-col li a { font-size: .73rem; }
}

@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)); }
}

/* 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; }

@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: the header retracts while reading and returns on
   an upward gesture. Category controls remain usable on touch tablets too. */
.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%; }

/* Authentication and other site dialogs lock the document itself as well as
   the body, so the page cannot move behind the dimmed modal on touch devices. */
html.modal-open,
body.modal-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

body.modal-open {
  touch-action: none;
}

.modal-backdrop.open {
  touch-action: none;
}

.modal-backdrop.open .modal {
  touch-action: auto;
}

@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); }

  /* A tablet is still a touch device: do not turn the category strip into a
     clipped desktop segment bar before the phone breakpoint is reached. */
  .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%; }
}

/* Mobile home composition: the phone view follows the app reading order
   (visual first, actions second) while the desktop grid stays unchanged. */
.course-features { display: none !important; }
.course-visual-badges { display: none; }
.course-card .course-cta { bottom: 28px; }

@media (max-width: 767px) {
  .hero {
    min-height: auto !important;
    padding: 30px 0 18px !important;
  }
  .hero-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "hero-kicker"
      "hero-title"
      "hero-description"
      "hero-media"
      "hero-actions"
      "hero-trust" !important;
    gap: 0 !important;
  }
  .hero-copy { display: contents !important; }
  .hero-kicker { grid-area: hero-kicker; margin-bottom: 12px; }
  .hero-title { grid-area: hero-title; }
  .hero-description { grid-area: hero-description; margin-top: 15px; }
  .hero-media-wrap { grid-area: hero-media; margin-top: 20px; }
  .hero-actions { grid-area: hero-actions; margin-top: 18px; }
  .trust-row { grid-area: hero-trust; margin-top: 15px; }

  .hero-media {
    min-height: clamp(235px, 58vw, 305px) !important;
    max-height: 305px;
  }
  .hero-media .feature-stack {
    position: absolute;
    top: 14px;
    right: 10px;
    bottom: auto;
    left: 10px;
    width: auto;
    margin: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .hero-media .feature-card {
    min-height: 44px;
    padding: 6px 7px;
    gap: 6px;
    border-radius: 10px;
  }
  .hero-media .feature-icon { flex-basis: 23px; width: 23px; height: 23px; border-radius: 7px; font-size: .62rem; }
  .hero-media .feature-card strong { font-size: .52rem; }
  .hero-media .feature-card small { margin-top: 2px; font-size: .43rem; }
  .hero-media .media-caption { right: 18px; bottom: 16px; left: 18px; max-width: 50%; }
  .hero-media .media-caption p { margin-bottom: 5px; font-size: .46rem; }
  .hero-media .media-caption h3 { font-size: 1.1rem; }

  .courses-section .section-head,
  .certificate-section .section-head {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 28px !important;
  }
  .courses-section .section-head > div,
  .certificate-section .section-head > div { min-width: 0; }
  .courses-section .section-head .eyebrow,
  .certificate-section .section-head .eyebrow {
    white-space: nowrap;
    font-size: .6rem;
    letter-spacing: .13em;
  }
  .courses-section .section-head h2 {
    max-width: 100% !important;
    white-space: nowrap !important;
    font-size: clamp(2.15rem, 10.5vw, 3.7rem) !important;
    line-height: .9;
    letter-spacing: -.09em;
  }
  .courses-section .section-head > p,
  .certificate-section .section-head > p {
    display: block !important;
    max-width: 100% !important;
    margin-top: 13px !important;
    font-size: .86rem !important;
    line-height: 1.55 !important;
  }
  .certificate-section .section-head h2 {
    max-width: 100% !important;
    white-space: nowrap !important;
    font-size: clamp(1.8rem, 8.8vw, 3.4rem) !important;
    line-height: .92;
    letter-spacing: -.1em;
  }

  .course-badges { display: none !important; }
  .course-visual-badges {
    position: absolute;
    right: 13px;
    bottom: 13px;
    left: 13px;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }
  .course-visual-badges .tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 4px 7px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    color: #fff;
    background: rgba(4,0,2,.74);
    box-shadow: 0 4px 14px rgba(0,0,0,.24);
    backdrop-filter: blur(8px);
    font-size: .52rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
  }
  .course-visual-badges .tag i { margin-right: 4px; font-size: .48rem; }
  .course-visual-badges .tag.live { border-color: rgba(255,38,56,.8); color: #ff9b9f; }
  .course-visual-badges .tag.live i { color: #ff2638; }
  .course-visual-badges .tag.category { border-color: rgba(22,245,110,.62); color: #8dffb8; }
  .course-visual-badges .tag.category i { color: var(--green); }
  .course-number { display: none; }
  .course-card .course-cta { bottom: auto; }
}

/* Mobile interaction fixes: keep the profile menu attached to its trigger
   and keep the homepage title readable on one deliberate line. */
.navbar,
.navbar.is-scroll-hidden {
  position: sticky !important;
  top: 0;
  transform: none !important;
  pointer-events: auto !important;
}

@media (max-width: 767px) {
  .profile-nav { position: static; }
  .profile-dropdown {
    position: fixed;
    top: calc(var(--nav-h) + 8px);
    right: max(10px, env(safe-area-inset-right));
    left: auto;
    z-index: 260;
    width: min(320px, calc(100vw - 20px));
    max-height: calc(100dvh - var(--nav-h) - 20px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 18px;
    transform-origin: top right;
  }
  .profile-dropdown::before { right: 22px; }
  .profile-menu-link,
  .profile-menu-button { min-height: 44px; font-size: .84rem; }
  .profile-menu-head strong { font-size: .9rem; }
  .profile-menu-head small { font-size: .7rem; }

  /* The hero copy is intentionally compact on phones, but never stacked or
     clipped into three separate rows. */
  .hero-title {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: baseline;
    justify-content: flex-start;
    width: 100%;
    max-width: none !important;
    gap: clamp(2px, 1vw, 7px);
    overflow: visible;
    white-space: nowrap;
    font-size: clamp(1.5rem, 9.2vw, 3.55rem) !important;
    letter-spacing: -.09em;
    line-height: .92;
  }
  .hero-title span,
  .hero-title .apply {
    display: inline-block !important;
    flex: 0 0 auto;
    width: auto !important;
    max-width: none;
    white-space: nowrap;
  }
  .hero-title .apply::after {
    right: -7px;
    width: 7px;
    height: 7px;
  }
}

/* Compact section rhythm and app-like reading layout on tablets and phones. */
@media (max-width: 1023px) {
  .section-pad {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }

  .section-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr) !important;
    align-items: end !important;
    gap: 18px !important;
    margin-bottom: 28px !important;
  }

  .section-head > div,
  .section-head > p {
    min-width: 0 !important;
  }

  .section-head .eyebrow {
    white-space: nowrap !important;
    margin-bottom: 8px !important;
  }

  .section-head h2 {
    max-width: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
    font-size: clamp(1.7rem, 4vw, 3rem) !important;
    line-height: .96 !important;
    letter-spacing: -.075em !important;
  }

  .section-head > p,
  .reviews-section .section-head > div:last-child > p {
    display: block !important;
    max-width: none !important;
    margin: 0 !important;
    font-size: .9rem !important;
    line-height: 1.45 !important;
  }

  .reviews-section .section-head > div:last-child {
    min-width: 0 !important;
  }

  .section-actions {
    margin-top: 12px !important;
  }

  .courses-section {
    padding-top: 58px !important;
    padding-bottom: 68px !important;
  }

  .courses-stack {
    gap: 42px !important;
  }

  .ad-container {
    margin-top: 0 !important;
    margin-bottom: 16px !important;
  }

  .footer {
    padding-top: 58px !important;
    padding-bottom: 24px !important;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px 22px !important;
    padding-bottom: 34px !important;
  }

  .footer-brand,
  .footer-grid > :last-child {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 767px) {
  .section-pad {
    padding-top: 42px !important;
    padding-bottom: 48px !important;
  }

  .section-head {
    grid-template-columns: minmax(0, 1.27fr) minmax(0, .73fr) !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
  }

  .section-head .eyebrow {
    font-size: .58rem !important;
    letter-spacing: .18em !important;
    margin-bottom: 6px !important;
  }

  .section-head h2 {
    font-size: clamp(1.2rem, 5.8vw, 2.35rem) !important;
    letter-spacing: -.09em !important;
  }

  .section-head > p,
  .reviews-section .section-head > div:last-child > p {
    font-size: .76rem !important;
    line-height: 1.42 !important;
  }

  .courses-section .section-head h2 {
    font-size: clamp(1.85rem, 8vw, 2.75rem) !important;
  }

  .certificate-section .section-head h2 {
    font-size: clamp(1.45rem, 6.6vw, 2.35rem) !important;
  }

  .reviews-section .section-head h2,
  .products-section .section-head h2,
  .social-section .section-head h2 {
    font-size: clamp(1.1rem, 5.2vw, 2.2rem) !important;
  }

  .work-section .section-head h2 {
    font-size: clamp(1.25rem, 5.6vw, 2.2rem) !important;
  }

  .reviews-section .section-head > div:last-child > p {
    max-height: 4.3em !important;
    overflow: hidden !important;
  }

  .section-actions {
    margin-top: 9px !important;
  }

  .section-actions .btn,
  .reviews-section .section-actions .btn {
    min-height: 38px !important;
    padding: 9px 13px !important;
    font-size: .72rem !important;
  }

  .courses-section {
    padding-top: 34px !important;
    padding-bottom: 48px !important;
  }

  .courses-stack {
    gap: 28px !important;
  }

  .course-sequence-label {
    margin-bottom: 8px !important;
  }

  .certificate-section,
  .reviews-section,
  .products-section,
  .work-section,
  .contact-section,
  .social-section {
    overflow: clip !important;
  }

  .contact-section .contact-info h2 {
    max-width: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
    font-size: clamp(1.75rem, 8.2vw, 3.1rem) !important;
    line-height: .96 !important;
    letter-spacing: -.09em !important;
  }

  .contact-section .contact-info > p {
    max-width: 100% !important;
    font-size: .84rem !important;
    line-height: 1.55 !important;
  }

  .footer {
    padding-top: 40px !important;
    padding-bottom: 18px !important;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px 16px !important;
    padding-bottom: 26px !important;
  }

  .footer-brand,
  .footer-grid > :last-child {
    grid-column: 1 / -1 !important;
  }

  .footer-brand p {
    max-width: 300px !important;
    font-size: .78rem !important;
    line-height: 1.5 !important;
  }

  .footer-col h3 {
    white-space: nowrap !important;
    font-size: .68rem !important;
    letter-spacing: .12em !important;
    margin-bottom: 10px !important;
  }

  .footer-col li,
  .footer-col a {
    font-size: .76rem !important;
    line-height: 1.45 !important;
  }

  .footer-bottom {
    display: grid !important;
    gap: 10px !important;
    font-size: .62rem !important;
    line-height: 1.4 !important;
  }

  .footer-bottom nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px 12px !important;
  }
}

@media (max-width: 380px) {
  .section-head {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr) !important;
    gap: 7px !important;
  }

  .section-head h2,
  .reviews-section .section-head h2,
  .products-section .section-head h2,
  .work-section .section-head h2,
  .social-section .section-head h2 {
    font-size: 1.14rem !important;
  }

  .courses-section .section-head h2 {
    font-size: 1.72rem !important;
  }

  .certificate-section .section-head h2 {
    font-size: 1.32rem !important;
  }

  .section-head > p,
  .reviews-section .section-head > div:last-child > p {
    font-size: .7rem !important;
  }
}

/* Keep the final mobile logo sizing after the legacy compatibility rules
   above, so the mark is never reduced or cropped on small screens. */
@media (max-width: 640px) {
  :root { --nav-h: 68px; }
  .brand { gap: 8px; }
  .brand-mark { flex-basis: 46px; width: 46px; height: 46px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .brand-mark .brand-logo { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
  .brand-fallback { width: 42px; height: 42px; border-radius: 11px; font-size: 1.3rem; }
  .brand-copy { font-size: .94rem; }
  .brand-copy small { font-size: .42rem; letter-spacing: .15em; }
  .footer .brand-mark { flex-basis: 56px; width: 56px; height: 56px; }
  .footer .brand-fallback { width: 50px; height: 50px; }
  .footer .brand-copy { font-size: 1rem; }
}

/* Uploaded logos are complete artwork, not square avatars. Keep them in a
   separate natural-ratio wrapper so a wide wordmark is never clipped by the
   old S-mark frame or given an artificial border/stroke. */
.brand-art {
  display: inline-flex;
  flex: 0 1 auto;
  width: fit-content;
  max-width: min(280px, 30vw);
  height: 62px;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.brand-art .brand-logo {
  display: block;
  width: auto;
  height: 62px;
  max-width: 280px;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
.footer .brand-art {
  max-width: min(300px, 32vw);
  height: 68px;
}
.footer .brand-art .brand-logo {
  width: auto;
  height: 68px;
  max-width: 300px;
  max-height: 68px;
}

@media (max-width: 1023px) {
  .brand-art { max-width: min(220px, 34vw); height: 54px; }
  .brand-art .brand-logo { max-width: 220px; height: 54px; max-height: 54px; }
}
@media (max-width: 640px) {
  .brand-art { max-width: min(180px, 48vw); height: 48px; }
  .brand-art .brand-logo { max-width: 180px; height: 48px; max-height: 48px; }
  .footer .brand-art { max-width: min(220px, 72vw); height: 58px; }
  .footer .brand-art .brand-logo { max-width: 220px; height: 58px; max-height: 58px; }
}

/* Public readability is controlled from Site settings.  Keep the smallest
   option available for dense screens, but make large the safe default. */
html:has(body.public-text-size-small) { font-size: 92%; }
html:has(body.public-text-size-medium) { font-size: 100%; }
html:has(body.public-text-size-large) { font-size: 110%; }
html:has(body.public-text-size-extra-large) { font-size: 122%; }

.notification-head-actions { display: grid; justify-items: end; gap: 5px; }
.notification-head-actions button { cursor: pointer; }
.notification-see-all,
.notification-panel-footer a { color: var(--green) !important; font-size: .68rem; font-weight: 800; text-decoration: none; }
.notification-see-all:hover,
.notification-panel-footer a:hover { color: #fff !important; }
.notification-panel-footer { padding: 10px 12px 4px; border-top: 1px solid rgba(255,255,255,.08); text-align: center; }
.notification-panel-footer i { margin-left: 5px; font-size: .62rem; }

.notifications-inbox { padding: clamp(105px, 13vw, 170px) 0 80px; }
.notifications-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.notifications-heading h1 { margin: 8px 0 10px; font-family: "Space Grotesk", sans-serif; font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: .94; letter-spacing: -.065em; }
.notifications-heading h1 span { color: var(--red-bright); text-shadow: var(--glow); }
.notifications-heading p:not(.eyebrow) { max-width: 620px; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.notifications-inbox-card { overflow: hidden; border: 1px solid rgba(255,31,45,.38); border-radius: 18px; background: linear-gradient(135deg, rgba(41,4,10,.88), rgba(13,2,3,.95)); box-shadow: 0 20px 60px rgba(0,0,0,.26); }
.notification-inbox-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 20px; border-bottom: 1px solid rgba(255,255,255,.09); }
.notification-inbox-item:last-child { border-bottom: 0; }
.notification-inbox-item.is-hidden { opacity: .65; }
.notification-inbox-icon { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255,31,45,.55); border-radius: 13px; color: var(--red-bright); background: rgba(255,31,45,.1); box-shadow: var(--glow); }
.notification-inbox-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--green); font: 700 .72rem "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.notification-inbox-meta time { color: var(--dim); font-weight: 500; letter-spacing: .02em; text-transform: none; }
.notification-inbox-copy h2 { margin: 8px 0 5px; color: #fff; font-family: "Space Grotesk", sans-serif; font-size: 1.18rem; }
.notification-inbox-copy p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.notification-open-link { display: inline-flex; gap: 8px; margin-top: 11px; color: var(--green); font-size: .82rem; font-weight: 800; text-decoration: none; }
.notification-inbox-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.notification-inbox-actions form { margin: 0; }
.notification-inbox-actions button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 11px; border: 1px solid rgba(255,31,45,.4); border-radius: 9px; color: #ffd8d8; background: rgba(255,31,45,.06); cursor: pointer; font-size: .76rem; font-weight: 800; }
.notification-inbox-actions button:hover { border-color: var(--green); color: var(--green); box-shadow: var(--green-glow); }
.notification-inbox-actions button.danger:hover { border-color: #ff626d; color: #ff8a91; }
.notification-inbox-empty { padding: 72px 20px; color: var(--muted); text-align: center; }
.notification-inbox-empty i { color: var(--green); font-size: 2rem; }
.notification-inbox-empty h2 { margin: 16px 0 6px; color: #fff; font-family: "Space Grotesk", sans-serif; }
.notification-inbox-empty p { margin: 0; font-size: .95rem; }

.suspension-overlay { position: fixed; inset: 0; z-index: 350; display: grid; place-items: center; padding: 20px; background: rgba(4,0,1,.82); backdrop-filter: blur(14px); }
.suspension-card { width: min(620px, 100%); max-height: min(92vh, 820px); overflow: auto; padding: clamp(24px, 5vw, 48px); border: 1px solid rgba(255,31,45,.72); border-radius: 24px; background: linear-gradient(145deg, rgba(40,3,8,.98), rgba(12,1,2,.99)); box-shadow: 0 0 40px rgba(255,31,45,.26), 0 26px 90px rgba(0,0,0,.75); }
.suspension-icon { display: grid; width: 52px; height: 52px; place-items: center; margin-bottom: 18px; border: 1px solid var(--red-bright); border-radius: 15px; color: var(--red-bright); background: rgba(255,31,45,.1); font-size: 1.35rem; }
.suspension-card h2 { margin: 8px 0 12px; color: #fff; font-family: "Space Grotesk", sans-serif; font-size: clamp(2rem, 5vw, 3.2rem); line-height: .98; }
.suspension-copy { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.suspension-status { display: flex; gap: 10px; align-items: center; margin: 22px 0; padding: 13px 15px; border: 1px solid rgba(255,194,52,.36); border-radius: 11px; color: #ffe3a0; background: rgba(255,194,52,.07); font-size: .88rem; font-weight: 700; }
.suspension-status i { color: #ffc234; }
.suspension-form { display: grid; gap: 12px; }
.suspension-file-field { display: flex; gap: 13px; align-items: center; padding: 15px; border: 1px dashed rgba(0,244,119,.6); border-radius: 12px; color: #d8ffe8; background: rgba(0,244,119,.06); cursor: pointer; }
.suspension-file-field > i { color: var(--green); font-size: 1.25rem; }
.suspension-file-field span { display: grid; gap: 4px; min-width: 0; }
.suspension-file-field strong { color: #fff; font-size: .92rem; }
.suspension-file-field small { color: #abd8ba; font-size: .75rem; line-height: 1.4; }
.suspension-file-field input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.suspension-file-names { margin: -3px 0 0; overflow-wrap: anywhere; color: var(--dim); font: 500 .72rem "DM Mono", monospace; line-height: 1.5; }
.suspension-form textarea { width: 100%; min-height: 100px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; color: #fff; background: rgba(0,0,0,.32); resize: vertical; font: inherit; }
.suspension-form textarea:focus { border-color: var(--green); outline: 0; box-shadow: var(--green-glow); }
.suspension-submit { justify-content: center; width: 100%; min-height: 48px; margin-top: 4px; }

@media (max-width: 700px) {
  .notifications-heading { align-items: start; flex-direction: column; }
  .notification-inbox-item { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .notification-inbox-icon { width: 36px; height: 36px; border-radius: 10px; }
  .notification-inbox-actions { grid-column: 2; justify-content: start; }
}

/* Final responsive overrides. These intentionally live at EOF because this
   stylesheet also contains legacy compatibility rules for older templates.
   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%; }

/* The portfolio marquee was decorative only; keep the section clean and
   prevent older cached/alternate markup from bringing it back. */
.products-section .marquee { display: none !important; }

.review-mobile-action { display: none; }

@media (max-width: 1023px) {
  .reviews-section .section-head,
  .products-section .section-head,
  .work-section .section-head,
  .social-section .section-head {
    display: block !important;
    width: 100% !important;
  }

  .reviews-section .review-heading-action,
  .reviews-section .reviews-section-description,
  .products-section .portfolio-description,
  .work-section .work-description,
  .social-section .social-description {
    display: none !important;
  }

  .reviews-section .review-mobile-action {
    display: flex !important;
    justify-content: center;
    margin: 8px 0 12px;
  }

  .reviews-section .review-mobile-action .btn {
    min-height: 40px;
    padding: 9px 16px;
    font-size: .76rem;
  }
}

@media (max-width: 767px) {
  .reviews-section .section-head h2,
  .products-section .section-head h2,
  .work-section .section-head h2,
  .social-section .section-head h2 {
    white-space: nowrap !important;
    overflow: visible !important;
  }

  .reviews-section .review-mobile-action {
    margin-top: 4px;
    margin-bottom: 10px;
  }
}

@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%; }
}

/* Final public readability pass.  Headings keep the established display
   scale; navigation, body copy and controls are brought back to a clear,
   comfortable reading size across every app page. */
body { font-size: 1rem; }
.nav-links { gap: clamp(16px, 2vw, 32px); }
.nav-link { font-size: .95rem; }
.nav-link-icon { font-size: .8rem; }
.brand-copy { font-size: 1.18rem; }
.brand-copy small { font-size: .55rem; }
.nav-login, .register-link { font-size: .82rem; }
.mobile-panel a { font-size: .95rem; }
.profile-toggle-copy strong { font-size: .75rem; }
.profile-menu-link, .profile-menu-button { font-size: .82rem; }
.mobile-bottom-item { font-size: .68rem; }
.eyebrow { font-size: .76rem; }
.micro-label { font-size: .74rem; }

.section-head p,
.hero-copy > p:not(.eyebrow),
.course-heading > p,
.account-view-head p,
.contact-info > p,
.message-page p:not(.eyebrow),
.video-card-body p:not(.micro-label),
.store-page-heading > p:last-child,
.product-detail-lead,
.detail-prose,
.seller-cta-card p:not(.eyebrow) {
  font-size: 1rem;
  line-height: 1.65;
}

.ad-slot strong { font-size: .84rem; }
.ad-slot small { font-size: .72rem; }

@media (max-width: 1023px) {
  .nav-link { font-size: .9rem; }
  .nav-link-icon { font-size: .76rem; }
  .brand-copy { font-size: 1.04rem; }
  .brand-copy small { font-size: .5rem; }
  .nav-login, .register-link { font-size: .74rem; }
}

@media (max-width: 767px) {
  .brand-copy { font-size: .98rem; }
  .brand-copy small { font-size: .44rem; }
  .nav-login, .register-link { font-size: .68rem; }
  .mobile-bottom-item { font-size: .67rem; }
  .section-head p,
  .hero-copy > p:not(.eyebrow),
  .course-heading > p,
  .account-view-head p,
  .contact-info > p,
  .message-page p:not(.eyebrow),
  .video-card-body p:not(.micro-label),
  .store-page-heading > p:last-child,
  .product-detail-lead,
  .detail-prose,
  .seller-cta-card p:not(.eyebrow) {
    font-size: .9rem;
  }
}

/* Store home rhythm: the seller CTA remains the hero, but it sits close to
   the fixed navbar and the catalogue follows without a second large gap. */
.store-home-hero.section-pad {
  padding-top: clamp(28px, 3vw, 46px) !important;
  padding-bottom: clamp(26px, 2.8vw, 42px) !important;
}
.store-browse.section-pad {
  padding-top: clamp(30px, 3vw, 46px) !important;
}

@media (max-width: 1023px) {
  .store-home-hero.section-pad { padding-top: 28px !important; padding-bottom: 30px !important; }
  .store-browse.section-pad { padding-top: 34px !important; }
}

@media (max-width: 767px) {
  .store-home-hero.section-pad { padding-top: 22px !important; padding-bottom: 24px !important; }
  .store-browse.section-pad { padding-top: 28px !important; }
}

/* Final cross-device hardening layer.  The project has legacy bundles with
   duplicate breakpoints; these rules are deliberately last so every page
   shares the same app shell, safe-area spacing and bounded popups. */
*, *::before, *::after { min-width: 0; }
html, body { max-width: 100%; overflow-x: hidden; }
body { overflow-wrap: anywhere; }
button, input, select, textarea { max-width: 100%; }
main, .site-shell, .page-shell, .section-pad, .section-head, .section-actions,
.card, .panel, .account-panel, .account-form-card, .store-product-card,
.feed-post, .message-app, .course-detail-card, .learning-session-card,
.certificate-form-card, .contact-form-card, .admin-card { min-width: 0; max-width: 100%; }
img, video, iframe, canvas, svg { max-width: 100%; }
pre, code { max-width: 100%; overflow-x: auto; }

@media (max-width: 1023px) {
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .nav-links { display: none !important; }
  .menu-toggle { display: grid !important; flex: 0 0 42px; place-items: center; }
  .mobile-panel { display: none !important; max-height: calc(100dvh - var(--nav-h) - 94px); overflow: auto; overscroll-behavior: contain; }
  .mobile-panel.open { display: grid !important; }
  .nav-actions > .nav-login,
  .nav-actions > .register-link { display: none !important; }
  .mobile-bottom-bar {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    min-height: 74px;
    padding-bottom: calc(7px + env(safe-area-inset-bottom));
  }
  .mobile-bottom-item { min-width: 0; overflow: hidden; }
  .mobile-bottom-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .modal-backdrop { padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
  .modal { display: flex; flex-direction: column; max-height: calc(100dvh - 20px); overflow: hidden; }
  .modal > #modalContent { min-height: 0; overflow: auto; overscroll-behavior: contain; }
  .modal-close { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
  .modal-form-grid, .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .global-search-backdrop { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .global-search-dialog { max-height: calc(100dvh - var(--nav-h) - 102px); min-height: 0; }
  .global-search-results { min-height: 0; overflow: auto; overscroll-behavior: contain; }
  .chat-dock { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .chat-panel { max-height: min(78dvh, 780px); }
  .footer-grid { min-width: 0; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .container { width: min(var(--container), calc(100% - 48px)); }
  .section-pad { padding-top: 64px !important; padding-bottom: 64px !important; }
  .mobile-panel { right: 24px; left: 24px; }
  .modal { width: min(720px, 100%); }
}

@media (max-width: 767px) {
  :root { --nav-h: 64px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .container { width: calc(100% - 28px); }
  .nav-inner { gap: 6px; }
  .brand { max-width: calc(100vw - 166px); min-width: 0; }
  .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 { gap: 5px; }
  .nav-actions > .store-nav-cart { display: none !important; }
  .nav-icon-btn { width: 36px; height: 36px; }
  .menu-toggle { width: 38px; height: 38px; flex-basis: 38px; }
  .mobile-panel { top: var(--nav-h); right: 10px; left: 10px; padding: 12px; border-radius: 15px; }
  .mobile-panel a, .mobile-panel .nav-login, .mobile-panel .register-link { min-height: 46px; }
  .mobile-bottom-bar { min-height: 70px; padding-right: 6px; padding-left: 6px; }
  .mobile-bottom-item { min-height: 54px; padding-right: 2px; padding-left: 2px; font-size: .63rem; }
  .mobile-bottom-item i { font-size: .94rem; }
  .section-pad { padding-top: 42px !important; padding-bottom: 48px !important; }
  .section-head, .section-actions, .form-footer, .course-card-footer, .store-section-head,
  .seller-dashboard-head, .notifications-heading, .profile-heading { align-items: stretch; flex-direction: column; gap: 14px; }
  .section-head h2, .page-hero h1, .course-heading h1, .account-view-head h1 { max-width: 100%; font-size: clamp(2.05rem, 11vw, 3.4rem); overflow-wrap: anywhere; }
  .section-head p, .hero-copy > p:not(.eyebrow), .course-heading > p { max-width: 100%; }
  .section-actions .btn, .form-footer .btn, .course-card-footer .btn, .store-section-head .btn { width: 100%; }
  .grid, .form-grid, .modal-form-grid, .contact-grid, .certificate-grid, .course-detail-grid,
  .account-main-grid, .wallet-dashboard-grid, .wallet-lower-grid, .order-detail-grid,
  .product-information-grid, .editor-grid, .seller-dashboard-grid, .live-detail-grid { grid-template-columns: 1fr !important; }
  .form-grid .field.full, .modal-form-grid .field.full { grid-column: auto; }
  .field-control input, .field-control select, .field-control textarea, input, select, textarea { font-size: 16px; }
  .btn { min-height: 48px; }
  .modal-backdrop { place-items: stretch; padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
  .modal, .modal.large { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 16px; }
  .modal > #modalContent { padding-bottom: env(safe-area-inset-bottom); }
  .modal-content { padding: 54px 16px 20px; }
  .modal-content h2 { margin-right: 34px; font-size: clamp(1.65rem, 8vw, 2.35rem); line-height: 1.05; overflow-wrap: anywhere; }
  .modal-content > p { line-height: 1.55; }
  .modal-form-grid, .form-grid { gap: 12px; }
  .global-search-backdrop { place-items: stretch; padding: calc(var(--nav-h) + 8px) 8px calc(78px + env(safe-area-inset-bottom)); }
  .global-search-dialog { width: 100%; max-height: 100%; padding: 16px 12px; border-radius: 16px; overflow: hidden; }
  .global-search-head h2 { font-size: clamp(1.75rem, 9vw, 2.4rem); }
  .global-search-results { padding-right: 1px; }
  .global-search-result { align-items: flex-start; }
  .global-search-result-copy strong, .global-search-result-copy > span { white-space: normal; overflow-wrap: anywhere; }
  .notification-panel { top: calc(var(--nav-h) + 8px); right: 8px; width: calc(100vw - 16px); max-height: calc(100dvh - var(--nav-h) - 96px); overflow: auto; }
  .notification-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .notification-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .chat-dock { right: 12px; bottom: calc(82px + env(safe-area-inset-bottom)); }
  .chat-panel { width: calc(100vw - 24px); max-height: calc(100dvh - var(--nav-h) - 102px); }
  .chat-dock.chat-expanded .chat-panel { inset: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); width: auto; height: auto; max-height: none; }
  .chat-dock.chat-expanded .chat-launcher { display: none; }
  .toast-region { right: 10px; bottom: calc(82px + env(safe-area-inset-bottom)); left: 10px; width: auto; }
  .toast { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
  .footer-bottom nav { flex-wrap: wrap; }
  .analytics-table-wrap { overflow: visible; }
  .analytics-table-wrap table, .analytics-table-wrap thead, .analytics-table-wrap tbody,
  .analytics-table-wrap tr, .analytics-table-wrap th, .analytics-table-wrap td { display: block; width: 100%; }
  .analytics-table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .analytics-table-wrap tr { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .analytics-table-wrap td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
  .analytics-table-wrap td::before { content: attr(data-label); color: var(--dim); font-weight: 700; text-align: left; }
  .feed-post, .message-app, .store-product-card, .account-panel, .account-form-card { overflow-wrap: anywhere; }
  .feed-post img, .feed-post video, .message-sponsored-media { height: auto; max-height: 70dvh; object-fit: contain; }
  .course-card, .academy-course-card, .course-session-block, .learning-session-card { height: auto; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media (max-width: 1023px) {
  .store-hero-grid, .product-detail-shell, .cart-layout, .checkout-layout, .seller-apply-layout,
  .order-detail-grid, .seller-dashboard-grid, .messaging-shell, .feed-layout { grid-template-columns: 1fr !important; }
  .store-product-grid, .store-product-grid.compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seller-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .public-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-profile-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .message-voice, .message-call-card { min-width: 0; max-width: 100%; }
}

@media (max-width: 767px) {
  .store-product-grid, .store-product-grid.compact-grid { grid-template-columns: 1fr; }
  .seller-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-profile-grid { grid-template-columns: 1fr; }
  .public-profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-right: 0; margin-left: 0; }
  .cart-item { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 9px; }
  .cart-item form { grid-column: 3; grid-row: 1; }
  .cart-item-price { grid-column: 2 / -1; justify-self: start; }
  .order-row { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; }
  .order-row > .order-row-action { grid-column: 2 / -1; justify-self: start; }
  .seller-product-row, .seller-order-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px; }
  .seller-product-row > .status-pill, .seller-order-row > .status-pill { grid-column: 2; justify-self: start; }
  .seller-product-row > .icon-link { grid-column: 3; grid-row: 1 / span 2; }
  .message-page-body .message-stream { min-width: 0; }
  .message-bubble { max-width: calc(100% - 36px); overflow-wrap: anywhere; }
  .message-voice { width: 100%; }
  .call-actions { flex-wrap: wrap; }
  .call-actions .btn { min-width: 0; flex: 1 1 120px; }
  .feed-upload-row, .feed-author-row, .feed-comment-form { min-width: 0; }
  .feed-comment-form textarea { min-width: 0; }
  .store-wallet-box { min-width: 0; width: 100%; }
  .detail-cart-form input { width: 70px; }
}

/* Feature-owned dialogs use their own markup instead of the shared modal.
   Give them the same safe-area, single-screen behaviour on phones. */
@media (max-width: 767px) {
  body.feed-body .feed-composer-card {
    place-items: stretch;
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }
  body.feed-body .feed-composer-dialog {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 15px;
  }

  .message-modal-backdrop,
  .call-overlay {
    place-items: stretch;
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }
  .message-modal,
  .message-modal.group-manage-modal,
  .call-card {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 15px;
  }
  .message-modal { height: 100%; padding: 22px 15px calc(22px + env(safe-area-inset-bottom)); }
  .call-card { overflow-y: auto; }
  .call-media { min-height: min(42dvh, 300px); }
  .call-remote-video { height: min(48dvh, 340px); }
  .call-actions { flex-wrap: wrap; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }

  .certificate-crop-modal {
    place-items: stretch;
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }
  .certificate-crop-dialog {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 15px;
  }

  .ads-edit-dialog {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    border-radius: 15px;
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
  }
  .ads-edit-duration-grid, .ads-edit-location-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  /* Message is a dedicated app surface. Keep its composer above the fixed
     bottom navigation without reintroducing page-level horizontal scrolling. */
  body.message-page-body { padding-bottom: 0; }
  .message-page-body .message-composer { padding-bottom: calc(9px + env(safe-area-inset-bottom)); }
}

/* Final mobile-only home hero cleanup. Desktop and laptop layouts keep their
   existing copy, media caption and feature-card composition. */
@media (max-width: 767px) {
  .hero-inner {
    grid-template-areas:
      "hero-title"
      "hero-media"
      "hero-actions"
      "hero-trust" !important;
  }

  .hero {
    padding-top: 22px !important;
  }

  .hero-title {
    /* Let the one-line mobile title visually use the full hero width. */
    width: 100% !important;
    font-size: clamp(1.75rem, 12.2vw, 4.35rem) !important;
  }

  .hero-media-wrap {
    margin-top: 12px !important;
  }

  .hero-kicker,
  .hero-description,
  .hero-media .media-caption {
    display: none !important;
  }

  .hero-media .feature-stack {
    position: absolute !important;
    top: auto !important;
    right: 10px !important;
    bottom: 9px !important;
    left: 10px !important;
    width: auto !important;
    margin: 0 !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 3px !important;
  }

  .hero-media .feature-card {
    min-height: 34px !important;
    gap: 3px !important;
    padding: 3px 4px !important;
    border-radius: 6px !important;
  }

  .hero-media .feature-icon {
    width: 15px !important;
    height: 15px !important;
    flex-basis: 15px !important;
    border-radius: 4px !important;
    font-size: .4rem !important;
  }

  .hero-media .feature-card strong {
    font-size: .36rem !important;
    line-height: 1.05 !important;
  }

  .hero-media .feature-card small {
    margin-top: 1px !important;
    font-size: .29rem !important;
    line-height: 1.05 !important;
  }
}

/* Tablet and small-laptop home composition.  Keep the established phone
   composition, but give the 2x2 feature cards enough room to remain legible. */
@media (min-width: 768px) and (max-width: 1199px) {
  :root { --nav-h: 72px; }

  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .navbar { overflow: visible; }
  .nav-inner { gap: 10px; }
  .nav-links { display: none !important; }
  .nav-actions {
    display: flex !important;
    gap: 8px;
    margin-left: auto;
  }
  .nav-actions > .nav-icon-btn:not([hidden]) { display: grid !important; }
  .nav-actions > .nav-login:not([hidden]),
  .nav-actions > .register-link:not([hidden]) { display: none !important; }
  .nav-actions > .profile-nav:not([hidden]) { display: block !important; }
  .nav-icon-btn { width: 40px; height: 40px; }
  .profile-toggle { min-height: 40px; }

  .container {
    width: min(var(--container), calc(100% - 48px));
    max-width: 100%;
  }
  .brand-art { max-width: min(220px, 34vw); height: 54px; }
  .brand-art .brand-logo { max-width: 220px; height: 54px; max-height: 54px; }

  .mobile-bottom-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 130;
    display: flex !important;
    gap: 5px;
    min-height: 74px;
    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;
    flex: 1 1 0;
    min-height: 57px;
    align-content: center;
    justify-items: center;
    gap: 5px;
    padding: 5px 4px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #aa9696;
    font-size: .64rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
  }
  .mobile-bottom-item i { font-size: 1.05rem; }
  .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); }
  .chat-dock { right: 20px; bottom: 88px; }

  .hero {
    min-height: auto !important;
    padding: 24px 0 18px !important;
  }
  .hero-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "hero-title"
      "hero-media"
      "hero-actions"
      "hero-trust" !important;
    gap: 0 !important;
  }
  .hero-copy { display: contents !important; }
  .hero-kicker,
  .hero-description,
  .hero-media .media-caption { display: none !important; }

  .hero-title {
    grid-area: hero-title;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: baseline;
    justify-content: flex-start;
    width: 100% !important;
    max-width: none !important;
    gap: clamp(4px, .8vw, 10px);
    overflow: visible;
    white-space: nowrap;
    font-size: clamp(3.7rem, 9.8vw, 7.2rem) !important;
    letter-spacing: -.105em;
    line-height: .92;
  }
  .hero-title span,
  .hero-title .apply {
    display: inline-block !important;
    flex: 0 0 auto;
    width: auto !important;
    max-width: none;
    white-space: nowrap;
  }
  .hero-title .apply::after {
    right: -16px;
    width: 16px;
    height: 16px;
  }

  .hero-media-wrap {
    grid-area: hero-media;
    width: 100%;
    max-width: 100%;
    margin-top: 14px !important;
    padding-right: 0 !important;
  }
  .hero-media {
    width: 100%;
    min-height: clamp(360px, 51vw, 560px) !important;
    max-height: none !important;
  }
  .hero-media .media-topline {
    top: 18px;
    right: 22px;
    left: 22px;
    font-size: .58rem;
  }
  .hero-media .feature-stack {
    position: absolute !important;
    top: auto !important;
    right: 14px !important;
    bottom: 14px !important;
    left: 14px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .hero-media .feature-card {
    min-height: clamp(52px, 6vw, 72px) !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
  }
  .hero-media .feature-icon {
    width: clamp(25px, 2.7vw, 34px) !important;
    height: clamp(25px, 2.7vw, 34px) !important;
    flex-basis: clamp(25px, 2.7vw, 34px) !important;
    border-radius: 7px !important;
    font-size: clamp(.56rem, .8vw, .78rem) !important;
  }
  .hero-media .feature-card strong {
    font-size: clamp(.55rem, .9vw, .78rem) !important;
    line-height: 1.1 !important;
  }
  .hero-media .feature-card small {
    margin-top: 2px !important;
    font-size: clamp(.43rem, .62vw, .62rem) !important;
    line-height: 1.1 !important;
  }

  .hero-actions {
    grid-area: hero-actions;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    margin-top: 18px !important;
    gap: 10px;
  }
  .hero-actions .btn { width: 100%; min-width: 0; }
  .trust-row {
    grid-area: hero-trust;
    margin-top: 15px !important;
    gap: 12px;
  }
  .hero-category-bar { margin-top: 24px; }
}

/* Ultra-wide desktop scaling.  Keep the 1920px laptop on the normal
   desktop composition; restore the larger scale only for true 4K CSS
   viewports. */
@media (min-width: 2300px) {
  :root { --nav-h: 96px; }
  body { padding-bottom: 0; }
  .container { width: min(2400px, calc(100% - 160px)); }
  .navbar,
  .nav-inner { min-height: var(--nav-h); height: var(--nav-h); }
  .nav-inner { gap: 42px; }
  .brand-art { max-width: 370px; height: 82px; }
  .brand-art .brand-logo { max-width: 370px; height: 82px; max-height: 82px; }
  .nav-links { gap: clamp(26px, 2.4vw, 52px); }
  .nav-link { font-size: 1.05rem; }
  .nav-actions { gap: 12px; }
  .nav-icon-btn { width: 54px; height: 54px; font-size: 1.08rem; }
  .profile-toggle { min-height: 54px; padding: 4px 13px 4px 5px; }
  .profile-avatar { width: 44px; height: 44px; }

  .hero { padding: 70px 0 40px !important; }
  .hero-inner { gap: clamp(70px, 5vw, 120px); }
  .hero-kicker { margin-bottom: 32px; font-size: .88rem; }
  .hero-title {
    max-width: 760px;
    font-size: clamp(6.8rem, 7.6vw, 11rem);
  }
  .hero-description {
    max-width: 610px;
    margin-top: 34px;
    font-size: clamp(1.05rem, 1.25vw, 1.35rem);
  }
  .hero-actions { gap: 16px; margin-top: 34px; }
  .hero-actions .btn {
    min-height: 64px;
    padding-inline: 28px;
    font-size: 1rem;
  }
  .trust-row { gap: 18px; margin-top: 32px; }
  .avatar { width: 42px; height: 42px; }
  .trust-copy { font-size: .92rem; }
  .stars { font-size: .9rem; }

  .hero-media-wrap { padding-right: clamp(40px, 3.5vw, 80px); }
  .hero-media { min-height: clamp(560px, 37vw, 820px); }
  .hero-media .media-topline { top: 28px; right: 34px; left: 34px; font-size: .75rem; }
  .hero-media .media-caption { bottom: 38px; left: 42px; max-width: 360px; }
  .hero-media .media-caption p { font-size: .75rem; }
  .hero-media .media-caption h3 { font-size: clamp(2.2rem, 2.5vw, 3.2rem); }
  .play-button { width: 94px; height: 94px; font-size: 1.35rem; }
  .feature-stack { right: -28px; width: 260px; gap: 14px; }
  .feature-card { min-height: 82px; gap: 14px; padding: 13px 16px; border-radius: 15px; }
  .feature-icon { width: 42px; height: 42px; flex-basis: 42px; font-size: 1rem; }
  .feature-card strong { font-size: .9rem; }
  .feature-card small { font-size: .72rem; }
  .hero-category-bar { min-height: 82px; margin-top: 42px; }
  .category-item { font-size: .95rem; }
  .category-item i { font-size: 1.05rem; }

  /* Keep the floating feature cards inside the 4K hero frame.  The normal
     desktop design lets them hang outside the media card; on a 4K viewport
     that pushes them past the visible edge at the browser's 50% preview. */
  .hero-media-wrap { padding-right: 0 !important; }
  .hero-media .feature-stack {
    right: 18px !important;
    width: min(260px, calc(100% - 36px)) !important;
    max-width: calc(100% - 36px) !important;
  }
}

/* Large laptop safety net: a browser scrollbar can make a nominal 1920px
   viewport fall just below the 1920px media query. Keep the floating cards
   inside the frame from 1536px upward without changing the 1440px layout. */
@media (min-width: 1536px) {
  .hero-inner,
  .hero-media-wrap,
  .hero-media { min-width: 0 !important; max-width: 100% !important; }
  .hero-media-wrap { padding-right: 0 !important; }
  .hero-media .feature-stack {
    right: 18px !important;
    width: min(260px, calc(100% - 36px)) !important;
    max-width: calc(100% - 36px) !important;
  }
}

/* Tablet hero cards: all four stay in one compact row, matching the phone
   composition instead of reverting to the older 2x2 tablet grid. */
@media (min-width: 768px) and (max-width: 1199px) {
  .hero-media .feature-stack {
    right: 10px !important;
    bottom: 10px !important;
    left: 10px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }
  .hero-media .feature-card {
    min-height: 36px !important;
    gap: 4px !important;
    padding: 4px 5px !important;
    border-radius: 7px !important;
  }
  .hero-media .feature-icon {
    width: 17px !important;
    height: 17px !important;
    flex-basis: 17px !important;
    border-radius: 4px !important;
    font-size: .42rem !important;
  }
  .hero-media .feature-card strong {
    font-size: .4rem !important;
    line-height: 1.05 !important;
  }
  .hero-media .feature-card small {
    margin-top: 1px !important;
    font-size: .3rem !important;
    line-height: 1.05 !important;
  }
}

/* Compact pill navigation for Home and Courses.  Each item keeps its own
   width so the row can be swiped or dragged horizontally at every viewport
   size whenever the categories are wider than the available space. */
.hero-category-bar,
.course-category-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 44px !important;
  padding: 4px 2px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  cursor: grab;
  user-select: none;
  touch-action: pan-x;
}

.hero-category-bar::-webkit-scrollbar,
.course-category-bar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.hero-category-bar.is-pressed,
.hero-category-bar.is-dragging,
.course-category-bar.is-pressed,
.course-category-bar.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.hero-category-bar > .category-item,
.course-category-bar > .course-category-tab {
  position: relative !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  width: max-content !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 16px !important;
  gap: 8px !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  border-radius: 999px !important;
  color: #b3a7aa !important;
  background: rgba(255, 255, 255, .035) !important;
  box-shadow: none !important;
  font-size: .74rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-align: center;
  white-space: nowrap !important;
  scroll-snap-align: start;
  user-select: none;
  transition: color .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease;
}

.hero-category-bar > .category-item::after,
.course-category-bar > .course-category-tab::after {
  display: none !important;
  content: none !important;
}

.hero-category-bar > .category-item i,
.course-category-bar > .course-category-tab i {
  flex: 0 0 auto;
  color: var(--red) !important;
  font-size: .82rem !important;
}

.hero-category-bar > .category-item:hover,
.course-category-bar > .course-category-tab:hover,
.hero-category-bar > .category-item:focus-visible,
.course-category-bar > .course-category-tab:focus-visible {
  color: #fff !important;
  border-color: rgba(255, 31, 45, .72) !important;
  background: rgba(255, 31, 45, .12) !important;
  box-shadow: 0 0 18px rgba(255, 31, 45, .12) !important;
}

.hero-category-bar > .category-item.active,
.course-category-bar > .course-category-tab.active,
.course-category-bar > .course-category-tab[aria-current="page"] {
  color: #fff !important;
  border-color: rgba(255, 31, 45, .92) !important;
  background: linear-gradient(145deg, rgba(151, 7, 18, .9), rgba(67, 0, 7, .72)) !important;
  box-shadow: 0 0 20px rgba(255, 31, 45, .18) !important;
}

.hero-category-bar > .category-item.active i,
.course-category-bar > .course-category-tab.active i,
.course-category-bar > .course-category-tab[aria-current="page"] i {
  color: #fff !important;
  text-shadow: 0 0 10px rgba(255, 31, 45, .82);
}

@media (min-width: 1200px) {
  .hero-category-bar,
  .course-category-bar { gap: 10px !important; }

  .hero-category-bar > .category-item,
  .course-category-bar > .course-category-tab {
    height: 42px !important;
    min-height: 42px !important;
    padding-inline: 18px !important;
    font-size: .78rem !important;
  }
}

/* Course navigation uses the academy green system.  The home hero category
   buttons keep their existing red treatment; only course-page pills change. */
.course-category-bar > .course-category-tab {
  border-color: rgba(0, 244, 119, .48) !important;
  color: #b9ffd0 !important;
  background: rgba(0, 244, 119, .035) !important;
}

.course-category-bar > .course-category-tab i {
  color: #00f477 !important;
}

.course-category-bar > .course-category-tab:hover,
.course-category-bar > .course-category-tab:focus-visible {
  color: #fff !important;
  border-color: rgba(0, 244, 119, .9) !important;
  background: rgba(0, 244, 119, .12) !important;
  box-shadow: 0 0 18px rgba(0, 244, 119, .16) !important;
}

.course-category-bar > .course-category-tab.active,
.course-category-bar > .course-category-tab[aria-current="page"] {
  color: #03150b !important;
  border-color: rgba(0, 244, 119, .98) !important;
  background: linear-gradient(145deg, #00f477, #00a957) !important;
  box-shadow: 0 0 22px rgba(0, 244, 119, .3) !important;
}

.course-category-bar > .course-category-tab.active i,
.course-category-bar > .course-category-tab[aria-current="page"] i {
  color: #03150b !important;
  text-shadow: none;
}

/* Homepage touch layout: keep the desktop composition, but make the long
   card groups usable on phones and tablets without shrinking every card. */
.reviews-section .review-summary {
  display: none !important;
}

@media (max-width: 1023px) {
  /* The certificate lookup form gets the full mobile/tablet width. */
  .certificate-section .certificate-story {
    display: none !important;
  }

  .certificate-section .certificate-grid,
  .contact-section .contact-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* Native horizontal scrolling keeps touch swipes reliable. */
  .reviews-section .review-track,
  .products-section .product-track,
  .work-section .service-grid,
  .social-section .social-cards {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 14px;
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding: 4px 1px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    overscroll-behavior-inline: contain;
  }

  .social-section .social-cards {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    overflow: visible !important;
    padding: 4px 0 12px !important;
    touch-action: auto !important;
  }

  /* Keep horizontal card dragging, but let an upward/downward finger gesture
     continue scrolling the page instead of trapping the pointer in the card. */
  .reviews-section .review-track,
  .products-section .product-track {
    touch-action: pan-x pan-y;
  }

  .reviews-section .review-track::-webkit-scrollbar,
  .products-section .product-track::-webkit-scrollbar,
  .work-section .service-grid::-webkit-scrollbar,
  .social-section .social-cards::-webkit-scrollbar {
    display: none;
  }

  .reviews-section .review-card,
  .products-section .product-card,
  .work-section .service-card,
  .social-section .social-card {
    flex: 0 0 calc(100% - 4px) !important;
    width: calc(100% - 4px) !important;
    min-width: calc(100% - 4px) !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .social-section .social-card {
    display: flex !important;
    min-width: 0 !important;
    min-height: 106px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    padding: 7px 4px !important;
    text-align: center !important;
    border-radius: 12px !important;
  }

  .social-section .social-icon {
    flex: 0 0 29px !important;
    width: 29px !important;
    height: 29px !important;
    border-radius: 8px !important;
    font-size: .72rem !important;
  }

  .social-section .social-card > div {
    display: flex;
    min-width: 0;
    width: 100%;
    flex: 1;
    flex-direction: column;
    align-items: center;
  }

  .social-section .social-card h3 {
    font-size: .62rem !important;
    line-height: 1.1 !important;
  }

  .social-section .social-card p {
    display: none !important;
  }

  .social-section .social-card a {
    margin-top: auto;
    font-size: .48rem !important;
    line-height: 1.1 !important;
    white-space: nowrap;
  }

  /* Keep only the inquiry form on smaller screens; the desktop contact
     details remain unchanged. */
  .contact-section .contact-info {
    display: none !important;
  }

  .contact-section .contact-form-card {
    width: 100%;
  }

  .contact-section .form-footer {
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .contact-section #contactSubmit {
    width: auto !important;
    max-width: max-content !important;
    min-height: 40px !important;
    flex: 0 0 auto !important;
    padding: 9px 16px !important;
    white-space: nowrap;
    font-size: .76rem !important;
  }
}

@media (max-width: 767px) {
  .contact-section #contactSubmit {
    min-height: 38px !important;
    padding: 8px 13px !important;
    font-size: .7rem !important;
  }

  .contact-section .form-footer .micro-label {
    max-width: 45%;
    font-size: .62rem;
  }
}

/* Certificate lookup result actions and the intentional mobile footer
   composition. The desktop footer remains the original four-column layout. */
.certificate-section .certificate-result-status {
  display: grid;
  gap: 4px;
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid rgba(32, 217, 138, .28);
  border-radius: 11px;
  background: rgba(32, 217, 138, .055);
}

.certificate-section .certificate-result-status span {
  color: var(--green);
  font-size: .72rem;
  font-weight: 800;
}

.certificate-section .certificate-result-status span i {
  margin-right: 5px;
}

.certificate-section .certificate-result-status p {
  margin: 0;
  color: var(--muted);
  font-size: .68rem;
}

.certificate-section .certificate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.certificate-section .certificate-actions .btn {
  flex: 1 1 170px;
  min-width: 0;
  min-height: 44px;
  text-decoration: none;
}

.certificate-section .certificate-actions .btn:disabled {
  cursor: not-allowed;
  opacity: .45;
}

@media (max-width: 767px) {
  .certificate-section .certificate-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .certificate-section .certificate-actions .btn {
    width: 100%;
    padding-inline: 8px;
    font-size: .68rem;
  }

  .page-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start;
    gap: 25px 16px !important;
    padding-bottom: 30px !important;
  }

  .page-footer .footer-brand {
    grid-column: 1 / -1 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-footer .footer-brand .brand {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    text-align: center;
  }

  .page-footer .footer-brand .brand-copy {
    max-width: 100%;
    overflow: visible;
    text-align: center;
    white-space: normal;
  }

  .page-footer .footer-brand p {
    max-width: 330px !important;
    margin: 16px auto 20px !important;
    text-align: center;
  }

  .page-footer .footer-socials {
    justify-content: center;
  }

  .page-footer .footer-grid > .footer-col:nth-child(2),
  .page-footer .footer-grid > .footer-col:nth-child(3) {
    grid-column: auto !important;
    min-width: 0;
  }

  .page-footer .footer-grid > .footer-col:nth-child(2) h3,
  .page-footer .footer-grid > .footer-col:nth-child(3) h3 {
    margin-bottom: 11px !important;
  }

  .page-footer .footer-grid > .footer-col:last-child {
    grid-column: 1 / -1 !important;
    text-align: center;
  }

  .page-footer .footer-grid > .footer-col:last-child > p {
    max-width: 330px;
    margin: 0 auto !important;
  }

  .page-footer .newsletter {
    width: min(100%, 320px);
    margin: 18px auto 0;
    text-align: left;
  }

  .page-footer .footer-bottom {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 11px !important;
    text-align: center;
  }

  .page-footer .footer-bottom nav {
    order: -1;
    justify-content: center;
    gap: 7px 14px !important;
  }
}

@media (max-width: 380px) {
  .certificate-section .certificate-actions {
    grid-template-columns: 1fr;
  }
}

/* Final mobile form sizing: keep the action labels visible and prevent the
   generic full-width form rules from turning controls into tall blocks. */
@media (max-width: 1023px) {
  .certificate-section .form-footer,
  .contact-section .form-footer {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between;
    gap: 10px;
  }

  .certificate-section .form-footer .micro-label,
  .contact-section .form-footer .micro-label {
    display: block !important;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 50% !important;
    line-height: 1.35;
  }

  .certificate-section .form-footer .btn-primary {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 9px 15px !important;
    white-space: nowrap;
    font-size: .72rem !important;
  }

  .contact-section .checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 9px;
  }

  .contact-section .checkbox-line input[type="checkbox"] {
    appearance: auto;
    accent-color: var(--section-accent, var(--green));
    flex: 0 0 18px !important;
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

@media (max-width: 767px) {
  .certificate-section .form-footer .micro-label,
  .contact-section .form-footer .micro-label {
    max-width: 52% !important;
    font-size: .6rem;
  }

  .certificate-section .form-footer .btn-primary {
    min-height: 40px !important;
    padding: 8px 12px !important;
    font-size: .68rem !important;
  }
}

/* Final public chrome pass: keep the login control and cart as predictable
   fixed-size controls at every touch width. Older rules hid the cart or let
   the login icon inherit button text metrics, which made the header look
   misaligned on phones. */
.nav-login:not([hidden]) {
  display: inline-flex !important;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  line-height: 1;
  white-space: nowrap;
}
.nav-login i { flex: 0 0 auto; line-height: 1; }
.store-nav-cart {
  flex: 0 0 40px;
  width: 40px !important;
  min-width: 40px;
  padding: 0 !important;
  box-sizing: border-box;
}
.store-nav-cart i { line-height: 1; }
.trust-rating { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.trust-rating > strong { color: var(--gold); font-family: "DM Mono", monospace; font-size: .78rem; }
.trust-rating .stars { display: inline-flex; gap: 2px; }
.hero-media .media-topline { display: none !important; }

@media (max-width: 1023px) {
  .nav-actions > .nav-login:not([hidden]) { display: inline-flex !important; }
  .nav-actions > .store-nav-cart:not([hidden]) { display: grid !important; }
  .nav-login { height: 38px; min-height: 38px; padding-inline: 11px !important; }
}

@media (max-width: 480px) {
  .nav-actions { gap: 4px; }
  .nav-icon-btn,
  .store-nav-cart { width: 35px !important; min-width: 35px; height: 35px; flex-basis: 35px; border-radius: 10px; }
  .nav-login { width: 35px; min-width: 35px; height: 35px; min-height: 35px; padding: 0 !important; border-radius: 10px; }
  .nav-login span { display: none; }
  .nav-login i { margin: 0; font-size: .72rem; }
  .trust-rating > strong { font-size: .68rem; }
}

/* Compact home course cards for phones and tablets. The desktop/laptop card
   keeps its editorial split layout; touch widths get a clean app-like card
   with the format pills and one-line title over the image. */
.course-visual-title { display: none; }

.footer-contact-actions {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.footer-contact-action {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 38, 56, .22);
  border-radius: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, .025);
  text-decoration: none;
  transition: border-color .22s ease, color .22s ease, background .22s ease, transform .22s ease;
}

.footer-contact-action:hover,
.footer-contact-action:focus-visible {
  border-color: rgba(255, 38, 56, .7);
  color: #fff;
  background: rgba(255, 38, 56, .08);
  transform: translateY(-2px);
}

.footer-contact-icon {
  display: grid;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(22, 245, 110, .38);
  border-radius: 8px;
  color: var(--green);
  background: rgba(22, 245, 110, .06);
  font-size: .68rem;
}

.footer-contact-icon.contact {
  border-color: rgba(255, 200, 87, .38);
  color: var(--gold);
  background: rgba(255, 200, 87, .06);
}

.footer-contact-action > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
}

.footer-contact-action strong,
.footer-contact-action small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-contact-action strong {
  color: #f2e5e5;
  font-size: .7rem;
}

.footer-contact-action small {
  margin-top: 3px;
  color: var(--dim);
  font-size: .57rem;
}

.footer-contact-arrow {
  margin-left: auto;
  color: var(--dim);
  font-size: .59rem;
}

@media (max-width: 1023px) {
  .courses-section .section-head > p,
  .courses-section .course-sequence-label,
  .course-visual .visual-label,
  .course-visual .course-number {
    display: none !important;
  }

  .courses-section .section-head {
    margin-bottom: 24px !important;
  }

  .course-main {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
  }

  .course-visual {
    order: 0 !important;
    height: clamp(220px, 52vw, 360px) !important;
    min-height: clamp(220px, 52vw, 360px) !important;
  }

  .course-content {
    order: 1 !important;
    padding: 16px 18px 18px !important;
  }

  .course-content > .course-title {
    display: none !important;
  }

  .course-visual-badges {
    top: 12px !important;
    right: auto !important;
    bottom: auto !important;
    left: 12px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 4px !important;
    width: max-content;
    max-width: calc(100% - 24px);
    overflow: hidden;
  }

  .course-visual-badges .tag {
    min-height: 20px !important;
    padding: 3px 6px !important;
    font-size: .48rem !important;
  }

  .course-visual-badges .tag i {
    margin-right: 3px;
    font-size: .42rem;
  }

  .course-visual-title {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 4;
    display: block !important;
    margin: 0;
    overflow: hidden;
    color: var(--green);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.35rem, 5.5vw, 2rem);
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: 1;
    text-shadow: 0 0 10px rgba(22,245,110,.35), 0 2px 10px rgba(0,0,0,.95);
  }

  .course-visual::after {
    z-index: 3 !important;
    background: linear-gradient(0deg, rgba(10,0,2,.92), transparent 72%) !important;
  }

  .course-cta {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    margin: 12px 18px 16px !important;
  }

  .course-features { display: none !important; }

  .course-content .course-subtitle {
    font-size: .72rem !important;
    line-height: 1.35 !important;
  }
}

/* Social showcase: one compact card, with each admin-managed platform logo
   acting as the link. The three platforms stay in one row on every viewport. */
.social-section .social-cards {
  display: block !important;
  overflow: visible !important;
  padding: 0 !important;
  touch-action: auto !important;
}

.social-section .social-platform-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  min-height: 150px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 19px;
  background: linear-gradient(135deg, rgba(25,4,4,.9), rgba(8,2,2,.94));
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
}

.social-section .social-platform-link {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 4px;
  border: 0;
  border-radius: 12px;
  color: #f7eded;
  text-decoration: none;
  transition: background .22s ease, transform .22s ease, color .22s ease;
}

.social-section .social-platform-link:hover,
.social-section .social-platform-link:focus-visible {
  outline: none;
  color: #fff;
  background: rgba(255,255,255,.06);
  transform: translateY(-3px);
}

.social-section .social-platform-link .social-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.social-section .social-platform-link strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: .78rem;
  letter-spacing: -.02em;
}

@media (max-width: 1023px) {
  .social-section .social-platform-card {
    min-height: 122px;
    padding: 9px;
    border-radius: 15px;
  }

  .social-section .social-platform-link {
    flex-direction: column;
    gap: 5px;
    padding: 7px 2px;
    text-align: center;
  }

  .social-section .social-platform-link .social-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: .82rem;
  }

  .social-section .social-platform-link strong {
    font-size: .59rem;
    line-height: 1.1;
  }
}

/* Desktop/laptop social showcase: keep the mobile one-card composition,
   while giving each admin-managed platform its own website card on wide
   screens. */
@media (min-width: 1024px) {
  .social-section .social-platform-card {
    grid-template-columns: 1fr;
    min-height: 150px;
    gap: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .social-section .social-platform-link {
    width: 100%;
    min-height: 108px;
    justify-content: flex-start;
    padding: 20px 24px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(25,4,4,.9), rgba(8,2,2,.94));
    box-shadow: 0 14px 34px rgba(0,0,0,.24);
  }

  .social-section .social-platform-link:hover,
  .social-section .social-platform-link:focus-visible {
    border-color: rgba(255,255,255,.24);
    background: linear-gradient(135deg, rgba(44,7,7,.96), rgba(10,2,2,.98));
    box-shadow: 0 18px 40px rgba(0,0,0,.3);
  }

  .social-section .social-platform-link strong { font-size: .86rem; }
}

/* Final social showcase behavior: the admin-managed media fills the card and
   the only overlay control is the centered play button. */
.featured-video .social-feature-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  opacity: .82;
  transition: transform .7s var(--ease), opacity .25s ease;
}

.featured-video:hover .social-feature-media {
  transform: scale(1.03);
  opacity: .95;
}

.featured-video .social-play {
  top: 50%;
  right: auto;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  box-shadow: var(--glow-strong);
}

.featured-video .social-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.featured-video .featured-copy { display: none; }
.featured-video.is-playing .social-play { opacity: 0; pointer-events: none; }
.featured-video.is-playing .social-feature-media { transform: none; opacity: 1; }
.featured-video::after { pointer-events: none; }
.featured-video .social-play {
  z-index: 4 !important;
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto;
}
.featured-video.is-playing .social-play {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none;
}

@media (max-width: 1023px) {
  .featured-video .social-feature-media { min-height: 400px; }
  .products-section .product-track,
  .reviews-section .review-track,
  .work-section .service-grid {
    /* Touch devices use the browser's native two-axis gesture handling.
       home.js only adds mouse dragging for desktop pointers. */
    touch-action: pan-x pan-y !important;
  }
}

@media (max-width: 767px) {
  .featured-video .social-feature-media { min-height: 310px; }
  .featured-video .social-play { width: 56px; height: 56px; }
}

/* Homepage course discovery is category-first.  The cards use the image
   maintained on CourseCategory in admin; individual course cards belong on
   the full catalogue/category destination pages. */
.home-category-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.home-category-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(255, 31, 45, .56);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(76, 0, 10, .54), rgba(10, 5, 7, .96)),
    radial-gradient(circle at 85% 20%, rgba(0, 244, 119, .11), transparent 44%);
  box-shadow: 0 0 28px rgba(255, 31, 45, .08);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.home-category-card:hover,
.home-category-card:focus-visible {
  border-color: rgba(0, 244, 119, .78);
  box-shadow: 0 0 30px rgba(0, 244, 119, .16), 0 0 34px rgba(255, 31, 45, .12);
  transform: translateY(-4px);
}

.home-category-card[hidden] { display: none !important; }

.home-category-card-media {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(105, 5, 17, .85), rgba(5, 13, 12, .96));
}

.home-category-card-media::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 38%, rgba(5, 3, 4, .8));
}

.home-category-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  transition: transform .45s ease;
}

.home-category-card:hover .home-category-card-media img,
.home-category-card:focus-visible .home-category-card-media img { transform: scale(1.045); }

.home-category-card-placeholder {
  display: grid;
  min-height: 190px;
  place-items: center;
  color: var(--green, #00f477);
  font-size: 3.2rem;
}

.home-category-card-media-title {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 13px;
  left: 14px;
  margin: 0;
  padding: 10px 13px;
  border-left: 3px solid #00f477;
  color: #8dffbd;
  background: linear-gradient(90deg, rgba(0, 32, 16, .92), rgba(0, 18, 9, .62), transparent);
  box-shadow: 0 0 22px rgba(0, 244, 119, .12);
  font: 800 clamp(1rem, 2.2vw, 1.42rem)/1.12 "Space Grotesk", sans-serif;
  letter-spacing: -.02em;
  text-shadow: 0 0 12px rgba(0, 244, 119, .34);
}

/* The category title now lives on the artwork. Keep legacy numbered/kicker
   markup harmless for a cached fragment or an older rendered partial. */
.home-category-card-number,
.home-category-card-kicker,
.home-category-card-copy h3 { display: none !important; }

.home-category-card-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.home-category-card-copy p {
  margin: 0;
  color: rgba(255, 255, 255, .66);
  font-size: .94rem;
  line-height: 1.55;
}

.home-category-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  color: #73ffae;
  font-weight: 700;
}

@media (max-width: 1023px) {
  .home-category-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 620px) {
  .home-category-card-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
  .home-category-card-media,
  .home-category-card-media img,
  .home-category-card-placeholder { min-height: 170px; }
  .home-category-card-copy { padding: 18px; }
}

/* Learning videos open as a clean, landscape-shaped player on compact
   screens. The player can still use the browser's fullscreen/rotation
   control when the device supports orientation locking. */
.modal.learning-video-modal {
  overflow: hidden;
}

.modal.learning-video-modal .learning-video-modal-content {
  padding: 12px;
}

.modal.learning-video-modal .video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 10px;
}

@media (max-width: 1023px) {
  .modal.learning-video-modal,
  .modal.large.learning-video-modal {
    width: min(calc(100vw - 16px), 960px);
    height: auto;
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 12px;
  }

  .modal.learning-video-modal > #modalContent {
    min-height: 0;
    padding: 8px;
    overflow: hidden;
  }

  .modal.learning-video-modal .learning-video-modal-content {
    padding: 8px;
  }

  .modal.learning-video-modal .video-frame {
    border-radius: 8px;
  }
}

/* Compact learning player controls. These styles are intentionally scoped to
   the learning modal, so regular desktop video modals keep their existing
   iframe and controls unchanged. */
.learning-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 38, 56, .55);
  border-radius: 10px;
  background: #000;
  box-shadow: 0 0 30px rgba(255, 38, 56, .22);
  isolation: isolate;
  touch-action: manipulation;
  user-select: none;
}

.learning-player-media {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}

.learning-youtube-player .learning-player-media { pointer-events: none; }

.learning-player-zone {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 36%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.learning-player-zone-left { left: 0; }
.learning-player-zone-right { right: 0; }

.learning-player-center {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 50%;
  color: #fff;
  background: rgba(10, 2, 4, .72);
  box-shadow: 0 0 24px rgba(255, 38, 56, .64), inset 0 0 0 5px rgba(255, 38, 56, .18);
  cursor: pointer;
  font-size: 1.25rem;
  transform: translate(-50%, -50%);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  touch-action: manipulation;
}

.learning-player-center:hover,
.learning-player-center:focus-visible {
  background: rgba(255, 38, 56, .84);
  box-shadow: 0 0 30px rgba(255, 38, 56, .82), inset 0 0 0 5px rgba(255, 255, 255, .16);
  transform: translate(-50%, -50%) scale(1.06);
}

.learning-player-controls {
  position: absolute;
  z-index: 5;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.learning-player-controls button {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 9px;
  color: #fff;
  background: rgba(4, 1, 3, .72);
  cursor: pointer;
  font-size: .83rem;
  touch-action: manipulation;
}

.learning-player-controls button:hover,
.learning-player-controls button:focus-visible {
  border-color: rgba(0, 244, 119, .9);
  color: #baffd3;
  background: rgba(0, 55, 27, .86);
  outline: 0;
}

.learning-player-skip-hint {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 50%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 1, 3, .82);
  font: 700 .78rem/1 "DM Mono", monospace;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.94);
  transition: opacity .16s ease, transform .16s ease;
}

.learning-player-skip-hint.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.learning-player:fullscreen,
.learning-player:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.learning-player:fullscreen .learning-player-media,
.learning-player:-webkit-full-screen .learning-player-media {
  object-fit: contain;
}

@media (max-width: 1023px) {
  .modal.learning-video-modal .learning-player {
    min-height: 0;
    border-radius: 8px;
  }

  .learning-player-center {
    width: 58px;
    height: 58px;
    font-size: 1.05rem;
  }

  .learning-player-controls { top: 8px; right: 8px; gap: 5px; }
  .learning-player-controls button { width: 32px; height: 32px; font-size: .76rem; }
}

/* Homepage course actions: the desktop card keeps a compact CTA, while
   tablet and phone cards give the action the full available touch width. */
.home-category-card-explore-button {
  display: inline-flex;
  align-self: flex-start;
  width: max-content;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 0 16px;
  border: 1px solid rgba(0, 244, 119, .62);
  border-radius: 10px;
  color: #9cffbf;
  background: rgba(0, 244, 119, .06);
  box-shadow: 0 0 16px rgba(0, 244, 119, .1);
  font-size: .78rem;
  font-weight: 800;
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.home-category-card-explore-button i {
  color: #00f477;
  transition: transform .2s ease;
}

.home-category-card:hover .home-category-card-explore-button,
.home-category-card:focus-visible .home-category-card-explore-button {
  color: #03170d;
  border-color: #75f7be;
  background: linear-gradient(135deg, #55f0ad, #0b985c 72%);
  box-shadow: 0 0 20px rgba(0, 244, 119, .26);
  transform: translateY(-1px);
}

.home-category-card:hover .home-category-card-explore-button i,
.home-category-card:focus-visible .home-category-card-explore-button i {
  color: currentColor;
  transform: translateX(2px);
}

/* Keep the category name readable without the green strip/glow behind it. */
.home-category-card-media-title {
  padding: 0;
  border-left: 0;
  color: #73ffae;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
}

@media (max-width: 1023px) {
  .ad-container {
    display: none !important;
  }

  .home-category-card-explore-button {
    align-self: stretch;
    width: 100%;
    min-height: 46px;
  }
}
