/* ═══════════════════════════════════════════════════════════
   XINCRO — Neon Halloween Theme
   ═══════════════════════════════════════════════════════════ */

/* ─── Base & Variables ───────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #13181c;
    --bg2: #0d1012;
    --bg3: #1a2228;
    --bg-tertiary: #0d1012;
    --surface: rgba(19, 24, 28, 0.65);
    --surface2: rgba(19, 24, 28, 0.8);
    --border: rgba(245, 249, 250, 0.08);
    --border-light: rgba(245, 249, 250, 0.15);
    --text: #f5f9fa;
    --text2: #d8e0e8;
    --primary: #ec2538;
    --primary-hover: #ff3d50;
    --danger: #f85149;
    --success: #2ecc71;
    --scan: #d29922;
    --gradient-primary: linear-gradient(135deg, #ec2538 0%, #c41e2e 100%);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --glass-bg: rgba(26, 10, 46, 0.55);
    --glass-border: rgba(232, 223, 245, 0.08);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
}
    --primary-hover: #3ddbb5;
    --danger: #f85149;
    --success: #2ecc71;
    --scan: #f59e0b;
    --gradient-primary: linear-gradient(135deg, #28C39D 0%, #1a9a7a 100%);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --glass-bg: rgba(19, 24, 28, 0.65);
    --glass-border: rgba(245, 249, 250, 0.08);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body.dark {
    background: linear-gradient(rgba(0,0,0,.72),rgba(0,0,0,.72)), var(--bg-img, url(/bg/halloween-scene-illustration-anime-style.jpg)) center/cover fixed;
    background-attachment: fixed;
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
}

/* ─── Glass Utility ──────────────────────────────────────── */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
}

/* ─── Loading Overlay ────────────────────────────────────── */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 14, 16, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(6px);
}
.loading-overlay.hidden { display: none; }
.loading-spinner-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(207, 238, 230, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.loading-text {
    color: var(--text2);
    font-size: 14px;
    font-weight: 500;
}

/* ─── Topbar ─────────────────────────────────────────────── */
.topbar {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
}
.site-title {
    font-size: 20px;
    font-weight: 700;
    color: #f5f9fa;
    font-family: 'Playfair Display', serif;
}

/* ─── Token Section ──────────────────────────────────────── */
.token-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 56px);
    padding: 20px;
}
.token-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-card);
}
.token-card h2 {
    font-size: 24px;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
    color: #f5f9fa;
}
.token-desc {
    color: var(--text2);
    margin-bottom: 24px;
}
.token-input-row {
    display: flex;
    gap: 8px;
}
.token-input-row input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(13, 14, 16, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.token-input-row input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(236, 37, 56, 0.15);
}

/* ─── Mode Tabs ──────────────────────────────────────────── */
.mode-tabs {
    display: flex;
    gap: 4px;
    background: rgba(13, 14, 16, 0.5);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 28px;
    border: 1px solid var(--border);
}
.mode-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text2);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.mode-tab:hover { color: var(--text); }
.mode-tab.active {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(236, 37, 56, 0.25);
}
.mode-content { display: none; }
.mode-content.active { display: block; }

