/* App, marketing and auth styles */

:root {
    --bg: #f7f6f2;
    --surface: #ffffff;
    --surface-2: #f1efe9;
    --ink: #16151d;
    --ink-2: #48455a;
    --muted: #767283;
    --line: #e6e3da;
    --accent: #5b3df5;
    --accent-ink: #ffffff;
    --accent-soft: #efebff;
    --success: #127a4b;
    --success-soft: #e5f5ec;
    --danger: #c0392b;
    --danger-soft: #fdecea;
    --info-soft: #eaf1fb;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(22, 21, 29, .05), 0 8px 24px -12px rgba(22, 21, 29, .12);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --display: "DM Serif Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
code { font-size: .85em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.muted { color: var(--muted); }
.icon { width: 18px; height: 18px; flex: none; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------ buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
    font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap; text-decoration: none !important;
    transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2c2a38; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #4a2de0; }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: var(--line); }
.btn-danger-ghost:hover { background: var(--danger-soft); border-color: var(--danger); }
.icon-btn {
    width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 10px;
    border: 0; background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn-danger:hover:not(:disabled) { background: var(--danger-soft); color: var(--danger); }

.badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
    background: var(--surface-2); color: var(--ink-2); font-size: 11px; font-weight: 600;
    letter-spacing: .02em; vertical-align: middle;
}
.badge-pro { background: linear-gradient(135deg, #5b3df5, #b04dff); color: #fff; }
.badge-danger { background: var(--danger-soft); color: var(--danger); }

/* ------------------------------------------------------------ forms */
.form { display: grid; gap: 18px; }
.form > .btn { justify-self: start; }
.auth-card .form > .btn { justify-self: stretch; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 13px; color: var(--ink-2); }
input:not([type=checkbox]):not([type=radio]):not([type=file]), textarea {
    width: 100%; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--ink); font: 15px var(--font); transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; padding: 12px 14px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.has-error input { border-color: var(--danger); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 48px !important; }
.password-toggle {
    position: absolute; top: 0; right: 0; width: 44px; height: 44px; display: grid; place-items: center;
    border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: var(--radius-sm);
}
.password-toggle:hover, .password-toggle:focus-visible { color: var(--ink); }
.password-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.field-error { color: var(--danger); font-size: 13px; }
.field-hint { color: var(--muted); font-size: 13px; }
.input-prefix {
    display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
    overflow: hidden;
}
.input-prefix span { padding: 0 2px 0 14px; color: var(--muted); white-space: nowrap; }
.input-prefix input { border: 0 !important; box-shadow: none !important; padding-left: 0 !important; }
.input-prefix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.has-error .input-prefix { border-color: var(--danger); }

/* ------------------------------------------------------------ flashes */
.flashes { display: grid; gap: 8px; margin-bottom: 20px; }
.marketing > .flashes { max-width: 1120px; margin: 16px auto 0; padding: 0 20px; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; background: var(--info-soft); color: #1f4f8a; }
.flash-success { background: var(--success-soft); color: var(--success); }
.flash-error { background: var(--danger-soft); color: var(--danger); }

/* ------------------------------------------------------------ logo */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.logo-mark svg { width: 30px; height: 30px; display: block; }
.logo-mark rect { fill: var(--accent); }
.logo-mark path { stroke: #fff; stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.logo-word { font: 22px/1 var(--display); letter-spacing: -.01em; }

/* ------------------------------------------------------------ cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card + .card, .stack > * + * { margin-top: 20px; }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.card-head .card-title { margin: 0; }
.card-danger { border-color: #f1c9c4; }

/* ------------------------------------------------------------ auth */
.auth-main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 48px 16px; }
.auth-logo { margin-bottom: 28px; }
.auth-main > .flashes { width: 100%; max-width: 420px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font: 30px/1.15 var(--display); margin-bottom: 6px; }
.auth-card > .muted { margin-bottom: 24px; }
.auth-card .flash { margin-bottom: 16px; }
.auth-switch { text-align: center; margin-top: 20px; color: var(--muted); font-size: 14px; }
.error-card { text-align: center; display: grid; gap: 14px; justify-items: center; }
.error-code { font: 64px/1 var(--display); color: var(--accent); }

/* ------------------------------------------------------------ marketing */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(247, 246, 242, .85); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid transparent; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: var(--ink-2); font-weight: 500; }
.site-header-cta { display: flex; gap: 8px; }

.hero { padding: 64px 0 88px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { font: clamp(44px, 7vw, 76px)/1.02 var(--display); letter-spacing: -.02em; }
.hero h1 em { color: var(--accent); }
.lead { font-size: 18px; color: var(--ink-2); max-width: 520px; margin: 20px 0 32px; }
.claim { display: flex; gap: 8px; max-width: 520px; background: var(--surface); padding: 6px; border-radius: 999px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.claim-field { flex: 1; display: flex; align-items: center; min-width: 0; padding-left: 16px; }
.claim-prefix { color: var(--muted); white-space: nowrap; }
.claim input { border: 0 !important; box-shadow: none !important; padding: 0 !important; height: 52px; font-weight: 600; }
.hint { color: var(--muted); font-size: 13px; margin-top: 12px; padding-left: 20px; }

.hero-visual { position: relative; height: 540px; }
.phone {
    position: absolute; right: 70px; top: 0; z-index: 2; width: 260px; height: 530px; border-radius: 40px; padding: 10px;
    background: #16151d; box-shadow: 0 40px 80px -30px rgba(22, 21, 29, .45);
}
.phone-back { right: auto; left: 0; top: 50px; z-index: 1; transform: rotate(-7deg); opacity: .95; }
.phone-screen {
    height: 100%; border-radius: 31px; background: var(--bg); color: var(--text); font-family: var(--font);
    display: flex; flex-direction: column; align-items: center; padding: 44px 18px; gap: 10px; overflow: hidden;
}
.mini-avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 26px var(--display); background: var(--btn-bg); color: var(--btn-text); border: 1px solid var(--btn-border); }
.mini-name { font-weight: 700; font-size: 16px; margin-top: 4px; }
.mini-bio { font-size: 12px; color: var(--muted); margin-bottom: 10px; text-align: center; }
.mini-btn {
    width: 100%; padding: 13px; text-align: center; font-size: 13px; font-weight: 600; background: var(--btn-bg); color: var(--btn-text);
    border: 1px solid var(--btn-border); border-radius: var(--radius); box-shadow: var(--shadow);
}

.section { padding: 88px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-title { font: clamp(32px, 4.5vw, 46px)/1.1 var(--display); text-align: center; letter-spacing: -.01em; }
.section-sub { text-align: center; color: var(--muted); margin-top: 12px; font-size: 17px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 16px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-2); }

.theme-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 44px; }
.theme-card { margin: 0; text-align: center; }
.theme-card figcaption { margin-top: 10px; font-weight: 600; font-size: 14px; }
.theme-swatch {
    display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 22px 14px; aspect-ratio: 3 / 4.6;
    border-radius: 16px; background: var(--bg); border: 1px solid rgba(0, 0, 0, .06); overflow: hidden;
}
.sw-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--btn-bg); border: 1px solid var(--btn-border); flex: none; }
.sw-line { width: 50%; height: 6px; border-radius: 3px; background: var(--text); opacity: .7; margin-bottom: 6px; flex: none; }
.sw-btn { width: 100%; height: 18%; max-height: 26px; border-radius: min(var(--radius), 13px); background: var(--btn-bg); border: 1px solid var(--btn-border); flex: none; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 20px; margin-top: 44px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.plan h3 { font-size: 20px; display: flex; align-items: center; gap: 8px; }
.plan-featured { border: 2px solid var(--accent); box-shadow: 0 30px 60px -30px rgba(91, 61, 245, .35); }
.plan-price { font: 44px/1 var(--display); }
.plan-price span { font: 15px var(--font); color: var(--muted); margin-left: 4px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; }
.checklist li { display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.checklist .icon { color: var(--accent); }

.cta { padding-top: 0; }
.cta-inner { background: var(--ink); color: #fff; border-radius: 28px; padding: 64px 32px; text-align: center; display: grid; gap: 28px; justify-items: center; }
.cta h2 { font: clamp(30px, 4.5vw, 46px)/1.1 var(--display); }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0; }
.site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-2); }

/* ------------------------------------------------------------ app shell */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 24px; }
.tabs { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; color: var(--ink-2); font-weight: 500; white-space: nowrap; text-decoration: none !important; }
.tab:hover { background: var(--surface-2); color: var(--ink); }
.tab.is-active { background: var(--ink); color: #fff; }
.topbar-end { display: flex; align-items: center; gap: 8px; }
.app-main { max-width: 1240px; margin: 0 auto; padding: 32px 20px 80px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font: 34px/1.1 var(--display); margin-bottom: 4px; }

.share-pill { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 16px; max-width: 100%; }
.share-url { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.share-pill .btn .icon { width: 16px; height: 16px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.split-side { position: sticky; top: 96px; }
.preview-wrap { display: grid; justify-items: center; gap: 12px; }
.preview-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.device { width: 300px; height: 600px; border-radius: 44px; padding: 10px; background: var(--ink); box-shadow: 0 30px 60px -30px rgba(22, 21, 29, .4); }
.device iframe { width: 100%; height: 100%; border: 0; border-radius: 35px; background: #fff; }

/* links */
.add-link-fields { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 10px; }
.link-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.link-item {
    display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); scroll-margin-top: 90px;
}
.link-item.is-hidden { opacity: .55; }
.link-item:target { border-color: var(--accent); }
.link-order { display: grid; }
.link-order form, .link-actions form { margin: 0; }
.link-edit { display: grid; gap: 2px; min-width: 0; }
.link-edit input { height: 34px !important; border-color: transparent !important; padding: 0 8px !important; background: transparent !important; }
.link-edit input:hover { background: var(--surface-2) !important; }
.link-edit input:focus { background: var(--surface) !important; border-color: var(--accent) !important; }
.link-title-input { font-weight: 600 !important; }
.link-url-input { color: var(--muted) !important; font-size: 14px !important; }
.link-meta { display: flex; align-items: center; gap: 10px; padding: 2px 8px 0; font-size: 13px; }
.save-btn { display: none; }
.link-edit.is-dirty .save-btn { display: inline-flex; }
.link-actions { display: flex; gap: 2px; }
.empty-state { text-align: center; padding: 48px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); margin-top: 20px; }
.empty-icon { width: 48px; height: 48px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.empty-state h3 { margin-bottom: 6px; }

/* appearance */
.avatar-row { display: flex; align-items: center; gap: 20px; }
.avatar-lg { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-initial { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font: 34px var(--display); }
.avatar-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.avatar-controls .field-hint { width: 100%; }
.bg-row { display: flex; align-items: center; gap: 20px; }
.bg-thumb { width: 84px; height: 112px; border-radius: 12px; flex: none; display: grid; place-items: center; color: var(--muted); background: var(--accent-soft) center / cover no-repeat; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 16px; }
.theme-grid form { margin: 0; }
.theme-option { width: 100%; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.theme-option .theme-swatch { border: 2px solid transparent; outline: 1px solid var(--line); transition: transform .15s; }
.theme-option:hover .theme-swatch { transform: translateY(-2px); }
.theme-option.is-current .theme-swatch { border-color: var(--accent); outline-color: var(--accent); }
.theme-option.is-locked .theme-swatch { filter: saturate(.6); opacity: .8; }
.theme-name { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-weight: 600; font-size: 14px; }
.theme-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); }
.theme-tag .icon { width: 14px; height: 14px; }
.is-current .theme-tag { color: var(--accent); }
.upsell { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--ink-2); font-size: 14px; }
.upsell .icon { color: var(--accent); }

/* analytics */
.range { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.range-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 13px; text-decoration: none !important; }
.range-btn.is-active { background: var(--ink); color: #fff; }
.range-btn.is-locked { color: var(--muted); }
.range-btn .icon { width: 13px; height: 13px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.stats-6 { grid-template-columns: repeat(6, 1fr); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat-value { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stats-6 .stat-value { font-size: 24px; }
.stat-sub { font-size: 12px; color: var(--success); margin-top: 2px; }

.chart { display: grid; grid-template-columns: auto 1fr; gap: 10px; height: 260px; }
.chart-grid { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--muted); text-align: right; padding-bottom: 22px; font-variant-numeric: tabular-nums; }
.chart-bars {
    display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; align-items: end; position: relative;
    background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% calc((100% - 22px) / 2) repeat-y;
}
.bar-col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; outline: none; }
.bar-col::before { content: ""; position: absolute; inset: 0 0 22px; border-radius: 4px; }
.bar-col:hover::before, .bar-col:focus::before { background: var(--surface-2); }
.bar { position: relative; background: var(--accent); border-radius: 4px 4px 0 0; margin: 0 auto; width: min(100%, 28px); height: calc((100% - 22px) * var(--h)); }
.bar-label { height: 22px; line-height: 22px; font-size: 11px; color: var(--muted); text-align: center; white-space: nowrap; overflow: visible; border-top: 1px solid var(--ink-2); }
.tip {
    position: absolute; bottom: calc(100% - 10px); left: 50%; transform: translateX(-50%); z-index: 3; pointer-events: none;
    background: var(--ink); color: #fff; font-size: 12px; padding: 8px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; transition: opacity .1s;
    display: grid; gap: 2px;
}
.bar-col:hover .tip, .bar-col:focus .tip { opacity: 1; }
.bar-col:first-child .tip, .bar-col:nth-child(2) .tip { left: 0; transform: none; }
.bar-col:last-child .tip, .bar-col:nth-last-child(2) .tip { left: auto; right: 0; transform: none; }
.table-toggle { margin-top: 16px; }
.table-toggle summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.grid-2 > .card { margin-top: 0; }
.hbars { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.hbar-text { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 6px; }
.hbar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-value { font-weight: 600; font-variant-numeric: tabular-nums; }
.hbar-track { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.hbar-fill { height: 100%; background: var(--accent); border-radius: 4px; }
.devices { display: flex; gap: 24px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

/* tables */
.table-scroll { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.is-suspended td { color: var(--muted); }
.row-actions { text-align: right; white-space: nowrap; }
.row-actions form { display: inline-block; margin: 0 0 0 6px; }
.give-pro select {
    height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--ink); font: 13px var(--font); max-width: 210px;
}
.pro-until { display: block; font-size: 12px; white-space: nowrap; }
.search input { height: 38px !important; width: 260px !important; border-radius: 999px !important; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }

/* billing */
.plans-dash { justify-content: start; margin: 0 0 20px; }
.plan-pay { display: grid; gap: 10px; }
.plan.is-current:not(.plan-featured) { border-color: var(--ink); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
    .stats-6 { grid-template-columns: repeat(3, 1fr); }
    .theme-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
    .split { grid-template-columns: 1fr; }
    .split-side { display: none; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .site-nav { display: none; }
}
@media (max-width: 720px) {
    .tab span, .hide-sm { display: none; }
    .tab { padding: 0 11px; }
    .topbar-inner { gap: 12px; padding: 0 16px; }
    .logo-word { display: none; }
    .app-main { padding: 24px 16px 64px; }
    .container { padding: 0 16px; }
    .card { padding: 18px; }
    .table-scroll { margin: 0 -18px; padding: 0 18px; }
    .add-link-fields { grid-template-columns: 1fr; }
    .steps, .plans, .grid-2 { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stats .stat:last-child:nth-child(odd) { grid-column: span 2; }
    .stats-6 { grid-template-columns: 1fr 1fr; }
    .stats-6 .stat:last-child:nth-child(odd) { grid-column: auto; }
    .theme-strip { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 64px 0; }
    .hero { padding: 40px 0 64px; }
    .claim { flex-direction: column; border-radius: 20px; }
    .claim-field { padding: 0 12px; }
    .claim .btn { width: 100%; }
    .hint { padding-left: 4px; }
    .site-header-cta .btn-ghost { display: none; }
    .page-head h1 { font-size: 28px; }
    .share-pill { width: 100%; }
    .share-url { flex: 1; }
    .search, .search input { width: 100% !important; }
    .chart { height: 220px; }
}
