/* TransANCHOR Custom Styles - Luxury + Tech Edition */

:root {
    /* Palette: Luxury Navy & Gold (Dark Academia) */
    --brand-primary: #0A192F; /* Deep Regency Navy */
    --brand-secondary: #E5E7EB; /* Platinum Silver */
    --brand-accent: #C5A005; /* Satin Gold */
    --brand-accent-hover: #D4AF37; /* Metallic Gold */
    --brand-gold: #C5A005; /* Primary gold for badges/highlights */

    --text-main: #334155; /* Charcoal */
    --text-light: #64748b; /* Slate 500 */
    --text-muted: #94a3b8; /* Slate 400 */
    --text-white: #ffffff;

    --bg-body: #F8FAFC;
    --bg-white: #ffffff;
    --bg-card: #ffffff;

    /* Status Colors - Muted & Professional */
    --status-success: #475569; /* Slate 600 - for subtle success */
    --status-warning: #8B7355; /* Bronze - for emphasis */
    --status-danger: #64748b; /* Slate 500 - for subtle alerts */
    --status-info: #475569; /* Slate 600 - for info */

    /* Borders */
    --border-color: #e2e8f0; /* Slate 200 */
    --border-accent: var(--brand-accent);

    /* Spacing */
    --spacing-unit: 1rem;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(to bottom, #0A192F 0%, #0f2438 100%);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}

/* Main content area - match dark theme */
main {
    background: linear-gradient(to bottom, #0A192F 0%, #0f2438 100%);
    flex-grow: 1;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Playfair Display', serif;
    color: var(--brand-primary);
}

/* Header - Glassmorphism & Depth */
.navbar-custom {
    background: rgba(10, 25, 47, 0.98); /* Deep Regency Navy with high opacity */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(197, 160, 5, 0.2); /* Gold accent border */
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-white) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.02em;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--text-white) !important;
}

/* Buttons */
.btn-gold {
    background: linear-gradient(135deg, #C5A005 0%, #D4AF37 100%);
    color: white;
    border: none;
    font-weight: 600;
    padding: 0.4rem 1rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(197, 160, 5, 0.3);
    font-size: 0.9rem;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #E5C85D 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(197, 160, 5, 0.4);
}

.btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

/* Hero Section - The Magician's Choice */
.hero-section {
    background-color: var(--brand-primary);
    color: white;
    padding: 3rem 0 0;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    max-width: 720px;
    margin: 0 auto 1rem;
    line-height: 1.5;
}

/* Search Input in Hero */
.hero-search-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.hero-search-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    padding-right: 160px; /* Space for button */
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: white;
    transition: all 0.3s ease;
}

.hero-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Placeholder styling for dark theme search and chat inputs */
.form-control::placeholder {
    color: rgba(212, 175, 55, 0.7) !important;
}
.form-control::-webkit-input-placeholder {
    color: rgba(212, 175, 55, 0.7) !important;
}
.form-control::-moz-placeholder {
    color: rgba(212, 175, 55, 0.7) !important;
}

/* Hide placeholders in floating label forms to prevent overlap */
.form-floating .form-control::placeholder {
    color: transparent !important;
}
.form-floating .form-control::-webkit-input-placeholder {
    color: transparent !important;
}
.form-floating .form-control::-moz-placeholder {
    color: transparent !important;
}

.hero-search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(197, 160, 5, 0.5);
    outline: none;
    box-shadow: 0 0 0 3px rgba(197, 160, 5, 0.15);
}

.hero-search-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    border-radius: 2px;
}

