/** * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * 
 * Cinematic Dashboard Styles - Premium narrative-driven design
 * Earth tones with warm gold accents for ancestry exploration
 */

/* ========================================
   FONT IMPORTS
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@400;500;600&display=swap');

/* ========================================
   CSS VARIABLES - ANCESTRY DESIGN SYSTEM
   ======================================== */
:root {
    /* Earth Tone Primary Colors */
    --dbc-earth-deep: #2d1f14;
    --dbc-earth-dark: #3d2b1f;
    --dbc-earth-mid: #4a3728;
    --dbc-earth-warm: #5c4333;
    
    /* Warm Accent Colors */
    --dbc-amber: #c9a962;
    --dbc-amber-light: #d4b974;
    --dbc-amber-pale: #f0e4c3;
    --dbc-amber-subtle: rgba(201, 169, 98, 0.12);
    --dbc-amber-glow: rgba(201, 169, 98, 0.3);

    /* Semantic Accent Alias (used across cinematic ancestry views) */
    --dbc-accent: var(--dbc-amber);
    
    /* Nature Accents */
    --dbc-sage: #7d9a78;
    --dbc-sage-light: #9ab894;
    --dbc-sage-subtle: rgba(125, 154, 120, 0.15);
    --dbc-terracotta: #c4725d;
    --dbc-terracotta-light: #d18a77;
    
    /* Era Colors */
    --dbc-era-prehistoric: #8b6f47;
    --dbc-era-ancient: #7d9a78;
    --dbc-era-medieval: #5b7aa8;
    --dbc-era-modern: #c9a962;
    --dbc-era-archaic: #8b5a5a;
    
    /* Neutral Palette */
    --dbc-white: #ffffff;
    --dbc-off-white: #faf9f7;
    --dbc-cream: #f5f3ef;
    --dbc-gray-100: #f1f0ed;
    --dbc-gray-200: #e4e2dc;
    --dbc-gray-300: #c5c2ba;
    --dbc-gray-400: #9a968c;
    --dbc-gray-500: #706c64;
    --dbc-gray-600: #4a473f;
    --dbc-gray-700: #2d2a24;
    
    /* Text Colors */
    --dbc-text-dark: #1a1815;
    --dbc-text-body: #4a473f;
    --dbc-text-muted: #706c64;
    --dbc-text-light: #f5f3ef;
    --dbc-text-light-muted: rgba(245, 243, 239, 0.75);
    
    /* Typography */
    --dbc-font-serif: 'Cormorant Garamond', 'Georgia', serif;
    --dbc-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --dbc-space-xs: 0.5rem;
    --dbc-space-sm: 1rem;
    --dbc-space-md: 1.5rem;
    --dbc-space-lg: 2.5rem;
    --dbc-space-xl: 4rem;
    --dbc-space-2xl: 6rem;
    
    /* Border Radius */
    --dbc-radius-sm: 6px;
    --dbc-radius-md: 10px;
    --dbc-radius-lg: 16px;
    --dbc-radius-xl: 24px;
    
    /* Shadows */
    --dbc-shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.06);
    --dbc-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --dbc-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --dbc-shadow-amber: 0 8px 32px rgba(201, 169, 98, 0.25);
    
    /* Transitions */
    --dbc-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --dbc-transition-fast: 0.15s var(--dbc-ease);
    --dbc-transition: 0.3s var(--dbc-ease);
    --dbc-transition-slow: 0.5s var(--dbc-ease);
}

/* ========================================
   BASE PAGE WRAPPER
   ======================================== */
.dbc-page {
    font-family: var(--dbc-font-sans);
    color: var(--dbc-text-dark, #1a1815);
    background: transparent;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    position: relative;
}

/* Subtle texture overlay for depth - hidden by default */
.dbc-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 100% 50% at 50% 0%, rgba(201, 169, 98, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse 80% 40% at 50% 100%, rgba(125, 154, 120, 0.02) 0%, transparent 60%);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

/* Dark background and styling only for ancestry reports dashboard */
.dbc-page--ancestry-reports {
    color: var(--dbc-text-light);
    background: linear-gradient(180deg, 
        #0f0d0a 0%, 
        #1a1612 30%, 
        #12100d 70%, 
        #0a0908 100%);
}

.dbc-page--ancestry-reports::before {
    opacity: 0.6;
}

.dbc-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--dbc-space-md);
    padding-top: var(--content-offset, 80px); /* Account for fixed navbar */
    padding-bottom: var(--dbc-space-xl); /* Spacing before footer */
    position: relative;
    z-index: 1;
}

/* Mobile: Use smaller offset for mobile navbar */
@media (max-width: 767.98px) {
    .dbc-container {
        padding-top: var(--content-offset-mobile, 72px);
    }
}

/* ========================================
   HERO SECTION - CINEMATIC
   ======================================== */
