/* ═══════════════════════════════════════════════════════════
   PhishGuard — Global Design System
   Premium Dark-First, Glassmorphic SaaS Interface
   ═══════════════════════════════════════════════════════════ */

:root {
    /* ── Brand Palette ── */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-soft: rgba(99, 102, 241, 0.1);
    --secondary: #a855f7;
    --accent: #38bdf8;
    --success: #10b981;
    --danger: #f43f5e;
    --warning: #f59e0b;

    /* ── Dark Theme (Default) ── */
    --bg-start: #030712;
    --bg-end: #0f172a;
    --bg-color: #030712;
    --surface-1: rgba(17, 24, 39, 0.6);
    --surface-2: rgba(17, 24, 39, 0.85);
    --surface-3: rgba(31, 41, 55, 0.7);
    --card-bg: var(--surface-1);
    --card-bg-deep: var(--surface-2);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-faint: #64748b;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-white: rgba(255, 255, 255, 0.03);
    --nav-bg: rgba(3, 7, 18, 0.8);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
    --glass-blur: 24px;
    --glow-primary: rgba(99, 102, 241, 0.2);
    --glow-accent: rgba(56, 189, 248, 0.15);
    --modal-overlay: rgba(3, 7, 18, 0.8);
}

[data-theme="light"] {
    --bg-start: #f8fafc;
    --bg-end: #f1f5f9;
    --bg-color: #f8fafc;
    --surface-1: rgba(255, 255, 255, 0.82);
    --surface-2: rgba(255, 255, 255, 0.95);
    --surface-3: rgba(241, 245, 249, 0.9);
    --card-bg: var(--surface-1);
    --card-bg-deep: var(--surface-2);
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-faint: #94a3b8;
    --border-color: rgba(15, 23, 42, 0.1);
    --border-white: rgba(15, 23, 42, 0.05);
    --nav-bg: rgba(248, 250, 252, 0.85);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 32px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 64px rgba(15, 23, 42, 0.12);
    --glow-primary: rgba(99, 102, 241, 0.1);
    --glow-accent: rgba(56, 189, 248, 0.08);
    --modal-overlay: rgba(248, 250, 252, 0.75);
}

/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(165deg, var(--bg-start), var(--bg-end));
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: pageIn 0.2s ease-out;
}

@keyframes pageIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── Ambient Background ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 10% 20%, var(--glow-primary), transparent),
        radial-gradient(ellipse 60% 40% at 90% 80%, rgba(168, 85, 247, 0.07), transparent),
        radial-gradient(ellipse 50% 50% at 50% 50%, var(--glow-accent), transparent);
    pointer-events: none;
    z-index: -1;
}

/* ── Typography ── */
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.uppercase { text-transform: uppercase; letter-spacing: 0.06em; }
.tracking-wider { letter-spacing: 0.08em; }
.x-small { font-size: 0.75rem; }

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glow-text {
    text-shadow: 0 0 15px var(--glow-primary);
}

.text-primary-light { color: var(--primary-light) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--text-muted) !important; }

/* ── Glassmorphism ── */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(190%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(190%);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.2);
}

