/* ============================================================
   DracoHub Careers — Design System & Styles
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #FFFFFF;
    --bg-alt: #F9FAFB;
    --bg-dark: #142A47;
    --text: #282727;
    --text-muted: #6B7280;
    --accent: #ED880D;
    --accent-hover: #D67A0B;
    --accent-tint: rgba(237, 136, 13, 0.08);
    --border: #E5E7EB;
    --navy: #142A47;
    --navy-tint: rgba(20, 42, 71, 0.06);
    --card-shadow: 0 8px 30px rgba(20, 42, 71, 0.08);
    --font-primary: 'DM Sans', 'Avenir', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --max-width: 1120px;
}

[data-theme="dark"] {
    --bg: #0F1419;
    --bg-alt: #161B22;
    --text: #E0E0E0;
    --text-muted: #8B949E;
    --border: #2D333B;
    --navy-tint: rgba(255, 255, 255, 0.06);
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s, color 0.3s;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utility --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.accent {
    color: var(--accent);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-heading {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 12px;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background 0.3s, border-color 0.3s;
}

[data-theme="dark"] .nav {
    background: rgba(15, 20, 25, 0.92);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--navy);
}

[data-theme="dark"] .nav-logo {
    color: #F0F0F0;
}

.dot {
    color: var(--accent);
}

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

.nav-links a:not(.nav-cta) {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-links a:not(.nav-cta):hover {
    color: var(--text);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 20px;
    background: var(--navy);
    color: #FFFFFF !important;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.nav-cta:hover {
    background: var(--accent);
}

/* nav-actions: theme toggle + hamburger, always visible */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.theme-toggle:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    z-index: 999;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu-link {
    font-size: 1rem;
    padding: 8px 0;
    color: var(--text-muted);
}

.mobile-menu .nav-cta {
    background: transparent;
    color: var(--accent) !important;
    padding: 8px 0;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0;
}

.mobile-menu .nav-cta:hover {
    background: transparent;
    color: var(--text) !important;
}

/* --- Disclaimer Banner --- */
.disclaimer {
    background: var(--accent-tint);
    border-bottom: 1px solid rgba(237, 136, 13, 0.15);
    padding: 14px 0;
    margin-top: 64px;
}

.disclaimer-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.disclaimer-inner svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 2px;
}

.disclaimer-inner p {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-muted);
    flex: 1;
}

.disclaimer-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.2s;
}

.disclaimer-close:hover {
    color: var(--text);
}

.disclaimer.hidden {
    display: none;
}

/* --- Hero --- */
.hero {
    position: relative;
    padding: 160px 0 80px;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(237, 136, 13, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 680px;
}

.hero h1 {
    font-family: var(--font-primary);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(237, 136, 13, 0.3);
}

.btn-secondary {
    background: var(--navy-tint);
    color: var(--navy);
}

[data-theme="dark"] .btn-secondary {
    color: var(--text);
}

.btn-secondary:hover {
    background: rgba(20, 42, 71, 0.1);
}

[data-theme="dark"] .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    font-size: 0.88rem;
}
.btn-ghost:hover {
    background: var(--accent);
    color: #fff;
}

/* --- Search & Filters --- */
.search-bar {
    margin-bottom: 24px;
}

.search-input-wrap {
    position: relative;
    margin-bottom: 12px;
}

.search-input-wrap svg {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(20, 42, 71, 0.08);
}

[data-theme="dark"] .search-input {
    background: #1C2128;
    border-color: #2D333B;
}

[data-theme="dark"] .search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(237, 136, 13, 0.1);
}

.filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    min-width: 160px;
}

[data-theme="dark"] .filter-select {
    background: #1C2128;
    border-color: #2D333B;
}

.filter-select:focus {
    outline: none;
    border-color: var(--navy);
}

