/* ═══════════════════════════════════════════════════════════
   IDYLLIC — Recruitment Intelligence System
   Corporate Theme v7.0
   ═══════════════════════════════════════════════════════════ */

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

/* ─── TOKENS ──────────────────────────────────────────────── */
:root {
    --navy: #123e62;
    --navy-dark: #0c2d49;
    --teal: #01929e;
    --teal-dark: #017a85;
    --orange: #f15a24;
    --orange-light: #ff7e4d;
    --gold: #ffb100;

    --bg-body: #f0f4f8;
    --bg-card: #ffffff;
    --bg-card-alt: #f8fafc;
    --bg-surface: #ffffff;
    --bg-input: #f8fafc;
    --bg-navy: #123e62;

    --text-1: #0f172a;
    --text-2: #334155;
    --text-3: #64748b;
    --text-4: #94a3b8;
    --text-inv: #ffffff;

    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-focus: rgba(1, 146, 158, 0.5);

    --success: #059669;
    --danger: #dc2626;
    --warning: #d97706;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 4px rgba(18, 62, 98, 0.06);
    --shadow-md: 0 4px 16px rgba(18, 62, 98, 0.08);
    --shadow-lg: 0 12px 40px rgba(18, 62, 98, 0.12);
    --shadow-xl: 0 24px 60px rgba(18, 62, 98, 0.18);
    --shadow-teal: 0 4px 20px rgba(1, 146, 158, 0.2);
    --shadow-orange: 0 4px 20px rgba(241, 90, 36, 0.2);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Legacy compat */
    --primary: var(--teal);
    --primary-deep: var(--navy);
    --accent: var(--orange);
    --accent-light: var(--orange-light);
    --brand-navy: var(--navy);
    --brand-teal: var(--teal);
    --brand-orange: var(--orange);
    --brand-orange-light: var(--orange-light);
    --brand-gold: var(--gold);
    --text-primary: var(--text-1);
    --text-secondary: var(--text-2);
    --text-muted: var(--text-3);
    --text-tertiary: var(--text-3);
    --text-light: var(--text-4);
    --text-inverse: var(--text-inv);
    --bg-primary: var(--bg-body);
    --bg-secondary: var(--bg-card-alt);
    --bg-tertiary: var(--bg-input);
    --bg-glass: var(--bg-card);
    --border-hover: var(--border-focus);
    --border-active: var(--border-focus);
    --accent-glow: rgba(1, 146, 158, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
    --gradient-mixed: linear-gradient(135deg, var(--teal) 0%, var(--orange) 100%);
    --success-light: #10b981;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 200ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    --transition-fast: 0.2s var(--ease);
    --transition-base: 0.3s var(--ease);
    --transition-smooth: 0.5s var(--ease);
    --shadow-glow: var(--shadow-teal);
    --shadow-glow-strong: 0 8px 32px rgba(1, 146, 158, 0.3);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-body);
    color: var(--text-1);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: var(--teal);
    color: #fff
}

/* ─── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 7px;
    height: 7px
}

::-webkit-scrollbar-track {
    background: var(--bg-body)
}

::-webkit-scrollbar-thumb {
    background: var(--navy);
    border-radius: 99px
}

::-webkit-scrollbar-thumb:hover {
    background: var(--teal)
}

/* ─── NAVBAR ──────────────────────────────────────────────── */
.nav {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-xs);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--navy);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
}

.nav-logo {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-3);
    text-decoration: none;
    transition: all 0.2s var(--ease);
    border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(1, 146, 158, 0.06);
    color: var(--teal);
    border-color: rgba(1, 146, 158, 0.15);
}

/* ─── LAYOUT ──────────────────────────────────────────────── */
.page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    position: relative
}

/* ─── TYPOGRAPHY ──────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.25;
    letter-spacing: -0.01em
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(1, 146, 158, 0.06);
    border: 1px solid rgba(1, 146, 158, 0.12);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
    animation: pulse 2s ease-in-out infinite
}

/* ─── CARD ────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.35s var(--ease);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(1, 146, 158, 0.2);
}

.card-pad {
    padding: 32px
}

/* Card with accent top line */
.card-accent {
    position: relative
}

.card-accent::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--orange));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.card-accent:hover::after {
    opacity: 1
}

/* ─── GLASS CARD (legacy compat) ──────────────────────────── */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s var(--ease);
}

.glass-card:hover {
    box-shadow: var(--shadow-md)
}

/* ─── SECTION CARD (legacy compat) ────────────────────────── */
.section-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}

.section-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(1, 146, 158, 0.2);
    transform: translateY(-2px);
}

/* ─── CARD HEADER ─────────────────────────────────────────── */
.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.card-header h2,
.card-header h3 {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    font-weight: 700;
    color: var(--text-1);
}

.icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(1, 146, 158, 0.08), rgba(18, 62, 98, 0.06));
    color: var(--teal);
    transition: all 0.3s var(--ease);
}

