/* ==========================================================================
   Temassız Partner — design system
   Layout shell (sidebar + topbar), auth screens, components.
   Class names used by the existing PHP views are preserved.
   ========================================================================== */

:root {
    --color-bg: #F1F4F3;
    --color-card: #FFFFFF;
    --color-input-bg: #F8FAF9;
    --color-ink: #0E1A1F;
    --color-ink-soft: #46575D;
    --color-muted: #7A8A90;
    --color-border: #DCE4E2;
    --color-border-soft: #E9EEEC;
    --color-accent: #0A8C77;
    --color-accent-2: #07705F;
    --color-accent-bg: #E1F3EF;
    --color-accent-ink: #065446;
    --color-success: #168A4E;
    --color-success-bg: #E4F5EB;
    --color-danger: #C9374D;
    --color-danger-bg: #FCEBEE;
    --color-danger-border: #F2C3CB;
    --color-amber: #D98E04;
    --color-amber-bg: #FFF3D6;
    --color-amber-ink: #85570A;
    --color-chip-bg: #E8EDEB;

    --color-side: #0E1A1F;
    --color-side-2: #14262C;
    --color-side-ink: #A9BCC1;
    --color-side-active: #FFFFFF;
    --color-signal: #3DDBC0;

    --font-body: 'Instrument Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
    --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

    --radius-card: 16px;
    --radius-el: 10px;
    --shadow-card: 0 1px 2px rgba(14, 26, 31, .05);
    --shadow-pop: 0 10px 30px rgba(14, 26, 31, .12);
    --sidebar-w: 264px;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #0A1216;
        --color-card: #111D22;
        --color-input-bg: #16252B;
        --color-ink: #E9F0F1;
        --color-ink-soft: #A5B6BB;
        --color-muted: #70848A;
        --color-border: #22343B;
        --color-border-soft: #1A2A30;
        --color-accent: #2FC9AD;
        --color-accent-2: #5CE0C7;
        --color-accent-bg: #123A34;
        --color-accent-ink: #8FF0DD;
        --color-success: #4ADE92;
        --color-success-bg: #12301F;
        --color-danger: #FB7185;
        --color-danger-bg: #3A1620;
        --color-danger-border: #5C2A35;
        --color-amber: #FBBF24;
        --color-amber-bg: #38290A;
        --color-amber-ink: #FCD679;
        --color-chip-bg: #1C2B31;
        --color-side: #070E11;
        --color-side-2: #0E1A1F;
        --shadow-card: 0 1px 2px rgba(0, 0, 0, .4);
        --shadow-pop: 0 10px 30px rgba(0, 0, 0, .5);
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100vh; background: var(--color-bg);
    font-family: var(--font-body); font-size: 15px; line-height: 1.5; color: var(--color-ink);
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -.015em; }
code, .mono { font-family: var(--font-mono); font-size: .88em; background: var(--color-chip-bg); padding: 2px 6px; border-radius: 6px; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.text-danger { color: var(--color-danger) !important; }
.text-success { color: var(--color-success) !important; }

/* ---------- Typography blocks ---------- */
.headline { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 6px; color: var(--color-ink); }
.subtitle { color: var(--color-ink-soft); font-size: 14.5px; margin: 0 0 18px; line-height: 1.55; }
.subtitle strong { color: var(--color-ink); }
a.plain { color: var(--color-accent); text-decoration: none; font-weight: 600; }
a.plain:hover { text-decoration: underline; text-underline-offset: 3px; }
.back-link { margin: 26px 0 0; }
.back-link a { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Forms ---------- */
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], select, textarea {
    padding: 11px 14px; border: 1.5px solid var(--color-border); border-radius: var(--radius-el);
    font-size: 15px; font-family: var(--font-body); width: 100%; background: var(--color-input-bg);
    color: var(--color-ink); min-height: 44px; transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--color-muted); }
