/* ==========================================================================
   Navigation CSS - Premium Sports Analytics Dashboard
   ========================================================================== */

/* Navigation uses design tokens from variables.css */

/* Navigation Container - Static positioning, does NOT scroll with page */
.brand-nav {
    position: relative;
    /* Stretch across viewport, then constrain inner content to the same width
       as .main-dashboard-layout (min(100%, 1900px)) so right edges align */
    left: 0;
    right: 0;
    padding: 12px var(--layout-gutter); /* Match main-container horizontal gutter */
    z-index: 100; /* Above content but not extreme */
    display: flex;
    align-items: center;
    pointer-events: none;
    margin: 0 !important;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

.brand-nav * {
    pointer-events: auto;
}

/* Ensure nav is always visible */
body.page-active-picks .brand-nav {
    z-index: 9999 !important;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 4px; /* Tighter, more compact spacing */
    align-items: center;
    margin: 0 auto; /* Center within full-width brand-nav */
    padding: 0;
    /* Constrain nav links to same max width as .main-dashboard-layout so the
       Sports Books dropdown right edge aligns with the table container */
    width: min(100%, 1900px);
    justify-content: flex-end;
}

.nav-links li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Navigation Link Styles - Premium Serif Typography */
.nav-link {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-weight: 700; /* Increased weight for better readability */
    font-size: 0.8rem; /* More compact size */
    text-transform: uppercase;
    letter-spacing: 0.12em; /* Tighter, more elegant spacing */
    color: #ffffff; /* Pure white for max contrast */
    text-decoration: none;
    padding: 4px 6px; /* More compact padding */
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.25s ease, text-shadow 0.25s ease, transform 0.2s ease;
    position: relative;
    background: transparent !important;
    border: none;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.35), 0 0 2px rgba(255, 255, 255, 0.2), 0 2px 10px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 1), 0 0 2px rgba(0, 0, 0, 0.8); /* Subtle glow + enhanced contrast shadow for better readability */
    opacity: 1; /* Full opacity */
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    outline: none;
    caret-color: transparent;
    /* Sharper text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Disabled / placeholder nav links */
.nav-link[aria-disabled="true"] {
    pointer-events: none; /* Prevent clicks, but look normal */
    /* No opacity or cursor changes - looks like regular link for design */
    color: #e8f0f2; /* Slightly softer white but still readable */
    opacity: 0.85; /* Increased opacity for better readability */
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.25), 0 0 1px rgba(255, 255, 255, 0.15), 0 2px 10px rgba(0, 0, 0, 0.9), 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.7); /* Subtle glow + enhanced contrast shadow */
}

.nav-link[aria-disabled="true"]::before {
    opacity: 0 !important;
    transform: scaleX(0) !important;
    box-shadow: none !important;
}

.nav-link:hover {
    color: #ffffff; /* Even brighter on hover */
    background: transparent !important;
    text-shadow: 0 0 16px rgba(var(--color-primary-bright-rgb), 0.7), 0 2px 10px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 1), 0 0 2px rgba(0, 0, 0, 0.8); /* Enhanced glow with stronger contrast */
    opacity: 1;
    transform: translateY(-1px); /* Subtle lift effect */
}

.nav-link:focus,
.nav-link:focus-visible {
    outline: none;
    background: transparent !important;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(var(--color-primary-bright-rgb), 0.9), 0 2px 10px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 1), 0 0 2px rgba(0, 0, 0, 0.8);
}

.nav-link.active,
.nav-link[aria-current="page"] {
    color: #00ffaa; /* Brighter, higher contrast active color */
    font-weight: 700; /* Increased weight to match other links */
    background: transparent !important;
    text-shadow:
        0 0 20px rgba(0, 255, 170, 0.8),
        0 0 12px rgba(var(--color-primary-bright-rgb), 0.6),
        0 2px 10px rgba(0, 0, 0, 0.95),
        0 1px 4px rgba(0, 0, 0, 1),
        0 0 2px rgba(0, 0, 0, 0.8); /* Enhanced glow with stronger contrast */
    opacity: 1;
}

/* Elegant underline animation */
.nav-link::after {
    content: none !important;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 0;
    right: 0;
    height: 1.5px; /* Thinner, more elegant */
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 170, 0.8),
        transparent
    );
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

