@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

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

:root {
    --bg: #050810;
    --bg2: #090d1a;
    --card: #0d1424;
    --card2: #111827;
    --border: rgba(99, 179, 237, 0.12);
    --border2: rgba(99, 179, 237, 0.2);
    --primary: #00d4ff;
    --primary2: #0099cc;
    --accent: #ff6b35;
    --accent2: #ff8c5a;
    --gold: #ffd700;
    --text: #e8f4ff;
    --text2: #8ba8c7;
    --text3: #506480;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --font-head: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
}

.app {
    min-height: 100vh;
}

.app::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.4;
}

/* ── Nav ─────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(5, 8, 16, 0.75);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s, box-shadow 0.3s;
}

.nav--scrolled {
    background: rgba(5, 8, 16, 0.96);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
    border-bottom-color: var(--border2);
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
}

.nav-logo-text {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 20%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
}

/* Desktop links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-divider {
    width: 1px;
    height: 20px;
    background: var(--border2);
    margin: 0 0.5rem;
}

.nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text2);
    font-family: var(--font-body);
    font-size: 0.88rem;
    padding: 7px 15px;
    border-radius: 8px;
    transition: color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    position: relative;
}

.nav-btn::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transition: transform 0.2s ease;
}

.nav-btn:hover {
    color: var(--text);
    background: rgba(99, 179, 237, 0.07);
}

.nav-btn.active {
    color: var(--primary);
}

.nav-btn.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: var(--bg);
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 9px;
    letter-spacing: 0.02em;
}

.nav-btn.primary::after {
    display: none;
}

.nav-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 212, 255, 0.35);
    background: linear-gradient(135deg, #1adeff, var(--primary));
}

.nav-btn.sign-out {
    color: var(--text3);
}

.nav-btn.sign-out:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.08);
}

/* ── Hamburger ───────────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(99, 179, 237, 0.07);
    border: 1px solid var(--border);
    border-radius: 9px;
    cursor: pointer;
    padding: 0;
    align-items: center;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.nav-hamburger:hover {
    background: rgba(99, 179, 237, 0.13);
    border-color: var(--border2);
}

.nav-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text2);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease, background 0.2s;
    transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--primary);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--primary);
}

/* ── Mobile Drawer ───────────────────────────── */
.nav-drawer {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(9, 13, 26, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border2);
    padding: 1.25rem 1.5rem 1.5rem;
    flex-direction: column;
    gap: 0.25rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 199;
}

.nav-drawer.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.nav-drawer-link {
    display: block;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--text2);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.18s, background 0.18s;
    border-left: 2px solid transparent;
}

.nav-drawer-link:hover {
    color: var(--text);
    background: rgba(99, 179, 237, 0.07);
}

.nav-drawer-link.active {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.07);
    border-left-color: var(--primary);
}

.nav-drawer-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ── Backdrop ────────────────────────────────── */
.nav-backdrop {
    position: fixed;
    inset: 0;
    top: 68px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 198;
    backdrop-filter: blur(2px);
}

/* ── Hero ────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 2rem 80px;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}

.hero-glow2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.06) 0%, transparent 70%);
    top: 30%;
    right: 10%;
    animation: pulse 6s ease-in-out infinite reverse;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.7;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text2);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    font-weight: 300;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: var(--bg);
    box-shadow: 0 4px 24px rgba(0, 212, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border2);
}

.btn-outline:hover {
    background: rgba(99, 179, 237, 0.08);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: white;
    box-shadow: 0 4px 24px rgba(255, 107, 53, 0.25);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.4);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 7px 16px;
    font-size: 0.85rem;
}

.btn-ghost {
    background: rgba(99, 179, 237, 0.06);
    border: 1px solid var(--border);
    color: var(--text2);
}

.btn-ghost:hover {
    background: rgba(99, 179, 237, 0.12);
    color: var(--text);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

/* ── Stats Row ───────────────────────────────── */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* ── Sections ────────────────────────────────── */
.section {
    padding: 100px 2rem;
    position: relative;
    z-index: 1;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    font-family: var(--font-head);
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-sub {
    color: var(--text2);
    font-size: 1rem;
    max-width: 600px;
    line-height: 1.7;
    font-weight: 300;
}

/* ── Values ──────────────────────────────────── */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: left;
}