input:hover, select:hover, textarea:hover { border-color: var(--color-muted); }
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 4px var(--color-accent-bg); background: var(--color-card);
}
input[readonly] { color: var(--color-ink-soft); }
input[type=file] { font-size: 13px; color: var(--color-ink-soft); }
input[type=file]::file-selector-button {
    border: 1.5px solid var(--color-border); background: var(--color-card); color: var(--color-ink);
    border-radius: 8px; padding: 6px 12px; margin-right: 10px; font: 600 13px var(--font-body); cursor: pointer;
}
select { appearance: none; padding-right: 38px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237A8A90' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; }
label.field-label { font-size: 13px; font-weight: 600; color: var(--color-ink); display: block; margin-bottom: 6px; }
label.field-label .subtitle { display: inline; font-size: 12.5px; margin: 0; color: var(--color-muted); }
.form-grid { display: flex; flex-direction: column; gap: 16px; margin-bottom: 8px; }
.form-grid.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px 20px; }
.form-grid.cols > button, .form-grid.cols > .full, .form-grid.cols > h2, .form-grid.cols > .stat-card { grid-column: 1 / -1; }
.form-grid > h2 { font-size: 16px; margin: 8px 0 0; padding-top: 18px; border-top: 1px solid var(--color-border-soft); }
.input-sm { min-height: 36px !important; padding: 6px 10px !important; font-size: 13.5px !important; }
details.disclosure { margin: 12px 0 4px; border: 1px solid var(--color-border); border-radius: var(--radius-el); padding: 0 16px; background: var(--color-input-bg); }
details.disclosure > summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 14px; color: var(--color-ink); list-style: none; display: flex; align-items: center; justify-content: space-between; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--color-muted); border-bottom: 2px solid var(--color-muted); transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
details.disclosure[open] > summary::after { transform: rotate(-135deg); }
details.disclosure[open] { padding-bottom: 16px; }