.dbc-hero {
    min-height: 60vh;
    max-height: 70vh;
    padding-top: var(--content-offset, 80px); /* Account for fixed navbar */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: var(--dbc-space-xl);
    /* Full-width: break out of container */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.dbc-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, rgba(45, 31, 20, 0.55) 0%, rgba(18, 16, 14, 0.82) 100%),
                url('/img/ui/backgrounds/tile-ancestry.jpg') center/cover;
    background-attachment: fixed;
}

@media (max-width: 991px) {
    .dbc-hero-bg {
        background-attachment: scroll;
    }
}

.dbc-hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 100% 80% at 80% 20%, rgba(201, 169, 98, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(125, 154, 120, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.78) 100%);
    pointer-events: none;
    animation: dbcHeroGlow 8s ease-in-out infinite;
}

@keyframes dbcHeroGlow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.95;
    }
}

.dbc-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 20px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.dbc-hero-breadcrumb {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: calc(100% - 40px);
    display: flex;
    justify-content: center;
    z-index: 3;
}

.dbc-hero-breadcrumb .breadcrumb {
    margin-bottom: 0;
}

.dbc-hero-main {
    flex: 1;
}

.dbc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(201, 169, 98, 0.15);
    border: 1px solid rgba(201, 169, 98, 0.3);
    color: var(--dbc-amber-light);
    padding: 0.5rem 1rem;
    border-radius: var(--dbc-radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--dbc-space-md);
}

.dbc-hero-badge i {
    font-size: 0.875rem;
}