/* ─── TOTP Display ───────────────────────────────────────── */
.totp-display {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.totp-code-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}
.totp-code {
    font-size: 40px;
    font-weight: 700;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    letter-spacing: 6px;
    color: var(--primary);
    background: rgba(13, 14, 16, 0.6);
    padding: 16px 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    user-select: all;
}
.totp-copy {
    padding: 10px;
}
.totp-timer-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}
.totp-ring-bg {
    stroke: rgba(207, 238, 230, 0.1);
}
.totp-ring-fg {
    stroke: var(--primary);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s linear;
}
.totp-seconds {
    position: absolute;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.btn-totp-stop {
    background: var(--danger);
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-totp-stop:hover { opacity: 0.85; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(236, 37, 56, 0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(236, 37, 56, 0.35);
}
.btn-full { width: 100%; justify-content: center; }
.btn-icon {
    background: none;
    border: none;
    color: var(--text2);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    transition: background 0.2s;
}
.btn-icon:hover { background: var(--surface2); color: var(--text); }
.btn-sm {
    padding: 6px 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 11px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.15s;
}
.btn-copy { background: var(--primary); color: #fff; }
.btn-copy:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-scan-link { background: var(--scan); color: #000; }
.btn-scan-link:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.85; transform: translateY(-1px); }

/* ─── Email Section (Gmail-like) ─────────────────────────── */
.email-section {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 56px);
}
.email-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.email-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.email-address {
    font-size: 14px;
    color: var(--text2);
    font-weight: 500;
}
.btn-scan {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.btn-scan:hover { background: var(--primary-hover); }
.btn-scan.scanning {
    background: var(--scan);
    color: #000;
    cursor: not-allowed;
}
.btn-scan:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-scan.btn-scan-cooldown {
    background: var(--surface2);
    color: var(--text2);
    cursor: not-allowed;
}
.btn-scan.btn-scan-cooldown:hover { background: var(--surface2); }

.gmail-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Email List */
.email-list {
    width: 380px;
    min-width: 300px;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    background: rgba(13, 14, 16, 0.4);
}
.email-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
}
.email-item:hover { background: var(--surface); backdrop-filter: blur(8px); }
.email-item.active {
    background: rgba(236, 37, 56, 0.08);
    border-left: 3px solid var(--primary);
    backdrop-filter: blur(8px);
}
.email-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.email-item-content { flex: 1; min-width: 0; }
.email-item-top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.email-sender { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #f5f9fa; }
.email-date { font-size: 12px; color: #f5f9fa; white-space: nowrap; }
.email-subject { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; color: #f5f9fa; }
.email-preview { font-size: 12px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text2);
    gap: 12px;
    padding: 40px;
}
.empty-sub { font-size: 13px; }

/* Email Detail */
.email-detail {
    flex: 1;
    overflow-y: auto;
    background: rgba(13, 14, 16, 0.4);
    padding: 0;
}
.detail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text2);
    gap: 16px;
}
.detail-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
}
.detail-subject {
    font-size: 22px;
    margin-bottom: 16px;
    font-family: 'Playfair Display', serif;
    color: #f5f9fa;
}
.detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}
.detail-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}
.detail-meta-text { display: flex; flex-direction: column; }
.detail-sender { font-weight: 600; font-size: 14px; color: #f5f9fa; }
.detail-date { font-size: 12px; color: #f5f9fa; }
.detail-body {
    padding: 24px 32px;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #f5f9fa;
}

.detail-body-iframe {
    width: 100%;
    min-height: 300px;
    border: none;
    background: #fff;
    border-radius: var(--radius-sm);
    margin-top: 8px;
}

/* Scan notification */
.scan-notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 100;
    font-size: 13px;
}
.btn-notif-scan {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}
.btn-notif-scan:hover { background: var(--primary-hover); }

/* ─── Login ──────────────────────────────────────────────── */
.login-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 56px);
    padding: 20px;
}
.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 44px;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-card);
}
.login-card h2 {
    text-align: center;
    margin-bottom: 28px;
    font-size: 22px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: #f5f9fa;
}
.login-card input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(13, 14, 16, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 15px;
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.login-card input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(236, 37, 56, 0.15);
}
.error-msg {
    background: rgba(248, 81, 73, 0.12);
    color: var(--danger);
    padding: 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
    text-align: center;
    backdrop-filter: blur(4px);
}

/* ─── Admin Layout ───────────────────────────────────────── */
.admin-layout {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 260px;
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    overflow-y: auto;
}
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: #f5f9fa;
}

.sidebar-section-label {
    padding: 16px 20px 6px;
    font-size: 10px;
    font-weight: 700;
    color: #f5f9fa;
    letter-spacing: 1.5px;
    opacity: 0.6;
}
.sidebar-nav {
    padding: 0;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: var(--text2);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    margin: 1px 0;
}
.nav-item:hover {
    background: rgba(236, 37, 56, 0.06);
    color: var(--text);
    border-left-color: rgba(236, 37, 56, 0.3);
}
.nav-item.active {
    background: rgba(236, 37, 56, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}
.nav-item.logout { color: var(--danger); }
.nav-item.logout:hover { background: rgba(248, 81, 73, 0.08); border-left-color: var(--danger); }
.sidebar-footer {
    border-top: 1px solid var(--border);
    padding: 8px 0;
    margin-top: auto;
}

/* ─── Admin Top Bar ──────────────────────────────────────── */
.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.page-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    font-family: 'Playfair Display', serif;
    color: #f5f9fa;
}
.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.admin-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(236, 37, 56, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(236, 37, 56, 0.15);
}

/* ─── Stats Row ──────────────────────────────────────────── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-info {
    display: flex;
    flex-direction: column;
}
.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #f5f9fa;
}
.stat-label {
    font-size: 12px;
    color: #f5f9fa;
    font-weight: 500;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 32px 40px;
}

/* ─── Form Elements ──────────────────────────────────────── */
.form-card {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    transition: box-shadow 0.2s;
}
.form-card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 12px;
    color: #f5f9fa;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 11px 16px;
    background: rgba(13, 14, 16, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(236, 37, 56, 0.15);
}

.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; }

/* ─── Segmented Control ──────────────────────────────────── */
.segmented-control {
    display: flex;
    background: rgba(13, 14, 16, 0.5);
    border-radius: var(--radius-md);
    padding: 4px;
    gap: 4px;
    border: 1px solid var(--border);
}
.segmented-control input[type="radio"] {
    display: none;
}
.segmented-control .segment {
    flex: 1;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text2);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.segmented-control .segment:hover {
    color: var(--text);
}
.segmented-control input[type="radio"]:checked + .segment {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(236, 37, 56, 0.3);
}

