/* ============================================================
   Vukorix — App Stylesheet
   Light theme (default) / Dark theme (html.dark)
   Brand accent: #b53d35 (warm red)
   Fonts: Outfit (body), Instrument Serif (headings)
   ============================================================ */

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

/* ── Light Theme (default) ── */
:root {
    --bg: #f5f5f7;
    --bg-card: #ffffff;
    --bg-card-hover: #fafafa;
    --bg-input: #f0f0f2;
    --border: #e0e0e4;
    --border-light: #d4d4d8;
    --text: #1a1a1f;
    --text-muted: #6b6b76;
    --text-dim: #9c9ca8;
    --red: #b53d35;
    --red-bright: #c4443b;
    --red-dim: rgba(181,61,53,0.08);
    --red-glow: rgba(181,61,53,0.18);
    --green: #16a34a;
    --green-dim: rgba(22,163,74,0.08);
    --danger: #dc2626;
    --danger-dim: rgba(220,38,38,0.06);
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Instrument Serif', serif;
    --radius: 10px;
    --radius-lg: 16px;
    --sidebar-width: 260px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --focus-bg: #ffffff;
}

/* ── Dark Theme ── */
html.dark {
    --bg: #0c0c0f;
    --bg-card: #151518;
    --bg-card-hover: #1c1c20;
    --bg-input: rgba(0,0,0,0.35);
    --border: #2a2a2e;
    --border-light: #3a3a3e;
    --text: #ededed;
    --text-muted: #8a8a94;
    --text-dim: #55555e;
    --red-bright: #d44a40;
    --red-dim: rgba(181,61,53,0.12);
    --red-glow: rgba(181,61,53,0.28);
    --green: #4ade80;
    --green-dim: rgba(40,200,100,0.1);
    --danger: #f87171;
    --danger-dim: rgba(220,60,60,0.1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
    --focus-bg: rgba(0,0,0,0.6);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red-dim); color: var(--red-bright); }

a { color: var(--red-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 26px; border-radius: var(--radius); font-family: var(--font-body);
    font-weight: 600; font-size: 15px; cursor: pointer; border: none;
    transition: all 0.25s; text-decoration: none;
    box-sizing: border-box; line-height: 1.3;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--bg-secondary); color: var(--text); border: 1px solid var(--border-light); }
.btn-primary:hover { background: var(--bg-card-hover); border-color: var(--border); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--border-light); color: var(--text); }
.btn-outline:hover { background: var(--bg-card-hover); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-full { display: flex; width: 100%; text-align: center; }
.btn-lg { padding: 15px 34px; font-size: 17px; }
.btn-sm { padding: 7px 16px; font-size: 14px; }

/* ── Alerts ── */
.alert {
    padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px;
    font-size: 15px;
}
.alert-success { background: var(--green-dim); border: 1px solid rgba(22,163,74,0.2); color: var(--green); }
.alert-error { background: var(--danger-dim); border: 1px solid rgba(220,38,38,0.2); color: var(--danger); }
.alert-warning { background: var(--red-dim); border: 1px solid rgba(181,61,53,0.2); color: var(--red-bright); }

html.dark .alert-success { border-color: rgba(40,200,100,0.3); }
html.dark .alert-error { border-color: rgba(220,60,60,0.3); }
html.dark .alert-warning { border-color: rgba(181,61,53,0.3); }

/* ── Forms ── */
.form-group { margin-bottom: 22px; }
.form-group label {
    display: block; margin-bottom: 7px; font-size: 15px;
    font-weight: 500; color: var(--text-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%; padding: 13px 16px; font-size: 15px; font-family: var(--font-body);
    background: var(--bg-input); color: var(--text);
    border: 1px solid var(--border-light); border-radius: var(--radius);
    outline: none; transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--red); background: var(--focus-bg);
    box-shadow: 0 0 0 3px var(--red-dim);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-hint { display: block; font-size: 13px; margin-top: 5px; color: var(--text-dim); }
.form-hint-success { color: var(--green); }
.form-hint-warning { color: var(--red-bright); }

/* ══════════════════════════════════════════
   PUBLIC PAGES (terms, privacy, AUP, home, pricing, help)
   ══════════════════════════════════════════ */
.public-body {
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Public Header ── */
.public-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 20;
}
.public-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.public-header .brand-name {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 4px;
    text-decoration: none;
}
.public-header .brand-name:hover {
    color: var(--red);
    text-decoration: none;
}

/* ── Public Nav ── */
.public-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.public-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}
.public-nav a:hover {
    color: var(--text);
    text-decoration: none;
}
.public-nav .btn { font-size: 14px; }

/* ── Public Footer ── */
.public-footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    margin-top: auto;
    font-size: 14px;
    color: var(--text-dim);
}