.glass-deep {
    background: var(--card-bg-deep);
    backdrop-filter: blur(var(--glass-blur)) saturate(200%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(200%);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* ── Radius Helpers ── */
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.max-w-lg { max-width: 500px; }
.max-w-md { max-width: 420px; }
.shadow-2xl { box-shadow: var(--shadow-lg); }

/* ── Buttons ── */
.btn-premium {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff !important;
    border: none;
    padding: 0.75rem 1.6rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 14px var(--glow-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 28px var(--glow-primary);
}

.btn-premium:hover::after { opacity: 1; }

.btn-premium:active {
    transform: translateY(0) scale(0.98);
}

.btn-outline-premium {
    background: transparent;
    color: var(--primary-light);
    border: 1.5px solid var(--primary-light);
    padding: 0.7rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-outline-premium:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    background: var(--surface-3);
    color: var(--text-main);
    border-color: var(--text-muted);
    transform: translateY(-1px);
}

/* Make Bootstrap's outline-light usable in both dark and light themes */
.btn-outline-light {
    background: transparent;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
    padding: 0.35rem 0.65rem;
    border-radius: 0.6rem;
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-outline-light:hover {
    background: var(--surface-3);
    color: var(--text-main) !important;
    border-color: var(--primary-light) !important;
    transform: translateY(-1px);
}

/* ── Navbar ── */
.navbar {
    background: var(--nav-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border-color);
    padding: 0.9rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem !important;
    border-radius: 0.5rem;
    transition: all 0.25s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--text-main) !important;
    background: var(--surface-3);
}

.nav-link.active {
    color: var(--primary-light) !important;
    font-weight: 600;
}

/* Normalize welcome/greeting styling across pages */
#user-greeting, .mobile-greeting {
    color: var(--primary-light);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    letter-spacing: 0.2px;
    display: inline-block;
}
/* Slightly smaller on very small devices to avoid wrap */
@media (max-width: 420px) {
    #user-greeting, .mobile-greeting { font-size: 0.88rem; }
}

/* Ensure greeting color is consistent everywhere (override other utilities) */
#user-greeting, .mobile-greeting, .nav-shell #user-greeting, .navbar #user-greeting, .nav-container #user-greeting {
    color: var(--primary-light) !important;
}

/* ── Badge / Pill ── */
.badge-premium {
    background: var(--primary-soft);
    color: var(--primary-light);
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── System status indicator (online/offline) ── */
.status-indicator-pulse {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #94a3b8; /* neutral by default */
    box-shadow: 0 0 0 rgba(0,0,0,0.0);
    position: relative;
    flex-shrink: 0;
}
.status-indicator-pulse.online {
    background: #10b981; /* green */
    box-shadow: 0 6px 18px rgba(16,185,129,0.18);
}
.status-indicator-pulse.online::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 100%; height: 100%; border-radius: 999px;
    background: rgba(16,185,129,0.18);
    animation: statusPulse 1.8s ease-out infinite;
}
.status-indicator-pulse.offline {
    background: #f43f5e; /* red */
    box-shadow: 0 6px 18px rgba(244,63,94,0.12);
}

@keyframes statusPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    70% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
    100% { opacity: 0; }
}

/* Number input / small form control visibility fixes */
input[type="number"], input[type="number"].form-control, .form-control[type="number"] {
    background: var(--surface-3) !important;
    color: var(--text-main) !important;
    -webkit-text-fill-color: var(--text-main) !important;
    caret-color: var(--text-main) !important;
}
input[type="number"]::placeholder { color: var(--text-faint); }
input[type="number"]:focus, input[type="number"].focus {
    background: var(--surface-3) !important;
    color: var(--text-main) !important;
    -webkit-text-fill-color: var(--text-main) !important;
    box-shadow: 0 0 0 3px var(--primary-soft) !important;
    outline: none !important;
}
/* Remove annoying default white background on some browsers when focused */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Explicit small width input styling for the jump-to page control */
#users-goto-input {
    background: var(--surface-3) !important;
    color: var(--text-main) !important;
    text-align: center;
}

.metric-pill {
    background: var(--primary-soft);
    color: var(--primary-light);
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
}

/* ── Icon Circles ── */
.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.bg-success-soft { background: rgba(34, 197, 94, 0.12); }
.bg-danger-soft { background: rgba(239, 68, 68, 0.12); }
.bg-primary-soft { background: var(--primary-soft); }
.bg-warning-soft { background: rgba(245, 158, 11, 0.12); }

/* ── Border Glow Accent ── */
.border-glow {
    border: 1px solid rgba(99, 102, 241, 0.15) !important;
}

/* ── Animations ── */
@keyframes ripple {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(2.5); opacity: 0; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.fade-up { animation: fadeUp 0.6s ease-out forwards; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--text-faint);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
    background-clip: padding-box;
}

/* ── Shared Input Group ── */
.detector-input-group {
    background: var(--card-bg-deep);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    padding: 0.45rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-sm);
}

.detector-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft), var(--shadow-md);
    transform: translateY(-2px);
}

.detector-input-group input {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 0.75rem 1rem;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
}

.detector-input-group input::placeholder { color: var(--text-faint); }
.detector-input-group input:focus { outline: none; }

/* ── Shared Icon Buttons ── */
.btn-icon-premium {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--surface-3);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-icon-premium:hover {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px var(--glow-primary);
}

.btn-icon-premium:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

/* ── Shared Modal Overlay ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--modal-overlay);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-overlay .glass {
    max-width: 680px;
    width: 100%;
    animation: modalSlideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-overlay .glass {
    animation: fadeUp 0.3s ease-out;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Shared Toast ── */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    border-radius: 0.85rem;
    background: var(--card-bg-deep);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transform: translateX(130%);
    transition: transform 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 400px;
}

.toast.show { transform: translateX(0); }
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.info    { border-left: 3px solid var(--primary); }

/* ── Shared Form Select ── */
.form-select {
    background-color: var(--surface-3) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
}