/* Hover underline for non-active links */
.nav-link:not(.active):not([aria-current="page"]):hover::before {
    opacity: 1;
    transform: scaleX(1);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 170, 0.9),
        transparent
    );
    box-shadow: 0 0 16px rgba(0, 255, 170, 0.6);
}

/* Active underline with glow */
.nav-link.active::before,
.nav-link[aria-current="page"]::before {
    opacity: 1;
    transform: scaleX(1);
    background: linear-gradient(
        90deg,
        rgba(0, 143, 88, 0.3),
        rgba(0, 255, 170, 1),
        rgba(0, 143, 88, 0.3)
    );
    box-shadow:
        0 0 20px rgba(0, 255, 170, 0.9),
        0 0 12px rgba(var(--color-primary-bright-rgb), 0.6);
}

/* ===== Dropdown Container ===== */
.nav-dropdown {
    position: relative;
    margin: 0;
    padding: 0;
}

/* Dropdown Trigger */
.brand-nav .nav-dropdown-trigger {
    padding: 4px 6px; /* Match nav-link compact padding */
    background: transparent !important;
    display: inline-flex;
    align-items: center;
    gap: 3px; /* Tighter gap */
}

.brand-nav .nav-dropdown-trigger::after {
    content: '▼' !important;
    font-size: 0.6em; /* Slightly smaller for elegance */
    opacity: 1;
    color: #00ffaa; /* Higher contrast bright green */
    display: inline-block;
    transition: transform 0.25s ease, color 0.25s ease, opacity 0.25s ease;
    margin-left: 2px;
    line-height: 1;
    font-weight: 600;
    text-shadow: 0 0 12px rgba(0, 255, 170, 0.7), 0 2px 4px rgba(0, 0, 0, 0.8);
    vertical-align: baseline;
    transform: translateY(0.1em);
}

.brand-nav .nav-dropdown-trigger:hover {
    background: transparent !important;
}