.dbc-hero-title {
    font-family: var(--dbc-font-serif);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.1;
    margin: 0 0 var(--dbc-space-sm);
    letter-spacing: -0.02em;
    /* Default dark color for light backgrounds */
    color: var(--dbc-text-dark, #1a1815);
}

/* Light text color for hero titles (dark hero backgrounds) */
.dbc-hero .dbc-hero-title {
    color: var(--dbc-text-light, #f5f3ef);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Light text color for ancestry reports (explicit override) */
.dbc-page--ancestry-reports .dbc-hero-title {
    color: var(--dbc-text-light);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.dbc-hero-title span {
    color: var(--dbc-amber-light, #d4b974);
    text-shadow: 0 2px 12px rgba(212, 185, 116, 0.5), 0 4px 20px rgba(201, 169, 98, 0.3);
}

.dbc-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--dbc-text-muted, #706c64);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 2rem;
    font-weight: 400;
}

/* Light text color only for ancestry reports */
.dbc-page--ancestry-reports .dbc-hero-subtitle {
    color: rgba(245, 243, 239, 0.85) !important;
}

/* Scroll Indicator */
.dbc-scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    width: fit-content;
    max-width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--dbc-text-muted, #706c64);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    white-space: nowrap;
}

/* Light text color only for ancestry reports */
.dbc-page--ancestry-reports .dbc-scroll-indicator {
    color: rgba(245, 243, 239, 0.7);
}

.dbc-scroll-indicator span {
    display: block;
    text-align: center;
}

.dbc-scroll-indicator i {
    margin-top: 8px;
    display: block;
    text-align: center;
    animation: dbc-bounce 2s ease-in-out infinite;
}

@keyframes dbc-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

/* Result Status Section */
.dbc-result-status {
    margin-top: 40px;
    padding: 0;
    background: transparent;
    border: none;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.dbc-result-text {
    font-family: var(--dbc-font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dbc-result-subtext {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    opacity: 0.9;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.dbc-hero-stats {
    display: flex;
    gap: var(--dbc-space-lg);
    margin-bottom: var(--dbc-space-lg);
}

.dbc-hero-stat {
    text-align: center;
    padding: var(--dbc-space-sm) var(--dbc-space-md);
    background: var(--dbc-gray-100, #f1f0ed);
    border: 1px solid var(--dbc-gray-200, #e4e2dc);
    border-radius: var(--dbc-radius-md);
    backdrop-filter: blur(8px);
}

/* Dark transparent background only for ancestry reports */
.dbc-page--ancestry-reports .dbc-hero-stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dbc-hero-stat-value {
    display: block;
    font-family: var(--dbc-font-serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--dbc-amber);
    line-height: 1;
}

.dbc-hero-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--dbc-text-muted, #706c64);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.375rem;
}

/* Light text color only for ancestry reports */
.dbc-page--ancestry-reports .dbc-hero-stat-label {
    color: var(--dbc-text-light-muted);
}

.dbc-hero-actions {
    display: flex;
    gap: var(--dbc-space-sm);
    flex-wrap: wrap;
}

.dbc-hero-side {
    width: 340px;
    flex-shrink: 0;
}

/* Quick Navigation Panel */
.dbc-quick-nav {
    background: var(--dbc-white, #ffffff);
    border: 1px solid var(--dbc-gray-200, #e4e2dc);
    border-radius: var(--dbc-radius-lg);
    padding: var(--dbc-space-md);
    backdrop-filter: blur(12px);
}

/* Dark transparent background only for ancestry reports */
.dbc-page--ancestry-reports .dbc-quick-nav {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dbc-quick-nav-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dbc-amber);
    margin-bottom: var(--dbc-space-sm);
    padding-bottom: var(--dbc-space-xs);
    border-bottom: 1px solid var(--dbc-gray-200, #e4e2dc);
}

/* Light border only for ancestry reports */
.dbc-page--ancestry-reports .dbc-quick-nav-title {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dbc-quick-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.dbc-quick-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--dbc-text-muted, #706c64);
    text-decoration: none;
    border-radius: var(--dbc-radius-sm);
    transition: all var(--dbc-transition-fast);
    font-size: 0.9375rem;
}

/* Light text color only for ancestry reports */
.dbc-page--ancestry-reports .dbc-quick-nav-link {
    color: var(--dbc-text-light-muted);
}

.dbc-quick-nav-link:hover {
    background: var(--dbc-gray-100, #f1f0ed);
    color: var(--dbc-text-dark, #1a1815);
    transform: translateX(4px);
    text-decoration: none;
}

/* Light hover colors only for ancestry reports */
.dbc-page--ancestry-reports .dbc-quick-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--dbc-text-light);
}

.dbc-quick-nav-link i {
    width: 20px;
    text-align: center;
    color: var(--dbc-amber);
    font-size: 0.875rem;
}

/* ========================================
   BUTTONS
   ======================================== */
.dbc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--dbc-radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all var(--dbc-transition);
    cursor: pointer;
    border: none;
}

.dbc-btn--primary {
    background: linear-gradient(135deg, var(--dbc-amber) 0%, var(--dbc-amber-light) 100%);
    color: var(--dbc-earth-deep);
    box-shadow: var(--dbc-shadow-amber);
}

.dbc-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(201, 169, 98, 0.35);
    color: var(--dbc-earth-deep);
    text-decoration: none;
}

.dbc-btn--outline {
    background: transparent;
    border: 1px solid var(--dbc-gray-300, #c5c2ba);
    color: var(--dbc-text-dark, #1a1815);
}

.dbc-btn--outline:hover {
    background: var(--dbc-gray-100, #f1f0ed);
    border-color: var(--dbc-amber, #c9a962);
    color: var(--dbc-text-dark, #1a1815);
    text-decoration: none;
}

/* Light colors only for ancestry reports */
.dbc-page--ancestry-reports .dbc-btn--outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--dbc-text-light);
}

.dbc-page--ancestry-reports .dbc-btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--dbc-text-light);
}

.dbc-btn--secondary {
    background: var(--dbc-gray-100);
    color: var(--dbc-text-dark);
    border: 1px solid var(--dbc-gray-200);
}

.dbc-btn--secondary:hover {
    background: var(--dbc-white);
    border-color: var(--dbc-amber);
    color: var(--dbc-text-dark);
    text-decoration: none;
}

.dbc-btn--sm {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
}

/* ========================================
   ERA TIMELINE NAVIGATOR
   ======================================== */
.dbc-timeline {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--dbc-space-xl);
    padding: var(--dbc-space-md);
    background: rgba(18, 16, 14, 0.85);
    backdrop-filter: blur(12px);
    border-radius: var(--dbc-radius-lg);
    border: 1px solid rgba(201, 169, 98, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

.dbc-timeline::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--dbc-amber) 20%, 
        var(--dbc-amber) 80%, 
        transparent 100%);
    opacity: 0.3;
    border-radius: 0 0 var(--dbc-radius-lg) var(--dbc-radius-lg);
}

.dbc-timeline-era {
    position: relative;
    flex: 1;
    max-width: 200px;
    padding: var(--dbc-space-sm) var(--dbc-space-md);
    text-align: center;
    cursor: pointer;
    transition: all var(--dbc-transition);
    border-bottom: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--dbc-radius-sm);
}

.dbc-timeline-era::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: 2px solid rgba(18, 16, 14, 0.9);
    transition: all var(--dbc-transition);
    box-shadow: 0 0 0 0 rgba(201, 169, 98, 0);
}

.dbc-timeline-era:hover::before {
    transform: translateX(-50%) scale(1.3);
    background: rgba(255, 255, 255, 0.3);
}

.dbc-timeline-era.active::before {
    transform: translateX(-50%) scale(1.4);
    background: var(--era-color, var(--dbc-amber));
    box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.2), 0 0 12px rgba(201, 169, 98, 0.4);
    animation: dbcTimelinePulse 2s ease-in-out infinite;
}

@keyframes dbcTimelinePulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.2), 0 0 12px rgba(201, 169, 98, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(201, 169, 98, 0.15), 0 0 16px rgba(201, 169, 98, 0.5);
    }
}

.dbc-timeline-era.active {
    border-color: var(--era-color, var(--dbc-amber));
    background: rgba(201, 169, 98, 0.05);
}

.dbc-timeline-era:hover {
    background: rgba(255, 255, 255, 0.03);
}

.dbc-timeline-era--prehistoric { --era-color: var(--dbc-era-prehistoric); }
.dbc-timeline-era--ancient { --era-color: var(--dbc-era-ancient); }
.dbc-timeline-era--medieval { --era-color: var(--dbc-era-medieval); }
.dbc-timeline-era--modern { --era-color: var(--dbc-era-modern); }
.dbc-timeline-era--archaic { --era-color: var(--dbc-era-archaic); }

.dbc-timeline-era.active {
    border-color: var(--era-color);
}

.dbc-timeline-era.active::before {
    background: var(--era-color);
}

.dbc-timeline-period {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dbc-text-muted, #706c64);
    margin-bottom: 0.375rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

/* Light text color only for ancestry reports */
.dbc-page--ancestry-reports .dbc-timeline-period {
    color: rgba(255, 255, 255, 0.6);
}

.dbc-timeline-era.active .dbc-timeline-period {
    color: var(--dbc-amber);
}

/* Light amber color only for ancestry reports */
.dbc-page--ancestry-reports .dbc-timeline-era.active .dbc-timeline-period {
    color: var(--dbc-amber-light);
}

.dbc-timeline-era-icon {
    font-size: 0.875rem;
    opacity: 0.7;
}

.dbc-timeline-era.active .dbc-timeline-era-icon {
    opacity: 1;
    color: var(--era-color, var(--dbc-amber));
}

.dbc-timeline-label {
    font-family: var(--dbc-font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dbc-text-dark, #1a1815);
    transition: color var(--dbc-transition);
}

/* Light text color only for ancestry reports */
.dbc-page--ancestry-reports .dbc-timeline-label {
    color: rgba(255, 255, 255, 0.85);
}

.dbc-timeline-era:hover .dbc-timeline-label {
    color: var(--dbc-text-dark, #1a1815);
}

/* Light text color only for ancestry reports */
.dbc-page--ancestry-reports .dbc-timeline-era:hover .dbc-timeline-label {
    color: var(--dbc-text-light);
}

.dbc-timeline-era.active .dbc-timeline-label {
    color: var(--dbc-amber);
}

/* Light amber color and shadow only for ancestry reports */
.dbc-page--ancestry-reports .dbc-timeline-era.active .dbc-timeline-label {
    color: var(--dbc-amber-light);
    text-shadow: 0 0 8px rgba(201, 169, 98, 0.3);
}

/* ========================================
   DESKTOP PAGE NAVIGATION DOTS
   ======================================== */
.dbc-page-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dbc-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(201, 169, 98, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: all var(--dbc-transition);
    cursor: pointer;
    text-decoration: none;
}

.dbc-nav-dot:hover,
.dbc-nav-dot:focus {
    transform: scale(1.2);
    background: rgba(201, 169, 98, 0.4);
    border-color: rgba(201, 169, 98, 0.6);
    outline: none;
    box-shadow: 0 0 12px rgba(201, 169, 98, 0.4);
}

.dbc-nav-dot.active {
    background: linear-gradient(135deg, var(--dbc-amber) 0%, var(--dbc-amber-light) 100%);
    border-color: var(--dbc-amber-light);
    transform: scale(1.3);
    box-shadow: 0 0 16px rgba(201, 169, 98, 0.6);
}

.dbc-nav-dot::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: rgba(18, 16, 14, 0.95);
    backdrop-filter: blur(8px);
    color: var(--dbc-amber-light);
    padding: 8px 14px;
    border-radius: var(--dbc-radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    border: 1px solid rgba(201, 169, 98, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dbc-nav-dot:hover::after,
.dbc-nav-dot:focus::after {
    opacity: 1;
}

@media (max-width: 991px) {
    .dbc-page-nav {
        display: none;
    }
}

/* ========================================
   MOBILE BOTTOM NAVIGATION
   ======================================== */
.dbc-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1250;
    background: rgba(18, 16, 14, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(201, 169, 98, 0.15);
    display: flex;
    justify-content: space-around;
    padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.dbc-bottom-nav-item {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    transition: all var(--dbc-transition);
    padding: 4px 8px;
    border-radius: var(--dbc-radius-sm);
    flex: 1;
    max-width: 80px;
}

.dbc-bottom-nav-item i {
    font-size: 1rem;
    transition: all var(--dbc-transition);
}

.dbc-bottom-nav-item span {
    font-weight: 500;
    letter-spacing: 0.02em;
}

.dbc-bottom-nav-item:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.dbc-bottom-nav-item.active {
    color: var(--dbc-amber-light);
}

.dbc-bottom-nav-item.active i {
    transform: scale(1.1);
    color: var(--dbc-amber);
}

.dbc-bottom-nav-item.active span {
    font-weight: 600;
}

@media print {
    .dbc-page-nav,
    .dbc-bottom-nav {
        display: none !important;
    }
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.dbc-section {
    margin-bottom: var(--dbc-space-xl);
    position: relative;
}

/* Elegant golden divider between sections */
.dbc-section + .dbc-section::before {
    content: '';
    display: block;
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(201, 169, 98, 0.4) 50%, 
        transparent 100%);
    margin: 0 auto var(--dbc-space-xl);
    position: relative;
    top: calc(-1 * var(--dbc-space-xl));
}

.dbc-section-header {
    display: flex;
    align-items: flex-start;
    gap: var(--dbc-space-md);
    margin-bottom: var(--dbc-space-lg);
}

.dbc-section-marker {
    width: 4px;
    height: 60px;
    background: linear-gradient(180deg, var(--dbc-amber) 0%, rgba(201, 169, 98, 0.3) 50%, transparent 100%);
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(201, 169, 98, 0.3);
    position: relative;
}

.dbc-section-marker::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--dbc-amber);
    box-shadow: 0 0 6px rgba(201, 169, 98, 0.5);
    animation: dbcMarkerGlow 3s ease-in-out infinite;
}

@keyframes dbcMarkerGlow {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 6px rgba(201, 169, 98, 0.5);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 10px rgba(201, 169, 98, 0.7);
    }
}

.dbc-section-content {
    flex: 1;
}

.dbc-section-label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--dbc-amber);
    background: var(--dbc-amber-subtle);
    padding: 0.375rem 0.75rem;
    border-radius: var(--dbc-radius-sm);
    margin-bottom: 0.75rem;
    border: 1px solid rgba(201, 169, 98, 0.2);
    box-shadow: 0 2px 8px rgba(201, 169, 98, 0.1);
    position: relative;
}

.dbc-section-title {
    font-family: var(--dbc-font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 600;
    color: var(--dbc-text-dark, #1a1815);
    margin: 0 0 0.5rem;
    line-height: 1.2;
    position: relative;
    padding-bottom: 0.5rem;
}

/* Light text color only for ancestry reports */
.dbc-page--ancestry-reports .dbc-section-title {
    color: var(--dbc-text-light);
}

.dbc-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--dbc-amber) 0%, transparent 100%);
    border-radius: 1px;
    animation: dbcTitleUnderline 0.6s ease-out;
}

@keyframes dbcTitleUnderline {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60px;
        opacity: 1;
    }
}

.dbc-section-desc {
    font-size: 1rem;
    color: var(--dbc-text-muted, #706c64);
    margin: 0;
    max-width: 600px;
    line-height: 1.6;
}

/* Light text color only for ancestry reports */
.dbc-page--ancestry-reports .dbc-section-desc {
    color: var(--dbc-text-light-muted);
}

/* ========================================
   FEATURED CARDS GRID (Visual Tiles)
   ======================================== */
#featured-reports {
    position: relative;
}

#featured-reports::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1000px;
    height: 400px;
    background: radial-gradient(ellipse 60% 40% at 50% 50%, 
        rgba(201, 169, 98, 0.08) 0%, 
        transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.dbc-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--dbc-space-lg);
    margin-bottom: var(--dbc-space-xl);
    position: relative;
    z-index: 1;
}