.hero-pulse {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #C5A005; /* Satin Gold */
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(197, 160, 5, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(197, 160, 5, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(197, 160, 5, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(197, 160, 5, 0);
    }
}

/* Green Pulse Animation for System Status */
.pulse-dot-green {
    width: 8px;
    height: 8px;
    background-color: #10B981; /* Emerald 500 */
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Hero Status Panel */
.hero-status-panel {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    margin-top: 1rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.status-item {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.status-item:hover {
    color: rgba(255, 255, 255, 0.9);
}

.status-item-link {
    color: rgba(255, 255, 255, 0.75);
    border-radius: 4px;
    padding: 0.2rem 0.35rem;
    margin: -0.2rem -0.35rem;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.status-item-link:hover {
    color: rgba(255, 255, 255, 0.98);
    background-color: rgba(16, 185, 129, 0.12);
}

.status-item-link:focus-visible {
    outline: 2px solid #64ffda;
    outline-offset: 2px;
}

.hero-cta-row .btn {
    min-width: 11rem;
}

.hero-sample-link {
    font-size: 0.92rem;
    line-height: 1.5;
}

.hero-sample-link-anchor {
    color: #64ffda;
    font-weight: 600;
}

.hero-sample-link-anchor:hover {
    color: #7effeb;
}

.hero-sample-muted {
    color: rgba(255, 255, 255, 0.45);
}

.sample-digest-section {
    scroll-margin-top: 5.5rem;
}

/* Homepage hero — minimal brand layer above feature carousel */
.hero-section--home {
    padding: 2rem 0 1.25rem;
}

.hero-home-kicker {
    color: #64ffda;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 0.9rem;
}

.hero-home-tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 2.85rem);
    line-height: 1.25;
    margin-bottom: 1.25rem;
    color: white;
}

.hero-status-panel--home {
    margin-top: 1rem;
}

.hero-section--home + .home-feature-spotlight {
    padding-top: 2rem;
    border-top: none;
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.15rem;
    }

    .hero-cta-row {
        flex-direction: column;
    }

    .hero-cta-row .btn {
        width: 100%;
        max-width: 20rem;
    }
}

/* Homepage feature spotlight carousel */
.home-feature-spotlight {
    background-color: #0d1f35;
    padding: 3.5rem 0;
    border-top: 1px solid rgba(197, 160, 5, 0.2);
    border-bottom: 1px solid rgba(197, 160, 5, 0.15);
}

.home-map-spotlight__preview,
.home-feature-spotlight__preview {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(197, 160, 5, 0.25);
    display: block;
}

.home-map-spotlight__kicker,
.home-feature-spotlight__kicker {
    color: #64ffda;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.home-map-spotlight__title,
.home-feature-spotlight__title {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.home-map-spotlight__list,
.home-feature-spotlight__list {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.home-map-spotlight__list li,
.home-feature-spotlight__list li {
    margin-bottom: 0.5rem;
}

.home-map-spotlight__list li:last-child,
.home-feature-spotlight__list li:last-child {
    margin-bottom: 0;
}

.home-feature-carousel__copy {
    color: rgba(255, 255, 255, 0.85);
}

.home-feature-carousel__copy .home-feature-spotlight__kicker,
.home-feature-carousel__copy .home-map-spotlight__kicker {
    color: #64ffda;
}

.home-feature-carousel__copy .home-feature-spotlight__title,
.home-feature-carousel__copy .home-map-spotlight__title {
    color: #fff;
}

.home-feature-carousel__copy .home-feature-spotlight__list,
.home-feature-carousel__copy .home-map-spotlight__list {
    color: rgba(255, 255, 255, 0.75);
}

.home-feature-carousel__viewport {
    position: relative;
}

.home-feature-carousel__slide {
    display: none;
}

.home-feature-carousel__slide.is-active {
    display: block;
    animation: homeFeatureCarouselFadeIn 0.4s ease;
}

@keyframes homeFeatureCarouselFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.home-feature-carousel__toolbar {
    margin-top: 1rem;
    padding: 0.5rem 0 0;
}

.home-feature-carousel__controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.home-feature-carousel__counter {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    min-width: 3rem;
    text-align: center;
}

.home-feature-carousel__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 44px;
    min-height: 44px;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(197, 160, 5, 0.25);
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-feature-carousel__btn:hover {
    background: rgba(197, 160, 5, 0.1);
    border-color: rgba(197, 160, 5, 0.55);
    color: #fff;
}

.home-feature-carousel__btn:focus-visible {
    outline: 2px solid #64ffda;
    outline-offset: 2px;
}

.home-feature-carousel__btn--pause {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
}

@media (min-width: 576px) {
    .home-feature-carousel__btn > span {
        display: none;
    }
}

.home-feature-carousel__icon-play {
    display: none;
}

.home-feature-carousel.is-paused .home-feature-carousel__icon-pause {
    display: none;
}

.home-feature-carousel.is-paused .home-feature-carousel__icon-play {
    display: inline;
}

.home-feature-carousel__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0 0.75rem;
    padding: 0;
}

.home-feature-carousel__dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(100, 255, 218, 0.3);
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-feature-carousel__dot:hover {
    border-color: #64ffda;
    background: rgba(100, 255, 218, 0.2);
}

.home-feature-carousel__dot.is-active {
    background: #64ffda;
    border-color: #64ffda;
    transform: scale(1.1);
}

.home-feature-carousel__dot:focus-visible {
    outline: 2px solid #64ffda;
    outline-offset: 3px;
}

.home-map-card-cta {
    color: #64ffda;
    font-size: 0.88rem;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .home-feature-spotlight {
        padding: 2.5rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-feature-carousel__slide.is-active {
        animation: none;
    }
}

/* Value Grid */
.value-card {
    padding: 2.5rem;
    height: 100%;
    background: linear-gradient(135deg, #0A192F 0%, #0d1f35 100%);
    border: 2px solid rgba(197, 160, 5, 0.2);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(197, 160, 5, 0.25), 0 0 0 2px rgba(197, 160, 5, 0.4);
    border-color: #C5A005;
    background: linear-gradient(135deg, #0d1f35 0%, #0A192F 100%);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    background: radial-gradient(circle at center, #050a14 0%, #0A192F 50%, transparent 70%);
    border-radius: 50%;
    padding: 10px;
}

.value-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
}

.value-card:hover .value-icon img {
    transform: scale(1.05);
}

.value-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #C5A005;
    letter-spacing: 0.5px;
}

.value-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.7;
}

/* Clickable Card Links */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}

.card-link .value-card {
    cursor: pointer;
}

/* Equal-height card grid — prevents taller cards from causing layout overlap */
.value-grid-row .col {
    display: flex;
}
.value-grid-row .card-link {
    flex: 1;
    min-width: 0;
    display: flex;
}
.value-grid-row .card-link .value-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.value-grid-row .value-card .value-text {
    flex: 1;
}

/* Footer */
footer {
    background-color: var(--brand-primary);
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 0 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer h5.footer-col-heading {
    color: #c5a005;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer .footer-link-list {
    margin-bottom: 0;
}

footer .footer-link-list li {
    margin-bottom: 0.5rem;
}

footer .footer-link-list a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
}

footer .footer-link-list a:hover {
    color: var(--brand-accent);
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

footer a:hover {
    color: var(--brand-accent);
}

footer .footer-brand-tagline {
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

footer .footer-brand-acronym {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.7rem;
    margin-top: 0.5rem;
    line-height: 1.3;
}

footer .footer-contact-note {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin-top: 1.25rem;
}

footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    font-size: 0.9rem;
}

footer .footer-bottom-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.35rem;
}

footer .footer-bottom-legal a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.72);
}

footer .footer-bottom-sep {
    color: rgba(255, 255, 255, 0.35);
    user-select: none;
}

footer .footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Dashboard & Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-header {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-white);
}

/* Alerts & Banners - Muted Professional Tones */
.alert {
    border-radius: 8px;
    border-left-width: 4px;
}

.alert-success {
    background-color: #f8faf9;
    border-left-color: var(--status-success);
    color: var(--text-main);
}

.alert-warning {
    background-color: #f8f6f4;
    border-left-color: var(--brand-bronze);
    color: var(--text-main);
}

.alert-danger {
    background-color: #f9f8f8;
    border-left-color: var(--text-light);
    color: var(--text-main);
}

.alert-info {
    background-color: #f8f9fa;
    border-left-color: var(--status-info);
    color: var(--text-main);
}

/* Alert Container - Match Page Background */
.alert-container {
    background: linear-gradient(to bottom, #0A192F 0%, #0f2438 100%);
    padding: 0;
    margin: 0;
}

/* Luxury Alert for Launch Gate Success Messages */
.luxury-alert.alert-success {
    background: linear-gradient(135deg, #0A192F 0%, #0f2438 100%);
    border: 2px solid #C5A005;
    border-left-width: 4px;
    border-left-color: #C5A005;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(197, 160, 5, 0.25);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    margin-bottom: 0;
}

.luxury-alert.alert-success .btn-close-white {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.luxury-alert.alert-success .btn-close-white:hover {
    opacity: 1;
}

/* Badges - Sophisticated Palette */
.badge {
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 0.35em 0.65em;
}

.badge.bg-primary {
    background-color: var(--brand-primary) !important;
    color: white;
}

.badge.bg-success {
    background-color: var(--status-success) !important;
    color: white;
}

.badge.bg-warning {
    background-color: var(--brand-bronze) !important;
    color: white;
}

.badge.bg-danger {
    background-color: var(--text-light) !important;
    color: white;
}

.badge.bg-info {
    background-color: var(--status-info) !important;
    color: white;
}

/* Buttons - Consistent with Brand */
.btn-primary {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--brand-accent-hover);
    border-color: var(--brand-accent-hover);
    color: white;
}

.btn-success {
    background-color: var(--status-success);
    border-color: var(--status-success);
    color: white;
}

.btn-success:hover {
    background-color: #334155;
    border-color: #334155;
    color: white;
}

.btn-warning {
    background-color: var(--brand-bronze);
    border-color: var(--brand-bronze);
    color: white;
}

.btn-warning:hover {
    background-color: #6f5b45;
    border-color: #6f5b45;
    color: white;
}

.btn-danger {
    background-color: var(--text-light);
    border-color: var(--text-light);
    color: white;
}

.btn-danger:hover {
    background-color: #475569;
    border-color: #475569;
    color: white;
}

.btn-info {
    background-color: var(--status-info);
    border-color: var(--status-info);
    color: white;
}

.btn-info:hover {
    background-color: #334155;
    border-color: #334155;
    color: white;
}

.btn-outline-primary {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

.btn-outline-primary:hover {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
    color: white;
}

.btn-outline-success {
    border-color: var(--status-success);
    color: var(--status-success);
}

.btn-outline-success:hover {
    background-color: var(--status-success);
    border-color: var(--status-success);
    color: white;
}

.btn-outline-danger {
    border-color: var(--text-light);
    color: var(--text-light);
}

.btn-outline-danger:hover {
    background-color: var(--text-light);
    border-color: var(--text-light);
    color: white;
}

/* Text Colors - Professional Palette */
.text-primary {
    color: var(--brand-primary) !important;
}

.text-success {
    color: var(--status-success) !important;
}

.text-warning {
    color: var(--brand-bronze) !important;
}

.text-danger {
    color: var(--text-light) !important;
}

.text-info {
    color: var(--status-info) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Background Colors */
.bg-primary {
    background-color: var(--brand-primary) !important;
}

.bg-success {
    background-color: #f8faf9 !important;
}

.bg-warning {
    background-color: #f8f6f4 !important;
}

.bg-danger {
    background-color: #f9f8f8 !important;
}

.bg-info {
    background-color: #f8f9fa !important;
}

/* Links */
a {
    color: var(--brand-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--brand-accent-hover);
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 0.2rem rgba(148, 118, 0, 0.15);
}

/* List Groups */
.list-group-item {
    border-color: var(--border-color);
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

/* Utilities */
.text-bronze { color: var(--brand-accent) !important; }
.bg-navy { background-color: var(--brand-primary) !important; }
.border-bronze { border-color: var(--brand-accent) !important; }


/* --- Navbar dropdowns (dark theme) --- */
.navbar-custom .dropdown-menu-dark {
    background-color: rgba(13, 31, 53, 0.98);
    border: 1px solid rgba(197, 160, 5, 0.25);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.navbar-custom .dropdown-menu-dark .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    padding: 0.45rem 1rem;
}
.navbar-custom .dropdown-menu-dark .dropdown-item:hover,
.navbar-custom .dropdown-menu-dark .dropdown-item:focus {
    background: rgba(197, 160, 5, 0.12);
    color: #fff;
}

/* --- Articles: Markdown body --- */
.article-prose {
    max-width: 820px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.02rem;
    line-height: 1.75;
}
.article-prose h2, .article-prose h3, .article-prose h4 {
    font-family: 'Playfair Display', serif;
    color: #D4AF37;
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    font-weight: 600;
}
.article-prose h2 { font-size: 1.65rem; }
.article-prose h3 { font-size: 1.35rem; }
.article-prose h4 { font-size: 1.15rem; }
.article-prose p { margin-bottom: 1rem; }
.article-prose strong { color: rgba(255, 255, 255, 0.95); }
.article-prose a {
    color: #64ffda;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.article-prose a:hover { color: #9effeb; }
.article-prose table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.article-prose th,
.article-prose td {
    border: 1px solid rgba(197, 160, 5, 0.25);
    padding: 0.6rem 0.75rem;
    vertical-align: top;
}
.article-prose th {
    background: rgba(197, 160, 5, 0.1);
    color: #E5D78A;
    font-weight: 600;
}
.article-prose ul, .article-prose ol {
    padding-left: 1.35rem;
    margin-bottom: 1rem;
}
.article-prose hr {
    border-color: rgba(197, 160, 5, 0.2);
    margin: 2rem 0;
}
.article-card-hover {
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.article-card-hover:hover {
    border-color: rgba(197, 160, 5, 0.45) !important;
    background: rgba(255,255,255,0.05) !important;
    transform: translateY(-2px);
}

/* Order index: guide column — clear affordance vs PDF column */
.order-index-guide-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color 0.15s ease;
}
.order-index-guide-link span {
    text-decoration: none;
}
.order-index-guide-link:hover {
    color: #64ffda;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.order-index-guide-link:hover span {
    text-decoration: underline;
}
.order-index-guide-link:focus-visible {
    outline: 2px solid #64ffda;
    outline-offset: 3px;
    border-radius: 2px;
}

/* ── Stats & Badges page (dark theme, matches games hub) ───────────────── */
.progress-hub {
    --gp-cream: #f0e6c8;
    --gp-muted: #a8b2c1;
    --gp-dim: #8b95a8;
    --gp-gold: #c5a005;
    --gp-mint: #64ffda;
    --gp-panel: linear-gradient(135deg, #0a192f 0%, #0d1f35 100%);
    --gp-border: rgba(197, 160, 5, 0.28);
    color: var(--gp-muted);
}

.progress-hub h1,
.progress-hub h2,
.progress-hub h3,
.progress-hub h4,
.progress-hub h5,
.progress-hub h6,
.progress-hub .h1,
.progress-hub .h2,
.progress-hub .h3,
.progress-hub .h4,
.progress-hub .h5,
.progress-hub .h6 {
    color: var(--gp-cream) !important;
    font-family: 'Playfair Display', serif;
}

.progress-hub .gp-section-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gp-gold);
    margin-bottom: 0.35rem;
}

.progress-hub-hero {
    background: linear-gradient(180deg, #0a192f 0%, #0d1f35 100%);
    border-bottom: 1px solid var(--gp-border);
}

.progress-hub-hero .gp-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gp-cream) !important;
}

.progress-hub-hero .gp-hero-title span {
    color: var(--gp-gold);
}

.progress-hub-hero .gp-hero-lead {
    color: var(--gp-muted);
    font-size: 1.02rem;
    line-height: 1.65;
    max-width: 38rem;
}

.progress-hub-hero .gp-handle-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(197, 160, 5, 0.12);
    border: 1px solid rgba(197, 160, 5, 0.35);
    color: #d4af37;
    font-size: 0.88rem;
    font-weight: 600;
}

.progress-hub-hero .gp-badge-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(100, 255, 218, 0.08);
    border: 1px solid rgba(100, 255, 218, 0.22);
    color: var(--gp-mint);
    font-size: 0.9rem;
    font-weight: 600;
}

.progress-hub .progress-hub-card {
    background: var(--gp-panel);
    border: 2px solid var(--gp-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.progress-hub .progress-hub-card:hover {
    box-shadow: 0 12px 36px rgba(197, 160, 5, 0.12);
}

.progress-hub .progress-hub-card .card-header {
    background: rgba(15, 36, 56, 0.65);
    border-bottom: 1px solid rgba(197, 160, 5, 0.2);
    padding: 1rem 1.25rem;
}

.progress-hub .progress-hub-card .card-body {
    background: transparent;
    padding: 1.25rem;
}

.progress-hub .gp-pitch {
    color: var(--gp-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.progress-hub .gp-hero-metric {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(197, 160, 5, 0.08);
    border: 1px solid rgba(197, 160, 5, 0.22);
}

.progress-hub .gp-hero-metric .gp-hm-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gp-dim);
    margin-bottom: 0.2rem;
}

.progress-hub .gp-hero-metric .gp-hm-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gp-cream);
    line-height: 1.15;
}

.progress-hub .gp-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.45rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.progress-hub .gp-stat-row:last-child {
    border-bottom: none;
}

.progress-hub .gp-stat-label {
    color: var(--gp-dim);
}

.progress-hub .gp-stat-value {
    font-weight: 600;
    color: var(--gp-cream);
    text-align: right;
}

.progress-hub .gp-muted-copy {
    color: var(--gp-dim) !important;
}

.progress-hub .gp-muted-copy a {
    color: var(--gp-mint);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(100, 255, 218, 0.35);
}

.progress-hub .gp-muted-copy a:hover {
    color: #9effeb;
}

.progress-hub .gp-milestone {
    margin: 1rem 0;
    padding: 0.75rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.progress-hub .gp-milestone-label {
    font-size: 0.82rem;
    color: var(--gp-muted);
    margin-bottom: 0.35rem;
}

.progress-hub .gp-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.progress-hub .gp-progress .progress-bar {
    background: linear-gradient(90deg, #c5a005, #d4af37);
}

.progress-hub .gp-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.progress-hub .gp-badge-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}

.progress-hub .gp-badge-item.earned {
    background: linear-gradient(135deg, rgba(197, 160, 5, 0.2) 0%, rgba(197, 160, 5, 0.08) 100%);
    border-color: rgba(197, 160, 5, 0.55);
}

.progress-hub .gp-badge-item .gp-bi {
    font-size: 1.75rem;
    line-height: 1;
    display: block;
    margin-bottom: 4px;
}

.progress-hub .gp-badge-item .gp-bn {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--gp-cream);
    word-break: break-word;
}

.progress-hub .gp-badge-item.locked .gp-bi {
    filter: grayscale(1);
    opacity: 0.35;
}

.progress-hub .gp-badge-item.locked .gp-bn {
    color: var(--gp-dim);
}

.progress-hub .gp-chip {
    background: rgba(100, 255, 218, 0.1) !important;
    color: var(--gp-mint) !important;
    font-weight: 600;
    font-size: 0.78rem;
    border: 1px solid rgba(100, 255, 218, 0.22);
}

.progress-hub .gp-game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 0;
    width: 100%;
}

.progress-hub .gp-game-header .gp-game-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-hub .gp-game-icon {
    font-size: 1.5rem;
}

.progress-hub .gp-subhead {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gp-cream) !important;
    margin-top: 1rem;
    margin-bottom: 0.35rem;
}

.progress-hub .gp-lb-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    margin-bottom: 0.35rem;
}

