/* ================================================================
   LOGIN.CSS  v4.0
   Safari/iOS Audit — all known issues resolved:

   BUG 1 — FIXED: body overflow:hidden on mobile blocked keyboard
           scroll. Now uses overflow-y:auto + position:fixed container.

   BUG 2 — FIXED: 100vh on Safari is the FULL browser chrome height,
           not the visible area. Sheet was hiding behind address bar.
           Fix: use 100dvh with 100vh fallback, and fill-available.

   BUG 3 — FIXED: position:fixed children inside a container that
           had backdrop-filter broke in Safari (compositing bug).
           Fix: bg-animate/dock are siblings of container, not inside.

   BUG 4 — FIXED: -webkit-overflow-scrolling:touch deprecated in iOS 13+
           but still required for older devices. Kept, safe to include.

   BUG 5 — FIXED: inset shorthand not supported in Safari < 14.
           Replaced with top/right/bottom/left:0 everywhere.

   BUG 6 — FIXED: overflow:hidden on .form-side clips the Google button
           and trial link on short phones. Changed to overflow:visible
           + sheet is scrollable via overflow-y:auto.

   BUG 7 — FIXED: Smart alert used bottom:40px then bottom:calc() on
           same rule. Second value silently won in some Safari versions.
           Fixed to single declaration.

   ADDITIONAL — font-size:16px on all inputs (iOS zoom prevention),
   -webkit-fill-available for height, safe-area-inset-* on all edges,
   @supports for backdrop-filter progressive enhancement.
   ================================================================ */

/* ── CSS Variables ─────────────────────────────────────── */
:root {
    --gold:        #c59d5f;
    --gold-dim:    rgba(197,157,95,0.35);
    --gold-glow:   rgba(197,157,95,0.14);
    --bg:          #08080a;
    --bg-mid:      #111114;
    --glass:       rgba(255,255,255,0.04);
    --border:      rgba(255,255,255,0.09);
    --sheet-bg:    rgba(13,13,16,0.98);
    --cb:          cubic-bezier(0.19,1,0.22,1);
}

/* ── Box-sizing reset ──────────────────────────────────── */
*,
*::before,
*::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    /* hide scrollbars but keep scroll */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
::-webkit-scrollbar { display: none; }

/* ── HTML root ─────────────────────────────────────────── */
html {
    height: 100%;
    /* Prevent iOS font inflation on rotate */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Prevent elastic overscroll on the root */
    overscroll-behavior: none;
    -webkit-overscroll-behavior: none;
}

/* ── Body — desktop centred flex ──────────────────────── */
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background: var(--bg);
    font-family: 'Sora', sans-serif;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
    /* Flex centre on desktop */
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    /* Safe area padding for desktop too */
    padding-top:    env(safe-area-inset-top);
    padding-right:  env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left:   env(safe-area-inset-left);
}

/* ── Global typography ─────────────────────────────────── */
input, button, a, textarea {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Animated background ───────────────────────────────── */
.bg-animate {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;    /* BUG 5 fix: no inset shorthand */
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 55% 35%, #1c1409 0%, var(--bg) 68%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    -webkit-filter: blur(90px);
    filter: blur(90px);
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: floatOrb 18s ease-in-out infinite alternate;
    animation: floatOrb 18s ease-in-out infinite alternate;
}
.orb-1 {
    width: 500px; height: 500px;
    top: -180px; right: -180px;
    background: rgba(197,157,95,0.20);
}
.orb-2 {
    width: 380px; height: 380px;
    bottom: -130px; left: -130px;
    background: rgba(197,157,95,0.09);
    -webkit-animation-delay: -7s;
    animation-delay: -7s;
}

@-webkit-keyframes floatOrb {
    0%   { -webkit-transform: translate(0,0) scale(1);         transform: translate(0,0) scale(1); }
    100% { -webkit-transform: translate(-50px,35px) scale(1.1); transform: translate(-50px,35px) scale(1.1); }
}
@keyframes floatOrb {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(-50px,35px) scale(1.1); }
}

/* ── Grid plane ─────────────────────────────────────────── */
.grid-wrap {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;    /* BUG 5 fix */
    overflow: hidden;
    z-index: 0;
    /* Safari requires explicit perspective on the parent */
    -webkit-perspective: 800px;
    perspective: 800px;
}
.grid-plane {
    position: absolute;
    width: 260%; height: 260%;
    top: -80%; left: -80%;
    background-image:
        -webkit-linear-gradient(rgba(197,157,95,0.055) 1px, transparent 1px),
        -webkit-linear-gradient(0deg, rgba(197,157,95,0.055) 1px, transparent 1px);
    background-image:
        linear-gradient(rgba(197,157,95,0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197,157,95,0.055) 1px, transparent 1px);
    background-size: 55px 55px;
    -webkit-transform: rotateX(55deg);
    transform: rotateX(55deg);
    -webkit-animation: gridScroll 28s linear infinite;
    animation: gridScroll 28s linear infinite;
}
@-webkit-keyframes gridScroll { to { background-position: 0 55px; } }
@keyframes gridScroll          { to { background-position: 0 55px; } }

/* ── Entrance overlays ─────────────────────────────────── */
#shutdownOverlay,
#lens-entrance {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;    /* BUG 5 fix */
    background: #000;
    pointer-events: none;
    -webkit-animation: fadeOut 1s var(--cb) forwards;
    animation: fadeOut 1s var(--cb) forwards;
}
#shutdownOverlay { z-index: 100000; -webkit-animation-delay: 0s; animation-delay: 0s; }
#lens-entrance   { z-index: 99999;  -webkit-animation-delay: 0.2s; animation-delay: 0.2s; }