.dbc-card-featured {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 280px;
    padding: var(--dbc-space-md);
    border-radius: var(--dbc-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--dbc-white);
    transition: all var(--dbc-transition);
    background: #0b0a08;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.dbc-card-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: 2;
    transition: all var(--dbc-transition);
}

.dbc-card-featured::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 80% at 18% 10%, rgba(201, 169, 98, 0.35) 0%, transparent 55%),
        radial-gradient(110% 85% at 90% 0%, rgba(125, 154, 120, 0.22) 0%, transparent 60%),
        radial-gradient(80% 60% at 50% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    opacity: 0.85;
    z-index: 1;
    transition: opacity var(--dbc-transition), transform var(--dbc-transition-slow);
    pointer-events: none;
}

.dbc-card-featured:hover::before {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.55) 40%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

.dbc-card-featured:hover::after {
    opacity: 1;
    transform: translateY(-2px);
}

.dbc-card-featured:hover {
    transform: translateY(-6px);
    box-shadow: var(--dbc-shadow-lg);
    text-decoration: none;
    color: var(--dbc-white);
    border-color: rgba(201, 169, 98, 0.4);
}

.dbc-card-featured-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: scale(1.02);
    filter: saturate(1.05) contrast(1.06) brightness(0.78);
    transition: transform var(--dbc-transition-slow);
}