.section-card:hover .icon-box,
.glass-card:hover .icon-box {
    background: var(--teal);
    color: #fff;
}

/* ─── FORMS ───────────────────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
    text-align: left
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-3);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

input[type="text"],
input[type="number"],
textarea,
.funky-input {
    width: 100%;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    color: var(--text-1);
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    transition: all 0.25s var(--ease);
    line-height: 1.6;
}

textarea {
    min-height: 180px;
    resize: vertical
}

input:focus,
textarea:focus,
.funky-input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(1, 146, 158, 0.08);
    background: var(--bg-card);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-4)
}

/* ─── TAGS ────────────────────────────────────────────────── */
.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.tag-check {
    position: relative;
    cursor: pointer;
    margin-bottom: 0
}

.tag-check input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0
}

.tag-content {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-card-alt);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    color: var(--text-2);
    transition: all 0.25s var(--ease);
    user-select: none;
}

.tag-check:hover .tag-content {
    border-color: var(--teal);
    transform: translateY(-1px)
}

.tag-check input:checked+.tag-content {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--shadow-teal);
}

.must-have-zone .tag-check input:checked+.tag-content {
    background: var(--orange);
    border-color: var(--orange);
    box-shadow: var(--shadow-orange);
}

/* ─── TOGGLE ──────────────────────────────────────────────── */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    color: var(--text-2);
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.88rem;
}

.toggle-switch input {
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
    margin: 0;
    cursor: pointer
}

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 28px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.92rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--teal), var(--orange));
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    border-radius: inherit;
}

.btn span,
.btn i {
    position: relative;
    z-index: 1
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg)
}

.btn:hover::after {
    opacity: 1
}

.btn:active {
    transform: translateY(0)
}

.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    text-decoration: none;
    white-space: nowrap;
}

.btn-sm:hover {
    background: var(--navy);
    transform: translateY(-1px);
    box-shadow: var(--shadow-teal)
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-2);
    box-shadow: none;
}

.btn-outline:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: rgba(1, 146, 158, 0.04)
}

.btn-export {
    background: rgba(5, 150, 105, 0.08);
    border: 1.5px solid rgba(5, 150, 105, 0.2);
    color: var(--success);
    box-shadow: none;
}

.btn-export:hover {
    background: rgba(5, 150, 105, 0.14);
    border-color: var(--success)
}

.btn-danger {
    border: 1.5px solid rgba(220, 38, 38, 0.2);
    background: rgba(220, 38, 38, 0.05);
    color: var(--danger)
}

.btn-danger:hover {
    background: rgba(220, 38, 38, 0.12)
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap
}

/* ─── STATS BAR ───────────────────────────────────────────── */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-xs);
    transition: all 0.3s var(--ease);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md)
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--orange);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-3);
    margin-top: 4px;
    font-weight: 500
}

/* ─── BRAND ICON ──────────────────────────────────────────── */
.brand-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: var(--shadow-teal);
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
        box-shadow: var(--shadow-teal)
    }

    50% {
        transform: scale(1.04);
        box-shadow: var(--shadow-glow-strong)
    }
}

/* ─── LOADING ─────────────────────────────────────────────── */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-body);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 24px;
}

.loading-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-1)
}

#loading-status {
    color: var(--text-3);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    margin-top: 12px
}

/* ─── SOURCE BADGES ───────────────────────────────────────── */
.source-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.source-badge.db {
    background: rgba(1, 146, 158, 0.06);
    color: var(--teal);
    border: 1px solid rgba(1, 146, 158, 0.12)
}

.source-badge.search {
    background: rgba(241, 90, 36, 0.06);
    color: var(--orange);
    border: 1px solid rgba(241, 90, 36, 0.12)
}

/* ─── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 62, 98, 0.4);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    width: min(92%, 600px);
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalUp 0.35s var(--ease-spring);
}

@keyframes modalUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card-alt);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700
}

.modal-header h3 i {
    color: var(--teal);
    margin-right: 8px
}

.modal-close {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-3);
    font-size: 0.9rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease);
}

.modal-close:hover {
    color: var(--text-1);
    background: var(--bg-input)
}

.modal-body {
    padding: 24px
}

/* ─── CHAT UI ─────────────────────────────────────────────── */
.chat-container {
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.chat-bubble {
    max-width: 82%;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    position: relative;
    animation: fadeSlideUp 0.3s var(--ease);
}

.chat-bubble.supervisor {
    align-self: flex-start;
    background: rgba(1, 146, 158, 0.06);
    border: 1px solid rgba(1, 146, 158, 0.1);
    border-bottom-left-radius: 4px;
}

.chat-bubble.worker {
    align-self: flex-end;
    background: rgba(5, 150, 105, 0.06);
    border: 1px solid rgba(5, 150, 105, 0.1);
    border-bottom-right-radius: 4px;
    text-align: right;
}

.chat-meta {
    font-size: 0.68rem;
    color: var(--text-3);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600
}

.chat-content {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-2)
}