@-webkit-keyframes fadeOut {
    0%   { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}
@keyframes fadeOut {
    0%   { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

/* ── Nav dock ──────────────────────────────────────────── */
.nav-dock-wrapper {
    position: fixed;
    top: 28px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    z-index: 9999;
    opacity: 0;
    margin-top: -40px;
    -webkit-transition: opacity 1s var(--cb), margin-top 1s var(--cb);
    transition: opacity 1s var(--cb), margin-top 1s var(--cb);
}
.nav-dock-wrapper.active {
    opacity: 1;
    margin-top: 0;
}

.glass-dock {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    gap: 6px;
    padding: 7px;
    background: rgba(8,8,10,0.72);
    /* Progressive enhancement for backdrop-filter */
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    backdrop-filter: blur(30px) saturate(160%);
    border: 1px solid var(--border);
    border-radius: 100px;
    -webkit-box-shadow: 0 12px 28px rgba(0,0,0,0.5);
    box-shadow: 0 12px 28px rgba(0,0,0,0.5);
}

.dock-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 50px;
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    opacity: 0;
    -webkit-transform: scale(0.85);
    transform: scale(0.85);
    -webkit-transition: all 0.35s var(--cb);
    transition: all 0.35s var(--cb);
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}
.nav-dock-wrapper.active .dock-item { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
.dock-item:nth-child(1) { -webkit-transition-delay: 0.05s; transition-delay: 0.05s; }
.dock-item:nth-child(2) { -webkit-transition-delay: 0.10s; transition-delay: 0.10s; }
.dock-item:nth-child(3) { -webkit-transition-delay: 0.15s; transition-delay: 0.15s; }
.dock-item:nth-child(4) { -webkit-transition-delay: 0.20s; transition-delay: 0.20s; }
.dock-item svg { width: 13px; height: 13px; fill: var(--gold); -webkit-flex-shrink: 0; flex-shrink: 0; }
.dock-item:hover,
.dock-item:active {
    background: var(--gold-glow);
    border-color: var(--gold-dim);
    -webkit-transform: translateY(-2px) !important;
    transform: translateY(-2px) !important;
}

/* ── Desktop login card ────────────────────────────────── */
.login-container {
    position: relative;
    z-index: 10;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    width: 0;
    height: 2px;
    max-width: 900px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);
    border: 1px solid var(--border);
    border-radius: 36px;
    overflow: hidden;
    -webkit-box-shadow: 0 40px 80px rgba(0,0,0,0.7);
    box-shadow: 0 40px 80px rgba(0,0,0,0.7);
    opacity: 0;
    -webkit-animation: cardW 0.8s var(--cb) forwards 0.4s, cardH 0.7s var(--cb) forwards 1.2s;
    animation: cardW 0.8s var(--cb) forwards 0.4s, cardH 0.7s var(--cb) forwards 1.2s;
    -webkit-transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@-webkit-keyframes cardW { 0%{width:0;opacity:0} 100%{width:92%;opacity:1} }
@keyframes cardW          { 0%{width:0;opacity:0} 100%{width:92%;opacity:1} }
@-webkit-keyframes cardH  { 0%{height:2px} 100%{height:540px} }
@keyframes cardH           { 0%{height:2px} 100%{height:540px} }

.login-container:hover {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
    -webkit-box-shadow: 0 55px 100px rgba(0,0,0,0.85);
    box-shadow: 0 55px 100px rgba(0,0,0,0.85);
}

/* ── Card sides ─────────────────────────────────────────── */
.visual-side,
.form-side {
    opacity: 0;
    -webkit-animation: contentIn 0.8s ease forwards 2s;
    animation: contentIn 0.8s ease forwards 2s;
}
@-webkit-keyframes contentIn {
    from { opacity:0; -webkit-transform:translateY(14px); transform:translateY(14px); }
    to   { opacity:1; -webkit-transform:translateY(0);    transform:translateY(0); }
}
@keyframes contentIn {
    from { opacity:0; transform:translateY(14px); }
    to   { opacity:1; transform:translateY(0); }
}

.visual-side {
    -webkit-box-flex: 1.2;
    -webkit-flex: 1.2;
    flex: 1.2;
    padding: 56px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    border-right: 1px solid var(--border);
}
.logo-img {
    height: 95px;
    width: auto;
    margin-bottom: 22px;
    -webkit-align-self: flex-start;
    align-self: flex-start;
    -webkit-filter: drop-shadow(0 0 18px var(--gold-dim));
    filter: drop-shadow(0 0 18px var(--gold-dim));
}
.visual-side h1 {
    font-size: 2.7rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -1px;
    line-height: 1.1;
    background: -webkit-linear-gradient(135deg, #fff 0%, var(--gold) 50%, #fff 100%);
    background: linear-gradient(135deg, #fff 0%, var(--gold) 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    -webkit-animation: shine 6s linear infinite;
    animation: shine 6s linear infinite;
}
@-webkit-keyframes shine { to { background-position: 200% center; } }
@keyframes shine          { to { background-position: 200% center; } }

.form-side {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    padding: 56px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
}

/* ── Inputs ─────────────────────────────────────────────── */
.input-group { position: relative; margin-bottom: 18px; }

.input-box {
    width: 100%;
    /* 16px minimum — CRITICAL: prevents Safari auto-zoom on focus */
    font-size: 16px;
    padding: 16px 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    outline: none;
    /* Remove iOS default chrome */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-transition: border-color 0.25s, background 0.25s;
    transition: border-color 0.25s, background 0.25s;
}
.input-box:focus {
    border-color: var(--gold);
    background: rgba(197,157,95,0.07);
    outline: none;
    /* Prevent blue glow on Safari */
    -webkit-box-shadow: none;
    box-shadow: none;
}
/* All vendor placeholder pseudo-elements needed for Safari */
.input-box::-webkit-input-placeholder { color: rgba(255,255,255,0.28); }
.input-box::-moz-placeholder           { color: rgba(255,255,255,0.28); opacity: 1; }
.input-box:-ms-input-placeholder       { color: rgba(255,255,255,0.28); }
.input-box::placeholder                { color: rgba(255,255,255,0.28); }

/* Autofill override — Safari fills with yellow by default */
.input-box:-webkit-autofill,
.input-box:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(13,13,16,0.98) inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    border-color: var(--gold) !important;
}

/* ── Safari: remove inner shadow & make input background transparent ── */
/* Without this, Safari draws its own white/grey fill on text inputs      */
.input-box {
    /* Clip background to padding-box so Safari's UA stylesheet can't bleed in */
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
}
/* Safari search input: remove the built-in magnifier and cancel button */
input[type="search"].input-box {
    -webkit-appearance: none;
    -webkit-border-radius: 14px;
}
input[type="search"].input-box::-webkit-search-decoration,
input[type="search"].input-box::-webkit-search-cancel-button,
input[type="search"].input-box::-webkit-search-results-button,
input[type="search"].input-box::-webkit-search-results-decoration {
    -webkit-appearance: none;
    display: none;
}

/* ── Login button ──────────────────────────────────────── */
.login-btn {
    width: 100%;
    padding: 16px;
    background: var(--gold) !important;
    border: none;
    border-radius: 14px !important;
    color: #000 !important;
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 800 !important;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -webkit-box-shadow: 0 4px 20px rgba(197,157,95,0.25);
    box-shadow: 0 4px 20px rgba(197,157,95,0.25);
    -webkit-transition: all 0.35s var(--cb);
    transition: all 0.35s var(--cb);
    /* Active state for iOS — :hover doesn't fire on touch */
    -webkit-touch-callout: none;
}
.login-btn:hover,
.login-btn:active {
    background: #fff !important;
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 10px 30px rgba(197,157,95,0.4);
    box-shadow: 0 10px 30px rgba(197,157,95,0.4);
    letter-spacing: 3px;
}

/* ── HUD Toast alert ───────────────────────────────────── */
.smart-alert {
    position: fixed;
    left: 50%;
    /* BUG 7 fix: single bottom declaration using calc with safe area */
    bottom: calc(40px + env(safe-area-inset-bottom));
    -webkit-transform: translateX(-50%) translateY(120px);
    transform: translateX(-50%) translateY(120px);
    background: rgba(8,8,10,0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--gold);
    border-radius: 14px;
    padding: 14px 22px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    opacity: 0;
    -webkit-box-shadow: 0 16px 40px rgba(0,0,0,0.6);
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
    -webkit-transition: all 0.5s var(--cb);
    transition: all 0.5s var(--cb);
    /* Prevent overflow on narrow screens */
    max-width: calc(100vw - 32px);
    white-space: nowrap;
}
.smart-alert.active {
    -webkit-transform: translateX(-50%) translateY(0);
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
#alert-message {
    font-family: 'Orbitron', sans-serif;
    font-size: 9.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.alert-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 2px;
    background: var(--gold);
    width: 0;
    border-radius: 0 0 14px 14px;
}
.smart-alert.active .alert-progress {
    -webkit-animation: alertBar 3s linear forwards;
    animation: alertBar 3s linear forwards;
}
@-webkit-keyframes alertBar { from{width:100%} to{width:0} }
@keyframes alertBar          { from{width:100%} to{width:0} }

/* ── Trial trigger ─────────────────────────────────────── */
.trial-trigger {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}
.trial-link {
    color: var(--gold);
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    letter-spacing: 2px;
    text-decoration: none;
    opacity: 0.45;
    cursor: pointer;
    -webkit-transition: opacity 0.3s;
    transition: opacity 0.3s;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    /* Minimum tap target */
    display: inline-block;
    padding: 8px 4px;
}
.trial-link:hover,
.trial-link:active { opacity: 1; }

/* ── Utility ────────────────────────────────────────────── */
.force-show {
    opacity: 1 !important;
    -webkit-transform: none !important;
    transform: none !important;
    visibility: visible !important;
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: flex !important;
}
.product-sidebar-left,
.top-nav-cluster { display: none; }

/* ── Tablet 769–1024px ─────────────────────────────────── */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .login-container { max-width: 780px; }
    .visual-side,
    .form-side { padding: 44px; }
    .visual-side h1 { font-size: 2.2rem; }
}

/* ================================================================
   MOBILE — ≤ 768px
   Architecture: full-screen layout, no card
   • Hero brand area in top ~40%
   • Bottom sheet slides up with spring animation
   • All inputs font-size:16px (iOS zoom prevention)
   • position:fixed on container prevents background scroll
   ================================================================ */
@media only screen and (max-width: 768px) {

    /* ── BUG 1 + BUG 2 fix: body stays overflow:hidden ── */
    /* Container is position:fixed so body never needs to scroll */
    body {
        overflow: hidden !important;
        /* BUG 2: -webkit-fill-available is the true viewport on Safari */
        min-height: -webkit-fill-available;
        display: block;
        padding: 0;
    }
    html {
        /* Needed for -webkit-fill-available to work on iOS */
        height: -webkit-fill-available;
    }

    /* ── Kill the card, go full-screen ── */
    .login-container {
        -webkit-animation: none !important;
        animation: none !important;
        /* BUG 2 fix: use dvh with fill-available fallback */
        height: 100vh !important;
        height: 100dvh !important;
        height: -webkit-fill-available !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: -webkit-fill-available;
        opacity: 1 !important;
        /* No card chrome */
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
        overflow: visible !important;
        /* Stack hero + sheet vertically, sheet at bottom */
        -webkit-box-orient: vertical;
        -webkit-flex-direction: column;
        flex-direction: column !important;
        -webkit-box-pack: end;
        -webkit-justify-content: flex-end;
        justify-content: flex-end !important;
        /* Fixed so background grid/orbs show behind */
        position: fixed !important;
        top: 0; right: 0; bottom: 0; left: 0;  /* BUG 5 fix */
        z-index: 10;
        -webkit-transform: none !important;
        transform: none !important;
    }
    .login-container:hover {
        -webkit-transform: none !important;
        transform: none !important;
    }

    /* ── Dock: full-width slim bar at top of screen ── */
    .nav-dock-wrapper {
        top: 0;
        width: 100%;
        /* keep translateX for centering */
        padding-top: max(12px, env(safe-area-inset-top));
    }
    .glass-dock {
        width: calc(100% - 28px);
        margin: 0 auto;
        border-radius: 16px;
        gap: 0;
        padding: 5px;
        -webkit-justify-content: space-around;
        justify-content: space-around;
    }
    .dock-item {
        -webkit-box-flex: 1;
        -webkit-flex: 1;
        flex: 1;
        -webkit-box-orient: vertical;
        -webkit-flex-direction: column;
        flex-direction: column;
        gap: 3px;
        padding: 7px 4px;
        font-size: 5.5px;
        letter-spacing: 0.6px;
        border: none;
        background: transparent;
        border-radius: 12px;
        -webkit-box-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        align-items: center;
    }
    .dock-item svg { width: 16px; height: 16px; }
    .dock-item:hover,
    .dock-item:active {
        background: var(--gold-glow);
        -webkit-transform: none !important;
        transform: none !important;
    }

    /* ── Hero zone: brand fills upper screen ── */
    .visual-side {
        -webkit-animation: heroIn 0.8s var(--cb) forwards 0.1s !important;
        animation: heroIn 0.8s var(--cb) forwards 0.1s !important;
        opacity: 0;
        -webkit-box-flex: 0;
        -webkit-flex: none;
        flex: none !important;
        /* No card chrome */
        border: none !important;
        background: transparent !important;
        /* Spacing — push below dock, add right padding */
        padding: 0 !important;
        padding-top: max(88px, calc(env(safe-area-inset-top) + 70px)) !important;
        padding-left: 26px !important;
        padding-right: 26px !important;
        padding-bottom: 28px !important;
        /* iOS-app left-aligned style */
        -webkit-box-align: flex-start;
        -webkit-align-items: flex-start;
        align-items: flex-start !important;
        text-align: left !important;
    }
    @-webkit-keyframes heroIn {
        from { opacity:0; -webkit-transform:translateY(-16px); transform:translateY(-16px); }
        to   { opacity:1; -webkit-transform:translateY(0);     transform:translateY(0); }
    }
    @keyframes heroIn {
        from { opacity:0; transform:translateY(-16px); }
        to   { opacity:1; transform:translateY(0); }
    }

    .logo-img {
        height: 56px !important;
        margin-bottom: 12px !important;
        -webkit-align-self: flex-start;
        align-self: flex-start;
    }
    .visual-side h1 {
        font-size: 2.3rem !important;
        letter-spacing: -1.5px !important;
        margin-bottom: 6px !important;
        line-height: 1.05 !important;
    }
    .visual-side > p {
        font-size: 11px !important;
        opacity: 0.36 !important;
        letter-spacing: 0.2px !important;
        margin: 0 !important;
    }
    /* Hide decorative gold line on mobile */
    .visual-side > div[style*="height: 2px"] { display: none !important; }

    /* ── Bottom sheet: frosted glass panel ── */
    .form-side {
        -webkit-animation: sheetIn 0.9s var(--cb) forwards 0.25s !important;
        animation: sheetIn 0.9s var(--cb) forwards 0.25s !important;
        opacity: 0;
        -webkit-transform: translateY(110px);
        transform: translateY(110px);
        -webkit-box-flex: 0;
        -webkit-flex: none;
        flex: none !important;
        /* Sheet chrome */
        background: var(--sheet-bg) !important;
        -webkit-backdrop-filter: blur(50px) saturate(180%);
        backdrop-filter: blur(50px) saturate(180%);
        border-top: 1px solid rgba(255,255,255,0.1) !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        border-radius: 26px 26px 0 0 !important;
        -webkit-box-shadow: 0 -20px 50px rgba(0,0,0,0.65);
        box-shadow: 0 -20px 50px rgba(0,0,0,0.65);
        /* Padding — bottom respects home indicator */
        padding: 0 24px !important;
        padding-bottom: max(28px, calc(env(safe-area-inset-bottom) + 18px)) !important;
        /* BUG 6 fix: scrollable, not clipped */
        overflow: visible !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        /* Limit sheet height so hero is always visible */
        max-height: 80vh;
        max-height: 80dvh;
        -webkit-box-pack: start;
        justify-content: flex-start !important;
    }
    @-webkit-keyframes sheetIn {
        from { opacity:0; -webkit-transform:translateY(110px); transform:translateY(110px); }
        to   { opacity:1; -webkit-transform:translateY(0);     transform:translateY(0); }
    }
    @keyframes sheetIn {
        from { opacity:0; transform:translateY(110px); }
        to   { opacity:1; transform:translateY(0); }
    }

    /* Pull pill at top of sheet */
    .form-side::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        border-radius: 2px;
        background: rgba(255,255,255,0.14);
        margin: 14px auto 20px;
        -webkit-flex-shrink: 0;
        flex-shrink: 0;
    }

    /* Sheet typography & spacing */
    .form-side h2 {
        font-size: 10px !important;
        letter-spacing: 2.5px !important;
        margin-bottom: 14px !important;
        text-align: left !important;
        opacity: 0.6 !important;
    }
    .input-group { margin-bottom: 12px; }
    .input-box {
        padding: 14px 15px !important;
        font-size: 16px !important;  /* must stay 16px */
        border-radius: 12px !important;
        background: rgba(255,255,255,0.07) !important;
    }
    .login-btn {
        padding: 15px !important;
        font-size: 10px !important;
        border-radius: 12px !important;
        margin-top: 6px !important;
    }
    .trial-trigger { margin-top: 12px; padding-top: 12px; }
    .trial-link { font-size: 7.5px; letter-spacing: 1.6px; }

    /* Alert: above home indicator */
    .smart-alert {
        width: calc(100% - 28px);
        max-width: none;
        border-radius: 16px;
        padding: 11px 14px;
        bottom: calc(20px + env(safe-area-inset-bottom));
    }
    #alert-message { font-size: 8px; }
}

/* ── iPhone Pro 390–393px (3x) ─────────────────────────── */
@media only screen
    and (min-width: 375px)
    and (max-width: 393px)
    and (-webkit-min-device-pixel-ratio: 3) {

    .visual-side {
        padding-top: max(94px, calc(env(safe-area-inset-top) + 74px)) !important;
    }
    .logo-img { height: 54px !important; }
    .visual-side h1 { font-size: 2.2rem !important; }
    .form-side { max-height: 78vh; max-height: 78dvh; }
}

/* ── iPhone Pro Max 428–430px (3x) ─────────────────────── */
@media only screen
    and (min-width: 414px)
    and (max-width: 430px)
    and (-webkit-min-device-pixel-ratio: 3) {

    .visual-side {
        padding-top: max(96px, calc(env(safe-area-inset-top) + 78px)) !important;
        padding-left: 28px !important;
    }
    .logo-img { height: 60px !important; }
    .visual-side h1 { font-size: 2.5rem !important; }
    .form-side { padding: 0 26px !important; padding-bottom: max(32px, calc(env(safe-area-inset-bottom) + 20px)) !important; }
    .input-box { padding: 15px 16px !important; }
    .login-btn { padding: 16px !important; }
}

/* ── iPhone 14/15 standard 390px (3x) ──────────────────── */
@media only screen
    and (max-width: 390px)
    and (-webkit-min-device-pixel-ratio: 3) {

    .visual-side h1 { font-size: 2.1rem !important; }
    .form-side { max-height: 79vh; max-height: 79dvh; }
}

/* ── iPhone SE 1st/2nd/3rd gen — 375px (2x) ────────────── */
@media only screen
    and (max-width: 375px)
    and (-webkit-min-device-pixel-ratio: 2) {

    .visual-side {
        padding-top: max(80px, calc(env(safe-area-inset-top) + 62px)) !important;
        padding-left: 20px !important;
        padding-bottom: 20px !important;
    }
    .logo-img { height: 46px !important; }
    .visual-side h1 { font-size: 1.95rem !important; }
    .visual-side > p { font-size: 10px !important; }
    .form-side { padding: 0 18px !important; padding-bottom: max(24px, calc(env(safe-area-inset-bottom) + 12px)) !important; max-height: 76vh; }
    .form-side::before { margin: 12px auto 16px; }
    /* SE has no home indicator — labels still help nav */
    .dock-item span { display: none; }
    .dock-item { padding: 8px 5px; }
    .dock-item svg { width: 18px; height: 18px; }
    .input-box { padding: 13px 14px !important; }
    .login-btn { padding: 14px !important; }
}

/* ── All iPhones: landscape ─────────────────────────────── */
@media only screen
    and (max-height: 450px)
    and (orientation: landscape)
    and (-webkit-min-device-pixel-ratio: 2) {

    body { overflow: hidden !important; }

    /* Revert to a compact two-column card — sheet layout doesn't
       work in landscape because the viewport is too short */
    .login-container {
        -webkit-animation: none !important;
        animation: none !important;
        position: relative !important;
        top: auto; right: auto; bottom: auto; left: auto;
        width: calc(100% - 24px) !important;
        max-width: 680px !important;
        height: auto !important;
        min-height: unset !important;
        -webkit-box-orient: horizontal;
        -webkit-flex-direction: row;
        flex-direction: row !important;
        -webkit-box-pack: start;
        justify-content: flex-start !important;
        border: 1px solid var(--border) !important;
        border-radius: 20px !important;
        background: rgba(10,10,13,0.95) !important;
        -webkit-backdrop-filter: blur(30px) !important;
        backdrop-filter: blur(30px) !important;
        -webkit-box-shadow: 0 20px 50px rgba(0,0,0,0.7) !important;
        box-shadow: 0 20px 50px rgba(0,0,0,0.7) !important;
        overflow: hidden !important;
        opacity: 1 !important;
        margin: auto;
    }

    body {
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-box-align: center;
        align-items: center;
        -webkit-box-pack: center;
        justify-content: center;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px max(14px, env(safe-area-inset-left));
    }

    .visual-side {
        -webkit-animation: none !important;
        animation: none !important;
        opacity: 1 !important;
        -webkit-box-flex: 0.9;
        -webkit-flex: 0.9;
        flex: 0.9;
        padding: 16px 18px !important;
        border-right: 1px solid var(--border) !important;
        -webkit-box-align: flex-start;
        align-items: flex-start !important;
        text-align: left !important;
        background: transparent !important;
    }
    .form-side {
        -webkit-animation: none !important;
        animation: none !important;
        opacity: 1 !important;
        -webkit-transform: none !important;
        transform: none !important;
        -webkit-box-flex: 1.1;
        -webkit-flex: 1.1;
        flex: 1.1;
        padding: 14px 18px !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
        max-height: none;
        overflow: visible !important;
    }
    .form-side::before { display: none; }

    .logo-img { height: 36px !important; margin-bottom: 7px !important; }
    .visual-side h1 { font-size: 1.15rem !important; }
    .visual-side > p { font-size: 8px !important; }
    .form-side h2 { font-size: 9px !important; margin-bottom: 10px !important; }
    .input-group { margin-bottom: 8px !important; }
    .input-box { padding: 10px 12px !important; font-size: 16px !important; border-radius: 10px !important; }
    .login-btn { padding: 11px !important; font-size: 9px !important; border-radius: 10px !important; margin-top: 4px !important; }
    .trial-trigger { margin-top: 9px; padding-top: 9px; }

    .nav-dock-wrapper {
        top: max(6px, env(safe-area-inset-top));
        padding-top: 0;
    }
    .glass-dock { padding: 4px; }
    .dock-item span { display: none; }
    .dock-item { padding: 7px; }
    .dock-item svg { width: 15px; height: 15px; }

    .smart-alert { bottom: calc(14px + env(safe-area-inset-bottom)); }
}

/* ================================================================
   SHOWCASE PANEL — 3D Carousel v2 (no emoji, larger cards/text)
   ================================================================ */
/* ================================================================
   SHOWCASE PANEL — Arcane / Ink-Sketch Style
   ================================================================ */

/* ── Panel container ── */
.showcase-panel {
    flex: 1.25;
    background: linear-gradient(155deg, rgba(197,157,95,0.04) 0%, rgba(0,0,0,0.35) 100%);
    border-right: 1px solid rgba(197,157,95,0.10);
    padding: 22px 20px 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    gap: 12px;
}
.showcase-panel::before {
    content:''; position:absolute; top:0; left:8%; right:8%; height:1px;
    background: linear-gradient(90deg,transparent,rgba(197,157,95,0.45),transparent);
    pointer-events:none;
}
/* Parchment paper texture overlay */
.showcase-panel::after {
    content:'';
    position:absolute; top:0; left:0; right:0; bottom:0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events:none;
    z-index:0;
    opacity:0.6;
}

/* ── Header ── */
.showcase-header { display:flex; align-items:center; gap:10px; flex-shrink:0; position:relative; z-index:1; }
.showcase-logo { height:30px; width:auto; filter:drop-shadow(0 0 8px rgba(197,157,95,0.4)); flex-shrink:0; }
.showcase-brand { display:flex; flex-direction:column; flex:1; min-width:0; }
.showcase-title { font-family:'Orbitron',sans-serif; font-size:14px; font-weight:700; color:#fff; letter-spacing:1px; }
.showcase-sub   { font-family:'Orbitron',sans-serif; font-size:9px; color:rgba(197,157,95,0.38); letter-spacing:2.5px; margin-top:2px; }
.showcase-live-badge {
    display:flex; align-items:center; gap:5px;
    background:rgba(255,60,60,0.08); border:1px solid rgba(255,60,60,0.2);
    border-radius:20px; padding:4px 9px;
    font-family:'Orbitron',sans-serif; font-size:9px; color:#ff7070; letter-spacing:1.5px; flex-shrink:0;
}
.showcase-live-dot { width:6px; height:6px; border-radius:50%; background:#ff4444; animation:livePulse 1.4s ease-in-out infinite; }
@keyframes livePulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.3;transform:scale(0.6);} }

/* ── Loading ── */
.sc-loading { display:flex; flex-direction:column; align-items:center; justify-content:center; flex:1; gap:14px; opacity:0.5; position:relative; z-index:1; }
.sc-spinner { width:28px; height:28px; border:2px solid rgba(197,157,95,0.15); border-top-color:rgba(197,157,95,0.75); border-radius:50%; animation:spin 0.85s linear infinite; }
@keyframes spin { to{transform:rotate(360deg);} }
.sc-loading span { font-family:'Orbitron',sans-serif; font-size:10px; color:rgba(197,157,95,0.5); letter-spacing:2px; }

/* ── KPI strip ── */
.sc-kpi-row {
    display:flex; gap:0; flex-shrink:0;
    background: rgba(197,157,95,0.04);
    border: 1px solid rgba(197,157,95,0.14);
    border-radius: 8px;
    overflow:hidden;
    position: relative; z-index:1;
    /* Rough sketch top/bottom lines */
    box-shadow: 0 1px 0 rgba(197,157,95,0.08) inset, 0 -1px 0 rgba(197,157,95,0.06) inset;
}
.sc-kpi { flex:1; display:flex; flex-direction:column; align-items:center; padding:8px 4px; gap:3px; border-right:1px solid rgba(197,157,95,0.08); }
.sc-kpi:last-child { border-right:none; }
.sc-kpi-val   { font-family:'Orbitron',sans-serif; font-size:16px; font-weight:900; color:var(--gold); line-height:1; }
.sc-kpi-label { font-family:'Orbitron',sans-serif; font-size:8px; color:rgba(255,255,255,0.22); letter-spacing:1.5px; }

/* ── 3D SCENE ── */
.sc-scene-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    gap: 10px;
    overflow: hidden;
    position: relative; z-index:1;
}
.sc-scene-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px; font-weight: 700;
    color: #c59d5f;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
    max-width: 100%; flex-shrink: 0;
    transition: color 0.35s;
    text-align: center;
    /* Subtle ink underline */
    border-bottom: 1px solid rgba(197,157,95,0.15);
    padding-bottom: 4px;
}
.sc-scene {
    flex: 1; width: 100%; min-height: 0;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    perspective: 1100px;
    perspective-origin: 50% 45%;
}