.dbc-card-featured:hover .dbc-card-featured-bg {
    transform: scale(1.05);
}

.dbc-card-featured-content {
    position: relative;
    z-index: 3;
}

.dbc-card-featured-era {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    padding: 0.375rem 0.75rem;
    border-radius: var(--dbc-radius-sm);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    color: var(--dbc-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dbc-card-featured-title {
    font-family: var(--dbc-font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    line-height: 1.2;
    color: var(--dbc-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.dbc-card-featured-desc {
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.dbc-card-featured-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.dbc-card-featured-arrow {
    position: absolute;
    top: var(--dbc-space-md);
    right: var(--dbc-space-md);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    z-index: 3;
    transition: all var(--dbc-transition);
}

.dbc-card-featured:hover .dbc-card-featured-arrow {
    background: var(--dbc-amber);
    transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
    .dbc-card-featured,
    .dbc-card-featured::before,
    .dbc-card-featured::after,
    .dbc-card-featured-bg,
    .dbc-card-featured-arrow {
        transition: none !important;
        animation: none !important;
    }

    .dbc-card-featured:hover {
        transform: none;
    }

    .dbc-card-featured:hover .dbc-card-featured-bg {
        transform: none;
    }
}

/* ========================================
   COMPACT CARDS (List Style)
   ======================================== */
.dbc-compact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--dbc-space-sm);
}

.dbc-card-compact {
    display: flex;
    align-items: center;
    gap: var(--dbc-space-sm);
    padding: var(--dbc-space-sm);
    background: var(--dbc-white);
    border: 1px solid var(--dbc-gray-200);
    border-radius: var(--dbc-radius-md);
    text-decoration: none;
    color: var(--dbc-text-dark);
    transition: all var(--dbc-transition);
}

.dbc-card-compact:hover {
    border-color: var(--dbc-amber);
    box-shadow: var(--dbc-shadow-md);
    transform: translateX(4px);
    text-decoration: none;
    color: var(--dbc-text-dark);
}

.dbc-card-compact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dbc-gray-100);
    border-radius: var(--dbc-radius-sm);
    flex-shrink: 0;
    overflow: hidden;
}

.dbc-card-compact-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--dbc-radius-sm);
}