.progress-hub .gp-lb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 0 !important; /* override Bootstrap .list-group / ol defaults */
}

.progress-hub .gp-lb-row {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.85rem;
}

.progress-hub .gp-lb-row:last-child {
    border-bottom: none;
}

.progress-hub .gp-lb-rank {
    color: var(--gp-dim);
    width: 32px;
    flex-shrink: 0;
    font-weight: 600;
}

.progress-hub .gp-lb-handle {
    flex: 1;
    font-weight: 600;
    color: var(--gp-cream);
}

.progress-hub .gp-lb-score {
    color: var(--gp-muted);
}

.progress-hub .gp-lb-loading,
.progress-hub .gp-lb-empty {
    font-size: 0.85rem;
    color: var(--gp-dim);
    font-style: italic;
    padding: 8px 0;
}

.progress-hub .btn-outline-danger {
    border-color: rgba(248, 113, 113, 0.45);
    color: #fca5a5;
}

.progress-hub .btn-outline-danger:hover {
    background: rgba(248, 113, 113, 0.15);
    color: #fecaca;
}

.progress-hub .gp-lb-toggle.btn-gold {
    color: #0a192f;
}

.progress-hub .gp-lb-toggle.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85);
}

.progress-hub .gp-lb-toggle.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.progress-hub .gp-lb-toggle.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--gp-cream);
}

.progress-hub a:focus-visible,
.progress-hub .btn:focus-visible {
    outline: 2px solid var(--gp-mint);
    outline-offset: 2px;
}