/* ── Ring ── */
.sc-ring {
    position: relative;
    width: 230px;
    height: 300px;
    transform-style: preserve-3d;
}

/* ── Card slot ── */
.scc-item {
    position: absolute;
    width: 230px;
    left: 50%; top: 50%;
    margin-left: -115px;
    margin-top: -140px;
    cursor: pointer;
    transition:
        transform 0.58s cubic-bezier(0.19,1,0.22,1),
        opacity   0.58s cubic-bezier(0.19,1,0.22,1);
    transform-origin: center center;
    will-change: transform, opacity;
}

/* ── ARCANE CARD FACE ── */
.scc-inner {
    width: 230px;
    min-height: 280px;
    /* Dark parchment base */
    background: linear-gradient(160deg, #0f0e0a 0%, #0b0b10 55%, #0d0c0a 100%);
    border-radius: 4px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    padding: 16px 14px 12px;
    gap: 10px;
    box-sizing: border-box;
    position: relative;
    /* Ink shadow */
    box-shadow:
        0 24px 60px rgba(0,0,0,0.85),
        0 2px 8px rgba(0,0,0,0.9),
        0 0 0 1px rgba(197,157,95,0.06) inset;
}

/* ─── SVG sketch border on every card ─── */
.scc-inner::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 6px;
    background:
        /* Top-left corner stroke */
        linear-gradient(90deg, rgba(197,157,95,0.55) 0%, rgba(197,157,95,0.18) 40%, transparent 70%) top left / 70% 1.5px no-repeat,
        linear-gradient(180deg, rgba(197,157,95,0.55) 0%, rgba(197,157,95,0.18) 40%, transparent 70%) top left / 1.5px 70% no-repeat,
        /* Bottom-right corner stroke */
        linear-gradient(270deg, rgba(197,157,95,0.55) 0%, rgba(197,157,95,0.18) 40%, transparent 70%) bottom right / 70% 1.5px no-repeat,
        linear-gradient(0deg, rgba(197,157,95,0.55) 0%, rgba(197,157,95,0.18) 40%, transparent 70%) bottom right / 1.5px 70% no-repeat,
        /* Top-right corner */
        linear-gradient(270deg, rgba(197,157,95,0.3) 0%, transparent 60%) top right / 45% 1px no-repeat,
        linear-gradient(180deg, rgba(197,157,95,0.3) 0%, transparent 60%) top right / 1px 40% no-repeat,
        /* Bottom-left corner */
        linear-gradient(90deg, rgba(197,157,95,0.3) 0%, transparent 60%) bottom left / 45% 1px no-repeat,
        linear-gradient(0deg, rgba(197,157,95,0.3) 0%, transparent 60%) bottom left / 1px 40% no-repeat;
    pointer-events: none;
    z-index: 0;
}