.dbc-card-compact-icon i {
    font-size: 1.25rem;
    color: var(--dbc-amber);
}

.dbc-card-compact-body {
    flex: 1;
    min-width: 0;
}

.dbc-card-compact-title {
    font-weight: 600;
    font-size: 0.9375rem;
    margin: 0 0 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dbc-card-compact-desc {
    font-size: 0.8125rem;
    color: var(--dbc-text-muted);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dbc-card-compact-badges {
    display: flex;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.dbc-card-compact-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dbc-gray-400);
    transition: all var(--dbc-transition);
    flex-shrink: 0;
}

.dbc-card-compact:hover .dbc-card-compact-arrow {
    color: var(--dbc-amber);
    transform: translateX(4px);
}

/* ========================================
   VISUAL TILE CARDS (Mini Cinematic Cards)
   ======================================== */
.dbc-visual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--dbc-space-md);
    margin-bottom: var(--dbc-space-lg);
}

.dbc-card-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 180px;
    aspect-ratio: 4 / 3;
    padding: var(--dbc-space-md);
    border-radius: var(--dbc-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--dbc-white);
    transition: all var(--dbc-transition);
    background: #0b0a08;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.dbc-card-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: 2;
    transition: all var(--dbc-transition);
}

.dbc-card-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(100% 70% at 20% 15%, rgba(201, 169, 98, 0.25) 0%, transparent 50%),
        radial-gradient(90% 70% at 85% 0%, rgba(125, 154, 120, 0.18) 0%, transparent 55%),
        radial-gradient(70% 50% at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 65%);
    opacity: 0.8;
    z-index: 1;
    transition: opacity var(--dbc-transition), transform var(--dbc-transition-slow);
    pointer-events: none;
}

.dbc-card-visual:hover::before {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.45) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

.dbc-card-visual:hover::after {
    opacity: 1;
    transform: translateY(-2px);
}

.dbc-card-visual:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(201, 169, 98, 0.2);
    text-decoration: none;
    color: var(--dbc-white);
    border-color: rgba(201, 169, 98, 0.35);
}

.dbc-card-visual-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: scale(1.02);
    filter: saturate(1.05) contrast(1.05) brightness(0.75);
    transition: transform var(--dbc-transition-slow);
}

.dbc-card-visual:hover .dbc-card-visual-bg {
    transform: scale(1.08);
}

.dbc-card-visual-content {
    position: relative;
    z-index: 3;
}