.brand-nav .nav-dropdown-trigger:hover::after {
    color: var(--color-primary-bright, #00d689) !important;
    opacity: 1 !important;
    transform: translateY(0.1em);
}

.brand-nav .nav-dropdown.open .nav-dropdown-trigger::after {
    content: '▼' !important;
    transform: translateY(0.1em) rotate(180deg);
    color: var(--color-primary-bright, #00d689) !important;
    opacity: 1 !important;
}

/* Dropdown Menu - When open */
.nav-dropdown.open .nav-dropdown-menu:not([hidden]) {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition: opacity 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), 
                visibility 0s linear 0s;
}

/* Dropdown Menu - Premium Dark Theme */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    max-height: 85vh;
    background: rgba(13, 27, 51, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 143, 88, 0.35);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(0, 143, 88, 0.12) inset;
    border-radius: 8px;
    padding: 10px 12px 12px;
    z-index: 10001; /* Above nav */
    overflow-y: auto;
    overflow-x: hidden;
    font-family: var(--sportsbook-body-font);
    font-size: var(--sportsbook-label-size);
    line-height: 1.35;
    letter-spacing: 0.02em;
    
    /* Animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), 
                visibility 0s linear 0.2s;
    pointer-events: none;
}

/* ===== Sleek Fetch Button at Sportsbook Level ===== */
.sportsbook-actions-row {
    display: flex !important;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin-top: 3px;
}

.sportsbook-credentials-group {
    display: flex;
    gap: 3px;
    flex: 1;
}

/* ===== Sportsbook Cards ===== */
.sportsbook-card {
    padding: 8px 10px;
    margin-bottom: 4px;
    background: linear-gradient(140deg, rgba(8, 17, 33, 0.88), rgba(6, 22, 26, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 2px solid rgba(0, 143, 88, 0.4);
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    font-family: var(--sportsbook-body-font);
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.sportsbook-card:hover {
    background: linear-gradient(140deg, rgba(10, 21, 40, 0.90), rgba(7, 24, 29, 0.95));
    border-color: rgba(var(--color-primary-bright-rgb), 0.15);
    border-left-color: #00b06c;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Success state after fetch for sleek button */
.sportsbook-card.fetch-success {
    border-left-color: #00ffaa;
    animation: successFlash 0.6s ease-out;
}

@keyframes successFlash {
    0% { 
        background: linear-gradient(140deg, rgba(0, 255, 170, 0.3), rgba(var(--color-primary-bright-rgb), 0.2));
        box-shadow: 0 0 30px rgba(0, 255, 170, 0.5);
    }
    100% { 
        background: linear-gradient(140deg, rgba(8, 17, 33, 0.85), rgba(6, 22, 26, 0.90));
        box-shadow: none;
    }
}

.sportsbook-card.fetch-success .sportsbook-fetch-compact {
    color: #00ffaa;
    background: rgba(0, 255, 170, 0.15);
}

/* Error state */
.sportsbook-card.fetch-error {
    border-left-color: #ff5570;
}

.sportsbook-card.fetch-error .sportsbook-fetch-compact {
    color: #ff5570;
    background: rgba(255, 71, 87, 0.15);
}

.sportsbook-card:focus-within {
    border-color: rgba(var(--color-primary-bright-rgb), 0.25);
    box-shadow: 0 0 0 1px rgba(var(--color-primary-bright-rgb), 0.15);
}

.sportsbook-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.sportsbook-meta-compact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.sportsbook-name-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0; /* Allow shrinking */
}

.sportsbook-name {
    font-family: var(--sportsbook-heading-font);
    font-weight: 700;
    font-size: var(--sportsbook-title-size);
    color: #e8f0f2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Connection Status Indicator */
.connection-status {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

.connection-status.connected {
    background: #00ffaa;
    box-shadow: 0 0 8px rgba(0, 255, 170, 0.6);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.connection-status.disconnected {
    background: #ff5570;
    box-shadow: 0 0 6px rgba(255, 71, 87, 0.4);
}

.connection-status.syncing {
    background: #80deea;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.8);
    animation: statusBlink 1s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.2); }
}

.sportsbook-last-sync {
    font-family: var(--sportsbook-heading-font);
    font-size: var(--sportsbook-caption-size);
    color: #90a4ae;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.sync-time {
    color: #b0bec5;
    font-family: var(--sportsbook-heading-font);
    font-weight: 600;
}

.sportsbook-fetch-compact {
    background: transparent;
    border: none;
    padding: 2px 4px;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sportsbook-heading-font);
    font-size: var(--sportsbook-caption-size);
    font-weight: 600;
    color: #00d689;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
    border-radius: 3px;
    flex-shrink: 0;
}

.sportsbook-fetch-compact .fetch-icon {
    font-size: 0.65rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.sportsbook-fetch-compact:hover,
.sportsbook-fetch-compact:focus-visible {
    color: #00ffaa;
    background: rgba(var(--color-primary-bright-rgb), 0.12);
    outline: none;
}

.sportsbook-fetch-compact:hover .fetch-icon,
.sportsbook-fetch-compact:focus-visible .fetch-icon {
    transform: rotate(360deg);
}

/* Credentials row */
.sportsbook-credentials-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.credential-input-compact {
    flex: 1;
    min-width: 0;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #cfd8dc;
    font-family: var(--sportsbook-heading-font);
    font-size: var(--sportsbook-label-size);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 6px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.credential-input-compact:focus {
    outline: none;
    border-color: rgba(var(--color-primary-bright-rgb), 0.4);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 1px rgba(var(--color-primary-bright-rgb), 0.2);
}

.credential-input-compact::placeholder {
    color: #78909c;
    font-family: var(--sportsbook-heading-font);
    font-size: var(--sportsbook-label-size);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Syncing State */
.sportsbook-card.syncing {
    border-left-color: #00ffaa;
    background: linear-gradient(140deg, rgba(0, 143, 88, 0.15), rgba(6, 22, 26, 0.90));
    animation: cardPulse 2s ease-in-out infinite;
}

@keyframes cardPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(0, 255, 170, 0); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 170, 0.3); }
}

.sportsbook-card.syncing .sportsbook-fetch-compact {
    background: rgba(0, 255, 170, 0.15);
    cursor: wait;
    pointer-events: none;
}

.sportsbook-card.syncing .sportsbook-fetch-compact .fetch-icon {
    animation: spin 1s linear infinite;
    color: #00ffaa;
}

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

/* ===== Action Buttons (Footer) ===== */
.sportsbook-actions-compact {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.action-btn-compact {
    flex: 1;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    color: #b0bec5;
    font-family: var(--sportsbook-heading-font);
    font-size: var(--sportsbook-label-size);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.action-btn-compact:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.add-book-btn-compact {
    color: #cfd8dc;
    border-color: rgba(0, 143, 88, 0.4);
}

.add-book-btn-compact:hover {
    background: rgba(0, 143, 88, 0.18);
    border-color: #00b06c;
    color: #00d689;
}

/* ===== Import Options Styling ===== */
.import-options-popup {
    background: rgba(13, 27, 51, 0.98) !important;
    border: 1px solid rgba(0, 143, 88, 0.35) !important;
    border-radius: 8px !important;
    padding: 14px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
}

.import-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
}

.import-title {
    font-family: var(--sportsbook-heading-font);
    font-size: var(--sportsbook-label-size);
    font-weight: 700;
    color: #00D689 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.import-back-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.import-back-btn:hover {
    color: #ffffff;
}

.import-option-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px dashed rgba(255, 255, 255, 0.12) !important;
    border-radius: 6px !important;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.import-option-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(var(--color-primary-bright-rgb), 0.4) !important;
}

.import-option-label {
    font-family: var(--sportsbook-heading-font);
    font-size: var(--sportsbook-label-size);
    font-weight: 600;
    color: #e8f0f2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.import-option-desc {
    font-family: var(--sportsbook-heading-font);
    font-size: var(--sportsbook-caption-size);
    font-weight: 500;
    color: #90a4ae;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.file-input-hidden {
    display: none;
}

.import-paste-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.import-paste-label {
    font-family: var(--sportsbook-heading-font);
    font-size: var(--sportsbook-label-size);
    font-weight: 600;
    color: #90a4ae;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.import-paste-textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e8f0f2 !important;
    border-radius: 4px !important;
    font-family: var(--sportsbook-heading-font) !important;
    font-size: var(--sportsbook-label-size);
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 10px;
    resize: vertical;
    min-height: 60px;
}

.import-paste-textarea:focus {
    outline: none;
    border-color: #00d689 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    box-shadow: 0 0 0 1px rgba(var(--color-primary-bright-rgb), 0.2) !important;
}

.import-paste-textarea::placeholder {
    color: #78909c;
    font-family: var(--sportsbook-heading-font);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.import-paste-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.paste-action-btn {
    flex: 1;
    padding: 6px 10px !important;
    border-radius: 3px !important;
    font-family: var(--sportsbook-heading-font) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: var(--sportsbook-label-size) !important;
    letter-spacing: 0.08em !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.paste-process-btn {
    background: rgba(0, 143, 88, 0.2) !important;
    border: 1px solid rgba(0, 143, 88, 0.4) !important;
    color: #00d689 !important;
}

.paste-process-btn:hover {
    background: rgba(0, 143, 88, 0.4) !important;
    color: #ffffff !important;
}

.paste-clear-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #b0bec5 !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    outline: none;
    caret-color: transparent;
}

.paste-clear-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* ===== Back to Top Button - Sleek Minimalist Design ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(13, 27, 51, 0.6);
    border: 0.5px solid rgba(var(--color-primary-bright-rgb), 0.25);
    color: rgba(0, 255, 170, 0.7);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 1px 4px rgba(0, 0, 0, 0.4),
        0 0 0 0.5px rgba(0, 0, 0, 0.15) inset;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: 
        opacity 0.25s ease,
        transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    outline: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(0, 143, 88, 0.12);
    border-color: rgba(0, 255, 170, 0.5);
    color: rgba(0, 255, 170, 0.95);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.5),
        0 0 0 0.5px rgba(0, 0, 0, 0.15) inset,
        0 0 12px rgba(0, 255, 170, 0.15);
    transform: translateY(-1px);
}

.back-to-top:active {
    transform: translateY(0);
    background: rgba(0, 143, 88, 0.18);
}


/* ===== Responsive Adjustments ===== */
@media (max-width: 1200px) {
    .nav-links {
        gap: 3px; /* Maintain compact spacing */
    }
    
    .nav-link {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
        padding: 4px 5px;
    }
}

@media (max-width: 768px) {
    .brand-nav {
        left: 0;
        right: 0;
        padding-inline: 16px;
    }
    
    .nav-links {
        gap: 2px; /* Very compact on mobile */
    }
    
    .nav-link {
        font-size: 0.68rem;
        letter-spacing: 0.08em;
        padding: 3px 4px;
    }
    
    .nav-dropdown-menu {
        width: 260px;
        right: -10px;
    }
    
    .back-to-top {
        bottom: 24px;
        right: 24px;
        width: 32px;
        height: 32px;
    }
    
}
