@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg:          #f0f2f7;
    --panel:       #ffffff;
    --text:        #0f172a;
    --sub:         #475569;
    --muted:       #94a3b8;
    --border:      #e2e8f0;
    --soft:        #f8fafc;

    /* brand */
    --brand:       #0d9488;
    --brand-h:     #0f766e;
    --brand-soft:  #e6faf8;
    --brand-mid:   #99f6e4;

    /* status */
    --red:         #e11d48;
    --red-soft:    #fff1f2;
    --orange:      #c2410c;
    --orange-soft: #fff7ed;
    --amber:       #d97706;
    --amber-soft:  #fffbeb;
    --purple:      #7c3aed;
    --purple-soft: #f5f3ff;
    --blue:        #2563eb;

    /* sidebar */
    --sb:          #0a111e;
    --sb-2:        #0f172a;
    --sb-border:   rgba(255,255,255,.06);
    --sb-text:     #64748b;
    --sb-text-h:   #e2e8f0;

    /* radius */
    --r:    12px;
    --r-sm: 8px;
    --r-xs: 6px;

    /* shadows */
    --sh:    0 1px 2px rgba(15,23,42,.04), 0 4px 12px rgba(15,23,42,.05);
    --sh-md: 0 4px 8px rgba(15,23,42,.06), 0 16px 40px rgba(15,23,42,.08);
    --sh-lg: 0 8px 16px rgba(15,23,42,.10), 0 32px 64px rgba(15,23,42,.12);
}

*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.app-shell {
    display: grid;
    grid-template-columns: 252px minmax(0,1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky; top: 0; height: 100vh; overflow: auto;
    background: linear-gradient(180deg, var(--sb) 0%, var(--sb-2) 100%);
    display: flex; flex-direction: column;
    padding: 16px 12px;
    border-right: 1px solid rgba(255,255,255,.03);
}

.content { min-width: 0; padding: 28px; }
.content-narrow { width: min(70%, 1120px); margin-inline: auto; }

.page-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #0a111e 0%, #0f172a 50%, #0e1f36 100%);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: var(--r);
    padding: 28px 28px;
    margin-bottom: 24px;
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    box-shadow: 0 8px 32px rgba(10,17,30,.24), 0 2px 6px rgba(10,17,30,.10);
}
.page-hero::before {
    content: ""; position: absolute;
    top: -50px; right: 60px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(13,148,136,.25) 0%, transparent 65%);
    pointer-events: none;
}
.page-hero::after {
    content: ""; position: absolute;
    bottom: -60px; left: 180px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(99,102,241,.13) 0%, transparent 65%);
    pointer-events: none;
}
.page-hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid rgba(94,234,212,.22);
    border-radius: 999px;
    background: rgba(94,234,212,.07);
    color: #5eead4; font-size: 11px; font-weight: 600;
    padding: 4px 12px; margin-bottom: 10px;
}
.page-hero h1 { color: #fff; font-size: 24px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.02em; }
.page-hero p  { color: #475569; font-size: 13px; margin: 0; }
.page-hero-actions { flex: 0 0 auto; display: flex; gap: 10px; position: relative; z-index: 1; }
.page-hero-btn {
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    box-shadow: none !important;
}
.page-hero-btn:hover {
    background: rgba(255,255,255,.14) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.12) !important;
}
.page-hero-cta {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-h) 100%) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(13,148,136,.35) !important;
}
.page-hero-cta:hover {
    box-shadow: 0 6px 20px rgba(13,148,136,.45) !important;
    transform: translateY(-1px) !important;
}
.page-hero-text { position: relative; z-index: 1; }

.button, button {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; min-height: 38px; border: 0; border-radius: var(--r-sm);
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-h) 100%);
    box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 2px 5px rgba(13,148,136,.22);
    color: #fff; cursor: pointer;
    font: inherit; font-size: 13px; font-weight: 500;
    padding: 0 16px; text-decoration: none; white-space: nowrap;
    transition: background .14s, box-shadow .14s, transform .10s;
    letter-spacing: .01em;
}
.button:hover, button:hover {
    background: #14b8a6;
    box-shadow: none;
    transform: none;
}
.button:active, button:active { transform: none; box-shadow: none; }
.button:focus-visible, button:focus-visible { outline: none; }