/* ── Legal Content (terms, privacy, AUP) ── */
.legal-content h2 {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 36px 0 12px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin: 28px 0 10px;
}
.legal-content p {
    margin: 0 0 14px;
}
.legal-content ul,
.legal-content ol {
    margin: 0 0 14px;
    padding-left: 24px;
}
.legal-content li {
    margin-bottom: 6px;
}
.legal-content a {
    color: var(--red-bright);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-content a:hover {
    color: var(--red);
}
.legal-content strong {
    color: var(--text);
    font-weight: 600;
}

/* ── Hero Section (Home) ── */
.hero {
    text-align: center;
    padding: 80px 20px 64px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}
.hero h1 {
    font-size: clamp(36px, 6vw, 56px);
    color: var(--text);
    margin-bottom: 16px;
}
.hero-sub {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Feature Grid (Home) ── */
.features {
    padding: 64px 20px;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
}
.feature-card h3 {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* ── Auth Layout ── */
.auth-body { background: var(--bg); }
.auth-container {
    min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: 40px 20px;
}
.auth-brand { text-align: center; margin-bottom: 32px; }
.auth-brand img { height: 52px; }
.auth-brand .brand-name {
    font-family: var(--font-body); font-size: 24px; font-weight: 800;
    color: var(--text); letter-spacing: 4px; text-decoration: none;
}
.auth-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 440px;
    box-shadow: var(--shadow-md);
}
.auth-card h1 { font-family: var(--font-display); font-size: 30px; margin-bottom: 4px; }
.auth-subtitle { color: var(--text-muted); margin-bottom: 28px; font-size: 16px; }
.auth-form { margin-bottom: 20px; }
.auth-links { text-align: center; font-size: 15px; color: var(--text-muted); }
.auth-links a { color: var(--red-bright); }
.auth-links .separator { margin: 0 8px; }
.auth-help-text { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }

/* ── OAuth Buttons ── */
.oauth-buttons { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.btn-oauth {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 16px; border-radius: var(--radius); font-size: 15px; font-weight: 500;
    background: var(--bg-card); border: 1px solid var(--border-light);
    color: var(--text); text-decoration: none; transition: border-color 0.2s, background 0.2s;
    font-family: var(--font-body);
}
.btn-oauth:hover { border-color: var(--text-dim); background: var(--bg-card-hover); text-decoration: none; }
.btn-oauth svg { flex-shrink: 0; }

.auth-divider {
    display: flex; align-items: center; gap: 12px; margin: 20px 0;
    color: var(--text-dim); font-size: 14px;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── 2FA Setup ── */
.auth-card-wide { max-width: 540px; }
.twofa-setup { margin-top: 24px; }
.twofa-step { display: flex; gap: 16px; margin-bottom: 24px; }
.step-number {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
    background: var(--red); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
}
.step-content { flex: 1; }
.step-content p { font-size: 15px; color: var(--text-muted); margin-bottom: 12px; }
.qr-container {
    text-align: center; padding: 16px; background: #fff;
    border-radius: var(--radius); display: inline-block;
}
.qr-code { display: block; }
.secret-key {
    display: block; padding: 12px 16px; background: var(--bg-input);
    border: 1px solid var(--border-light); border-radius: var(--radius);
    font-family: monospace; font-size: 17px; letter-spacing: 3px;
    word-break: break-all; color: var(--red-bright);
}
.input-code {
    font-family: monospace; font-size: 30px; text-align: center;
    letter-spacing: 8px; padding: 12px;
}

/* ── Recovery Codes ── */
.recovery-codes {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    margin: 24px 0; padding: 20px;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius);
}
.recovery-code { font-family: monospace; font-size: 17px; padding: 6px 0; text-align: center; }
.recovery-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }

/* ── App Layout (Sidebar + Main) ── */
.app-body { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-width); background: var(--bg-card);
    border-right: 1px solid var(--border); display: flex;
    flex-direction: column; position: fixed; top: 0; left: 0;
    height: 100vh; z-index: 10;
}
.sidebar-brand { padding: 24px 20px; border-bottom: 1px solid var(--border); }
.sidebar-brand a { display: flex; align-items: center; text-decoration: none; }
.sidebar-logo { height: 40px; }

.sidebar-nav { flex: 1; padding: 16px 14px; overflow-y: auto; }
.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: 10px; font-size: 16px;
    color: var(--text-muted); transition: all 0.15s;
    text-decoration: none; margin-bottom: 3px; font-weight: 500;
}
.nav-item:hover { background: var(--bg-card-hover); color: var(--text); text-decoration: none; }
.nav-item.active { background: var(--red-dim); color: var(--red-bright); }
.nav-item .nav-icon { font-size: 20px; width: 24px; text-align: center; flex-shrink: 0; display: inline-block; }
.nav-admin { color: var(--red-bright); margin-top: 8px; }

/* Sidebar nav groups */
.nav-group { margin-top: 12px; margin-bottom: 8px; }
.nav-group-label {
    padding: 10px 16px 6px; font-size: 12px; font-weight: 700;
    color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em;
}
.nav-sub { padding-left: 16px; }