/* ─── Results ────────────────────────────────────────────── */
.results-section {
    margin-top: 24px;
}
.results-section h2 {
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #f5f9fa;
}
.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 8px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.result-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.result-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.result-email { font-weight: 600; font-size: 14px; color: #f5f9fa; }
.result-token { font-size: 12px; color: var(--text2); word-break: break-all; }
.result-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ─── Accounts Table ─────────────────────────────────────── */
.search-bar {
    margin-bottom: 16px;
}
.search-bar input {
    width: 100%;
    padding: 11px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(236, 37, 56, 0.15);
}

.accounts-table {
    overflow-x: auto;
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 4px;
}
.accounts-table table {
    width: 100%;
    border-collapse: collapse;
}
.accounts-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: 11px;
    color: #f5f9fa;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}
.accounts-table td {
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid rgba(245, 249, 250, 0.04);
    color: #f5f9fa;
}
.accounts-table tr {
    transition: background 0.15s;
}
.accounts-table tbody tr:hover {
    background: rgba(236, 37, 56, 0.04);
}
.accounts-table tbody tr:last-child td {
    border-bottom: none;
}
.btn-pagination:hover {
    background: rgba(236, 37, 56, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}
.btn-pagination:active {
    transform: scale(0.96);
}
.token-cell code {
    background: rgba(13, 14, 16, 0.6);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: #f5f9fa;
}
.actions-cell {
    display: flex;
    gap: 6px;
}

/* ─── Domains ────────────────────────────────────────────── */
.domain-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 8px;
    transition: transform 0.15s, box-shadow 0.15s;
    color: #f5f9fa;
}
.domain-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* ─── Toast ──────────────────────────────────────────────── */
.toast-global {
    position: fixed;
    top: 24px;
    right: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--success);
    border: 1px solid rgba(46, 204, 113, 0.2);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    z-index: 200;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}
.toast-global.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.toast-global.error {
    color: var(--danger);
    border-color: rgba(248, 81, 73, 0.2);
}

/* ─── Utility ────────────────────────────────────────────── */
.hidden { display: none !important; }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ─── API Keys ───────────────────────────────────────────── */
.api-domain-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(13, 14, 16, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s;
}
.checkbox-label:hover { border-color: var(--primary); }
.checkbox-label input[type="checkbox"] {
    accent-color: var(--primary);
    width: 14px;
    height: 14px;
}
.domain-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(236, 37, 56, 0.1);
    color: var(--primary);
    border-radius: 4px;
    font-size: 12px;
    margin: 1px 2px;
}

/* ─── Password Generator ─────────────────────────────────── */
.pw-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pw-display {
    display: block;
    font-size: 14px;
    color: var(--primary);
    word-break: break-all;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    padding: 8px 12px;
    background: rgba(13, 14, 16, 0.6);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 6px;
}
.pw-strength {
    height: 4px;
    background: rgba(207, 238, 230, 0.08);
    border-radius: 2px;
    margin-bottom: 2px;
    overflow: hidden;
}
.pw-strength-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s;
}
input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(207, 238, 230, 0.08);
    border-radius: 3px;
    outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid var(--bg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid var(--bg);
}

/* ─── Fake ID ────────────────────────────────────────────── */
.fake-id-card {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 12px;
}
.fakeid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.fakeid-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: rgba(13, 14, 16, 0.5);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}
.fakeid-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.fakeid-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* ─── Notepad ────────────────────────────────────────────── */
.notepad-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.notepad-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.notepad-toolbar-right {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.note-title-input {
    flex: 1;
    padding: 8px 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    outline: none;
    min-width: 120px;
}
.note-title-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(236, 37, 56, 0.15);
}
#noteSelect {
    padding: 8px 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 13px;
    outline: none;
    cursor: pointer;
    min-width: 140px;
}
#noteSelect:focus { border-color: var(--primary); }
.notepad-container {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.notepad-editor {
    width: 100%;
    min-height: 420px;
    padding: 20px;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.7;
    resize: vertical;
    outline: none;
    tab-size: 4;
}
.notepad-statusbar {
    display: flex;
    gap: 16px;
    padding: 8px 20px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text2);
}
.note-autosave {
    margin-left: auto;
    color: var(--scan);
    font-weight: 600;
}

/* ─── Admin Detail Body Iframe ───────────────────────────── */
.detail-body-iframe {
    width: 100%;
    min-height: 300px;
    border: none;
    background: #fff;
    border-radius: var(--radius-sm);
    margin-top: 8px;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .gmail-layout { flex-direction: column; }
    .email-list { width: 100%; border-right: none; border-bottom: 1px solid var(--border); max-height: 40vh; }
    .sidebar { width: 220px; }
    .admin-main { margin-left: 220px; padding: 20px 16px; }
    .stats-row { grid-template-columns: 1fr; }
    .admin-topbar { flex-direction: column; align-items: flex-start; gap: 12px; }
    .admin-topbar-right { width: 100%; justify-content: flex-end; }
    .token-card { padding: 28px 20px; }
    .login-card { padding: 32px 24px; }
}
@media (max-width: 520px) {
    .sidebar { display: none; }
    .admin-main { margin-left: 0; padding: 16px; }
    .page-title { font-size: 20px; }
}