.value-card:hover {
    border-color: var(--border2);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.value-card h3 {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.value-card p {
    color: var(--text2);
    font-size: 0.9rem;
    line-height: 1.7;
    font-weight: 300;
}

/* ── Jobs ────────────────────────────────────── */
.jobs-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.job-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: start;
    transition: all 0.25s;
    cursor: pointer;
}

.job-card:hover {
    border-color: var(--border2);
    background: var(--card2);
    transform: translateX(4px);
    box-shadow: -4px 0 0 var(--primary);
}

.job-title {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.job-dept {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.job-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text3);
    font-size: 0.82rem;
    font-weight: 400;
}

.job-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

/* ── Badges ──────────────────────────────────── */
.badge {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-blue {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.badge-orange {
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.badge-gray {
    background: rgba(80, 100, 128, 0.2);
    color: var(--text3);
    border: 1px solid rgba(80, 100, 128, 0.2);
}

/* ── Team ────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.team-card:hover {
    border-color: var(--border2);
    transform: translateY(-4px);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg);
}

.team-name {
    font-family: var(--font-head);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--text3);
    font-size: 0.85rem;
}

/* ── Auth Modal ──────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(5, 8, 16, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal {
    background: var(--card);
    border: 1px solid var(--border2);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(99, 179, 237, 0.08);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text2);
    cursor: pointer;
    padding: 6px;
    display: flex;
    transition: all 0.2s;
}

.modal-close:hover {
    color: var(--text);
    background: rgba(99, 179, 237, 0.15);
}

.modal-title {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.modal-sub {
    color: var(--text2);
    font-size: 0.88rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* ── Forms ───────────────────────────────────── */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text2);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: rgba(99, 179, 237, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 10px 14px;
    transition: all 0.2s;
    outline: none;
    font-weight: 300;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-select option {
    background: var(--card2);
}

.form-error {
    color: var(--danger);
    font-size: 0.82rem;
    margin-top: 4px;
}

/* ── Dashboard ───────────────────────────────── */
.dashboard {
    min-height: 100vh;
    display: flex;
}

/* ── Sidebar ─────────────────────────────────── */
.sidebar {
    width: 260px;
    background: var(--bg2);
    border-right: 1px solid var(--border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 150;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
}

.sidebar-logo-text {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    background: none;
    color: var(--text2);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: all 0.2s;
}

.sidebar-btn:hover {
    background: rgba(99, 179, 237, 0.08);
    color: var(--text);
}

.sidebar-btn.active {
    background: rgba(0, 212, 255, 0.12);
    color: var(--primary);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.sidebar-user {
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--text2);
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.sidebar-user strong {
    display: block;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Dim backdrop when sidebar slides in on mobile */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 140;
}

/* ── Mobile topbar ───────────────────────────── */
.dash-topbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    margin: -1.5rem -1rem 1.5rem;
    gap: 0.75rem;
}

.dash-topbar-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
    letter-spacing: -0.01em;
    flex: 1;
    text-align: center;
}

.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(99, 179, 237, 0.07);
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text2);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.sidebar-toggle:hover {
    background: rgba(99, 179, 237, 0.14);
    color: var(--text);
}

/* ── Mobile bottom nav ───────────────────────── */
.dash-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 130;
    background: rgba(9, 13, 26, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 0.4rem 0 calc(0.4rem + env(safe-area-inset-bottom));
    display: none;
    align-items: stretch;
}

.dash-bottom-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 4px;
    background: none;
    border: none;
    color: var(--text3);
    cursor: pointer;
    transition: color 0.18s;
}

.dash-bottom-btn.active {
    color: var(--primary);
}

.dash-bottom-icon {
    position: relative;
    display: flex;
}

.dash-bottom-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--accent);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.dash-bottom-label {
    font-size: 0.68rem;
    font-weight: 500;
    font-family: var(--font-body);
    letter-spacing: 0.01em;
}

/* ── Main Content ────────────────────────────── */
.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 2.5rem;
    min-height: 100vh;
}

/* Page header row variant (title + action button) */
.page-header {
    margin-bottom: 2rem;
}

.page-header--row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    font-family: var(--font-head);
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.page-header p {
    color: var(--text3);
    font-size: 0.88rem;
    font-weight: 400;
}

/* ── Cards ───────────────────────────────────── */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
}

.card+.card {
    margin-top: 1.25rem;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 1.5rem 1.25rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: border-color 0.2s, transform 0.2s;
    cursor: default;
}

.stat-card:hover {
    border-color: var(--border2);
    transform: translateY(-2px);
}

/* Colored top accent bar */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--stat-accent, var(--primary));
    opacity: 0.7;
}

/* Ambient glow blob */
.stat-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--stat-accent, var(--primary)), transparent 70%);
    opacity: 0.1;
    pointer-events: none;
}

/* Per-card accent colors */
.stat-card:nth-child(1) {
    --stat-accent: var(--primary);
}