.sidebar-footer {
    padding: 18px 20px; border-top: 1px solid var(--border);
    font-size: 14px;
}
.plan-badge {
    display: inline-block; padding: 3px 10px; border-radius: 100px;
    background: var(--red-dim); color: var(--red-bright);
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; margin-bottom: 6px;
}
.plan-badge.badge-success { background: rgba(39,174,96,0.15); color: #27ae60; }
.plan-badge.badge-info { background: rgba(46,134,193,0.15); color: #2e86c1; }
.plan-badge.badge-warning { background: rgba(230,126,34,0.15); color: #e67e22; }
.plan-badge.badge-danger { background: rgba(231,76,60,0.15); color: #e74c3c; }
.plan-badge.badge-muted { background: var(--surface); color: var(--text-muted); }
.user-email { color: var(--text-muted); margin-bottom: 10px; word-break: break-all; font-size: 13px; }

.sidebar-footer-actions {
    display: flex; justify-content: space-between; align-items: center;
}
.sidebar-footer-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text-muted); font-size: 14px; text-decoration: none;
    transition: color 0.15s;
}
.sidebar-footer-link:hover { color: var(--text); text-decoration: none; }

/* Theme Toggle Button */
.theme-toggle-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 6px 12px; height: 34px; border-radius: 8px;
    background: var(--bg-input); border: 1px solid var(--border);
    color: var(--text-muted); cursor: pointer; font-size: 16px;
    transition: all 0.2s;
}
.theme-toggle-btn:hover {
    background: var(--bg-card-hover); border-color: var(--border-light);
    color: var(--text);
}
.theme-toggle-label {
    font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
}

.main-content {
    flex: 1; margin-left: var(--sidebar-width); padding: 36px 44px;
}

/* ── Dashboard ── */
.page-header { margin-bottom: 32px; }
.page-header h1 { font-size: clamp(30px, 4vw, 40px); }
.page-header p { color: var(--text-muted); margin-top: 4px; font-size: 16px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 40px; }
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
    box-shadow: var(--shadow-sm);
}
.stat-value { font-family: var(--font-display); font-size: 44px; color: var(--text); }
.stat-label { font-size: 15px; color: var(--text-muted); margin-top: 4px; }
.stat-limit { font-size: 13px; }

.quick-actions h2 { font-size: 22px; margin-bottom: 16px; }
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.action-card {
    display: flex; flex-direction: column; gap: 8px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
    transition: border-color 0.3s; text-decoration: none;
    box-shadow: var(--shadow-sm);
}
.action-card:hover { border-color: var(--red); text-decoration: none; }
.action-icon { font-size: 30px; }
.action-title { font-size: 17px; font-weight: 600; color: var(--text); }
.action-desc { font-size: 15px; color: var(--text-muted); }
.action-card-locked { opacity: 0.4; cursor: default; border-style: dashed; }
.action-card-locked:hover { border-color: var(--border); }

/* ── Settings ── */
.settings-tabs {
    display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--border);
}
.settings-tabs .tab {
    padding: 11px 22px; font-size: 15px; color: var(--text-muted);
    border-bottom: 2px solid transparent; text-decoration: none;
    transition: color 0.15s, border-color 0.15s; margin-bottom: -1px; font-weight: 500;
}
.settings-tabs .tab:hover { color: var(--text); text-decoration: none; }
.settings-tabs .tab.active { color: var(--red-bright); border-bottom-color: var(--red); }

.settings-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.settings-card h2 { font-family: var(--font-body); font-size: 19px; font-weight: 600; margin-bottom: 16px; }
.settings-form { max-width: 480px; }

.text-muted { color: var(--text-muted); font-size: 15px; }
.text-danger { color: var(--danger); }

.info-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); }
.info-value { font-weight: 500; }

.oauth-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0; border-bottom: 1px solid var(--border);
}
.oauth-provider-name { font-weight: 600; margin-right: 12px; font-size: 15px; }
.oauth-connect { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.oauth-connect-buttons { display: flex; gap: 8px; margin-top: 8px; }
.inline-form { display: inline; }

.status-badge {
    display: inline-block; padding: 5px 14px; border-radius: 100px;
    font-size: 13px; font-weight: 700; margin-bottom: 12px; text-transform: uppercase;
    letter-spacing: 0.06em;
}
.status-active { background: var(--green-dim); color: var(--green); }
.status-inactive { background: rgba(138,141,155,0.08); color: var(--text-muted); }

.input-code-sm {
    font-family: monospace; font-size: 22px; text-align: center;
    letter-spacing: 6px; max-width: 200px;
}

.upgrade-prompt {
    padding: 24px; text-align: center;
    background: var(--bg-input); border-radius: var(--radius);
}
.upgrade-prompt p { margin-bottom: 16px; color: var(--text-muted); font-size: 15px; }

.colour-input { display: flex; align-items: center; gap: 12px; }
.colour-input input[type="color"] {
    width: 48px; height: 48px; border: 1px solid var(--border);
    border-radius: var(--radius); cursor: pointer; background: none; padding: 2px;
}
.colour-value { font-family: monospace; color: var(--text-muted); }

.subdomain-input { display: flex; align-items: center; }
.subdomain-input input { border-radius: var(--radius) 0 0 var(--radius); }
.subdomain-suffix {
    padding: 13px 16px; background: var(--bg-input);
    border: 1px solid var(--border-light); border-left: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-muted); font-size: 15px; white-space: nowrap;
}
.logo-preview { max-width: 120px; max-height: 60px; margin-bottom: 8px; border-radius: 4px; }