/* ── Shared Table ── */
.table-dark-custom {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-main);
    --bs-table-hover-bg: var(--primary-soft);
    width: 100%;
}

.table-dark-custom th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--text-muted);
    padding: 1.1rem 0.6rem;
    border-bottom: 2px solid var(--border-color);
    letter-spacing: 0.1em;
}

.table-dark-custom td {
    padding: 1rem 0.6rem;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table-dark-custom tbody tr {
    transition: background 0.2s ease;
}

.table-dark-custom tbody tr:hover {
    background: var(--primary-soft);
}

/* ── Responsive Foundation ── */
@media (max-width: 768px) {
    .display-5 { font-size: 1.8rem !important; }
    .lead { font-size: 1rem !important; }
    .hero h1 { font-size: 2.5rem; }
    .rounded-3xl { border-radius: 1rem; }
    .modal-overlay .glass { margin: 1rem; }
    .toast { right: 1rem; bottom: 1rem; padding: 0.8rem 1.2rem; font-size: 0.82rem; }
}

/* Mobile-specific: ensure login split stacks vertically and footer sits below content */
@media (max-width: 767.98px) {
    .login-split-container { display: flex; flex-direction: column; align-items: stretch; gap: 1rem; }
    .login-brand-panel, .login-form-panel { width: 100% !important; max-width: 100% !important; }
    .login-brand-panel { order: 1; }
    .login-form-panel { order: 2; }
    footer { position: relative; width: 100%; margin-top: 1.5rem; }
    /* Make sure footer container centers and doesn't float beside content */
    footer .container { display: block; text-align: center; }
    /* Ensure body stacks children vertically on login page so footer appears below content */
    body.login-page {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding-bottom: 2rem;
    }
}

/* Ensure login page layout keeps footer at the bottom on larger screens too
   without affecting other pages. Targets only pages with `body.login-page`. */
body.login-page {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 100vh !important;
}

/* Center the split container and allow it to grow, so footer can be pushed down */
.login-split-container {
    margin: 2.5rem auto !important;
}

/* Push footer to bottom on login page */
body.login-page footer {
    margin-top: auto !important;
    width: 100%;
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .btn-premium, .btn-outline-premium { padding: 0.65rem 1.2rem; font-size: 0.85rem; }
}

/* ═══════════════════════════════════════════
   Mobile Hamburger Menu
   ═══════════════════════════════════════════ */

/* Hamburger Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    z-index: 1100;
    gap: 5px;
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger → X animation */
.mobile-nav-open .hamburger-btn span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-nav-open .hamburger-btn span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-nav-open .hamburger-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Drawer */
.mobile-nav-drawer {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
    z-index: 1050;
}

.mobile-nav-open .mobile-nav-drawer {
    max-height: 400px;
    opacity: 1;
    padding: 1.2rem 0;
}

.mobile-nav-drawer .mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-drawer .mobile-nav-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-drawer .mobile-nav-list li a:hover,
.mobile-nav-drawer .mobile-nav-list li a.active {
    color: var(--primary-light);
    background: var(--surface-2);
    border-left-color: var(--primary-light);
}

.mobile-nav-drawer .mobile-nav-list li a i {
    width: 20px;
    text-align: center;
    font-size: 0.85rem;
}

.mobile-nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.75rem 1.5rem;
}

.mobile-nav-actions {
    padding: 0 1.5rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.mobile-nav-actions .mobile-greeting {
    width: 100%;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 0.25rem;
}

@media (max-width: 767.98px) {
    .hamburger-btn { display: flex; }
    .mobile-nav-drawer { display: block; }

    /* Make navbar position relative for drawer positioning */
    .navbar, .nav-shell { position: relative; }
}

/* ── Footer ── */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

footer p, footer a {
    color: var(--text-faint);
    font-size: 0.85rem;
}

footer a:hover {
    color: var(--primary-light);
}

/* Footer credit: match the same color as `nav-link` (theme-aware)
   Ensures footer credit and links look identical to Privacy/Terms/API links
   in both dark and light themes. */
.footer-highlight {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
    text-shadow: none;
}
.footer-subtext { color: var(--text-faint); }
.footer-heart { color: #e25555; margin: 0 6px; }
.footer-link { color: inherit; text-decoration: none; }
.footer-link:hover { color: var(--text-main); text-decoration: underline; }

/* Copyright line in footer */
.footer-copy {
    color: var(--text-faint);
    font-size: 0.82rem;
    margin-top: 0.5rem;
}