/* ---------- Buttons ---------- */
button, .btn, .btn-secondary {
    padding: 12px 18px; background: var(--color-accent); color: #fff; border: 1.5px solid transparent;
    border-radius: var(--radius-el); font: 700 14.5px var(--font-body); cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; line-height: 1.2;
    transition: background .15s, border-color .15s, transform .12s, box-shadow .15s;
}
button, .btn { width: 100%; }
@media (prefers-color-scheme: dark) { button, .btn { color: #04201A; } }
button:hover, .btn:hover { background: var(--color-accent-2); }
button:active, .btn:active, .btn-secondary:active { transform: scale(.985); }
button:disabled { opacity: .55; cursor: not-allowed; }
.btn-secondary { background: var(--color-card); color: var(--color-ink); border-color: var(--color-border); }
button.btn-secondary { width: 100%; }
a.btn-secondary { width: auto; }
.btn-secondary:hover { background: var(--color-chip-bg); border-color: var(--color-muted); }
.btn-sm { width: auto !important; min-height: 34px !important; padding: 6px 14px !important; font-size: 13px !important; }
.btn-danger { color: var(--color-danger) !important; }
.btn-danger:hover { background: var(--color-danger-bg) !important; border-color: var(--color-danger-border) !important; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.action-row button, .action-row .btn-secondary { width: auto; min-height: 40px; padding: 8px 16px; font-size: 13.5px; }
.inline-form { display: inline-flex; }
.inline-form button { width: auto; }

/* ---------- Flash messages ---------- */
.flash, .flash-error, .flash-success {
    padding: 12px 16px; border-radius: var(--radius-el); margin-bottom: 16px; font-size: 14px; line-height: 1.5;
    border: 1px solid; border-left-width: 4px;
}
.flash { background: var(--color-amber-bg); border-color: var(--color-amber); color: var(--color-amber-ink); }
.flash-error { background: var(--color-danger-bg); border-color: var(--color-danger); color: var(--color-danger); }
.flash-success { background: var(--color-success-bg); border-color: var(--color-success); color: var(--color-success); }
.flash a { color: inherit; }

/* ---------- Surfaces ---------- */
.note { background: var(--color-card); border: 1px solid var(--color-border); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-card); }
.panel { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 22px 24px; margin-bottom: 18px; box-shadow: var(--shadow-card); }
.panel > :last-child { margin-bottom: 0; }
.panel__title, .section-title { font-size: 17px; font-weight: 650; color: var(--color-ink); margin: 0 0 14px; letter-spacing: -.01em; }
.section-title { margin-top: 26px; }
.panel .stat-grid:last-child, .panel .table-wrap:last-child { margin-bottom: 0; }
.panel .subtitle:last-child { margin-bottom: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.page-head .subtitle { margin-bottom: 0; }
.page-head + .subtitle { margin-top: 4px; }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 16px 18px; box-shadow: var(--shadow-card); position: relative; overflow: hidden; }
.stat-card__label { font-size: 13px; font-weight: 500; color: var(--color-ink-soft); margin-bottom: 6px; }
.stat-card__value { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.stat-card--accent { background: var(--color-accent-bg); border-color: transparent; }
.stat-card--accent .stat-card__label { color: var(--color-accent-ink); }
.stat-card--accent .stat-card__value { color: var(--color-accent-ink); }
.stat-card--warn { background: var(--color-amber-bg); border-color: transparent; }
.stat-card--warn .stat-card__label { color: var(--color-amber-ink); }
.stat-card--warn .stat-card__value { color: var(--color-amber-ink); }
.panel .stat-card { box-shadow: none; }

/* ---------- Tier ---------- */
.tier-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--color-accent-bg); color: var(--color-accent-ink); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.tier-badge svg { width: 16px; height: 16px; }
.tier-progress-track { height: 10px; background: rgba(255, 255, 255, .12); border-radius: 999px; overflow: hidden; margin: 12px 0 6px; }
.tier-progress-fill { height: 100%; background: linear-gradient(90deg, var(--color-accent), var(--color-signal)); border-radius: 999px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }

/* Dashboard hero: partner identity + tier journey */
.hero { position: relative; overflow: hidden; background: var(--color-side); color: #E9F0F1; border-radius: 22px; padding: 28px; margin-bottom: 20px; isolation: isolate; }
.hero::before { content: ''; position: absolute; z-index: -1; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
    background: repeating-radial-gradient(circle at center, transparent 0 26px, rgba(61, 219, 192, .14) 26px 28px); }
.hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.hero__name { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; margin: 0 0 6px; }
.hero__code { display: inline-block; font-family: var(--font-mono); font-size: 12.5px; color: var(--color-side-ink); background: rgba(255, 255, 255, .07); padding: 3px 10px; border-radius: 999px; }
.hero .tier-badge { background: rgba(61, 219, 192, .14); color: var(--color-signal); }
.hero__next { margin: 26px 0 0; font-size: 14.5px; color: var(--color-side-ink); max-width: 60ch; }
.hero__next strong { color: #fff; }
.hero__milestones { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--color-side-ink); }
.hero__milestones strong { color: #fff; font-weight: 600; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin-bottom: 20px; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-card); -webkit-overflow-scrolling: touch; }
.panel .table-wrap { border: none; border-radius: 0; margin: 0 -24px 0; padding: 0; }
.panel .table-wrap:last-child { margin-bottom: -6px; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.data-table th { text-align: left; padding: 11px 16px; font-size: 12.5px; font-weight: 600; color: var(--color-muted); background: var(--color-input-bg); border-bottom: 1px solid var(--color-border); white-space: nowrap; }
table.data-table td { padding: 13px 16px; border-bottom: 1px solid var(--color-border-soft); vertical-align: middle; }
table.data-table tbody tr:last-child td { border-bottom: none; }
.panel table.data-table th:first-child, .panel table.data-table td:first-child { padding-left: 24px; }
.panel table.data-table th:last-child, .panel table.data-table td:last-child { padding-right: 24px; }
table.data-table tbody tr { transition: background .12s; }
table.data-table tbody tr:hover { background: var(--color-input-bg); }
td.cell-muted, .cell-muted { color: var(--color-muted); }

/* ---------- Status pills ---------- */
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--color-chip-bg); color: var(--color-ink-soft); }
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill--lg { font-size: 13.5px; padding: 6px 14px 6px 12px; }
.status-pill--paid, .status-pill--completed, .status-pill--approved { background: var(--color-success-bg); color: var(--color-success); }
.status-pill--pending_payment, .status-pill--pending { background: var(--color-amber-bg); color: var(--color-amber-ink); }
.status-pill--failed, .status-pill--cancelled, .status-pill--void { background: var(--color-danger-bg); color: var(--color-danger); }
.status-pill--preparing, .status-pill--shipped { background: var(--color-accent-bg); color: var(--color-accent-ink); }

/* ---------- Product cards ---------- */
.product-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 8px; }
.product-card { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; text-decoration: none; color: inherit; background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 20px; box-shadow: var(--shadow-card); transition: border-color .15s, box-shadow .15s, transform .15s; }
.product-card:hover { border-color: var(--color-accent); box-shadow: var(--shadow-pop); transform: translateY(-2px); }
.product-card__brand { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--color-accent-ink); background: var(--color-accent-bg); padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; }
.product-card__name { font-family: var(--font-display); font-weight: 650; font-size: 18px; line-height: 1.25; letter-spacing: -.015em; }
.product-card__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.product-card__list { font-size: 13px; color: var(--color-muted); text-decoration: line-through; }
.product-card__price { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -.025em; color: var(--color-ink); line-height: 1.1; }
.product-card__cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--color-accent); }
.product-card__cta svg { width: 16px; height: 16px; transition: transform .15s; }
.product-card:hover .product-card__cta svg { transform: translateX(3px); }
.empty { text-align: center; padding: 36px 16px; color: var(--color-muted); font-size: 14.5px; }