.stat-card:nth-child(2) {
    --stat-accent: var(--accent);
}

.stat-card:nth-child(3) {
    --stat-accent: var(--warning);
}

.stat-card:nth-child(4) {
    --stat-accent: var(--success);
}

.stat-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--stat-accent, var(--primary));
    flex-shrink: 0;
}

.stat-card-body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
}

.stat-card-num {
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--stat-accent, var(--primary));
    letter-spacing: -0.02em;
}

.stat-card-label {
    font-size: 0.75rem;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-top: 0.35rem;
}

/* ── Table ───────────────────────────────────── */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
}

th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

/* ── App-list: mobile card-list alternative to table rows ── */
.app-list {
    display: none;
    /* shown via mobile media query */
    flex-direction: column;
}

.app-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(99, 179, 237, 0.06);
}

.app-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.app-list-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--bg);
    flex-shrink: 0;
    text-transform: uppercase;
}

.app-list-info {
    flex: 1;
    min-width: 0;
}

.app-list-name {
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-list-sub {
    font-size: 0.75rem;
    color: var(--text3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.app-list-right {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.app-list-position {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text2);
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-list-date {
    font-size: 0.7rem;
    color: var(--text3);
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(99, 179, 237, 0.06);
    font-size: 0.9rem;
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(99, 179, 237, 0.03);
}

/* ── Job Detail ──────────────────────────────── */
.job-detail-panel {
    background: var(--card);
    border: 1px solid var(--border2);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 1.5rem;
}

.req-list {
    list-style: none;
    margin-top: 0.75rem;
}

.req-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text2);
    font-weight: 300;
}

.req-list li::before {
    content: '→';
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Apply Form ──────────────────────────────── */
.apply-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.apply-form .full {
    grid-column: 1 / -1;
}

/* ── Footer ──────────────────────────────────── */
.footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-brand {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.footer-tag {
    color: var(--text3);
    font-size: 0.85rem;
    font-weight: 300;
}

/* ── Misc ────────────────────────────────────── */
.divider {
    height: 1px;
    background: var(--border);
    margin: 1.5rem 0;
}

.tab-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: -1px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text2);
    transition: all 0.2s;
    position: relative;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text3);
}

.empty-state p {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ── Notification ────────────────────────────── */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 300;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 360px;
    animation: fadeUp 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.notification.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.notification.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

/* ── Tab Transitions ─────────────────────────── */
@keyframes tabEnter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content {
    animation: tabEnter 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Animations ──────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.5s ease forwards;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

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

    /* Sidebar slides in from left instead of always visible */
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.sidebar--open {
        transform: translateX(0);
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.6);
    }

    .sidebar-backdrop {
        display: block;
    }

    /* Main content full-width, add bottom padding for bottom nav */
    .main-content {
        margin-left: 0;
        padding: 1.5rem 1rem;
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }

    /* Show mobile topbar */
    .dash-topbar {
        display: flex;
    }

    /* Show bottom nav */
    .dash-bottom-nav {
        display: flex;
    }

    /* Forms */
    .apply-form {
        grid-template-columns: 1fr;
    }

    .apply-form .full {
        grid-column: 1;
    }

    /* Job cards stack */
    .job-card {
        grid-template-columns: 1fr;
    }

    .job-actions {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    /* Stats grid 2-col on mobile */
    .stats-cards {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .stat-card-num {
        font-size: 2rem;
    }

    .stat-card {
        padding: 1.1rem;
    }

    /* Page header stacks vertically */
    .page-header--row {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-header--row .btn {
        width: 100%;
        justify-content: center;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    /* Nav */
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-drawer {
        display: flex;
    }

    .nav {
        padding: 0 1.25rem;
    }

    /* Tables: hide on mobile, show app-list instead */
    .table-wrap {
        display: none;
    }

    .app-list {
        display: flex;
    }

    /* Card padding tighter */
    .card {
        padding: 1.1rem;
    }

    /* Section headings */
    .card h3 {
        font-size: 1rem;
    }
}

/* Tablet (769–1024px): sidebar visible but narrower */
@media (max-width: 1024px) and (min-width: 769px) {
    .sidebar {
        width: 220px;
        padding: 1.25rem;
    }

    .sidebar-logo-text {
        font-size: 0.9rem;
    }

    .main-content {
        margin-left: 220px;
        padding: 2rem 1.5rem;
    }

    .stats-cards {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablet nav */
@media (max-width: 900px) and (min-width: 769px) {
    .nav-btn.primary {
        padding: 7px 14px;
        font-size: 0.83rem;
    }

    .nav-btn {
        padding: 7px 11px;
    }
}