/* ── Send Feature ── */
.send-form { max-width: 640px; }

.upload-zone {
    border: 2px dashed var(--border-light); border-radius: var(--radius-lg);
    padding: 48px 24px; text-align: center; transition: border-color 0.3s, background 0.3s;
    cursor: pointer;
}
.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--red); background: var(--red-dim);
}
.upload-zone-icon { font-size: 44px; margin-bottom: 12px; }
.upload-zone-text { color: var(--text-muted); font-size: 15px; }
.upload-zone-hint { color: var(--text-dim); font-size: 13px; margin-top: 6px; }
.upload-zone-buttons { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }

.file-preview-list { margin-top: 16px; }
.file-preview-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 6px; font-size: 14px;
}
.file-preview-item .file-name { font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-preview-item .file-size { color: var(--text-muted); font-size: 13px; margin-left: 12px; flex-shrink: 0; }
.file-preview-item .file-remove {
    background: none; border: none; color: var(--text-dim); cursor: pointer;
    font-size: 18px; margin-left: 12px; padding: 0 4px; flex-shrink: 0;
}
.file-preview-item .file-remove:hover { color: var(--danger); }

.file-count-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
    background: var(--red-dim); border-radius: 100px;
    font-size: 14px; font-weight: 600; color: var(--red-bright);
}

/* Progress bar */
.progress-bar-track {
    width: 100%; height: 10px; background: var(--bg-input);
    border-radius: 100px; overflow: hidden; border: 1px solid var(--border);
}
.progress-bar-fill {
    height: 100%; background: var(--red); border-radius: 100px;
    transition: width 0.25s ease;
}

.expiry-options { display: flex; flex-wrap: wrap; gap: 8px; }
.expiry-option {
    padding: 9px 18px; border-radius: 100px; border: 1px solid var(--border-light);
    background: transparent; color: var(--text-muted); font-size: 14px;
    cursor: pointer; transition: all 0.2s; font-family: var(--font-body); font-weight: 500;
}
.expiry-option:hover { border-color: var(--text-dim); color: var(--text); }
.expiry-option.active, input[type="radio"]:checked + .expiry-option {
    background: var(--red-dim); border-color: var(--red); color: var(--red-bright);
}

.secret-link-box {
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px; margin: 20px 0;
    display: flex; align-items: center; gap: 12px;
}
.secret-link-box input {
    flex: 1; background: none; border: none; color: var(--text);
    font-family: monospace; font-size: 15px; outline: none;
}
.secret-link-box .btn { flex-shrink: 0; }

.burn-notice {
    text-align: center; padding: 60px 20px;
}
.burn-notice h1 { font-size: 48px; margin-bottom: 8px; }
.burn-notice .burn-icon { font-size: 64px; margin-bottom: 16px; }

.secret-view-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px; max-width: 680px; margin: 40px auto;
    box-shadow: var(--shadow-md);
}
.secret-content {
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; margin: 20px 0;
    font-family: monospace; font-size: 15px; line-height: 1.6;
    white-space: pre-wrap; word-break: break-all;
}

.passphrase-form { max-width: 400px; margin: 40px auto; text-align: center; }
.passphrase-form h2 { margin-bottom: 8px; }
.passphrase-form p { color: var(--text-muted); margin-bottom: 20px; font-size: 16px; }

/* ── Receive Feature ── */
.request-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.request-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px; transition: border-color 0.3s;
    box-shadow: var(--shadow-sm);
}
.request-card:hover { border-color: var(--border-light); }
.request-card-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 8px; }
.request-card-title { font-size: 17px; font-weight: 600; }
.request-card-client { font-size: 15px; color: var(--text-muted); margin-bottom: 12px; }
.request-card-meta { font-size: 14px; color: var(--text-muted); }
.request-card-actions { display: flex; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }

/* Delete button on request cards */
.btn-delete-request {
    position: absolute; top: 10px; right: 10px;
    width: 28px; height: 28px; border-radius: 50%;
    background: none; border: 1px solid transparent;
    color: var(--text-dim); cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s; line-height: 1;
}
.btn-delete-request:hover {
    background: var(--danger-dim); border-color: rgba(220,38,38,0.2);
    color: var(--danger);
}