/* ---------- Referral link ---------- */
.referral-link-box { display: flex; gap: 8px; align-items: stretch; margin-bottom: 6px; }
.referral-link-box input[type=text] { flex: 1 1 auto; width: auto; min-width: 0; font-family: var(--font-mono); font-size: 13px; cursor: text; }
.referral-link-box button { flex: 0 0 auto; width: auto; min-height: 0; padding: 0 20px; }

/* ==========================================================================
   App shell
   ========================================================================== */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
    position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
    background: var(--color-side); color: var(--color-side-ink); padding: 22px 14px 16px; overflow-y: auto; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; text-decoration: none; color: #fff; }
.brand__mark { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg, #12B79B, #0A6F60); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.brand__mark svg { width: 22px; height: 22px; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.1; letter-spacing: -.02em; }
.brand__sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--color-side-ink); letter-spacing: 0; margin-top: 2px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side-nav__link { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--color-side-ink); text-decoration: none; font-weight: 600; font-size: 14.5px; transition: background .15s, color .15s; }
.side-nav__link svg { width: 19px; height: 19px; flex: none; opacity: .85; }
.side-nav__link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-nav__link.is-active { background: rgba(61, 219, 192, .12); color: #fff; }
.side-nav__link.is-active svg { color: var(--color-signal); opacity: 1; }
.side-nav__link.is-active::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--color-signal); }
.side-user { margin-top: 16px; padding: 12px; border-radius: 14px; background: var(--color-side-2); display: flex; align-items: center; gap: 11px; }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--color-accent-bg); color: var(--color-accent-ink); font: 700 14px var(--font-display); }
.side-user__text { min-width: 0; flex: 1; line-height: 1.25; }
.side-user__name { display: block; color: #fff; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user__role { display: block; font-size: 12px; }
.side-user__out { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--color-side-ink); transition: background .15s, color .15s; }
.side-user__out:hover { background: rgba(251, 113, 133, .16); color: #FB7185; }
.side-user__out svg { width: 18px; height: 18px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 32px; background: color-mix(in srgb, var(--color-bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-border-soft); }
.topbar__title { font-family: var(--font-display); font-weight: 650; font-size: 17px; letter-spacing: -.015em; }
.topbar__spacer { flex: 1; }
.topbar__chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--color-ink-soft); background: var(--color-card); border: 1px solid var(--color-border); border-radius: 999px; padding: 5px 12px 5px 8px; }
.topbar__chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-bg); }
.menu-btn { display: none; width: 40px; min-height: 40px; height: 40px; padding: 0; background: var(--color-card); color: var(--color-ink); border: 1px solid var(--color-border); border-radius: 10px; }
.menu-btn:hover { background: var(--color-chip-bg); }
.menu-btn svg { width: 20px; height: 20px; }
.content { flex: 1; padding: 28px 32px 40px; width: 100%; }
.content__inner { max-width: 980px; margin: 0 auto; }
.content__inner.wide { max-width: 1200px; }
.content .note { background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 0; }
.content .note > .headline { font-size: 30px; }
.content .note > .headline + .subtitle { margin-bottom: 22px; }
.content .note > .subtitle:first-child { margin-top: 0; }
.footer-mini, footer.mini { text-align: center; color: var(--color-muted); font-size: 12.5px; padding: 8px 0 28px; }
.scrim { display: none; }