.dbc-card-visual-badge {
    position: absolute;
    top: var(--dbc-space-sm);
    left: var(--dbc-space-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 0.25rem 0.625rem;
    border-radius: var(--dbc-radius-sm);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dbc-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 4;
}

.dbc-card-visual-badge i {
    font-size: 0.75rem;
}

.dbc-card-visual-arrow {
    position: absolute;
    top: var(--dbc-space-sm);
    right: var(--dbc-space-sm);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    z-index: 4;
    transition: all var(--dbc-transition);
    color: var(--dbc-white);
    font-size: 0.875rem;
}

.dbc-card-visual:hover .dbc-card-visual-arrow {
    background: var(--dbc-amber);
    transform: translateX(3px);
    color: var(--dbc-earth-deep);
}

.dbc-card-visual-title {
    font-family: var(--dbc-font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.375rem;
    line-height: 1.2;
    color: var(--dbc-white);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.dbc-card-visual-desc {
    font-size: 0.8125rem;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.dbc-card-visual-badges {
    display: flex;
    gap: 0.375rem;
    margin-top: 0.625rem;
    flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
    .dbc-card-visual,
    .dbc-card-visual::before,
    .dbc-card-visual::after,
    .dbc-card-visual-bg,
    .dbc-card-visual-arrow {
        transition: none !important;
        animation: none !important;
    }

    .dbc-card-visual:hover {
        transform: none;
    }

    .dbc-card-visual:hover .dbc-card-visual-bg {
        transform: none;
    }
}

/* ========================================
   STATUS BADGES
   ======================================== */
.dbc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: var(--dbc-radius-sm);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dbc-badge--new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.dbc-badge--updated {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.dbc-badge--locked {
    background: var(--dbc-gray-200);
    color: var(--dbc-gray-500);
}

.dbc-badge--unlock {
    background: linear-gradient(135deg, var(--dbc-amber), var(--dbc-amber-light));
    color: var(--dbc-earth-deep);
}

.dbc-badge--era {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ========================================
   CATEGORY CONTAINERS
   ======================================== */
.dbc-category {
    /* Default light background for admin dashboard and other views */
    background: var(--dbc-white, #ffffff);
    border: 1px solid var(--dbc-gray-200, #e4e2dc);
    border-radius: var(--dbc-radius-lg);
    padding: var(--dbc-space-lg);
    margin-bottom: var(--dbc-space-lg);
    transition: all var(--dbc-transition);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

/* Dark background only for ancestry reports dashboard */
.dbc-page--ancestry-reports .dbc-category {
    background: linear-gradient(135deg, rgba(18, 16, 14, 0.95) 0%, rgba(30, 25, 20, 0.92) 100%);
    border: 1px solid rgba(201, 169, 98, 0.15);
}

.dbc-category::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(201, 169, 98, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity var(--dbc-transition);
}

/* Show overlay only for ancestry reports */
.dbc-page--ancestry-reports .dbc-category::before {
    opacity: 1;
}

.dbc-category:hover {
    box-shadow: var(--dbc-shadow-md);
    border-color: var(--dbc-amber, #c9a962);
    transform: translateY(-2px);
}

/* Enhanced hover for ancestry reports */
.dbc-page--ancestry-reports .dbc-category:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(201, 169, 98, 0.2);
    border-color: rgba(201, 169, 98, 0.25);
}

.dbc-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--dbc-space-md);
    padding-bottom: var(--dbc-space-sm);
    border-bottom: 1px solid var(--dbc-gray-200, #e4e2dc);
    position: relative;
    z-index: 1;
}

/* Light border only for ancestry reports */
.dbc-page--ancestry-reports .dbc-category-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dbc-category-title-wrap {
    display: flex;
    align-items: center;
    gap: var(--dbc-space-sm);
}

.dbc-category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 169, 98, 0.15);
    color: var(--dbc-amber);
    border-radius: var(--dbc-radius-sm);
    font-size: 1rem;
    border: 1px solid rgba(201, 169, 98, 0.25);
    box-shadow: 0 2px 8px rgba(201, 169, 98, 0.1);
}

.dbc-category-title {
    font-family: var(--dbc-font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dbc-text-dark, #1a1815);
    margin: 0;
}

/* Light text color only for ancestry reports */
.dbc-page--ancestry-reports .dbc-category-title {
    color: var(--dbc-text-light);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dbc-category-count {
    font-size: 0.8125rem;
    color: var(--dbc-text-muted, #706c64);
    background: var(--dbc-gray-100, #f1f0ed);
    padding: 0.25rem 0.75rem;
    border-radius: var(--dbc-radius-sm);
    border: 1px solid var(--dbc-gray-200, #e4e2dc);
    backdrop-filter: blur(4px);
}

/* Light text and dark background only for ancestry reports */
.dbc-page--ancestry-reports .dbc-category-count {
    color: var(--dbc-text-light-muted);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   CTA FOOTER SECTION
   ======================================== */
.dbc-cta {
    background: var(--dbc-white, #ffffff);
    border: 1px solid var(--dbc-gray-200, #e4e2dc);
    border-radius: var(--dbc-radius-xl);
    padding: var(--dbc-space-xl);
    text-align: center;
    margin-top: var(--dbc-space-xl);
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow: var(--dbc-shadow-md);
}

/* Dark background only for ancestry reports */
.dbc-page--ancestry-reports .dbc-cta {
    background: linear-gradient(
        135deg,
        rgba(18, 16, 14, 0.95) 0%,
        rgba(30, 25, 20, 0.92) 100%
    );
    border: 1px solid rgba(201, 169, 98, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dbc-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(201, 169, 98, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.dbc-cta-content {
    position: relative;
    z-index: 1;
}

.dbc-cta-title {
    font-family: var(--dbc-font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--dbc-text-dark, #1a1815);
    margin: 0 0 var(--dbc-space-sm);
}

/* Light text color only for ancestry reports */
.dbc-page--ancestry-reports .dbc-cta-title {
    color: var(--dbc-text-light);
}

.dbc-cta-desc {
    font-size: 1rem;
    color: var(--dbc-text-muted, #706c64);
    margin: 0 0 var(--dbc-space-lg);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Light text color only for ancestry reports */
.dbc-page--ancestry-reports .dbc-cta-desc {
    color: var(--dbc-text-light-muted);
}

.dbc-cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--dbc-space-sm);
    flex-wrap: wrap;
}

/* ========================================
   BACK NAVIGATION
   ======================================== */
.dbc-back-nav {
    margin-bottom: var(--dbc-space-md);
}

.dbc-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dbc-text-muted, #706c64);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--dbc-radius-md);
    transition: all var(--dbc-transition);
}

/* Light text color only for ancestry reports */
.dbc-page--ancestry-reports .dbc-back-link {
    color: var(--dbc-text-light-muted);
}

.dbc-back-link:hover {
    background: var(--dbc-gray-100, #f1f0ed);
    color: var(--dbc-text-dark, #1a1815);
    text-decoration: none;
    border: 1px solid var(--dbc-amber, #c9a962);
}

/* Light hover colors only for ancestry reports */
.dbc-page--ancestry-reports .dbc-back-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--dbc-text-light);
    border: 1px solid rgba(201, 169, 98, 0.2);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes dbcFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dbcFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dbc-animate {
    opacity: 0;
    animation: dbcFadeInUp 0.5s var(--dbc-ease) forwards;
}

.dbc-animate--delay-1 { animation-delay: 0.1s; }
.dbc-animate--delay-2 { animation-delay: 0.2s; }
.dbc-animate--delay-3 { animation-delay: 0.3s; }
.dbc-animate--delay-4 { animation-delay: 0.4s; }

/* Scroll-triggered animations */
.dbc-scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--dbc-ease);
}

.dbc-scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 1024px) {
    .dbc-featured-grid {
        grid-template-columns: 1fr;
    }
    
    .dbc-visual-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--dbc-space-sm);
    }
    
    .dbc-compact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Ensure scroll-animate content is visible on mobile - IntersectionObserver can fail
       on small viewports, address bar changes, or scroll containers */
    .dbc-scroll-animate {
        opacity: 1 !important;
        transform: none !important;
    }

    .dbc-container {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
    
    .dbc-hero {
        min-height: 50vh;
        max-height: 60vh;
        padding-top: var(--content-offset-mobile, 72px); /* Account for fixed navbar */
    }
    
    .dbc-hero-content {
        padding: 60px 20px 40px;
    }
    
    .dbc-result-status {
        margin-top: 32px;
        padding: 0;
    }
    
    .dbc-result-text {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .dbc-result-subtext {
        font-size: clamp(0.9rem, 2vw, 1rem);
        margin-top: 12px;
    }
    
    .dbc-timeline {
        flex-wrap: wrap;
        gap: var(--dbc-space-xs);
    }
    
    .dbc-timeline-era {
        flex: 1 1 45%;
        max-width: none;
    }
    
    .dbc-compact-grid {
        grid-template-columns: 1fr;
    }
    
    .dbc-visual-grid {
        grid-template-columns: 1fr;
        gap: var(--dbc-space-sm);
    }
    
    .dbc-card-visual {
        min-height: 160px;
        aspect-ratio: 16 / 9;
    }
    
    .dbc-section-header {
        flex-direction: column;
        gap: var(--dbc-space-sm);
    }
    
    .dbc-section-marker {
        width: 40px;
        height: 4px;
        background: linear-gradient(90deg, var(--dbc-amber) 0%, transparent 100%);
    }
    
    .dbc-category {
        padding: var(--dbc-space-md);
    }
    
    .dbc-card-featured {
        min-height: 220px;
    }
    
    .dbc-cta {
        padding: var(--dbc-space-lg);
        border-radius: var(--dbc-radius-lg);
        margin-bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 576px) {
    .dbc-scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .dbc-hero-title {
        font-size: 1.75rem;
    }
    
    .dbc-hero-subtitle {
        font-size: 1rem;
    }
    
    .dbc-hero-stat {
        width: 100%;
    }
    
    .dbc-hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .dbc-btn {
        width: 100%;
        justify-content: center;
    }
    
    .dbc-timeline-era {
        flex: 1 1 100%;
    }
    
    .dbc-quick-nav {
        display: none;
    }
    
    .dbc-card-compact {
        padding: var(--dbc-space-xs);
    }
    
    .dbc-card-compact-icon {
        width: 40px;
        height: 40px;
    }
    
    .dbc-card-visual {
        min-height: 140px;
        padding: var(--dbc-space-sm);
    }
    
    .dbc-card-visual-title {
        font-size: 1rem;
    }
    
    .dbc-card-visual-desc {
        font-size: 0.75rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .dbc-hero {
        background: none !important;
        color: black !important;
        padding: 1rem 0;
    }
    
    .dbc-hero::before,
    .dbc-hero::after {
        display: none;
    }
    
    .dbc-hero-side,
    .dbc-timeline,
    .dbc-cta,
    .dbc-back-nav,
    .dbc-card-featured-arrow,
    .dbc-card-compact-arrow {
        display: none !important;
    }
    
    .dbc-card-featured,
    .dbc-card-compact,
    .dbc-card-visual,
    .dbc-category {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc;
    }
    
    .dbc-card-featured-arrow,
    .dbc-card-compact-arrow,
    .dbc-card-visual-arrow {
        display: none !important;
    }
}