/* Modal overlay */
.modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.modal-box {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px 32px;
    max-width: 500px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.receive-form { max-width: 560px; }
.checklist-items { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.checklist-item {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 15px;
}
.checklist-item input { flex: 1; background: none; border: none; color: var(--text); outline: none; font-family: var(--font-body); font-size: 15px; }
.checklist-item .remove-item { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 18px; padding: 0 4px; }
.checklist-item .remove-item:hover { color: var(--danger); }

/* Public-facing (client upload page) — always light */
.portal-public {
    max-width: 680px; margin: 0 auto; padding: 40px 20px;
}
.portal-public-header {
    text-align: center; margin-bottom: 32px; padding: 48px 32px;
    border-radius: var(--radius-lg); position: relative; overflow: hidden;
}
.portal-public-header h1 { font-size: 34px; margin-bottom: 8px; position: relative; z-index: 1; }
.portal-public-header p { color: var(--text-muted); font-size: 16px; position: relative; z-index: 1; }
.portal-public-header .portal-icon {
    font-size: 48px; margin-bottom: 16px; display: block; position: relative; z-index: 1;
}
.portal-public-header .portal-tagline {
    font-size: 14px; color: var(--text-dim); margin-top: 12px; position: relative; z-index: 1;
    text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}

/* Portal theme styles — applied via inline style vars */
.portal-themed-header {
    background: linear-gradient(135deg, var(--portal-gradient-from), var(--portal-gradient-to));
    border: 1px solid var(--border);
}
.portal-themed-header h1 { color: var(--text); }
.portal-themed-header .portal-accent { color: var(--portal-accent); }

/* ── Wizard ── */
.wizard-container {
    max-width: 720px; margin: 0 auto; padding: 24px 0;
    transition: max-width 0.3s ease;
}
.wizard-progress {
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 32px; gap: 0; padding: 0 12px;
}
.wizard-step {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    position: relative; z-index: 1;
}
.wizard-step-number {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600;
    background: var(--bg-input); border: 2px solid var(--border);
    color: var(--text-dim); transition: all 0.2s;
}
.wizard-step.active .wizard-step-number {
    background: var(--red); border-color: var(--red); color: #fff;
}
.wizard-step.completed .wizard-step-number {
    background: var(--green); border-color: var(--green); color: #fff;
}
.wizard-step-label {
    font-size: 12px; font-weight: 500; color: var(--text-dim);
    white-space: nowrap;
}
.wizard-step.active .wizard-step-label { color: var(--text); font-weight: 600; }
.wizard-step.completed .wizard-step-label { color: var(--green); }
.wizard-step-line {
    flex: 1; height: 2px; background: var(--border);
    min-width: 24px; max-width: 80px; margin: 0 4px;
    margin-bottom: 20px; transition: background 0.2s;
}
.wizard-step-line.completed { background: var(--green); }

.wizard-panel {
    display: none;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px;
    box-shadow: var(--shadow-sm);
}
.wizard-panel.active { display: block; }
.wizard-panel-header { margin-bottom: 28px; }
.wizard-panel-header h2 {
    font-family: var(--font-body); font-weight: 700; font-size: 22px;
    margin-bottom: 8px;
}
.wizard-hint {
    color: var(--text-muted); font-size: 15px; line-height: 1.5;
}
.wizard-nav {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border);
}
.wizard-link {
    font-size: 13px; color: var(--text-dim); text-decoration: none;
}
.wizard-link:hover { color: var(--red); }

/* Theme picker grid */
.theme-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.theme-card {
    border: 2px solid var(--border); border-radius: var(--radius);
    overflow: hidden; cursor: pointer; transition: all 0.15s;
    position: relative; background: var(--bg-card);
}
.theme-card:hover { border-color: var(--border-light); box-shadow: var(--shadow-md); }
.theme-card.selected { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.theme-card-preview {
    padding: 24px 16px; text-align: center; min-height: 90px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.theme-card-icon { font-size: 32px; }
.theme-card-tagline {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
    font-weight: 600; opacity: 0.85;
}
.theme-card-info {
    padding: 10px 14px; border-top: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 2px;
}
.theme-card-info strong { font-size: 14px; font-weight: 600; }
.theme-card-industry { font-size: 12px; color: var(--text-muted); }
.theme-card-check {
    position: absolute; top: 8px; right: 8px;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--red); color: #fff;
    display: none; align-items: center; justify-content: center;
    font-size: 14px;
}
.theme-card.selected .theme-card-check { display: flex; }

/* Live theme preview */
.theme-preview-box {
    border-radius: var(--radius-lg); overflow: hidden;
    height: 200px; position: relative;
    border: 1px solid var(--border);
    transition: background-image 0.3s;
}
.theme-preview-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 8px;
    transition: background 0.3s;
}
.theme-preview-logo {
    max-height: 44px; max-width: 180px; object-fit: contain;
}
.theme-preview-logo-placeholder {
    padding: 10px 20px; border: 2px dashed var(--border-light);
    border-radius: var(--radius); font-size: 13px; color: var(--text-dim);
    font-weight: 500;
}
.theme-preview-title {
    font-family: var(--font-display); font-size: 28px;
    font-weight: 400; color: var(--text);
}
.theme-preview-tagline {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
    font-weight: 600; transition: color 0.3s;
}

/* Info/warning box */
.wizard-info-box {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px; background: var(--red-dim);
    border: 1px solid rgba(181,61,53,0.15); border-radius: var(--radius);
    font-size: 14px; line-height: 1.6; color: var(--text);
}

/* Radio cards for expiry */
.radio-cards {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.radio-card {
    cursor: pointer; display: block;
}
.radio-card input { display: none; }
.radio-card-body {
    padding: 14px 16px; border: 2px solid var(--border);
    border-radius: var(--radius); transition: all 0.15s;
    display: flex; flex-direction: column; gap: 2px;
}
.radio-card-body strong { font-size: 15px; }
.radio-card-body span { font-size: 12px; color: var(--text-muted); }
.radio-card input:checked + .radio-card-body {
    border-color: var(--red); background: var(--red-dim);
}
.radio-card:hover .radio-card-body { border-color: var(--border-light); }

/* Review summary */
.review-summary { display: flex; flex-direction: column; gap: 20px; }
.review-section {
    background: var(--bg-input); border-radius: var(--radius);
    padding: 18px 20px;
}
.review-section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
}
.review-section-header h4 {
    font-family: var(--font-body); font-weight: 600; font-size: 15px; margin: 0;
}
.btn-link {
    background: none; border: none; color: var(--red); cursor: pointer;
    font-size: 13px; font-weight: 500; padding: 0;
}
.btn-link:hover { text-decoration: underline; }
.review-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 6px 0; font-size: 14px;
}
.review-label { color: var(--text-muted); flex-shrink: 0; margin-right: 16px; }
.review-value { font-weight: 500; text-align: right; word-break: break-word; }
.review-checklist {
    list-style: none; padding: 0; margin: 0;
}
.review-checklist li {
    padding: 4px 0; font-size: 14px; font-weight: 500;
}
.review-checklist li::before {
    content: '○ '; color: var(--text-dim);
}