.results-count {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* --- Jobs Grid --- */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.job-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .job-card {
    background: #1C2128;
    border-color: #2D333B;
}

.job-card:hover {
    border-color: transparent;
    box-shadow: var(--card-shadow);
    transform: translateY(-4px);
}

/* --- Share Trigger & Dropdown on Job Cards --- */
.job-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.share-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.share-trigger:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-tint);
}

[data-theme="dark"] .share-trigger {
    background: #1C2128;
    border-color: #2D333B;
}

[data-theme="dark"] .share-trigger:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(237, 136, 13, 0.1);
}

.share-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 180px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    z-index: 100;
    animation: dropdownIn 0.18s ease;
}

[data-theme="dark"] .share-dropdown {
    background: #1C2128;
    border-color: #2D333B;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.share-dropdown.open {
    display: block;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.share-dropdown-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 4px 10px 8px;
}

.share-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}

.share-dropdown-item:hover {
    background: var(--navy-tint);
}

[data-theme="dark"] .share-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.share-dropdown-item.whatsapp svg { color: #25D366; }
.share-dropdown-item.linkedin svg { color: #0A66C2; }
.share-dropdown-item.twitter svg { color: var(--text); }
.share-dropdown-item.copy svg { color: var(--text-muted); }
.share-dropdown-item.copied .copy-label { color: var(--accent); }

.job-card-header {
    margin-bottom: 12px;
}

.job-card-source {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    background: var(--accent-tint);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 10px;
}

.job-card-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 6px;
}

.job-card-company {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.job-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.job-card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-footer {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.job-card-footer .btn {
    font-size: 0.85rem;
    padding: 10px 18px;
    flex: 1;
    text-align: center;
}

/* --- Upvote Button --- */
.upvote-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}

.upvote-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-tint);
}

.upvote-btn.voted {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-tint);
}

.upvote-btn svg {
    transition: transform 0.25s;
}

.upvote-btn:hover svg,
.upvote-btn.voted svg {
    transform: translateY(-1px);
}

.upvote-count {
    font-variant-numeric: tabular-nums;
}

.job-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.job-card-buttons {
    display: flex;
    gap: 8px;
}

.job-card-buttons .btn {
    font-size: 0.85rem;
    padding: 10px 18px;
    flex: 1;
    text-align: center;
}

/* Modal upvote */
.modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-actions .upvote-btn {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* --- Share Buttons --- */
.share-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s;
    padding: 0;
}

.share-btn:hover {
    border-color: transparent;
    transform: translateY(-1px);
}

.share-btn.whatsapp:hover {
    background: #25D366;
    color: #fff;
}

.share-btn.linkedin:hover {
    background: #0A66C2;
    color: #fff;
}

.share-btn.twitter:hover {
    background: #1DA1F2;
    color: #fff;
}

.share-btn.copy-link:hover {
    background: var(--navy);
    color: #fff;
}

[data-theme="dark"] .share-btn {
    background: #1C2128;
    border-color: #2D333B;
}

.share-btn .tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
}

.share-btn.copied .tooltip {
    display: block;
    animation: fadeOut 1.5s forwards;
}

@keyframes fadeOut {
    0%, 70% { opacity: 1; }
    100% { opacity: 0; }
}

/* Modal share row */
.modal-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.modal-share .share-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.modal-share .share-btn {
    width: 38px;
    height: 38px;
}

/* --- Share Nudge --- */
.share-nudge {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-dark);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    max-width: 340px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    z-index: 1500;
    animation: slideUp 0.4s ease;
}

.share-nudge.visible {
    display: block;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.share-nudge-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.share-nudge-text strong {
    color: var(--accent);
}

.share-nudge-actions {
    display: flex;
    gap: 8px;
}

.share-nudge-actions .btn {
    font-size: 0.82rem;
    padding: 10px 16px;
}

.share-nudge-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
}

.share-nudge-close:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* --- Saved Collection Bar --- */
.collection-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    color: #fff;
    padding: 14px 24px;
    z-index: 1500;
    animation: slideUp 0.3s ease;
}

.collection-bar.visible {
    display: block;
}