/* ─── ENRICHMENT ──────────────────────────────────────────── */
.enrichment-result {
    margin-top: 20px
}

.enrichment-data {
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 12px
}

.enrichment-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border)
}

.enrichment-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--teal)
}

.enrichment-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(1, 146, 158, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--teal)
}

.enrichment-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin: 0
}

.enrichment-headline {
    font-size: 0.82rem;
    color: var(--text-3);
    margin: 2px 0 0
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.88rem;
    color: var(--text-2)
}

.detail-row i {
    color: var(--teal);
    width: 16px;
    text-align: center;
    font-size: 0.82rem
}

/* ─── STEPPER ─────────────────────────────────────────────── */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 36px
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-3);
    font-weight: 500
}

.step.active {
    color: var(--teal)
}

.step.done {
    color: var(--success)
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    transition: all 0.3s var(--ease);
}

.step.active .step-num {
    border-color: var(--teal);
    background: var(--teal);
    color: #fff;
    box-shadow: var(--shadow-teal)
}

.step.done .step-num {
    border-color: var(--success);
    background: var(--success);
    color: #fff
}

.step-line {
    width: 48px;
    height: 2px;
    background: var(--border);
    margin: 0 8px;
    transition: background 0.3s var(--ease)
}

.step.done+.step-line,
.step-line.done {
    background: var(--success)
}

/* ─── RESULTS TABLE ───────────────────────────────────────── */
.results-table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card)
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem
}

.results-table th,
.results-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border)
}

.results-table th {
    background: var(--bg-card-alt);
    font-weight: 700;
    color: var(--teal);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    position: sticky;
    top: 0;
    z-index: 2
}

.results-table tbody tr {
    transition: background 0.2s var(--ease)
}

.results-table tbody tr:hover {
    background: rgba(1, 146, 158, 0.02)
}

/* ─── CONTACT LINKS ───────────────────────────────────────── */
.contact-links {
    margin-top: 20px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap
}

.icon-link {
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.icon-link:hover {
    color: var(--teal)
}

/* ─── FEATURE CARDS ───────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 32px
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    text-align: center;
    box-shadow: var(--shadow-xs);
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--orange));
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(1, 146, 158, 0.2)
}

.feature-card:hover::after {
    opacity: 1
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    transition: transform 0.3s var(--ease-spring)
}

.feature-card:hover .feature-icon {
    transform: scale(1.15)
}

.feature-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 8px
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--text-3);
    line-height: 1.7
}

/* ─── ANIMATIONS ──────────────────────────────────────────── */
@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(24px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-16px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes shimmerGradient {

    0%,
    100% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0)
    }

    10%,
    50%,
    90% {
        transform: translateX(-3px)
    }

    30%,
    70% {
        transform: translateX(3px)
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.4
    }
}

.stagger>*:nth-child(1) {
    animation-delay: 0ms
}

.stagger>*:nth-child(2) {
    animation-delay: 60ms
}

.stagger>*:nth-child(3) {
    animation-delay: 120ms
}

.stagger>*:nth-child(4) {
    animation-delay: 180ms
}

.stagger>*:nth-child(5) {
    animation-delay: 240ms
}

.stagger>*:nth-child(6) {
    animation-delay: 300ms
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media(max-width:768px) {

    .page-wrap,
    .container {
        padding: 24px 16px
    }

    .glass-card {
        padding: 24px 18px
    }

    .section-card {
        padding: 24px 18px
    }

    .card-pad {
        padding: 24px 18px
    }

    .features-grid {
        grid-template-columns: 1fr
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr)
    }

    .nav {
        padding: 0 16px
    }

    .stepper {
        flex-wrap: wrap;
        gap: 8px
    }

    .step-line {
        width: 20px
    }
}

@media(max-width:480px) {
    .stats-bar {
        grid-template-columns: 1fr
    }

    .header-actions {
        flex-direction: column
    }

    .btn {
        font-size: 0.88rem;
        padding: 14px
    }
}

/* ─── FLOATING NAV BUTTONS (Back / Forward) ───────────────── */
.page-nav-float {
    position: fixed;
    bottom: 28px;
    left: 28px;
    display: none; /* hidden by default; JS shows after first navigation */
    gap: 6px;
    z-index: 999;
}

.page-nav-float.visible {
    display: flex;
    animation: revealUp 0.5s var(--ease) both;
}

.page-nav-float .nav-float-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    border: none;
    /* Works on both light and dark pages */
    background: rgba(18, 62, 98, 0.85);
    color: #fff;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-nav-float .nav-float-btn:hover {
    background: var(--teal);
    transform: scale(1.12);
    box-shadow: 0 6px 28px rgba(1, 146, 158, 0.35);
}

.page-nav-float .nav-float-btn:active {
    transform: scale(0.95);
}

@media (max-width: 600px) {
    .page-nav-float {
        bottom: 16px;
        left: 16px;
    }

    .page-nav-float .nav-float-btn {
        width: 38px;
        height: 38px;
        font-size: 0.78rem;
    }
}