/* Active card: brighter corner strokes + ink glow */
.scc-item.active .scc-inner {
    box-shadow:
        0 28px 70px rgba(0,0,0,0.9),
        0 0 28px rgba(197,157,95,0.09),
        0 0 0 1px rgba(197,157,95,0.08) inset;
}
.scc-item.active .scc-inner::before {
    background:
        linear-gradient(90deg, rgba(197,157,95,0.9) 0%, rgba(197,157,95,0.3) 40%, transparent 70%) top left / 70% 1.5px no-repeat,
        linear-gradient(180deg, rgba(197,157,95,0.9) 0%, rgba(197,157,95,0.3) 40%, transparent 70%) top left / 1.5px 70% no-repeat,
        linear-gradient(270deg, rgba(197,157,95,0.9) 0%, rgba(197,157,95,0.3) 40%, transparent 70%) bottom right / 70% 1.5px no-repeat,
        linear-gradient(0deg, rgba(197,157,95,0.9) 0%, rgba(197,157,95,0.3) 40%, transparent 70%) bottom right / 1.5px 70% no-repeat,
        linear-gradient(270deg, rgba(197,157,95,0.5) 0%, transparent 60%) top right / 45% 1px no-repeat,
        linear-gradient(180deg, rgba(197,157,95,0.5) 0%, transparent 60%) top right / 1px 40% no-repeat,
        linear-gradient(90deg, rgba(197,157,95,0.5) 0%, transparent 60%) bottom left / 45% 1px no-repeat,
        linear-gradient(0deg, rgba(197,157,95,0.5) 0%, transparent 60%) bottom left / 1px 40% no-repeat;
}