.collection-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.collection-bar-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.collection-bar-info strong {
    color: var(--accent);
}

.collection-bar-actions {
    display: flex;
    gap: 8px;
}

.collection-bar-actions .btn {
    font-size: 0.82rem;
    padding: 8px 16px;
}

/* Bookmark/save button on cards */
.save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s;
    padding: 0;
    flex-shrink: 0;
}

.save-btn:hover,
.save-btn.saved {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-tint);
}

[data-theme="dark"] .save-btn {
    background: #1C2128;
    border-color: #2D333B;
}

/* --- Flag as Closed --- */
.flag-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}
.flag-btn:hover {
    color: #e05252;
    background: rgba(224, 82, 82, 0.08);
}
.flag-btn.flag-reported {
    opacity: 0.45;
    cursor: default;
}

/* --- Stale notice --- */
.stale-notice {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: -14px;
    margin-bottom: 16px;
}
.stale-toggle {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.stale-toggle:hover { opacity: 0.8; }

/* --- Weekly Stats Banner --- */
.weekly-stats {
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.weekly-stats-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.weekly-stats-text strong {
    color: var(--accent);
    font-weight: 700;
}

.weekly-stats-share {
    display: flex;
    align-items: center;
    gap: 8px;
}

.weekly-stats-share .share-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Hot Jobs Card --- */
.hot-jobs-card {
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.hot-jobs-card .subscribe-decor-1 {
    width: 200px;
    height: 200px;
    top: -60px;
    right: -40px;
}

.hot-jobs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.hot-jobs-title {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.hot-jobs-title span {
    color: var(--accent);
}

.hot-jobs-list {
    list-style: none;
}

.hot-jobs-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 12px;
}

.hot-jobs-list li:last-child {
    border-bottom: none;
}

.hot-job-rank {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 24px;
}

.hot-job-info {
    flex: 1;
}

.hot-job-info-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.hot-job-info-company {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

.hot-job-votes {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

.hot-jobs-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hot-jobs-share .share-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (max-width: 768px) {
    .share-nudge {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }
    .weekly-stats {
        flex-direction: column;
        align-items: flex-start;
    }
    .collection-bar-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- Skeleton Loader --- */
.skeleton {
    pointer-events: none;
}

.skeleton-line {
    height: 16px;
    background: var(--border);
    border-radius: 4px;
    margin-bottom: 12px;
    animation: shimmer 1.5s infinite;
}

.w40 { width: 40%; }
.w50 { width: 50%; }
.w60 { width: 60%; }
.w80 { width: 80%; }

@keyframes shimmer {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* --- Load More --- */
.load-more-wrap {
    text-align: center;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text-muted);
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.3s;
}

[data-theme="dark"] .feature-card {
    background: #1C2128;
    border-color: #2D333B;
}

.feature-card:hover {
    border-color: transparent;
    box-shadow: var(--card-shadow);
    transform: translateY(-4px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--accent-tint);
    color: var(--accent);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

.feature-card h3 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Subscribe --- */
.subscribe-card {
    position: relative;
    background: #142A47;
    border-radius: var(--radius-lg);
    padding: 60px 48px;
    text-align: center;
    overflow: hidden;
}

.subscribe-decor-1,
.subscribe-decor-2 {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.subscribe-decor-1 {
    width: 300px;
    height: 300px;
    background: rgba(237, 136, 13, 0.08);
    top: -100px;
    right: -80px;
}

.subscribe-decor-2 {
    width: 200px;
    height: 200px;
    background: rgba(237, 136, 13, 0.05);
    bottom: -60px;
    left: -40px;
}

.subscribe-heading {
    font-family: var(--font-primary);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.subscribe-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.subscribe-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto 16px;
}

.subscribe-input {
    flex: 1;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    transition: all 0.2s;
}

.subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.subscribe-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(237, 136, 13, 0.15);
}

.subscribe-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

/* --- Alert signup form --- */
.alert-form {
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
}

.alert-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.alert-form-row:last-of-type {
    grid-template-columns: 1fr 1fr 1fr;
}

.alert-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.alert-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

.alert-input {
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.alert-input::placeholder { color: rgba(255,255,255,0.35); }

.alert-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(237,136,13,0.18);
}

.alert-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.alert-select option { background: #1a2e4a; color: #fff; }

.tier-buttons {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 12px;
    margin-top: 8px;
}

.alert-submit {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    font-weight: 700;
}

.tier-btn-free {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.tier-btn-free:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 640px) {
    .tier-buttons { grid-template-columns: 1fr; }
}

.alert-success {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.3);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    text-align: left;
    color: #fff;
    margin-bottom: 8px;
}

.alert-success svg { color: #22c55e; flex-shrink: 0; margin-top: 2px; }
.alert-success strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.alert-success p { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin: 0; }

@media (max-width: 640px) {
    .alert-form-row,
    .alert-form-row:last-of-type {
        grid-template-columns: 1fr;
    }
}

/* --- Digest Pitch Section --- */
.digest-pitch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.digest-pitch-heading {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 12px 0 16px;
}

.digest-pitch-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.digest-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.digest-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text);
}

.digest-features li svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.digest-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 24px;
}

.digest-price {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--accent);
}

.digest-price-sub {
    font-size: 1rem;
    color: var(--text-muted);
}

.digest-cta {
    font-size: 1rem;
    padding: 14px 28px;
}

/* Digest preview mock card */
.digest-pitch-right {
    display: flex;
    justify-content: center;
}

.digest-preview-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.digest-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.digest-preview-logo {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.digest-preview-logo span { color: var(--accent); }

.digest-preview-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-tint);
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.digest-preview-stat-row {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
}

.digest-preview-stat {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    border-right: 1px solid var(--border);
}

.digest-preview-stat:last-child { border-right: none; }

.digest-preview-stat strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
}

.digest-preview-stat span {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.digest-preview-category {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 14px 0 8px;
}

.digest-preview-job {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.digest-preview-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.digest-preview-company {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.digest-preview-apply {
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.digest-preview-more {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    padding-top: 14px;
    font-style: italic;
}

@media (max-width: 900px) {
    .digest-pitch {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .digest-pitch-right { display: none; }
    .digest-pitch-heading { font-size: 1.8rem; }
}

/* --- Footer --- */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Modal --- */
/* ============================================================
   JOB DETAIL PANEL (right-side slide-in)
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    z-index: 2000;
    display: none;
}

.modal-overlay.open {
    display: block;
}

.modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 560px;
    max-width: 100vw;
    height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.18);
    animation: panelIn 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

[data-theme="dark"] .modal {
    background: #1C2128;
    border-left: 1px solid #2D333B;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
}

@keyframes panelIn {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

@keyframes panelOut {
    from { transform: translateX(0); }
    to   { transform: translateX(100%); }
}

.modal.closing {
    animation: panelOut 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Header row */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    gap: 12px;
}

.modal-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.modal-company-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent-tint);
    color: var(--accent);
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}

.modal-source {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: var(--accent-tint);
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

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

/* Scrollable body */
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px 16px;
    -webkit-overflow-scrolling: touch;
}

.modal-title {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 6px;
}

.modal-company {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 12px;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.modal-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 100px;
}

.modal-meta-pill svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.modal-divider {
    height: 1px;
    background: var(--border);
    margin: 18px 0;
}

.modal-section-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.modal-desc {
    font-size: 0.92rem;
    line-height: 1.85;
    color: var(--text);
    white-space: pre-line;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 4px;
}

/* Sticky footer */
.modal-footer {
    border-top: 1px solid var(--border);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    background: var(--bg);
}

[data-theme="dark"] .modal-footer {
    background: #1C2128;
}

.modal-footer .btn-primary {
    flex: 1;
    justify-content: center;
    font-size: 0.95rem;
    padding: 12px 20px;
}

.modal-footer .upvote-btn {
    padding: 10px 16px;
    font-size: 0.875rem;
}

.modal-apply {
    display: inline-flex;
}

/* Mobile: full-height panel from bottom */
@media (max-width: 600px) {
    .modal {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 92vh;
        border-radius: 20px 20px 0 0;
        animation: panelInMobile 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes panelInMobile {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }

    .modal.closing {
        animation: panelOutMobile 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    @keyframes panelOutMobile {
        from { transform: translateY(0); }
        to   { transform: translateY(100%); }
    }

    .modal-body {
        padding: 20px 20px 12px;
    }

    .modal-footer {
        padding: 12px 16px;
    }
}

/* --- Scroll Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-stats {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .theme-toggle {
        width: 42px;
        height: 42px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 6vw, 2.6rem);
    }

    .section {
        padding: 60px 0;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

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

    .subscribe-card {
        padding: 40px 24px;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }
}

/* ============================================================
   JOB TAGS
   ============================================================ */
.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 6px 0 8px;
}

.modal-tags {
    margin: 10px 0 14px;
}

.job-tag {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Category — indigo */
.tag-category {
    background: rgba(99, 102, 241, 0.12);
    color: #6366f1;
}
[data-theme="dark"] .tag-category {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

/* Discipline — teal */
.tag-discipline {
    background: rgba(20, 184, 166, 0.12);
    color: #0d9488;
}
[data-theme="dark"] .tag-discipline {
    background: rgba(20, 184, 166, 0.2);
    color: #5eead4;
}

/* Seniority — amber */
.tag-seniority {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}
[data-theme="dark"] .tag-seniority {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

/* Employment type — rose */
.tag-employment {
    background: rgba(244, 63, 94, 0.1);
    color: #e11d48;
}
[data-theme="dark"] .tag-employment {
    background: rgba(244, 63, 94, 0.18);
    color: #fb7185;
}

/* Skills — neutral */
.tag-skill {
    background: var(--bg-secondary);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
}

/* ============================================================
   AUTH — Nav user button & dropdown
   ============================================================ */

/* "Log In" link in the nav (shown when logged out) */
.nav-login-btn {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.nav-login-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* User avatar button (shown when logged in) */
.nav-user-wrap {
    position: relative;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-tint);
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}
.nav-user-btn:hover { background: rgba(237,136,13,0.15); }

.nav-user-avatar {
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    pointer-events: none;
}

/* Dropdown */
.nav-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md, 12px);
    box-shadow: 0 8px 32px rgba(20,42,71,0.12);
    z-index: 200;
    overflow: hidden;
}
[data-theme="dark"] .nav-user-dropdown {
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.nav-user-dropdown.open { display: block; }

.nav-user-info {
    padding: 14px 16px 10px;
}
.nav-user-info strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}
.nav-user-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.nav-user-divider { height: 1px; background: var(--border); }

.nav-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 0.88rem;
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 500;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}
.nav-user-item:hover { background: var(--bg-alt); }
.nav-user-item svg { color: var(--text-muted); flex-shrink: 0; }

.nav-user-signout:hover { background: rgba(239,68,68,0.06); }
.nav-user-signout:hover, .nav-user-signout:hover svg { color: #ef4444; }

/* ============================================================
   AUTH — Navbar for profile.html / login.html (uses .navbar class)
   ============================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 64px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background 0.3s, border-color 0.3s;
}
[data-theme="dark"] .navbar { background: rgba(15,20,25,0.92); }

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* profile.html uses --bg-secondary which may not be defined — alias it */
:root { --bg-secondary: var(--bg-alt); }

/* padding so fixed nav doesn't cover page content on profile/login pages */
.profile-main, .login-main { padding-top: 64px; }

/* Log In link inside nav-links (static, hidden when user is signed in) */
.nav-login-link {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted) !important;
    transition: color 0.2s;
}
.nav-login-link:hover { color: var(--accent) !important; }