.button.secondary {
    background: linear-gradient(135deg, #334155 0%, #2a3649 100%);
    box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 2px 5px rgba(15,23,42,.18);
}
.button.secondary:hover {
    background: linear-gradient(135deg, #3d4f68 0%, #2d3d54 100%);
    box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 6px 18px rgba(15,23,42,.24);
}
.button.light {
    background: #fff; color: var(--text);
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(15,23,42,.04);
}
.button.light:hover {
    background: var(--soft); border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(15,23,42,.07); transform: translateY(-1px);
}

.danger-button { min-height: 30px; background: var(--red-soft); color: var(--red); border: 1px solid #fecdd3; padding: 0 10px; font-size: 12px; box-shadow: none; }
.danger-button:hover { background: #ffe4e6; box-shadow: 0 2px 8px rgba(225,29,72,.14); transform: translateY(-1px); }
.danger-wide { width: 100%; background: var(--red-soft); color: var(--red); border: 1px solid #fecdd3; box-shadow: none; }
.danger-wide:hover { background: #ffe4e6; }
.inline-form { display: inline; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

form { display: grid; gap: 16px; }
label { display: grid; gap: 5px; font-weight: 500; font-size: 13px; color: #374151; }
.confirm-modal label { display: block; margin-top: 16px; }
.confirm-modal input[type="text"] { margin-top: 8px; }
.confirm-modal label strong { font-weight: 700; }
.hint { color: var(--muted); font-size: 12px; font-weight: 400; }

input[type="text"], input[type="search"], textarea {
    width: 100%; border: 1.5px solid var(--border); border-radius: var(--r-sm);
    background: #fff; font: inherit; font-size: 13px; padding: 9px 12px;
    color: var(--text); transition: border-color .14s, box-shadow .14s;
}
input[type="text"], input[type="search"] { min-height: 40px; }
input[type="text"]:focus, input[type="search"]:focus, textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13,148,136,.10);
}
input[type="file"] {
    width: 100%; border: 1.5px solid var(--border); border-radius: var(--r-sm);
    background: #fff; font: inherit; font-size: 13px; padding: 9px 12px;
    min-height: 40px; cursor: pointer;
}
select {
    width: 100%; min-height: 36px; border: 1.5px solid var(--border); border-radius: var(--r-sm);
    background: #fff; color: var(--text); font: inherit; font-size: 13px;
    padding: 0 34px 0 12px; transition: border-color .14s, box-shadow .14s;
}
select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13,148,136,.10); }
textarea { min-height: 92px; resize: vertical; }
.check-row {
    display: flex; gap: 12px; border: 1.5px solid var(--border); border-radius: var(--r-sm);
    background: var(--soft); padding: 14px; font-weight: 400; cursor: pointer;
    align-items: flex-start; transition: border-color .14s, background .14s;
}
.check-row:hover { border-color: var(--brand); background: var(--brand-soft); }
.check-row input[type="checkbox"] { margin-top: 2px; flex: 0 0 auto; accent-color: var(--brand); }

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(7, minmax(0,1fr));
    gap: 14px; margin-bottom: 1.5rem;
}
.dash-stat {
    position: relative; overflow: hidden;
    border: 1px solid var(--border); border-radius: var(--r);
    background: #fff; padding: 22px 20px 20px;
    box-shadow: var(--sh);
    transition: box-shadow .2s, transform .2s;
}
.dash-stat:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }

.dashboard-charts {
    display: grid;
    grid-template-columns: minmax(0,1.4fr) minmax(200px,.6fr);
    gap: 10px; margin-bottom: 16px;
}
.chart-card {
    border: 1px solid var(--border); border-radius: var(--r);
    background: #fff; padding: 20px; box-shadow: var(--sh);
}
.chart-card h2 { margin-bottom: 4px; font-size: 15px; }
.stack-bar {
    display: flex; height: 12px; overflow: hidden;
    border-radius: 999px; background: #f1f5f9;
    margin: 14px 0 12px; box-shadow: inset 0 1px 3px rgba(15,23,42,.06);
}
.stack-bar span { display: block; min-width: 2px; transition: width .8s cubic-bezier(.4,0,.2,1); }
.bar-valid,    .legend-valid    { background: var(--brand); }
.bar-rejected, .legend-rejected { background: var(--red); }
.bar-duplicate,.legend-duplicate{ background: var(--orange); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 12px; font-weight: 500; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 50%; }
.donut-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 16px; }
.donut {
    width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%;
    background: conic-gradient(var(--brand) calc(var(--score)*1%), #f1f5f9 0);
    position: relative; box-shadow: 0 4px 20px rgba(13,148,136,.2);
}
.donut::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #fff; }
.donut strong { position: relative; z-index: 1; font-size: 14px; font-weight: 800; color: var(--brand); }

.sheet-list { display: grid; gap: 10px; }
.sheet-card {
    display: grid; grid-template-columns: minmax(0,1fr) auto;
    gap: 24px; align-items: center;
    border: 1px solid var(--border); border-radius: var(--r);
    background: #fff; padding: 18px 22px;
    box-shadow: var(--sh);
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.sheet-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); border-color: #cbd5e1; }

.sheet-card-name { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.sheet-card-icon {
    width: 36px; height: 36px; flex: 0 0 auto;
    border-radius: 10px; background: var(--brand-soft);
    color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.sheet-card-name strong { font-weight: 600; font-size: 15px; color: var(--text); overflow-wrap: anywhere; }

.sheet-inline-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.si-stat {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 500;
    border-radius: 999px; padding: 3px 10px;
}
.si-total    { background: #f1f5f9; color: var(--sub); }
.si-valid    { background: var(--brand-soft); color: #0f4f49; }
.si-rejected { background: var(--red-soft); color: var(--red); }
.si-date     { font-size: 11px; color: var(--muted); padding: 3px 0; }

.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 16px 0; }
.stat { border: 1px solid var(--border); border-radius: var(--r); background: #fff; padding: 16px; min-height: 88px; box-shadow: var(--sh); }
.stat strong { display: block; font-size: 28px; line-height: 1; margin-bottom: 8px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.stat.clean strong  { color: var(--brand); }
.stat.reject strong { color: var(--red); }
.stat.warn strong   { color: var(--amber); }
.stat.domain strong { color: var(--purple); }

.toolbar { display: grid; grid-template-columns: minmax(230px,.65fr) minmax(0,1.35fr); gap: 14px; margin: 16px 0; }
.columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; max-height: 170px; overflow: auto; }
.columns label { display: flex; min-width: 0; gap: 8px; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 8px; background: #fff; font-weight: 400; font-size: 12px; }
.columns span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filters { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 16px 0 10px; }

.table-wrap { border: 1px solid var(--border); border-radius: var(--r); overflow: auto; background: #fff; max-height: calc(100vh - 210px); }
table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 900px; }
th, td { border-bottom: 1px solid var(--border); padding: 10px 14px; text-align: left; vertical-align: top; font-size: 13px; }
th {
    position: sticky; top: 0; z-index: 4;
    background: #f8fafc; color: var(--muted);
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .07em;
    border-bottom: 2px solid var(--border);
}
th[data-col-key] { position: sticky; }
.col-resizer { position: absolute; top: 0; right: 0; width: 6px; height: 100%; cursor: col-resize; }
.col-resizer:hover { background: rgba(13,148,136,.2); }
tr:nth-child(even) td { background: #fafbfe; }
tr:hover td { background: #f0fdfb; transition: background .08s; }

.badge { display: inline-flex; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 600; text-transform: capitalize; }
.badge.clean     { background: var(--brand-soft); color: #0f4f49; }
.badge.rejected  { background: var(--red-soft); color: var(--red); }
.badge.duplicate { background: var(--orange-soft); color: var(--orange); }
.badge.trash     { background: #f1f5f9; color: #64748b; }
.validation-pill { display: inline-flex; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 500; background: #f1f5f9; color: #64748b; }
.validation-pill.valid,.validation-pill.valid_auto_found { background: var(--brand-soft); color: #0f4f49; }
.validation-pill.duplicate { background: var(--orange-soft); color: var(--orange); }
.validation-pill.missing,.validation-pill.invalid_format,
.validation-pill.bad_domain,.validation-pill.blocked_domain { background: var(--red-soft); color: var(--red); }
.na-pill { display: inline-flex; border-radius: 999px; padding: 3px 10px; background: #f1f5f9; color: var(--muted); font-size: 11px; font-weight: 500; }

.reason-cell { text-align: center; }
.reason-tooltip {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 999px;
    background: #f1f5f9; color: #64748b; cursor: help;
    transition: background .12s, color .12s;
}
.reason-tooltip:hover { background: var(--brand-soft); color: var(--brand); }
.eye-icon { display: inline-flex; align-items: center; justify-content: center; }
.tooltip-text {
    position: absolute; left: 50%; bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px); z-index: 30;
    width: max-content; max-width: 240px;
    border-radius: 8px; background: #0f172a; color: #fff;
    font-size: 12px; line-height: 1.4; padding: 8px 10px;
    box-shadow: 0 8px 24px rgba(15,23,42,.28);
    opacity: 0; pointer-events: none; transition: opacity .14s, transform .14s;
}
.reason-tooltip:hover .tooltip-text,
.reason-tooltip:focus .tooltip-text { opacity: 1; transform: translateX(-50%) translateY(0); }

.empty { border: 2px dashed var(--border); border-radius: var(--r); background: var(--soft); padding: 36px; text-align: center; }
.empty-state { display: grid; place-items: center; gap: 8px; min-height: 260px; border: 2px dashed var(--border); border-radius: var(--r); background: var(--soft); color: var(--muted); text-align: center; }
.empty-state strong { color: var(--text); font-weight: 600; font-size: 15px; }
.muted { color: var(--muted); }
.count-pill { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; border: 1px solid var(--border); border-radius: var(--r-sm); background: #fff; color: var(--muted); font-size: 12px; padding: 0 14px; white-space: nowrap; }
.count-pill strong { color: var(--text); font-weight: 600; }

.sheet-workspace { display: grid; grid-template-columns: 272px minmax(0,1fr); gap: 16px; align-items: start; }
.sheet-control {
    position: sticky; top: 20px;
    max-height: calc(100vh - 40px); overflow-y: auto; overflow-x: hidden;
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--r);
    padding: 16px; box-shadow: var(--sh);
}
.resize-handle { position: absolute; top: 0; right: -6px; width: 10px; height: 100%; cursor: col-resize; z-index: 3; }
.resize-handle::after { content: ""; position: absolute; top: 12px; right: 4px; width: 2px; height: calc(100% - 24px); border-radius: 999px; background: transparent; }
.resize-handle:hover::after, body.is-resizing .resize-handle::after { background: var(--brand); }
body.is-resizing { cursor: col-resize; user-select: none; }
.sheet-control h1 { font-size: 17px; margin-bottom: 6px; }

.control-block { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }
.control-block.first { border-top: 0; padding-top: 0; margin-top: 0; }
.control-block > h2 { font-size: 10px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }

.ctrl-section-label {
    display: flex; align-items: center; gap: 5px;
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--muted); margin-bottom: 10px;
}

.ctrl-action-stack { display: grid; gap: 7px; }

.ctrl-action-btn {
    display: flex; align-items: center; gap: 8px;
    width: 100%; min-height: 38px; border-radius: var(--r-sm);
    padding: 0 14px; font: inherit; font-size: 13px; font-weight: 500;
    cursor: pointer; text-align: left;
    transition: background .13s, box-shadow .13s, transform .10s, border-color .13s;
}
.ctrl-validate {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-h) 100%);
    color: #fff; border: none;
    box-shadow: 0 2px 6px rgba(13,148,136,.25);
}
.ctrl-validate:hover { box-shadow: 0 4px 14px rgba(13,148,136,.38); transform: translateY(-1px); }
.ctrl-columns { background: #fff; color: var(--text); border: 1.5px solid var(--border); }
.ctrl-columns:hover { background: var(--soft); border-color: #94a3b8; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(15,23,42,.06); }
.ctrl-danger { background: var(--red-soft); color: var(--red); border: 1.5px solid #fecdd3; }
.ctrl-danger:hover { background: #ffe4e6; box-shadow: 0 2px 8px rgba(225,29,72,.14); transform: translateY(-1px); }

.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.filter-pill {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    min-height: 34px; border-radius: var(--r-sm);
    border: 1.5px solid var(--border); background: #fff;
    color: var(--muted); font-size: 12px; font-weight: 500;
    text-decoration: none;
    transition: border-color .12s, background .12s, color .12s, box-shadow .12s, transform .10s;
}
.filter-pill:hover { border-color: #94a3b8; color: var(--text); background: var(--soft); transform: translateY(-1px); box-shadow: 0 2px 6px rgba(15,23,42,.05); }
.filter-pill.fp-active { font-weight: 600; color: #fff; border-color: transparent; box-shadow: 0 2px 10px rgba(0,0,0,.16); }
.filter-pill.fp-all.fp-active,
.filter-pill.fp-clean.fp-active    { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-h) 100%); }
.filter-pill.fp-rejected.fp-active { background: linear-gradient(135deg, var(--red) 0%, #be123c 100%); }
.filter-pill.fp-duplicate.fp-active{ background: linear-gradient(135deg, var(--orange) 0%, #9a3412 100%); }
.filter-pill.fp-trash.fp-active    { background: linear-gradient(135deg, #475569 0%, #334155 100%); }
.fp-count { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 15px; border-radius: 999px; background: rgba(255,255,255,.22); font-size: 10px; font-weight: 700; padding: 0 4px; }
.filter-pill:not(.fp-active) .fp-count { background: #f1f5f9; color: var(--muted); }

.ctrl-trash-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: 2px; }
.ctrl-trash-view {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    min-height: 34px; border-radius: var(--r-sm); border: 1.5px solid var(--border);
    background: #fff; color: var(--muted); font-size: 12px; font-weight: 500;
    text-decoration: none; transition: background .12s, border-color .12s, color .12s;
}
.ctrl-trash-view:hover, .ctrl-trash-view.active { background: var(--soft); border-color: #94a3b8; color: var(--text); }
.ctrl-trash-empty {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    min-height: 34px; padding: 0 12px; border-radius: var(--r-sm);
    border: 1.5px solid #fecdd3; background: var(--red-soft);
    color: var(--red); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer;
    transition: background .12s, box-shadow .12s, transform .10s; transform: none; box-shadow: none;
}
.ctrl-trash-empty:hover { background: #ffe4e6; box-shadow: 0 2px 8px rgba(225,29,72,.14); transform: translateY(-1px); }

.export-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.export-chip {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; min-height: 56px; border-radius: var(--r-sm);
    font: inherit; font-size: 12px; font-weight: 600;
    text-decoration: none; cursor: pointer;
    transition: box-shadow .14s, transform .10s;
    border: 1.5px solid transparent;
}
.export-chip i { font-size: 17px; }
.export-chip:hover { transform: translateY(-2px); }
.export-valid { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-h) 100%); color: #fff; box-shadow: 0 2px 8px rgba(13,148,136,.25); }
.export-valid:hover { box-shadow: 0 6px 18px rgba(13,148,136,.4); }
.export-rejected { background: var(--red-soft); color: var(--red); border-color: #fecdd3; }
.export-rejected:hover { background: #ffe4e6; box-shadow: 0 4px 14px rgba(225,29,72,.18); }
.export-duplicate { background: var(--orange-soft); color: var(--orange); border-color: #fed7aa; }
.export-duplicate:hover { background: #ffedd5; box-shadow: 0 4px 14px rgba(194,65,12,.18); }

.data-panel { min-width: 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); padding: 14px; box-shadow: var(--sh); transition: opacity .14s; }
body.is-searching .data-panel { opacity: .72; }
.data-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.data-head > strong { font-size: 14px; font-weight: 600; }
.data-head-controls { display: inline-flex; align-items: center; gap: 10px; }
.search-form label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; color: var(--sub); font-weight: 500; }
.search-form input[type="search"] { min-height: 36px; width: min(34vw,360px); min-width: 220px; border-radius: var(--r-sm); border: 1.5px solid var(--border); background: #fff; padding: 0 12px; }

.modern-field label { color: var(--sub); font-size: 12px; gap: 5px; }
.field-label-row { display: inline-flex; align-items: center; gap: 6px; }
.help-popover-trigger { width: 17px; min-width: 17px; height: 17px; min-height: 17px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: #64748b; font-size: 10px; line-height: 1; padding: 0; transition: none; transform: none; box-shadow: none; }
.help-popover-trigger:hover { background: var(--soft); transform: none; box-shadow: none; }
.help-popover { display: block; max-width: 250px; border: 1px solid var(--border); border-radius: var(--r-sm); background: #fff; color: var(--sub); font-size: 12px; line-height: 1.5; padding: 10px 12px; box-shadow: var(--sh-md); }
.help-popover[hidden] { display: none; }
.plain-select, .compact-select { display: block; }
.compact-select, .popup-select { position: relative; }
.native-select-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.select-popup-trigger { min-width: 64px; min-height: 34px; justify-content: space-between; border: 1.5px solid var(--border); background: #fff; color: var(--text); padding: 0 28px 0 10px; position: relative; font-size: 13px; transition: border-color .13s; transform: none; box-shadow: none; background-image: none; }
.select-popup-trigger:hover { border-color: #94a3b8; background: #fff; transform: none; box-shadow: none; }
.email-select-trigger { width: 100%; justify-content: flex-start; min-height: 36px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-popup-trigger::after { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-65%) rotate(45deg); opacity: .5; }
.select-popup { position: absolute; top: calc(100% + 4px); right: 0; z-index: 30; min-width: 86px; border: 1px solid var(--border); border-radius: var(--r-sm); background: #fff; padding: 4px; box-shadow: var(--sh-lg); }
.email-select-popup { left: 0; right: auto; width: 100%; max-height: 260px; overflow: auto; }
.select-popup[hidden] { display: none; }
.select-popup button { width: 100%; min-height: 30px; justify-content: flex-start; border-radius: 5px; background: transparent; color: var(--text); padding: 0 8px; font-size: 13px; font-weight: 400; transition: background .1s; transform: none; box-shadow: none; background-image: none; }
.select-popup button:hover, .select-popup button[aria-selected="true"] { background: var(--brand-soft); color: var(--brand-h); transform: none; box-shadow: none; }

.docs-hero { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 20px; align-items: center; border: 1px solid var(--border); border-radius: var(--r); background: var(--panel); padding: 24px; margin-bottom: 16px; box-shadow: var(--sh); }
.docs-kicker { display: inline-flex; align-items: center; min-height: 22px; border: 1px solid var(--brand-mid); border-radius: 999px; background: var(--brand-soft); color: var(--brand-h); font-size: 11px; font-weight: 600; padding: 0 10px; margin-bottom: 10px; }
.docs-hero h2 { font-size: 20px; margin-bottom: 8px; letter-spacing: -.02em; font-weight: 700; }
.docs-flow { display: grid; gap: 5px; }
.docs-flow span { border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--soft); padding: 9px 14px; font-weight: 600; font-size: 13px; }
.docs-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 12px; }
.doc-card, .doc-panel { border: 1px solid var(--border); border-radius: var(--r); background: var(--panel); padding: 18px 20px; box-shadow: var(--sh); transition: box-shadow .2s, transform .2s; }
.doc-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.doc-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.doc-card-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 14px; flex: 0 0 auto; }
.doc-card h2, .doc-panel h2 { font-size: 14px; margin-bottom: 0; font-weight: 600; }
.doc-card p + p { margin-top: 8px; }
.doc-card ul, .docs-steps { margin: 10px 0 0; padding-left: 18px; color: var(--sub); line-height: 1.65; font-size: 13px; }
.doc-card li + li, .docs-steps li + li { margin-top: 4px; }
.doc-card strong, .doc-panel strong { color: var(--text); }
.doc-card code, .doc-panel code { border: 1px solid var(--border); border-radius: 4px; background: var(--soft); padding: 1px 6px; font-size: 12px; font-family: 'Cascadia Code','Fira Code',monospace; }

.modal { width: min(1180px,calc(100% - 32px)); border: 1px solid var(--border); border-radius: var(--r); padding: 0; box-shadow: var(--sh-lg); animation: modal-in .2s ease; }
@keyframes modal-in { from { opacity: 0; transform: scale(.97) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal::backdrop { background: rgba(10,17,30,.52); backdrop-filter: blur(4px); }
.modal form { padding: 20px; }
.modal-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.modal-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; max-height: 70vh; overflow: auto; padding: 2px; }
.modal-columns label { display: flex; min-width: 0; gap: 8px; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 9px; background: var(--soft); font-weight: 400; align-items: center; cursor: grab; font-size: 13px; transition: border-color .12s; }
.modal-columns label:hover { border-color: #94a3b8; }
.modal-columns label.dragging { opacity: .5; }
.drag-handle { color: var(--muted); font-size: 12px; }
.modal-columns input[type="text"] { flex: 1; min-width: 0; min-height: 30px; padding: 4px 8px; font-size: 13px; }
.column-edit, .column-remove { width: 24px; height: 24px; min-height: 24px; padding: 0; border: 1px solid #fecdd3; border-radius: 5px; background: var(--red-soft); color: var(--red); font-size: 14px; line-height: 1; flex: 0 0 auto; transition: background .12s; transform: none; box-shadow: none; background-image: none; }
.column-edit { border-color: var(--border); background: #fff; color: #475569; font-size: 12px; background-image: none; }
.column-edit:hover, .column-remove:hover { background: #ffe4e6; transform: none; box-shadow: none; background-image: none; }
.column-edit:hover { background: var(--soft); }
.column-option.removed { opacity: .5; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.confirm-modal { width: min(480px,calc(100% - 32px)); }
.danger-confirm { background: linear-gradient(135deg, var(--red) 0%, #be123c 100%); box-shadow: 0 2px 6px rgba(225,29,72,.25); }
.danger-confirm:hover { box-shadow: 0 4px 16px rgba(225,29,72,.38); }

.ajax-loader { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; background: rgba(10,17,30,.35); backdrop-filter: blur(3px); }
.ajax-loader[hidden] { display: none; }
.loader-panel { width: min(360px,calc(100% - 32px)); border: 1px solid var(--border); border-radius: var(--r); background: #fff; padding: 22px; box-shadow: var(--sh-lg); animation: modal-in .2s ease; }
.loader-panel strong { display: block; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.loader-bar { height: 6px; overflow: hidden; border-radius: 999px; background: #f1f5f9; }
.loader-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #14b8a6); transition: width .25s ease; }
#loaderPercent { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; text-align: right; }

@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 1000; max-width: 360px; border: 1px solid var(--brand-mid); border-radius: var(--r); background: #fff; color: var(--text); padding: 12px 16px; box-shadow: var(--sh-lg); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 10px; animation: toast-in .22s cubic-bezier(.4,0,.2,1); }
.toast::before { content: "OK"; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.toast.error { border-color: #fecdd3; color: var(--red); }
.toast.error::before { content: "X"; background: var(--red-soft); color: var(--red); }
.toast[hidden] { display: none; }
.bulk-bar { position: fixed; left: 50%; bottom: 20px; z-index: 80; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 999px; background: #fff; padding: 8px 10px 8px 16px; box-shadow: var(--sh-lg); font-size: 13px; animation: toast-in .2s ease; }
.bulk-bar[hidden] { display: none; }
.bulk-bar strong { font-weight: 600; }

.page-size-form { display: inline-flex; align-items: center; gap: 8px; }
.page-size-form label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; }
.page-size-form select { min-height: 34px; }
.table-scroll-top { overflow-x: auto; overflow-y: hidden; height: 14px; margin-bottom: 6px; border: 1px solid var(--border); border-radius: 999px; background: var(--soft); }
.table-scroll-top div { height: 1px; }
.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 14px; }

.upload-zone { position: relative; border: 2px dashed var(--border); border-radius: var(--r); background: var(--soft); padding: 48px 24px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; overflow: hidden; }
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--brand); background: var(--brand-soft); }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: none; min-height: unset; padding: 0; border-radius: 0; }
.upload-zone-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-size: 22px; }
.upload-zone strong { display: block; font-weight: 700; font-size: 16px; color: var(--text); margin-bottom: 6px; }
.upload-zone span { display: block; color: var(--muted); font-size: 13px; }
.file-selected-name { display: block; margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--brand); }

@media (max-width: 980px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; }
    .content { padding: 16px; }
    .content-narrow { width: 100%; }
    .page-head, .sheet-card, .toolbar, .sheet-workspace { display: grid; grid-template-columns: 1fr; }
    .page-hero { flex-direction: column; align-items: flex-start; }
    .sheet-control { position: static; max-height: none; }
    .data-head { display: grid; grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dashboard-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dashboard-charts { grid-template-columns: 1fr; }
    .docs-hero, .docs-grid { grid-template-columns: 1fr; }
    .columns { grid-template-columns: 1fr; }
    .data-head-controls { display: grid; grid-template-columns: 1fr; align-items: stretch; }
    .search-form input[type="search"] { width: 100%; min-width: 0; }
    .page-size-form label, .search-form label { width: 100%; }
}
@media (max-width: 560px) {
    .stats { grid-template-columns: 1fr; }
    .actions, .filters { display: grid; }
    .button, button { width: 100%; }
}

.auth-body { background: var(--bg); display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 2rem 1rem; }
.auth-wrap  { width: 100%; max-width: 420px; }
.auth-card  { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem 2rem; box-shadow: var(--sh-lg); }
.auth-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.5rem; }
.auth-brand strong { font-size: 1rem; color: var(--text); }
.auth-logo  { width: 28px; height: 28px; }
.auth-title { font-size: 1.4rem; font-weight: 700; color: var(--text); margin: 0 0 .25rem; }
.auth-subtitle { font-size: .875rem; color: var(--sub); margin: 0 0 1.25rem; }
.auth-form  { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.25rem; }
.auth-form label { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 500; color: var(--sub); }
.auth-form input { padding: .6rem .8rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .9rem; background: var(--soft); color: var(--text); transition: border .15s; }
.auth-form input:focus { outline: none; border-color: var(--brand); }
.auth-submit { margin-top: .5rem; }
.auth-switch { font-size: .82rem; color: var(--sub); text-align: center; margin-top: 1rem; }
.auth-switch a { color: var(--brand); text-decoration: none; }
.auth-plan-note { font-size: .82rem; color: var(--sub); background: var(--brand-soft); border: 1px solid var(--brand-mid); border-radius: var(--radius); padding: .5rem .75rem; }
.auth-backup-toggle { margin-top: 1.25rem; font-size: .85rem; color: var(--sub); }
.auth-backup-toggle summary { cursor: pointer; color: var(--brand); }

.plan-badge { display: inline-flex; align-items: center; padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .03em; }
.plan-badge.plan-starter  { background: var(--soft);        color: var(--sub);    border: 1px solid var(--border); }
.plan-badge.plan-pro      { background: var(--brand-soft);  color: var(--brand);  border: 1px solid var(--brand-mid); }
.plan-badge.plan-business { background: #faf5ff;             color: var(--purple); border: 1px solid #e9d5ff; }
.plan-badge.plan-owner    { background: rgba(13,148,136,.15); color: var(--brand);  border: 1px solid rgba(13,148,136,.3); }
.plan-badge.plan-free     { background: #fff7ed; color: #ea580c; border: 1px solid #fed7aa; }
.plan-badge-lg { padding: .35rem 1rem; font-size: .85rem; border-radius: 999px; font-weight: 700; }
.plan-badge-lg.plan-starter  { background: var(--soft);       color: var(--sub);    border: 1px solid var(--border); }
.plan-badge-lg.plan-pro      { background: var(--brand-soft); color: var(--brand);  border: 1px solid var(--brand-mid); }
.plan-badge-lg.plan-business { background: #faf5ff;            color: var(--purple); border: 1px solid #e9d5ff; }
.plan-badge-lg.plan-free     { background: #fff7ed;            color: #ea580c;       border: 1px solid #fed7aa; }

.side-user { padding: .6rem 1rem .5rem; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: .25rem; }
.side-user-info { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.side-user-name { font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-impersonate-bar { background: #f59e0b; color: #1c1917; padding: .5rem .75rem; font-size: .75rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.side-impersonate-bar strong { font-weight: 700; }
.side-impersonate-stop { background: #1c1917; color: #fff; border: none; border-radius: 4px; padding: .2rem .55rem; font-size: .72rem; font-weight: 600; cursor: pointer; }
.side-impersonate-stop:hover { background: #000; }
.side-logout { display: flex; align-items: center; gap: .45rem; font-size: .78rem; color: rgba(255,255,255,.4); text-decoration: none; padding: .4rem 0; transition: color .15s; }
.side-logout:hover { color: rgba(255,255,255,.8); }
.sidebar-footer { padding: .75rem 1rem 1rem; margin-top: auto; display: flex; flex-direction: column; gap: .25rem; }
.sidebar-footer span, .sidebar-footer a { font-size: .72rem; color: rgba(255,255,255,.3); text-decoration: none; }
.sidebar-footer a:hover { color: rgba(255,255,255,.6); }

.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.account-plan { grid-column: 1 / -1; }
.plan-summary { display: flex; align-items: center; gap: 1.5rem; margin: .75rem 0 1.25rem; }
.plan-details p { margin: .2rem 0; font-size: .875rem; color: var(--sub); }
.settings-form { display: flex; flex-direction: column; gap: 1rem; }
.settings-form label { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 500; color: var(--sub); }
.settings-form input { padding: .6rem .8rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .9rem; background: var(--soft); color: var(--text); }
.settings-form input:disabled { opacity: .55; cursor: not-allowed; }
.twofa-status { display: flex; align-items: flex-start; gap: .85rem; padding: .9rem; border-radius: var(--radius); }
.twofa-status.enabled  { background: var(--brand-soft); border: 1px solid var(--brand-mid); }
.twofa-status.disabled { background: var(--amber-soft); border: 1px solid #fde68a; }
.twofa-status i { font-size: 1.3rem; margin-top: .1rem; }
.twofa-status.enabled  i { color: var(--brand); }
.twofa-status.disabled i { color: var(--amber); }
.twofa-status strong { font-size: .9rem; color: var(--text); display: block; margin-bottom: .2rem; }
.twofa-status p { font-size: .82rem; color: var(--sub); margin: 0; }
@media (max-width: 700px) { .account-grid { grid-template-columns: 1fr; } }

.twofa-tabs { display: flex; gap: .5rem; margin: 1rem 0 0; }
.twofa-tab {
    flex: 1; padding: .55rem .75rem; border: 1.5px solid var(--border);
    border-radius: var(--r-sm); background: var(--soft); color: var(--sub);
    font-size: .82rem; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    transition: border-color .15s, background .15s, color .15s;
    box-shadow: none !important; transform: none !important;
}
.twofa-tab:hover { border-color: var(--brand-mid); color: var(--brand); background: var(--brand-soft); }
.twofa-tab.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.twofa-panel { padding: .85rem 0 0; }
.twofa-panel-hint { font-size: .82rem; color: var(--sub); margin: 0 0 .75rem; }
.twofa-key-meta { font-size: .75rem; color: var(--muted); margin: .6rem 0 0; display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.twofa-regen-link { color: var(--brand); text-decoration: none; font-weight: 600; background: none !important; border: none !important; box-shadow: none !important; padding: 0 !important; font-size: inherit !important; cursor: pointer; transform: none !important; }
.twofa-regen-link:hover { text-decoration: underline; }
.twofa-key-meta i { color: var(--brand); }

.qr-block { display: flex; flex-direction: column; align-items: center; margin: .5rem 0; }
.qr-image { border: none; }

.qr-manual-box {
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .85rem 1rem;
    margin: .5rem 0 1rem;
    width: 100%;
    box-sizing: border-box;
}
.qr-manual-label { font-size: .78rem; color: var(--sub); margin: 0 0 .6rem; display: flex; align-items: center; gap: .4rem; }
.qr-manual-label i { color: var(--brand); }
.qr-secret-row { display: flex; align-items: stretch; gap: .5rem; }
.qr-secret-btns { display: flex; flex-direction: column; gap: .3rem; }
.qr-secret {
    flex: 1;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: .5rem .7rem;
    font-size: .88rem;
    font-family: monospace;
    letter-spacing: .12em;
    line-height: 1.9;
    color: var(--text);
    display: block;
    white-space: pre;
}
.qr-copy-btn {
    flex-shrink: 0;
    background: none !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r-sm) !important;
    padding: .4rem .55rem !important;
    font-size: .85rem !important;
    color: var(--sub) !important;
    cursor: pointer;
    box-shadow: none !important;
    transform: none !important;
    line-height: 1 !important;
    min-height: unset !important;
    transition: color .15s, border-color .15s !important;
    text-decoration: none;
    display: flex; align-items: center; justify-content: center;
}
.qr-copy-btn:hover { color: var(--brand) !important; border-color: var(--brand) !important; }
.backup-codes-block { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius); padding: 1.1rem; margin-top: 1rem; }
.backup-codes-header { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .85rem; }
.backup-codes-header strong { display: block; font-size: .9rem; margin-bottom: .25rem; color: var(--text); }
.backup-codes-header p { font-size: .8rem; color: var(--sub); margin: 0; line-height: 1.5; }
.backup-codes-icon { font-size: 1.25rem; color: #d97706; margin-top: .1rem; flex-shrink: 0; }
.backup-codes-grid { display: grid; grid-template-columns: 1fr; gap: .3rem; margin-bottom: .75rem; }
.backup-codes-grid code { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-sm); padding: .4rem .85rem; font-size: .88rem; letter-spacing: .18em; font-family: monospace; color: var(--text); display: block; }
.backup-codes-actions { display: flex; gap: .5rem; margin: .75rem 0 .6rem; }
.backup-copy-all { font-size: .8rem !important; padding: .35rem .8rem !important; }
.backup-codes-warning { font-size: .78rem; color: #b45309; display: flex; align-items: center; gap: .35rem; margin: 0; font-weight: 600; }

.limit-alert { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.limit-alert .button { margin-left: auto; }
.sheet-usage-bar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; font-size: .82rem; color: var(--sub); }
.usage-bar { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.usage-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-h)); border-radius: 3px; transition: width .4s; }

.landing-body { background: var(--bg); font-family: 'Inter', sans-serif; }
.landing-nav { background: var(--panel); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.landing-nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.landing-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.landing-logo strong { font-size: .95rem; color: var(--text); }
.landing-nav-links { display: flex; align-items: center; gap: 1.25rem; }
.landing-nav-links a { font-size: .875rem; color: var(--sub); text-decoration: none; transition: color .15s; }
.landing-nav-links a:hover { color: var(--text); }

.landing-hero { background: linear-gradient(160deg, #0a111e 0%, #0f172a 60%, #0d3d38 100%); padding: 6rem 1.5rem 5rem; position: relative; overflow: hidden; }
.landing-hero::before { content: ''; position: absolute; top: -80px; right: -120px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(13,148,136,.18) 0%, transparent 65%); pointer-events: none; }
.landing-hero::after { content: ''; position: absolute; bottom: -60px; left: -80px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(99,102,241,.1) 0%, transparent 65%); pointer-events: none; }
.landing-hero-inner { max-width: 800px; margin: 0 auto; text-align: center; position: relative; }
.landing-hero-badge { display: inline-flex; padding: .3rem .85rem; background: rgba(13,148,136,.15); border: 1px solid rgba(13,148,136,.3); border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--brand-mid); letter-spacing: .04em; margin-bottom: 1.5rem; }
.landing-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; color: #fff; line-height: 1.15; margin: 0 0 1rem; }
.landing-hero p { font-size: 1.1rem; color: rgba(255,255,255,.65); max-width: 580px; margin: 0 auto 2rem; line-height: 1.7; }
.landing-hero-actions { display: flex; justify-content: center; gap: .85rem; flex-wrap: wrap; margin-bottom: 3rem; }
.landing-cta { padding: .75rem 1.75rem; font-size: 1rem; }
.landing-ghost { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.85); padding: .75rem 1.5rem; font-size: 1rem; }
.landing-ghost:hover { background: rgba(255,255,255,.12); }
.landing-hero-stats { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.landing-hero-stats > div { text-align: center; }
.landing-hero-stats strong { display: block; font-size: 1.15rem; font-weight: 700; color: #fff; }
.landing-hero-stats span { font-size: .8rem; color: rgba(255,255,255,.45); }

.landing-section { padding: 5rem 1.5rem; }
.landing-alt { background: var(--panel); }
.landing-inner { max-width: 1100px; margin: 0 auto; }
.landing-inner h2 { font-size: 1.9rem; font-weight: 800; color: var(--text); margin: .5rem 0 2.5rem; }
.section-label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .4rem; }
.section-sub { font-size: 1rem; color: var(--sub); margin-top: -.75rem; margin-bottom: 2.5rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.feature-icon { width: 44px; height: 44px; background: var(--brand-soft); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--brand); font-size: 1.1rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: .95rem; font-weight: 700; color: var(--text); margin: 0 0 .45rem; }
.feature-card p { font-size: .85rem; color: var(--sub); line-height: 1.6; margin: 0; }

.steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.step-card { text-align: center; padding: 1.5rem 1rem; }
.step-num { width: 40px; height: 40px; background: var(--brand); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; margin: 0 auto 1rem; }
.step-card h3 { font-size: .95rem; font-weight: 700; color: var(--text); margin: 0 0 .35rem; }
.step-card p { font-size: .85rem; color: var(--sub); margin: 0; }

.landing-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.lp-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem 1.5rem; position: relative; display: flex; flex-direction: column; }
.lp-featured { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(13,148,136,.12), var(--sh-lg); }
.lp-popular { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; padding: .22rem .8rem; border-radius: 999px; letter-spacing: .03em; white-space: nowrap; }
.lp-name { font-size: .85rem; font-weight: 600; color: var(--sub); letter-spacing: .05em; margin-bottom: .5rem; }
.lp-price { font-size: 2.5rem; font-weight: 800; color: var(--text); margin-bottom: 1.25rem; }
.lp-price span { font-size: .95rem; font-weight: 500; color: var(--sub); }
.lp-features { list-style: none; padding: 0; margin: 0 0 1.75rem; flex: 1; display: flex; flex-direction: column; gap: .55rem; }
.lp-features li { font-size: .875rem; color: var(--sub); display: flex; align-items: center; gap: .5rem; }
.lp-features i { color: var(--brand); font-size: .75rem; flex-shrink: 0; }
.lp-btn { width: 100%; text-align: center; }

.landing-faq h2 { margin-bottom: 1.5rem; }
.faq-list { max-width: 700px; display: flex; flex-direction: column; gap: .65rem; }
.faq-item { background: var(--soft); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.faq-item summary { padding: 1rem 1.25rem; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--text); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; font-weight: 400; color: var(--muted); }
.faq-item[open] summary::after { content: '-'; }
.faq-item p { padding: 0 1.25rem 1rem; font-size: .875rem; color: var(--sub); line-height: 1.65; margin: 0; }

.landing-footer { background: #0a111e; padding: 2.5rem 1.5rem; }
.landing-footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.landing-footer-brand { display: flex; align-items: center; gap: .6rem; }
.landing-footer-brand strong { color: rgba(255,255,255,.8); font-size: .9rem; }
.landing-footer-links { display: flex; gap: 1.5rem; }
.landing-footer-links a { font-size: .85rem; color: rgba(255,255,255,.45); text-decoration: none; transition: color .15s; }
.landing-footer-links a:hover { color: rgba(255,255,255,.8); }
.landing-footer-copy { font-size: .78rem; color: rgba(255,255,255,.3); margin: 0; }
.landing-footer-copy a { color: rgba(255,255,255,.45); }

@media (max-width: 900px) {
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .landing-pricing-grid { grid-template-columns: 1fr; max-width: 380px; }
}
@media (max-width: 600px) {
    .feature-grid { grid-template-columns: 1fr; }
    .landing-footer-inner { flex-direction: column; text-align: center; }
    .landing-footer-links { flex-wrap: wrap; justify-content: center; }
    .landing-nav-links .button { display: none; }
}

.admin-plan-breakdown { display: flex; gap: 1.5rem; flex-wrap: wrap; padding: .5rem 0; }
.admin-plan-item { display: flex; align-items: center; gap: .6rem; font-size: .875rem; }
.admin-plan-item strong { font-weight: 700; color: var(--text); }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.admin-table th { text-align: left; padding: .6rem .85rem; background: var(--soft); border-bottom: 2px solid var(--border); font-size: .78rem; font-weight: 600; color: var(--sub); white-space: nowrap; }
.admin-table td { padding: .65rem .85rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:hover td { background: var(--soft); }
.admin-plan-select { padding: .25rem .4rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .78rem; background: var(--panel); color: var(--text); }
.admin-actions-wrap { display: flex; flex-direction: column; gap: .3rem; }
.admin-row-form { display: inline-flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.admin-act-btn { padding: .25rem .65rem !important; font-size: .78rem !important; min-height: 30px !important; }
.admin-plan-trigger { width: 90px; font-size: .8rem !important; padding: 0 26px 0 9px !important; min-height: 30px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-plan-dropdown { min-width: 90px; max-width: 160px; font-size: .82rem; }
.admin-role-active { color: var(--brand) !important; border-color: var(--brand) !important; }
.admin-pw-input { padding: .25rem .5rem; border: 1px solid var(--border); border-radius: var(--r-sm); font-size: .78rem; width: 130px; }
.admin-pw-form { display: none; }
.admin-reset-link-row { display: flex; gap: .5rem; margin-top: .5rem; }
.admin-reset-link-input { flex: 1; padding: .35rem .6rem; border: 1px solid var(--border); border-radius: var(--r-sm); font-size: .8rem; font-family: monospace; background: var(--soft); }

.auth-split-body { background: var(--bg); min-height: 100vh; display: flex; }
.auth-split { display: flex; min-height: 100vh; width: 100%; }
.auth-split-left {
    width: 46%;
    min-width: 420px;
    background: linear-gradient(145deg, #071421 0%, #0f2f31 100%);
    color: #fff;
    padding: 3.5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.auth-split-logo {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.05rem;
}
.auth-split-logo .brand-icon { width: 34px; height: 34px; }
.auth-split-pitch { max-width: 520px; }
.auth-split-pitch h2 {
    margin: 0 0 1rem;
    font-size: clamp(2.2rem, 4vw, 4.6rem);
    line-height: .98;
    letter-spacing: 0;
    color: #fff;
}
.auth-split-pitch p {
    margin: 0 0 1.5rem;
    color: rgba(255,255,255,.78);
    font-size: 1rem;
    line-height: 1.7;
}
.auth-feature-list {
    list-style: none;
    display: grid;
    gap: .75rem;
    margin: 0;
    padding: 0;
}
.auth-feature-list li {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: rgba(255,255,255,.88);
    font-weight: 600;
}
.auth-feature-list i { color: #5eead4; }
.auth-split-plans { display: flex; flex-wrap: wrap; gap: .6rem; }
.auth-plan-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 .85rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: rgba(255,255,255,.88);
    font-size: .85rem;
    font-weight: 700;
}
.auth-split-right {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
}
.auth-form-wrap {
    width: min(100%, 440px);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--sh-lg);
}
.auth-form-header { margin-bottom: 1.4rem; }
.auth-form-header h1 {
    margin: 0 0 .45rem;
    font-size: 1.85rem;
    line-height: 1.15;
    color: var(--text);
    letter-spacing: 0;
}
.auth-form-header p { margin: 0; color: var(--sub); font-size: .92rem; }
.auth-form-modern { display: grid; gap: 1rem; }
.auth-field { display: grid; gap: .4rem; }
.auth-field label {
    color: var(--text);
    font-size: .84rem;
    font-weight: 700;
}
.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-input-wrap input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--text);
    padding: 0 3rem 0 2.55rem;
    font-size: .92rem;
    outline: none;
    box-sizing: border-box;
}
.auth-input-wrap input:focus { border-color: var(--border-strong); box-shadow: none; }
.auth-input-icon {
    position: absolute;
    left: .9rem;
    color: var(--muted);
    pointer-events: none;
}
.auth-pw-toggle {
    position: absolute;
    right: .65rem;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    color: var(--muted) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none !important;
    transform: none !important;
    padding: 0;
}
.auth-pw-toggle:hover,
.auth-pw-toggle:focus,
.auth-pw-toggle:active {
    background: transparent !important;
    color: var(--text) !important;
    box-shadow: none !important;
    transform: none !important;
    outline: none !important;
}
.auth-btn-primary,
.auth-btn-secondary {
    width: 100%;
    min-height: 44px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    font-weight: 800;
    text-decoration: none;
}
.auth-btn-primary {
    border: 0;
    background: var(--brand) !important;
    color: #fff !important;
    cursor: pointer;
    box-shadow: none !important;
}
.auth-form-modern .auth-btn-primary:hover,
.auth-btn-primary:hover {
    background: #14b8a6 !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
    outline: none !important;
}
.auth-form-modern .auth-btn-primary:focus,
.auth-form-modern .auth-btn-primary:active,
.auth-btn-primary:focus,
.auth-btn-primary:active {
    background: var(--brand) !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
    outline: none !important;
}
.auth-btn-secondary {
    border: 1px solid var(--border);
    background: var(--soft);
    color: var(--text);
    box-shadow: none !important;
    transform: none !important;
}
.auth-btn-secondary:hover,
.auth-btn-secondary:focus,
.auth-btn-secondary:active {
    border-color: var(--brand-mid);
    color: var(--brand) !important;
    background: var(--brand-soft) !important;
    box-shadow: none !important;
    transform: none !important;
    outline: none !important;
}
.auth-input-wrap input:-webkit-autofill,
.auth-input-wrap input:-webkit-autofill:hover,
.auth-input-wrap input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: var(--text) !important;
    border-color: var(--border) !important;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.1rem 0 .75rem;
    color: var(--sub);
    font-size: .84rem;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}
.auth-back { margin: 1rem 0 0; text-align: center; font-size: .86rem; }
.auth-back a { color: var(--brand); text-decoration: none; font-weight: 700; }
.auth-back a:hover { text-decoration: underline; }
@media (max-width: 900px) {
    .auth-split { flex-direction: column; }
    .auth-split-left {
        width: 100%;
        min-width: 0;
        min-height: auto;
        padding: 2rem 1.25rem;
        gap: 2rem;
    }
    .auth-split-pitch h2 { font-size: 2.2rem; }
    .auth-split-right { padding: 1.25rem; }
    .auth-form-wrap { padding: 1.25rem; }
}

.pricing-editor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 900px) { .pricing-editor-grid { grid-template-columns: 1fr; } }

.pe-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
}
.pe-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.pe-fields {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}
.pe-row { display: flex; flex-direction: column; gap: .85rem; }
.pe-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 500px) { .pe-row-2 { grid-template-columns: 1fr; } }

.pe-fields label {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--sub);
}
.pe-fields label input[type="text"],
.pe-fields label input[type="number"] {
    padding: .5rem .7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    font-size: .88rem;
    transition: border-color .15s;
    width: 100%;
    box-sizing: border-box;
}
.pe-fields label input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(13,148,136,.07);
}

.pe-price-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.pe-dollar {
    position: absolute;
    left: .7rem;
    color: var(--muted);
    font-size: .88rem;
    pointer-events: none;
}
.pe-price-wrap input { padding-left: 1.5rem !important; }

.pe-features-label {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--sub);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: .25rem;
}
.pe-features-label .muted { font-weight: 400; text-transform: none; letter-spacing: 0; }

.pe-feature-row {
    display: flex;
    align-items: center;
    gap: .6rem;
}
.pe-feat-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    background: var(--brand-bg);
    color: var(--brand);
    font-size: .72rem;
    font-weight: 700;
    flex-shrink: 0;
}
.pe-feature-row input {
    flex: 1;
    padding: .45rem .65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    font-size: .85rem;
    transition: border-color .15s;
    box-sizing: border-box;
}
.pe-feature-row input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(13,148,136,.07);
}

.pe-save-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0 .5rem;
    border-top: 1px solid var(--border);
}

.settings-form { display: flex; flex-direction: column; gap: 1.25rem; }

.settings-section {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--sh);
    overflow: hidden;
}
.settings-section-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.settings-section-head h2 { margin: 0; font-size: .95rem; font-weight: 700; }
.settings-section-head p  { margin: .2rem 0 0; font-size: .8rem; }

.settings-section-icon {
    width: 2.2rem; height: 2.2rem;
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-h) 100%);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.settings-section-icon-orange { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }
.settings-section-icon-blue   { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.settings-section-icon-green  { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); }

.settings-fields {
    padding: 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: .9rem;
}
.settings-fields label {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--sub);
}
.settings-fields label input,
.settings-fields label textarea {
    padding: .55rem .75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius, var(--r-sm));
    background: var(--bg);
    color: var(--text);
    font-size: .88rem;
    font-family: inherit;
    transition: border-color .15s;
    width: 100%;
    box-sizing: border-box;
}
.settings-fields label input:focus,
.settings-fields label textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(13,148,136,.07);
}

.settings-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.settings-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .75rem; }
@media (max-width: 760px) { .settings-row-2, .settings-row-3 { grid-template-columns: 1fr; } }

.settings-input-wrap { position: relative; display: flex; align-items: center; }
.settings-input-wrap input { padding-right: 2.5rem !important; }
.settings-secret .settings-eye {
    position: absolute; right: .6rem;
    background: none; border: none; box-shadow: none;
    color: var(--muted); cursor: pointer; padding: .25rem;
    font-size: .85rem; width: auto;
    transition: color .15s;
}
.settings-secret .settings-eye:hover { color: var(--text); }

.settings-hint {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .8rem;
    color: var(--sub);
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: .65rem .85rem;
    line-height: 1.5;
}
.settings-hint i { color: var(--brand); margin-top: .1rem; flex-shrink: 0; }
.settings-hint a { color: var(--brand); }
.settings-hint code {
    background: var(--border);
    border-radius: 4px;
    padding: .1em .35em;
    font-size: .85em;
}

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.settings-col  { display: flex; flex-direction: column; gap: 1.25rem; }
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }

.settings-save-bar {
    padding: .25rem 0 .5rem;
}

.contact-hero {
    padding: 4rem 1.5rem 2.5rem;
    text-align: center;
}
.contact-inner {
    max-width: 640px;
    margin: 0 auto;
}
.contact-hero h1 { font-size: 2.2rem; font-weight: 800; margin: .5rem 0; letter-spacing: -.03em; }
.contact-hero p  { color: var(--sub); font-size: 1rem; margin: 0; }

.contact-body { padding: 0 1.5rem 5rem; }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 2rem;
    box-shadow: var(--sh);
}
.contact-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 560px) { .contact-row-2 { grid-template-columns: 1fr; } }

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--sub);
}
.contact-form input,
.contact-form textarea {
    padding: .6rem .8rem;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--bg);
    color: var(--text);
    font-size: .9rem;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    transition: border-color .15s;
    resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(13,148,136,.07);
}
.contact-submit { align-self: flex-start; }

.contact-success {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--sh);
}
.contact-success-icon {
    font-size: 2.5rem;
    color: var(--brand);
    margin-bottom: .75rem;
}
.contact-success h2 { margin: 0 0 .5rem; font-size: 1.4rem; }
.contact-success p  { color: var(--sub); margin: 0 0 1.5rem; }

.acct-identity-card {
    display: flex; align-items: center; gap: 1rem;
    background: var(--panel); border: 1px solid var(--border);
    border-radius: var(--r); padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem; box-shadow: var(--sh);
}
.acct-avatar {
    width: 3rem; height: 3rem; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-h) 100%);
    color: #fff; font-size: 1.2rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.acct-identity-info { flex: 1; min-width: 0; }
.acct-identity-name  { font-size: .95rem; font-weight: 700; color: var(--text); }
.acct-identity-email { font-size: .82rem; color: var(--muted); margin-top: .1rem; }
.acct-identity-badges { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.acct-2fa-chip {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .72rem; font-weight: 700; padding: .2rem .65rem;
    border-radius: 999px; background: #ecfdf8; color: #0d9488;
    border: 1px solid rgba(13,148,136,.2);
}

.acct-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start;
}
@media (max-width: 820px) { .acct-grid { grid-template-columns: 1fr; } }
.acct-col { display: flex; flex-direction: column; gap: 1.25rem; }

.acct-panel { margin-bottom: 0 !important; }
.acct-panel-head {
    display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 1.35rem;
    padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.acct-panel-head h2 { margin: 0; font-size: .95rem; font-weight: 700; }
.acct-panel-head p  { margin: .15rem 0 0; font-size: .8rem; color: var(--sub); }
.acct-panel-icon {
    width: 2.2rem; height: 2.2rem; border-radius: var(--r-sm); flex-shrink: 0;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-h) 100%);
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.acct-panel-icon-blue   { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.acct-panel-icon-purple { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.acct-panel-icon-green  { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); }
.acct-panel-icon-amber  { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

.acct-form { display: flex; flex-direction: column; gap: .9rem; }
.acct-name-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 500px) { .acct-name-row { grid-template-columns: 1fr; } }
.acct-field { display: flex; flex-direction: column; gap: .35rem; }
.acct-field label { font-size: .8rem; font-weight: 600; color: var(--sub); }
.acct-field input {
    padding: .6rem .8rem; border: 1px solid var(--border); border-radius: var(--r-sm);
    background: var(--bg); color: var(--text); font-size: .9rem;
    transition: border-color .15s; width: 100%; box-sizing: border-box;
}
.acct-field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13,148,136,.07); }
.acct-disabled { opacity: .6; cursor: not-allowed; }
.acct-field-hint { font-size: .74rem; color: var(--muted); }
.acct-pw-wrap { position: relative; display: flex; align-items: center; }
.acct-pw-wrap input { padding-right: 2.5rem; }
.acct-eye {
    position: absolute !important; right: .6rem !important;
    background: none !important; border: none !important; box-shadow: none !important;
    color: var(--muted) !important; cursor: pointer !important;
    padding: .25rem !important; font-size: .85rem !important; width: auto !important;
    min-height: unset !important; min-width: unset !important;
    transform: none !important; transition: color .15s !important;
    display: flex !important; align-items: center !important;
}
.acct-eye:hover { color: var(--text) !important; background: none !important; box-shadow: none !important; transform: none !important; }
.acct-save-btn { width: 100%; justify-content: center; margin-top: .25rem; }

.acct-plan-row {
    display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.acct-plan-price { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.acct-plan-price span { font-size: .85rem; font-weight: 500; color: var(--sub); }
.acct-plan-renew { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: .3rem; }
.acct-usage { margin-bottom: 1.1rem; }
.acct-usage-label { display: flex; justify-content: space-between; font-size: .8rem; color: var(--sub); margin-bottom: .4rem; }
.acct-usage-bar { height: 6px; background: var(--border); border-radius: 3px; }
.acct-usage-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-h)); border-radius: 3px; transition: width .4s; }
.acct-billing-btn { width: 100%; justify-content: center; }

.acct-2fa-status {
    display: flex; align-items: flex-start; gap: .75rem;
    padding: .9rem 1rem; border-radius: var(--r-sm); font-size: .875rem;
}
.acct-2fa-status > i { font-size: 1.1rem; margin-top: .1rem; flex-shrink: 0; }
.acct-2fa-status div { display: flex; flex-direction: column; gap: .15rem; }
.acct-2fa-status strong { font-size: .875rem; font-weight: 700; }
.acct-2fa-status span { font-size: .8rem; color: var(--sub); }
.acct-2fa-on  { background: #ecfdf8; border: 1px solid rgba(13,148,136,.2); }
.acct-2fa-on > i { color: #0d9488; }
.acct-2fa-on strong { color: #065f46; }
.acct-2fa-off { background: #fffbeb; border: 1px solid rgba(217,119,6,.2); }
.acct-2fa-off > i { color: #d97706; }
.acct-2fa-off strong { color: #92400e; }

.lp2-body { background: #fff; color: #0f172a; font-family: 'Inter', system-ui, sans-serif; }
.lp2-container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }

.lp2-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10,17,30,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: box-shadow .2s;
}
.lp2-nav-scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.35); }
.lp2-nav-inner {
    max-width: 1160px; margin: 0 auto; padding: 0 1.5rem;
    height: 64px; display: flex; align-items: center; gap: 2rem;
}
.lp2-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex-shrink: 0; }
.lp2-logo strong { font-size: .95rem; font-weight: 700; color: #fff; }
.lp2-logo-icon { width: 28px; height: 28px; }
.lp2-nav-links { display: flex; align-items: center; gap: 1.5rem; flex: 1; }
.lp2-nav-links a { font-size: .875rem; color: rgba(255,255,255,.55); text-decoration: none; transition: color .15s; }
.lp2-nav-links a:hover { color: #fff; }
.lp2-nav-cta { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.lp2-btn-ghost { font-size: .875rem; color: rgba(255,255,255,.65); text-decoration: none; transition: color .15s; padding: .4rem .75rem; }
.lp2-btn-ghost:hover { color: #fff; }
.lp2-btn-primary {
    display: inline-flex; align-items: center; gap: .45rem;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #fff; text-decoration: none; border: none; cursor: pointer;
    font-size: .875rem; font-weight: 600; padding: .55rem 1.1rem;
    border-radius: 8px; transition: opacity .15s; white-space: nowrap;
}
.lp2-btn-primary:hover { opacity: .88; }
.lp2-btn-lg { font-size: .95rem; padding: .75rem 1.5rem; }
.lp2-btn-outline {
    display: inline-flex; align-items: center; gap: .45rem;
    border: 1.5px solid var(--border); color: var(--text);
    background: transparent; text-decoration: none; cursor: pointer;
    font-size: .875rem; font-weight: 600; padding: .55rem 1.1rem;
    border-radius: 8px; transition: border-color .15s, background .15s;
}
.lp2-btn-outline:hover { border-color: var(--brand); background: var(--brand-soft); }
.lp2-btn-outline.lp2-btn-lg { font-size: .95rem; padding: .75rem 1.5rem; }
.lp2-btn-outline-light {
    display: inline-flex; align-items: center; gap: .45rem;
    border: 1.5px solid rgba(255,255,255,.25); color: rgba(255,255,255,.85);
    background: transparent; text-decoration: none; cursor: pointer;
    font-size: .875rem; font-weight: 600; padding: .55rem 1.1rem;
    border-radius: 8px; transition: border-color .15s, background .15s;
}
.lp2-btn-outline-light:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.07); }
.lp2-btn-outline-light.lp2-btn-lg { font-size: .95rem; padding: .75rem 1.5rem; }
.lp2-hamburger { display: none; background: none; border: none; color: rgba(255,255,255,.7); font-size: 1.2rem; cursor: pointer; padding: .4rem; }
.lp2-mobile-menu { display: none; flex-direction: column; gap: .1rem; padding: .75rem 1.5rem 1rem; border-top: 1px solid rgba(255,255,255,.06); background: rgba(10,17,30,.97); }
.lp2-mobile-menu.open { display: flex; }
.lp2-mobile-menu a { font-size: .9rem; color: rgba(255,255,255,.65); text-decoration: none; padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.lp2-mobile-menu a:last-child { border-bottom: none; margin-top: .5rem; }

.lp2-hero {
    background: linear-gradient(160deg, #060d18 0%, #0a111e 55%, #0c2e2a 100%);
    padding: 7rem 1.5rem 6rem; position: relative; overflow: hidden;
}
.lp2-hero-glow {
    position: absolute; border-radius: 50%; pointer-events: none;
    filter: blur(80px); opacity: .45;
}
.lp2-hero-glow-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(13,148,136,.25) 0%, transparent 70%); top: -150px; right: -100px; }
.lp2-hero-glow-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(99,102,241,.15) 0%, transparent 70%); bottom: -100px; left: -80px; }
.lp2-hero-inner { max-width: 780px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.lp2-hero-badge {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .35rem 1rem; border-radius: 999px;
    background: rgba(13,148,136,.12); border: 1px solid rgba(13,148,136,.28);
    color: #5eead4; font-size: .78rem; font-weight: 600; letter-spacing: .04em;
    margin-bottom: 1.75rem;
}
.lp2-hero-h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem); font-weight: 800;
    color: #fff; line-height: 1.12; margin: 0 0 1.25rem;
    letter-spacing: -.03em;
}
.lp2-hero-accent { color: #2dd4bf; }
.lp2-hero-sub {
    font-size: 1.1rem; color: rgba(255,255,255,.6); line-height: 1.75;
    max-width: 600px; margin: 0 auto 2.5rem;
}
.lp2-hero-sub strong { color: rgba(255,255,255,.85); }
.lp2-hero-actions { display: flex; justify-content: center; gap: .85rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.lp2-hero-proof {
    display: inline-flex; align-items: center; gap: 2rem;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px; padding: .9rem 2rem; flex-wrap: wrap; justify-content: center;
}
.lp2-proof-item { text-align: center; }
.lp2-proof-item strong { display: block; font-size: 1.15rem; font-weight: 800; color: #fff; }
.lp2-proof-item span { font-size: .72rem; color: rgba(255,255,255,.4); }
.lp2-proof-sep { width: 1px; height: 28px; background: rgba(255,255,255,.1); }

.lp2-trusted { background: #f8fafc; border-bottom: 1px solid var(--border); padding: 1.5rem 1.5rem; }
.lp2-trusted-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.lp2-trusted-label { font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.lp2-trusted-logos { display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; justify-content: center; }
.lp2-trusted-logos span { font-size: .85rem; font-weight: 700; color: #94a3b8; letter-spacing: .02em; }

.lp2-section { padding: 5.5rem 1.5rem; }
.lp2-alt { background: #f8fafc; }
.lp2-section-head { text-align: center; max-width: 620px; margin: 0 auto 3.5rem; }
.lp2-section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; color: var(--text); margin: .5rem 0 .75rem; letter-spacing: -.025em; }
.lp2-section-head p { font-size: .95rem; color: var(--sub); line-height: 1.7; margin: 0; }
.lp2-pill { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: .25rem .85rem; margin-bottom: .5rem; }
.lp2-pill-red { color: var(--red); background: var(--red-soft); }
.lp2-pill-teal { color: var(--brand); background: var(--brand-soft); }

.lp2-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.lp2-why-left h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--text); margin: .5rem 0 .85rem; letter-spacing: -.025em; }
.lp2-why-left p { font-size: .95rem; color: var(--sub); line-height: 1.7; }
.lp2-benefit-list { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .6rem; }
.lp2-benefit-list li { display: flex; align-items: center; gap: .7rem; font-size: .9rem; color: var(--text); font-weight: 500; }
.lp2-benefit-list i { color: var(--brand); font-size: .85rem; flex-shrink: 0; }
.lp2-why-caption { font-size: .82rem; color: var(--muted); font-style: italic; margin: 1rem 0 0; }

.lp2-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.lp2-feat-card {
    background: var(--panel); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.75rem 1.5rem;
    transition: box-shadow .2s, transform .2s;
}
.lp2-feat-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.lp2-feat-icon {
    width: 46px; height: 46px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; margin-bottom: 1.1rem;
}
.lp2-feat-icon-teal   { background: #ecfdf8; color: #0d9488; }
.lp2-feat-icon-blue   { background: #eff6ff; color: #2563eb; }
.lp2-feat-icon-purple { background: #f5f3ff; color: #7c3aed; }
.lp2-feat-icon-orange { background: #fff7ed; color: #f97316; }
.lp2-feat-card h3 { font-size: .95rem; font-weight: 700; color: var(--text); margin: 0 0 .5rem; }
.lp2-feat-card p  { font-size: .85rem; color: var(--sub); line-height: 1.65; margin: 0; }

.lp2-usecase-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .85rem; }
.lp2-usecase-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .65rem; padding: 1.5rem 1rem; text-align: center;
    background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
    transition: border-color .15s, box-shadow .15s;
}
.lp2-usecase-card:hover { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13,148,136,.07); }
.lp2-usecase-card i { font-size: 1.4rem; color: var(--brand); }
.lp2-usecase-card span { font-size: .82rem; font-weight: 600; color: var(--sub); line-height: 1.4; }

.lp2-steps { display: flex; align-items: flex-start; gap: 0; }
.lp2-step {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 1rem;
}
.lp2-step-num {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-h) 100%);
    color: #fff; font-size: 1.15rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; box-shadow: 0 4px 12px rgba(13,148,136,.3);
}
.lp2-step-body h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin: 0 0 .4rem; }
.lp2-step-body p  { font-size: .875rem; color: var(--sub); line-height: 1.65; margin: 0; max-width: 240px; }
.lp2-step-arrow { display: flex; align-items: center; padding: 0 .5rem; margin-top: 1.4rem; color: var(--muted); font-size: .85rem; }

.lp2-pain { background: #0a111e; }
.lp2-pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.lp2-pain-left h2, .lp2-pain-right h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 800; color: #fff; margin: .5rem 0 .75rem; letter-spacing: -.02em; }
.lp2-pain-left p, .lp2-pain-right p { font-size: .9rem; color: rgba(255,255,255,.5); line-height: 1.7; }
.lp2-pain-items, .lp2-fix-items { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.25rem; }
.lp2-pain-item, .lp2-fix-item { display: flex; align-items: center; gap: .7rem; font-size: .875rem; font-weight: 500; }
.lp2-pain-item i { color: #f87171; flex-shrink: 0; }
.lp2-pain-item span { color: rgba(255,255,255,.7); }
.lp2-fix-item i { color: #34d399; flex-shrink: 0; }
.lp2-fix-item span { color: rgba(255,255,255,.75); }
.lp2-pain .lp2-pill-red { background: rgba(239,68,68,.12); color: #f87171; }
.lp2-pain .lp2-pill-teal { background: rgba(13,148,136,.15); color: #2dd4bf; }

.lp2-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.lp2-price-card {
    background: var(--panel); border: 1px solid var(--border);
    border-radius: 16px; padding: 2rem 1.75rem;
    display: flex; flex-direction: column; position: relative;
}
.lp2-price-featured {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(13,148,136,.15), var(--sh-lg);
}
.lp2-price-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-h) 100%);
    color: #fff; font-size: .72rem; font-weight: 700;
    padding: .28rem 1rem; border-radius: 999px; white-space: nowrap; letter-spacing: .03em;
}
.lp2-price-head { margin-bottom: 1.5rem; }
.lp2-price-name { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--sub); margin-bottom: .75rem; }
.lp2-price-amount { display: flex; align-items: baseline; gap: .1rem; margin-bottom: .5rem; }
.lp2-price-dollar { font-size: 1.4rem; font-weight: 700; color: var(--text); }
.lp2-price-amount { font-size: 2.8rem; font-weight: 800; color: var(--text); letter-spacing: -.04em; }
.lp2-price-mo { font-size: .9rem; font-weight: 500; color: var(--sub); margin-left: .1rem; }
.lp2-price-desc { font-size: .8rem; color: var(--sub); margin: .35rem 0 0; line-height: 1.5; }
.lp2-price-features { list-style: none; padding: 0; margin: 0 0 2rem; flex: 1; display: flex; flex-direction: column; gap: .55rem; }
.lp2-price-features li { font-size: .875rem; color: var(--sub); display: flex; align-items: center; gap: .5rem; }
.lp2-price-features i { color: var(--brand); font-size: .75rem; flex-shrink: 0; }
.lp2-price-btn { width: 100%; text-align: center; justify-content: center; }

.lp2-cta-banner {
    background: linear-gradient(135deg, #0a111e 0%, #0c2e2a 100%);
    padding: 5rem 1.5rem; text-align: center; position: relative; overflow: hidden;
}
.lp2-cta-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 600px; height: 300px; pointer-events: none;
    background: radial-gradient(ellipse, rgba(13,148,136,.2) 0%, transparent 70%);
}
.lp2-cta-inner { position: relative; z-index: 1; }
.lp2-cta-banner h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: #fff; margin: 0 0 .85rem; letter-spacing: -.03em; }
.lp2-cta-banner p { font-size: 1rem; color: rgba(255,255,255,.6); margin: 0 0 2.5rem; }
.lp2-cta-actions { display: flex; justify-content: center; gap: .85rem; flex-wrap: wrap; }

.lp2-faq-wrap { max-width: 720px; }
.lp2-faq-list { display: flex; flex-direction: column; gap: .6rem; }
.lp2-faq-item {
    background: var(--panel); border: 1px solid var(--border);
    border-radius: 10px; overflow: hidden;
    transition: border-color .15s;
}
.lp2-faq-item[open] { border-color: var(--brand); }
.lp2-faq-item summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem; cursor: pointer; list-style: none;
    font-size: .9rem; font-weight: 600; color: var(--text); gap: 1rem;
}
.lp2-faq-item summary i { color: var(--muted); font-size: .75rem; flex-shrink: 0; transition: transform .2s; }
.lp2-faq-item[open] summary i { transform: rotate(180deg); color: var(--brand); }
.lp2-faq-item p { padding: 0 1.25rem 1rem; font-size: .875rem; color: var(--sub); line-height: 1.7; margin: 0; }

.lp2-footer { background: #060d18; padding: 4rem 1.5rem 0; }
.lp2-footer-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 4rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.lp2-footer-brand .lp2-logo { margin-bottom: 1rem; }
.lp2-footer-brand p { font-size: .85rem; color: rgba(255,255,255,.4); line-height: 1.65; max-width: 320px; }
.lp2-footer-links { display: flex; gap: 3rem; }
.lp2-footer-col { display: flex; flex-direction: column; gap: .6rem; }
.lp2-footer-col h4 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.35); margin: 0 0 .35rem; }
.lp2-footer-col a { font-size: .875rem; color: rgba(255,255,255,.5); text-decoration: none; transition: color .15s; }
.lp2-footer-col a:hover { color: rgba(255,255,255,.85); }
.lp2-footer-bottom { padding: 1.25rem 1.5rem; }
.lp2-footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; }
.lp2-footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.25); margin: 0; }
.lp2-footer-bottom a { color: rgba(255,255,255,.35); }

@media (max-width: 1024px) {
    .lp2-features-grid { grid-template-columns: repeat(2, 1fr); }
    .lp2-usecase-grid  { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 860px) {
    .lp2-nav-links { display: none; }
    .lp2-hamburger { display: flex; }
    .lp2-why-grid, .lp2-pain-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .lp2-steps { flex-direction: column; align-items: center; }
    .lp2-step-arrow { transform: rotate(90deg); margin: .25rem 0; }
    .lp2-footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 680px) {
    .lp2-features-grid { grid-template-columns: 1fr; }
    .lp2-usecase-grid  { grid-template-columns: repeat(2, 1fr); }
    .lp2-pricing-grid  { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
    .lp2-hero { padding: 5rem 1.25rem 4rem; }
    .lp2-proof-sep { display: none; }
    .lp2-footer-links { flex-direction: column; gap: 1.5rem; }
}

/* Repair: core layout/sidebar/dashboard classes */
.brand{margin-bottom:20px;padding:12px;border-radius:var(--r-sm);background:rgba(13,148,136,.08);border:1px solid rgba(13,148,136,.14)}
.brand-row{display:flex;align-items:center;gap:10px}.brand-icon{width:32px;height:32px;border-radius:8px;flex:0 0 auto}.brand strong{display:block;color:#fff;font-size:15px;line-height:1.15}.brand span{display:block;color:var(--sb-text);font-size:11px;margin-top:3px}
.side-title{font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:700;color:rgba(148,163,184,.38);margin:10px 4px 8px}.side-section{margin-top:16px}.side-empty{font-size:12px;color:rgba(148,163,184,.35);margin:0 4px}.side-nav{display:grid;gap:6px}.side-nav a{display:flex;align-items:center;gap:10px;min-height:40px;padding:0 10px;border-radius:var(--r-sm);color:#7f93b8;text-decoration:none;font-size:14px;font-weight:500;border:1px solid transparent}.side-nav a:hover{background:rgba(255,255,255,.04);color:#dbeafe}.side-nav a.active{background:rgba(13,148,136,.16);border-color:rgba(45,212,191,.28);color:#fff;box-shadow:inset 3px 0 0 #2dd4bf}.nav-icon{width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;background:rgba(148,163,184,.10);color:#64748b;flex:0 0 auto}.side-nav a.active .nav-icon{background:rgba(45,212,191,.18);color:#5eead4}.nav-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:22px}.page-head h1{font-size:24px;line-height:1.15;margin:0 0 6px;font-weight:800;color:var(--text);letter-spacing:-.02em}.page-head p{margin:0;color:var(--sub);font-size:13px}.nav{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.db-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1rem;margin-bottom:1.25rem}.db-kpi{background:var(--panel);border:1px solid var(--border);border-radius:var(--r);padding:1.1rem 1.2rem;display:flex;align-items:center;gap:1rem;min-width:0;box-shadow:var(--sh)}.db-kpi-brand{background:linear-gradient(135deg,var(--brand) 0%,var(--brand-h) 100%);border-color:transparent;color:#fff}.db-kpi-brand .db-kpi-label,.db-kpi-brand .db-kpi-sub{color:rgba(255,255,255,.78)}.db-kpi-brand .db-kpi-value{color:#fff}.db-kpi-warn{border-color:#fecdd3;background:var(--red-soft)}.db-kpi-warn .db-kpi-value{color:var(--red)}.db-kpi-icon{width:2.6rem;height:2.6rem;border-radius:var(--r-sm);background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;font-size:1rem;flex:0 0 auto}.db-kpi:not(.db-kpi-brand) .db-kpi-icon{background:var(--brand-soft);color:var(--brand)}.db-kpi-icon-blue{background:#eff6ff!important;color:var(--blue)!important}.db-kpi-icon-purple{background:#f5f3ff!important;color:var(--purple)!important}.db-kpi-icon-green{background:#f0fdf4!important;color:#16a34a!important}.db-kpi-icon-red{background:var(--red-soft)!important;color:var(--red)!important}.db-kpi-body{display:flex;flex-direction:column;gap:.1rem;min-width:0}.db-kpi-label{font-size:.75rem;font-weight:700;color:var(--sub);text-transform:uppercase;letter-spacing:.04em}.db-kpi-value{font-size:1.45rem;font-weight:800;color:var(--text);line-height:1.15}.db-kpi-sub{font-size:.75rem;color:var(--muted)}
.db-charts-row{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:1rem;margin-bottom:1.25rem}.db-chart-card{background:var(--panel);border:1px solid var(--border);border-radius:var(--r);padding:1.25rem 1.35rem;box-shadow:var(--sh);min-width:0}.db-chart-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.db-chart-head h3{margin:0 0 .25rem;font-size:1rem}.db-chart-wrap{height:300px;position:relative}.db-donut-wrap{height:210px;display:grid;place-items:center}.db-chart-legend{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;font-size:.78rem;color:var(--sub)}.db-chart-legend i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:.35rem}.db-plan-legend{display:grid;gap:.45rem;border-top:1px solid var(--border);padding-top:.85rem}.db-plan-leg-row{display:flex;align-items:center;gap:.5rem}.db-plan-leg-cnt{margin-left:auto;font-weight:800;color:var(--text)}.db-bottom-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.db-panel-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.db-panel-head h3{margin:0;font-size:1rem}.db-panel-more{color:var(--brand);font-size:.82rem;text-decoration:none}.db-sub-list{display:grid;gap:.75rem}.db-sub-row{display:flex;align-items:center;gap:.75rem}.db-sub-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand);font-weight:800}.db-sub-avatar-blue{background:#eff6ff;color:var(--blue)}.db-sub-info{display:grid;min-width:0}.db-sub-info strong,.db-sub-info span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.db-sub-meta{margin-left:auto;display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;justify-content:flex-end}.db-joined{font-size:.75rem}
@media(max-width:1200px){.db-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.db-charts-row,.db-bottom-row{grid-template-columns:1fr}}@media(max-width:560px){.db-kpi-grid{grid-template-columns:1fr}.page-head{display:grid}.db-chart-head{display:grid}.db-sub-row{align-items:flex-start}}
/* Repair: shared owner/admin surfaces */
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.35rem}.page-head h1{margin:0 0 .25rem;font-size:1.55rem;line-height:1.2;font-weight:800;color:var(--text)}.page-head p{margin:0;color:var(--sub)}.nav{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center}.dashboard-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:1rem;margin:1.25rem 0 1.5rem}.dash-stat{position:relative;overflow:hidden;background:var(--panel);border:1px solid var(--border);border-radius:var(--r);padding:1rem 1.15rem;min-height:92px;box-shadow:var(--sh);display:flex;flex-direction:column;justify-content:center}.dash-stat.clean{background:linear-gradient(135deg,var(--brand) 0%,var(--brand-h) 100%);border-color:transparent;color:#fff}.dash-stat.clean span,.dash-stat.clean small{color:rgba(255,255,255,.8)}.dash-stat.clean strong{color:#fff}.dash-stat span{display:block;color:var(--muted);font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;margin-bottom:.4rem}.dash-stat strong{display:block;color:var(--text);font-size:1.8rem;line-height:1.05;font-weight:850}.dash-stat small{display:block;color:var(--muted);font-size:.78rem;margin-top:.25rem}.stat-bg-icon{position:absolute;right:.9rem;bottom:-.55rem;font-size:3.6rem;line-height:1;color:currentColor;opacity:.08;pointer-events:none}.panel,.card,.settings-card{background:var(--panel);border:1px solid var(--border);border-radius:var(--r);box-shadow:var(--sh)}.panel{padding:1.25rem;margin-bottom:1.25rem}.admin-table-wrap,.table-wrap{background:var(--panel);border:1px solid var(--border);border-radius:var(--r);box-shadow:var(--sh);overflow:auto;margin-top:1rem}.admin-table,.data-table{width:100%;border-collapse:separate;border-spacing:0;font-size:.88rem}.admin-table th,.admin-table td,.data-table th,.data-table td{padding:.85rem 1rem;border-bottom:1px solid var(--border);text-align:left;vertical-align:middle}.admin-table th,.data-table th{background:var(--soft);color:var(--sub);font-size:.74rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.admin-table tr:last-child td,.data-table tr:last-child td{border-bottom:0}.admin-plan-breakdown,.plan-breakdown{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin-top:1rem}.admin-plan-item,.plan-breakdown-item{display:flex;align-items:center;gap:.6rem;background:var(--soft);border:1px solid var(--border);border-radius:var(--r-sm);padding:.85rem 1rem}.email-template-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:1rem}.template-editor-panel{background:var(--panel);border:1px solid var(--border);border-radius:var(--r);box-shadow:var(--sh);padding:1rem}.template-editor-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;border:1px solid var(--border);border-radius:var(--r);padding:.9rem 1rem;margin-bottom:1.25rem}.template-head-title{display:flex;align-items:center;gap:.8rem;min-width:0}.template-head-title h2{margin:0;font-size:1rem}.template-head-title p{margin:.15rem 0 0;color:var(--sub);font-size:.82rem}.template-head-actions{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;justify-content:flex-end}.template-logo-row{display:flex;align-items:center;gap:.5rem;margin-top:1rem}.template-logo-row input{height:38px;border:1px solid var(--border);border-radius:var(--r-xs);padding:0 .75rem;min-width:280px;background:#fff;color:var(--text);box-shadow:none;outline:none}.template-logo-row input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(13,148,136,.12)}.status-inline{display:inline-flex;align-items:center;gap:.4rem;color:var(--brand);font-weight:700;font-size:.82rem;margin-left:.6rem}.alert{border:1px solid var(--brand-mid);background:var(--brand-soft);color:#115e59;border-radius:var(--r-sm);padding:.75rem 1rem;margin-bottom:1rem}.alert:empty{display:none}@media(max-width:1100px){.email-template-layout{grid-template-columns:1fr}.admin-plan-breakdown,.plan-breakdown{grid-template-columns:1fr}.page-head{display:grid}.template-editor-head{display:grid}.template-head-actions{justify-content:flex-start}}@media(min-width:1180px){.dashboard-stats.stats-five{grid-template-columns:repeat(5,minmax(0,1fr))}.dashboard-stats.stats-four{grid-template-columns:repeat(4,minmax(0,1fr))}}
.submission-message{max-width:520px;white-space:normal;color:var(--sub);line-height:1.45}

.nav-bubble{margin-left:auto;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--red);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;line-height:1}
.side-nav a.active .nav-bubble{background:#fff;color:var(--brand)}

.admin-table .col-status{width:1%;white-space:nowrap}

.submissions-stats{grid-template-columns:repeat(3, minmax(180px, 220px));justify-content:start}
.submissions-stats .dash-stat{min-height:86px}
@media(max-width:760px){.submissions-stats{grid-template-columns:1fr}}

.subscribers-stats{grid-template-columns:repeat(3, minmax(180px, 220px));justify-content:start}
.admin-stats{grid-template-columns:repeat(5, minmax(180px, 220px));justify-content:start}
.subscribers-stats .dash-stat,.admin-stats .dash-stat{min-height:86px}
@media(max-width:1180px){.admin-stats{grid-template-columns:repeat(3, minmax(180px, 220px))}}
@media(max-width:760px){.subscribers-stats,.admin-stats{grid-template-columns:1fr}}

.owner-sales-stats.db-kpi-grid{grid-template-columns:repeat(5,minmax(180px,220px));justify-content:start;width:auto}
.owner-sales-stats .db-kpi{min-height:102px}
@media(max-width:1180px){.owner-sales-stats.db-kpi-grid{grid-template-columns:repeat(3,minmax(180px,220px))}}
@media(max-width:760px){.owner-sales-stats.db-kpi-grid{grid-template-columns:1fr}}

.dashboard-kpi-grid.db-kpi-grid{grid-template-columns:repeat(5,minmax(180px,220px));justify-content:start}
.dashboard-kpi-grid .db-kpi{min-height:102px}
@media(max-width:1180px){.dashboard-kpi-grid.db-kpi-grid{grid-template-columns:repeat(3,minmax(180px,220px))}}
@media(max-width:760px){.dashboard-kpi-grid.db-kpi-grid{grid-template-columns:1fr}}

.legal-page{background:#f8fafc;min-height:70vh}.legal-hero{padding:7rem 1.5rem 2.5rem;background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);border-bottom:1px solid var(--border)}.legal-hero h1{margin:.4rem 0 .35rem;font-size:clamp(2rem,4vw,3.2rem);line-height:1.1;font-weight:850;color:var(--text);letter-spacing:-.02em}.legal-hero p{margin:0;color:var(--sub)}.legal-body{padding:2rem 1.5rem 4rem}.legal-card{max-width:880px;margin:0 auto;background:#fff;border:1px solid var(--border);border-radius:var(--r);box-shadow:var(--sh);padding:2rem}.legal-card h2{margin:1.7rem 0 .55rem;font-size:1.05rem;color:var(--text)}.legal-card p{margin:.7rem 0;color:var(--sub);line-height:1.75}.legal-card a{color:var(--brand);font-weight:700;text-decoration:none}.legal-footer-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.legal-footer-row nav{display:flex;gap:1rem;flex-wrap:wrap}.legal-footer-row nav a{color:rgba(255,255,255,.55);font-size:.82rem;text-decoration:none}.legal-footer-row nav a:hover{color:#fff}@media(max-width:700px){.legal-card{padding:1.25rem}.legal-footer-row{justify-content:center;text-align:center}}
.lp2-footer-legal-inline{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}.lp2-footer-legal-inline a{color:rgba(255,255,255,.45);font-size:.82rem;text-decoration:none}.lp2-footer-legal-inline a:hover{color:rgba(255,255,255,.8)}