/* Ground glow reflection */
.scc-item::after {
    content: '';
    position: absolute;
    bottom: -18px; left: 10%; right: 10%;
    height: 18px;
    background: radial-gradient(ellipse, rgba(197,157,95,0.12) 0%, transparent 70%);
    filter: blur(5px);
    pointer-events: none;
}

/* All inner content above the ::before overlay */
.scc-inner > * { position: relative; z-index: 1; }

/* ══════════════════════════════════════════
   PLAYER CARD HEADER
   ══════════════════════════════════════════ */
.scc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Rank badge — ink stamp style */
.scc-rank-badge {
    font-family: 'Orbitron', sans-serif;
    font-size: 9px; font-weight: 900;
    letter-spacing: 1px;
    padding: 4px 6px;
    border-radius: 3px;
    border: 1px solid;
    flex-shrink: 0;
    text-align: center;
    min-width: 34px;
    /* Diagonal cut on top-right corner (sketch stamp look) */
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
    text-transform: uppercase;
}
.scc-rank-badge.gold   { color:#c59d5f; border-color:rgba(197,157,95,0.5); background:rgba(197,157,95,0.10); }
.scc-rank-badge.silver { color:#c0c0c0; border-color:rgba(192,192,192,0.4); background:rgba(192,192,192,0.07); }
.scc-rank-badge.bronze { color:#cd7f32; border-color:rgba(205,127,50,0.4); background:rgba(205,127,50,0.07); }
.scc-rank-badge.dim    { color:#777;    border-color:rgba(255,255,255,0.11); background:rgba(255,255,255,0.03); }

/* ── PLAYER photo ── circular with ink ring */
.scc-photo-wrap {
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 1.5px solid rgba(197,157,95,0.45);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    /* Sketch ring — slightly broken/rough */
    box-shadow:
        0 0 0 3px rgba(197,157,95,0.06),
        0 0 0 4px rgba(197,157,95,0.03);
}
.scc-photo-wrap::after {
    content: '';
    position: absolute; top: -3px; left: -3px; right: -3px; bottom: -3px;
    border-radius: 50%;
    border: 1px solid rgba(197,157,95,0.12);
    /* Dashed sketch ring */
    background:
        conic-gradient(
            rgba(197,157,95,0.3) 0deg 60deg,
            transparent 60deg 90deg,
            rgba(197,157,95,0.15) 90deg 180deg,
            transparent 180deg 210deg,
            rgba(197,157,95,0.3) 210deg 310deg,
            transparent 310deg 360deg
        );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
    pointer-events: none;
}
.scc-photo { width:50px; height:50px; object-fit:cover; display:block; }

/* ── TEAM logo ── square with inner border */
/* When scc-photo-wrap has border-radius:10px it's a team card logo */
.scc-photo-wrap[style*="border-radius:10px"],
.scc-photo-wrap[style*="border-radius: 10px"] {
    border-radius: 8px !important;
    /* Square sketch border — no circle ring */
    box-shadow:
        0 0 0 1px rgba(197,157,95,0.08),
        inset 0 0 0 1px rgba(197,157,95,0.06);
}
.scc-photo-wrap[style*="border-radius:10px"]::after,
.scc-photo-wrap[style*="border-radius: 10px"]::after {
    display: none;
}

/* ── Name / info ── */
.scc-info { flex:1; min-width:0; }
.scc-name {
    font-family:'Orbitron',sans-serif; font-size:12px; font-weight:900;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
    line-height:1.2; margin-bottom:2px;
    /* Ink text — slight text-shadow for depth */
    text-shadow: 0 0 18px currentColor;
}
/* Team name label under player name */
.scc-team {
    font-family:'Orbitron',sans-serif; font-size:8px; color:#4a4a3a;
    letter-spacing:1.5px; margin-bottom:5px;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
    text-transform: uppercase;
}
/* For TEAM cards: wins/matches record shown in scc-team */
.scc-bigstat {
    font-family:'Orbitron',sans-serif; font-size:10px; font-weight:700;
    color:rgba(255,255,255,0.3); line-height:1;
}
.scc-bigstat span { font-size:17px; font-weight:900; }

/* ── Divider — rough ink line ── */
.scc-divider {
    height: 1px;
    flex-shrink: 0;
    margin: 0 -2px;
    position: relative;
    background: transparent;
}
.scc-divider::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    /* Rough ink line — fades in the middle, rough at edges */
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(197,157,95,0.25) 8%,
        rgba(197,157,95,0.40) 30%,
        rgba(197,157,95,0.45) 50%,
        rgba(197,157,95,0.35) 70%,
        rgba(197,157,95,0.15) 90%,
        transparent 100%
    );
}
/* Tiny corner ticks — like a hand-drawn ruled line */
.scc-divider::after {
    content: '';
    position: absolute;
    top: -2px; left: 4px;
    width: 8px; height: 4px;
    border-left: 1px solid rgba(197,157,95,0.25);
    border-bottom: 1px solid rgba(197,157,95,0.15);
}

/* ══════════════════════════════════════════
   STAT ROWS
   ══════════════════════════════════════════ */
.scc-stats { display:flex; flex-direction:column; gap:4px; flex:1; }

.scc-stat-row {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 7px;
    border-radius: 3px;
    /* Subtle ink-wash background */
    background: rgba(255,255,255,0.018);
    border: none;
    border-left: 1.5px solid rgba(255,255,255,0.07);
    position: relative;
    transition: background 0.2s;
}
/* Highlighted stat row — ink accent */
.scc-stat-row.hi {
    background: rgba(197,157,95,0.055);
    border-left-color: rgba(197,157,95,0.55);
}
/* Tiny rune mark in top-right of highlighted row */
.scc-stat-row.hi::after {
    content: '◆';
    position: absolute;
    right: 6px; top: 50%;
    transform: translateY(-50%);
    font-size: 5px;
    color: rgba(197,157,95,0.3);
    pointer-events: none;
}

/* Icon box — circular rune */
.scc-stat-icon-box {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.scc-stat-row.hi .scc-stat-icon-box {
    background: rgba(197,157,95,0.10);
    border-color: rgba(197,157,95,0.25);
}
.scc-stat-icon {
    font-family: 'Orbitron', sans-serif;
    font-size: 8px; font-weight: 900;
    color: rgba(255,255,255,0.25);
}
.scc-stat-row.hi .scc-stat-icon { color: rgba(197,157,95,0.8); }

.scc-stat-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 8.5px; color: #555;
    letter-spacing: 0.8px; flex: 1;
    text-transform: uppercase;
}
.scc-stat-val {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px; font-weight: 900; color: #aaa;
    flex-shrink: 0;
    padding-right: 12px; /* space for rune mark on .hi rows */
}
.scc-stat-row.hi .scc-stat-val { color: #c59d5f; padding-right: 16px; }

/* ── Nav ── */
.sc-nav {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; flex-shrink: 0; height: 28px;
    position: relative; z-index:1;
}
.sc-nav-btn {
    background: rgba(197,157,95,0.04);
    border: 1px solid rgba(197,157,95,0.14);
    border-radius: 3px;
    color: rgba(197,157,95,0.4);
    font-size: 13px;
    width: 26px; height: 26px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    padding: 0; -webkit-appearance: none; appearance: none;
    font-family: sans-serif;
    /* Sketch corner clip */
    clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
}
.sc-nav-btn:hover {
    background: rgba(197,157,95,0.12);
    border-color: rgba(197,157,95,0.4);
    color: var(--gold);
}
.sc-dots { display:flex; gap:5px; align-items:center; }
.sc-dot  {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(197,157,95,0.15);
    cursor: pointer;
    transition: all 0.25s;
    border: 1px solid rgba(197,157,95,0.1);
}
.sc-dot.active {
    background: var(--gold);
    width: 14px; border-radius: 2px;
    border-color: transparent;
    box-shadow: 0 0 6px rgba(197,157,95,0.4);
}

/* ── Responsive ── */
@media only screen and (min-width:769px) and (max-width:1100px) {
    .showcase-panel { padding:16px 14px 12px; gap:10px; }
    .sc-ring  { width:200px; height:270px; }
    .scc-item { width:200px; margin-left:-100px; margin-top:-130px; }
    .scc-inner { width:200px; min-height:260px; padding:13px 11px 10px; }
    .scc-name { font-size:11px; }
    .scc-bigstat span { font-size:15px; }
    .scc-stat-val { font-size:11px; }
}
@media only screen and (max-width:768px) { .showcase-panel { display:none !important; } }
@media only screen and (max-height:450px) and (orientation:landscape) { .showcase-panel { display:none !important; } }