/* Wizard validation */
.input-error { border-color: var(--danger) !important; box-shadow: 0 0 0 2px var(--danger-dim) !important; }

/* Form optional label */
.form-optional { color: var(--text-dim); font-weight: 400; font-size: 13px; }
.required { color: var(--danger); }

/* Template selector */
.template-selector {
    background: var(--bg-input); border-radius: var(--radius);
    padding: 16px; margin-bottom: 20px;
}

.file-list { margin-top: 16px; }
.file-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 8px; font-size: 15px;
}
.file-item-name { font-weight: 500; }
.file-item-size { color: var(--text-muted); font-size: 14px; }
.file-item-status { font-size: 13px; }

/* ── Tables ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left; padding: 12px 14px; font-size: 13px;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border); font-weight: 600;
}
.data-table td {
    padding: 14px; border-bottom: 1px solid var(--border); font-size: 15px;
}
.data-table tr:hover td { background: var(--bg-card-hover); }

/* ── Empty States ── */
.empty-state {
    text-align: center; padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state-icon { font-size: 52px; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-family: var(--font-body); font-weight: 600; color: var(--text); margin-bottom: 8px; font-size: 18px; }
.empty-state p { margin-bottom: 20px; font-size: 16px; }

/* ── Error Pages ── */
.error-page { text-align: center; padding: 120px 20px; }
.error-page h1 { font-size: 80px; color: var(--red); }
.error-page p { color: var(--text-muted); margin-bottom: 24px; font-size: 16px; }

/* ══════════════════════════════════════════
   MOBILE TOPBAR & DRAWER (phones + iPad portrait)
   ══════════════════════════════════════════ */

/* Desktop: hide mobile-only elements entirely. */
.mobile-topbar { display: none; }
.mobile-overlay { display: none; }
.sidebar-close-btn { display: none; }

/* ── Responsive breakpoint: drawer for phones + iPad portrait ── */
@media (max-width: 900px) {
    /* ─── Mobile top bar ─── */
    .mobile-topbar {
        display: flex;
        align-items: center;
        position: fixed;
        top: 0; left: 0; right: 0;
        height: 56px;
        padding: 0 12px;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        /* Above the drawer so the hamburger ↔ X button stays tappable
           while the drawer is open. */
        z-index: 40;
        gap: 8px;
    }
    .mobile-menu-btn,
    .mobile-topbar-right {
        width: 42px; height: 42px;
        background: transparent;
        border: 0;
        color: var(--text);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border-radius: 8px;
        text-decoration: none;
        flex-shrink: 0;
    }
    .mobile-menu-btn:hover,
    .mobile-topbar-right:hover {
        background: var(--bg-card-hover);
    }
    /* Pure-CSS hamburger icon */
    .mobile-menu-icon,
    .mobile-menu-icon::before,
    .mobile-menu-icon::after {
        display: block;
        width: 22px;
        height: 2px;
        background: currentColor;
        border-radius: 2px;
        transition: transform 0.2s, background-color 0.2s, top 0.2s;
    }
    .mobile-menu-icon { position: relative; }
    .mobile-menu-icon::before,
    .mobile-menu-icon::after {
        content: ""; position: absolute; left: 0;
    }
    .mobile-menu-icon::before { top: -7px; }
    .mobile-menu-icon::after { top: 7px; }
    /* Active hamburger → X */
    body.menu-open .mobile-menu-icon { background: transparent; }
    body.menu-open .mobile-menu-icon::before { top: 0; transform: rotate(45deg); }
    body.menu-open .mobile-menu-icon::after  { top: 0; transform: rotate(-45deg); }

    .mobile-brand {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        min-width: 0;
        text-decoration: none;
    }
    .mobile-brand img { height: 30px; max-width: 100%; }

    /* Right-side shortcut in topbar (e.g. settings link) */
    .mobile-topbar-right {
        color: var(--text-muted);
        font-size: 20px;
    }

    /* ─── Sidebar → slide-in drawer ─── */
    .sidebar {
        display: flex;
        width: 86vw;
        max-width: 320px;
        /* Drawer starts below the mobile topbar so the hamburger X
           stays accessible while the drawer is open. Use top + bottom
           rather than height so iOS Safari's dynamic address bar
           doesn't clip the drawer's footer. */
        top: 56px;
        bottom: 0;
        height: auto;
        transform: translateX(-101%);
        transition: transform 0.25s ease;
        z-index: 30;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.35);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    /* The drawer's internal brand section is redundant with the
       mobile topbar's logo, so hide it on mobile. The close button
       also becomes unnecessary because the topbar hamburger/X handles
       open-close. */
    .sidebar .sidebar-brand { display: none; }
    .sidebar-close-btn { display: none !important; }

    /* Backdrop overlay while drawer is open. Starts below the topbar
       so the topbar remains visibly crisp (not dimmed) and the
       hamburger X stays fully tappable. */
    .mobile-overlay {
        display: block;
        position: fixed;
        top: 56px; left: 0; right: 0; bottom: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 25;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s;
    }
    .mobile-overlay.visible {
        opacity: 1;
        pointer-events: auto;
    }

    /* Lock body scroll when menu is open */
    body.menu-open { overflow: hidden; touch-action: none; }

    /* ─── Main content ─── */
    .main-content {
        margin-left: 0;
        padding: 72px 16px 28px;  /* 56 topbar + 16 breathing room */
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    /* Prevent horizontal page overflow from stray wide children */
    html, body { max-width: 100%; }

    /* ─── Form inputs: 16px prevents iOS zoom on focus ─── */
    .form-group input,
    .form-group textarea,
    .form-group select,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="search"],
    input[type="url"],
    textarea,
    select {
        font-size: 16px;
    }

    /* ─── Page headers: stack title/actions vertically ─── */
    .page-header {
        margin-bottom: 22px;
    }
    .page-header h1 {
        font-size: clamp(26px, 7vw, 34px);
    }
    .page-header p { font-size: 15px; }

    /* Flex page headers (dashboard, send, receive) stack on mobile */
    .page-header[style*="justify-content"],
    .page-header.flex-header {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .page-header[style*="justify-content"] > *,
    .page-header.flex-header > * {
        width: 100%;
    }
    .page-header[style*="justify-content"] > *:last-child {
        flex-wrap: wrap;
    }

    /* ─── Dashboard: single-column layout ─── */
    .dash-top {
        flex-direction: column;
        gap: 12px;
    }
    .dash-top > * { width: 100%; min-width: 0; }
    .dash-main {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    /* ─── Grids collapse to one column ─── */
    .stats-grid,
    .action-grid,
    .request-grid,
    .card-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }
    .theme-grid { grid-template-columns: repeat(2, 1fr); }
    .radio-cards { grid-template-columns: repeat(2, 1fr); }

    /* ─── Inline-style grids: Force fixed-column grids to single
       column on mobile. The :not() exclusions preserve grids that
       use auto-fit / auto-fill with minmax() — those are already
       responsive and collapsing them to 1fr would remove their
       reflow behavior. ─── */
    [style*="grid-template-columns"]:not([style*="auto-fit"]):not([style*="auto-fill"]) {
        grid-template-columns: 1fr !important;
    }

    /* ─── Inline-style flex rows that juxtapose elements side-by-side
       (justify-content: space-between, two-column toolbars, etc.) often
       overflow on narrow screens. Let them wrap instead. ─── */
    [style*="justify-content: space-between"],
    [style*="justify-content:space-between"] {
        flex-wrap: wrap;
    }

    /* Prevent fixed inline max-widths from exceeding the viewport */
    [style*="max-width: 860px"],
    [style*="max-width: 900px"],
    [style*="max-width: 1000px"],
    [style*="max-width: 1100px"],
    [style*="max-width: 1200px"] {
        max-width: 100% !important;
    }

    /* ─── Settings tabs — horizontally scrollable ─── */
    .settings-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .settings-tabs::-webkit-scrollbar { display: none; }
    .settings-tab { white-space: nowrap; flex-shrink: 0; }

    .settings-card { padding: 20px 18px; }
    .settings-card h2 { font-size: 17px; }

    /* ─── Wizards ─── */
    .wizard-container { padding: 0; max-width: 100%; }
    .wizard-panel { padding: 18px 16px; }
    .wizard-panel-header h2 { font-size: 22px; }
    .wizard-progress { overflow-x: auto; padding-bottom: 6px; }
    .wizard-step-label { font-size: 10px; }
    .wizard-step-number { width: 30px; height: 30px; font-size: 12px; }
    .wizard-step-line { min-width: 12px; max-width: 40px; }
    .wizard-nav { flex-direction: column-reverse; gap: 10px; }
    .wizard-nav > * { width: 100%; }

    /* ─── Review step ─── */
    .review-row { flex-direction: column; gap: 2px; }
    .review-value { text-align: left; }

    /* ─── File preview list wraps on small screens ─── */
    .file-preview-item {
        flex-wrap: wrap;
        gap: 6px;
    }
    .file-preview-item .file-name {
        flex: 1 1 100%;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* ─── Tables should scroll horizontally inside their container
       rather than pushing the page wider than the viewport. Wrapping
       <table> elements in a scrollable wrapper is the cleanest mobile
       pattern; the rule below catches both .data-table and plain
       tables. ─── */
    .table-wrap,
    .data-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Make every data-table scrollable on mobile — even when there's
       no explicit wrap. We turn the table into block-level with
       overflow-x: auto so the table itself scrolls. */
    .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        width: 100%;
    }

    /* ─── Buttons in button rows wrap ─── */
    .btn-row,
    .form-actions {
        flex-wrap: wrap;
    }

    /* ─── Public pages ─── */
    .public-header .container { height: 52px; }
    .public-header .brand-name { font-size: 15px; letter-spacing: 3px; }
    .public-nav { gap: 14px; }
    .public-nav a { font-size: 14px; }
    .hero { padding: 48px 16px 40px; }
    .feature-grid { grid-template-columns: 1fr; }
    .legal-content h2 { font-size: 18px; margin-top: 28px; }

    /* ─── Auth pages: tighter padding ─── */
    .auth-card { padding: 28px 22px; }

    /* ─── Walkthrough tooltip must fit on narrow screens ─── */
    .wt-tooltip {
        width: calc(100vw - 24px);
        max-width: 360px;
    }

    /* ─── Admin sticky bar: reset negative margins and stick below
       the mobile topbar (56px) instead of behind it. ─── */
    .admin-sticky-bar {
        top: 56px !important;
        /* Lower z-index below the mobile topbar (z:40) so the sticky
           bar doesn't overlap the hamburger when scrolled. Inline
           style sets z-index: 50 which beats the topbar. */
        z-index: 15 !important;
        margin: -16px -16px 16px -16px !important;
        padding: 6px 16px !important;
        font-size: 12px;
    }
}

/* ── Extra-small phones (≤480px) ── */
@media (max-width: 480px) {
    .main-content { padding: 68px 12px 24px; }
    .page-header h1 { font-size: 26px; }
    .settings-card { padding: 16px 14px; }
    .wizard-panel { padding: 14px 12px; }
    .theme-grid { grid-template-columns: 1fr; }
    .radio-cards { grid-template-columns: 1fr; }
    .auth-card { padding: 24px 18px; }
    .btn { padding: 12px 16px; font-size: 15px; }
    .btn-sm { padding: 8px 12px; font-size: 13px; }
}

/* ══════════════════════════════════════════
   WALKTHROUGH / GUIDED TOUR
══════════════════════════════════════════ */
.wt-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
    transition: opacity 0.2s;
}
.wt-spotlight {
    position: absolute;
    z-index: 9999;
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 0 0 4000px rgba(0, 0, 0, 0.45);
    background: transparent;
    pointer-events: none;
    transition: all 0.3s ease;
    display: none;
}
.wt-tooltip {
    position: absolute;
    z-index: 10000;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e0e0e4);
    border-radius: var(--radius-lg, 12px);
    padding: 20px;
    width: 340px;
    max-width: calc(100vw - 24px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    display: none;
    animation: wtFadeIn 0.25s ease;
}
@keyframes wtFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.wt-tooltip-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text, #1a1a1f);
}
.wt-tooltip-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted, #6b6b76);
    margin-bottom: 16px;
}
.wt-tooltip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wt-tooltip-counter {
    font-size: 11px;
    color: var(--text-dim, #9c9ca8);
    font-weight: 500;
}
.wt-tooltip-actions {
    display: flex;
    gap: 6px;
}
.wt-btn {
    padding: 6px 14px;
    border-radius: var(--radius, 8px);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border, #e0e0e4);
    background: var(--bg-input, #f0f0f2);
    color: var(--text, #1a1a1f);
    transition: all 0.15s;
}
.wt-btn:hover {
    background: var(--bg-card-hover, #fafafa);
    border-color: var(--border-light, #d4d4d8);
}
.wt-btn-next {
    /* Use the brand accent so the primary action is always visible
       in both light and dark themes (previous var-based colors
       rendered near-white in dark mode). */
    background: var(--red, #b53d35);
    color: #ffffff;
    border-color: var(--red, #b53d35);
}
.wt-btn-next:hover {
    background: var(--red-bright, #c4443b);
    border-color: var(--red-bright, #c4443b);
    color: #ffffff;
}
.wt-btn-skip {
    color: var(--text-dim, #9c9ca8);
    background: transparent;
    border-color: transparent;
}
.wt-btn-skip:hover {
    color: var(--text-muted, #6b6b76);
    background: var(--bg-input, #f0f0f2);
}

/* Help button — fixed bottom-right */
.wt-help-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9990;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e0e0e4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #6b6b76);
    transition: all 0.15s;
}
.wt-help-btn:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    color: var(--text, #1a1a1f);
    transform: translateY(-1px);
}