/* ==========================================================================
   Auth screens (login / register)
   ========================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth__brand { position: relative; overflow: hidden; background: var(--color-side); color: #E9F0F1; padding: 44px 56px; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; }
.auth__brand::before { content: ''; position: absolute; z-index: -1; left: -260px; bottom: -260px; width: 760px; height: 760px; border-radius: 50%;
    background: repeating-radial-gradient(circle at center, transparent 0 38px, rgba(61, 219, 192, .13) 38px 40px); }
.auth__brand::after { content: ''; position: absolute; z-index: -1; right: -90px; top: -90px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(18, 183, 155, .28), transparent 70%); }
.auth__brand .brand { padding: 0; }
.auth__pitch { max-width: 30rem; }
.auth__pitch h2 { font-size: 40px; line-height: 1.08; font-weight: 700; letter-spacing: -.03em; color: #fff; margin-bottom: 18px; }
.auth__pitch p { color: var(--color-side-ink); font-size: 16px; margin: 0 0 26px; }
.auth__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.auth__points li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: #D5E2E4; }
.auth__points svg { width: 20px; height: 20px; flex: none; color: var(--color-signal); margin-top: 1px; }
.auth__foot { font-size: 12.5px; color: var(--color-side-ink); }
.auth__main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth__card { width: 100%; max-width: 440px; }
.auth__card--wide { max-width: 620px; }
.auth__mobile-brand { display: none; }
.auth__card .note { background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 0; }
.auth__card .headline { font-size: 30px; margin-bottom: 8px; }
.auth__card .subtitle { margin-bottom: 24px; }
.auth-alt { text-align: center; margin: 22px 0 0; font-size: 14px; color: var(--color-ink-soft); }
.auth-copy { text-align: center; color: var(--color-muted); font-size: 12.5px; margin-top: 36px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
    .app { grid-template-columns: minmax(0, 1fr); }
    .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow-pop); }
    .app.nav-open .sidebar { transform: none; }
    .app.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(5, 12, 15, .55); z-index: 35; }
    .side-nav__link.is-active::before { left: -14px; }
    .menu-btn { display: inline-grid; place-items: center; }
    .topbar { padding: 0 16px; }
    .content { padding: 20px 16px 32px; }
    .auth { grid-template-columns: minmax(0, 1fr); }
    .auth__brand { display: none; }
    .auth__mobile-brand { display: flex; margin-bottom: 28px; color: var(--color-ink); }
    .auth__mobile-brand .brand__sub { color: var(--color-muted); }
}
@media (max-width: 560px) {
    .headline, .content .note > .headline { font-size: 25px; }
    .hero { padding: 22px 18px; border-radius: 18px; }
    .hero__name { font-size: 25px; }
    .panel { padding: 18px 16px; border-radius: 14px; }
    .panel .table-wrap { margin: 0 -16px; }
    .panel table.data-table th:first-child, .panel table.data-table td:first-child { padding-left: 16px; }
    .panel table.data-table th:last-child, .panel table.data-table td:last-child { padding-right: 16px; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .stat-card { padding: 14px; }
    .stat-card__value { font-size: 23px; }
    .topbar__chip { display: none; }
    .referral-link-box { flex-direction: column; }
    .referral-link-box button { min-height: 44px; }
    .product-card__price { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
    .sidebar, .topbar, .scrim { display: none !important; }
    .app { display: block; }
    body { background: #fff; }
}
table.data-table td a.plain { white-space: nowrap; }
