﻿/** * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * 
 * Viking Report V2 - Elegant Dark Blue, Gold & White Theme
 * Cinematic design for Viking DNA analysis visualization.
 */

/* Import shared AI Assistant styles */
@import url('../../../shared/ai-assistant.css');

/* ========================================
   CSS VARIABLES - Viking V2 Color Palette
   ======================================== */
:root {
    /* Viking V2 Dark Theme */
    --vk2-bg-primary: #0f1f2e;      /* Deep fjord */
    --vk2-bg-secondary: #1a3a52;    /* Dark navy */
    --vk2-bg-card: #1f2937;         /* Card background */
    --vk2-bg-alt: #152535;          /* Alternate section */
    
    /* Gold Accents */
    --vk2-gold: #c9a430;
    --vk2-gold-light: #e8d080;
    --vk2-gold-dark: #a68a2b;
    --vk2-gold-glow: rgba(201, 164, 48, 0.3);
    
    /* Text Colors */
    --vk2-text: #F5F3EF;
    --vk2-text-muted: #A89F91;
    --vk2-text-subtle: #8a9aaa;
    
    /* Borders & Effects */
    --vk2-border: rgba(201, 164, 48, 0.15);
    --vk2-glass: rgba(255, 255, 255, 0.05);
    
    /* Typography */
    --vk2-font-serif: 'Cormorant Garamond', 'Georgia', serif;
    --vk2-font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Spacing */
    --vk2-section-padding: 100px;
    --vk2-section-padding-mobile: 60px;
    
    /* Transitions */
    --vk2-transition-fast: 0.2s ease;
    --vk2-transition-medium: 0.4s ease;
    --vk2-transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --vk2-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --vk2-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --vk2-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
    --vk2-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.25);
    --vk2-shadow-gold: 0 8px 32px rgba(201, 164, 48, 0.25);
}

/* ========================================
   BASE STYLES
   ======================================== */
.vk2-main {
    background: var(--vk2-bg-primary);
    color: var(--vk2-text);
    font-family: var(--vk2-font-sans);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

.vk2-content-hidden {
    opacity: 0;
    visibility: hidden;
}

.dna-content-reveal {
    animation: vk2ContentReveal 0.6s ease-out forwards;
}

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

/* ========================================
   HEADING STYLES
   ======================================== */
.vk2-main h1,
.vk2-main h2,
.vk2-main h3,
.vk2-main h4,
.vk2-main h5 {
    color: var(--vk2-text) !important;
    font-weight: 600;
}

.vk2-main h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: white !important;
}

.vk2-main h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--vk2-text) !important;
}

.vk2-main h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    color: var(--vk2-text) !important;
}

.vk2-main h4 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--vk2-text) !important;
}

.vk2-main h5 {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--vk2-text) !important;
}

/* ========================================
   SCROLL PROGRESS
   ======================================== */
.vk2-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--vk2-bg-secondary), var(--vk2-gold));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ========================================
   SKIP LINK (Accessibility)
   ======================================== */
.vk2-skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background: var(--vk2-gold);
    color: var(--vk2-bg-primary);
    font-weight: 600;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 8px 8px;
    transition: top var(--vk2-transition-fast);
}

.vk2-skip-link:focus {
    top: 0;
}

/* ========================================
   PAGE NAVIGATION DOTS
   ======================================== */
.vk2-page-nav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
}

.vk2-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    transition: all var(--vk2-transition-fast);
    position: relative;
    cursor: pointer;
}

.vk2-nav-dot:hover,
.vk2-nav-dot.active {
    background: var(--vk2-gold);
    transform: scale(1.2);
}

.vk2-nav-dot::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--vk2-transition-fast);
}

.vk2-nav-dot:hover::before {
    opacity: 1;
}

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

/* ========================================
   MOBILE BOTTOM NAVIGATION
   ======================================== */
.vk2-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(15, 31, 46, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(201, 164, 48, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.vk2-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--vk2-text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    transition: all var(--vk2-transition-fast);
}

.vk2-bottom-nav-item.active,
.vk2-bottom-nav-item:hover {
    color: var(--vk2-gold);
}

@media print {
    .vk2-bottom-nav {
        display: none;
    }
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.vk2-back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--vk2-gold);
    color: var(--vk2-bg-primary);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--vk2-transition-medium);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(201, 164, 48, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.vk2-back-to-top:hover {
    background: var(--vk2-gold-light);
    transform: translateY(-4px);
}

@media (max-width: 768px) {
    .vk2-back-to-top {
        bottom: 85px;
    }
}

/* ========================================
   SECTION BASE STYLES
   ======================================== */
.vk2-section {
    padding: var(--vk2-section-padding) 0;
    position: relative;
    overflow: visible;
}

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

@media (max-width: 768px) {
    .vk2-section {
        padding: var(--vk2-section-padding-mobile) 0;
    }
}

/* ========================================
   CHAPTER HEADER
   ======================================== */
.vk2-chapter-header {
    text-align: center;
    margin-bottom: 60px;
}

.vk2-chapter-label {
    display: inline-block;
    font-family: var(--vk2-font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--vk2-gold);
    margin-bottom: 12px;
}

.vk2-chapter-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--vk2-gold), transparent);
    margin: 16px auto;
}

.vk2-heading-2 {
    font-family: var(--vk2-font-serif);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    color: white;
    margin: 0 0 16px;
}

.vk2-chapter-subtitle {
    font-size: 1.05rem;
    color: var(--vk2-text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   HERO SECTION
   ======================================== */
.vk2-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--content-offset, 80px);
    padding-bottom: 120px;
}

.vk2-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.vk2-hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.vk2-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 31, 46, 0.7) 0%,
        rgba(15, 31, 46, 0.85) 50%,
        rgba(15, 31, 46, 0.98) 100%
    );
}

.vk2-hero-particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(201, 164, 48, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(26, 58, 82, 0.08) 0%, transparent 50%);
}

.vk2-hero-content {
    position: relative;
    z-index: 1;
}

/* Hero Header */
.vk2-hero-header {
    text-align: center;
    margin-bottom: 48px;
}

.vk2-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(201, 164, 48, 0.15);
    border: 1px solid rgba(201, 164, 48, 0.3);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--vk2-gold);
    margin-bottom: 20px;
}

.vk2-hero-title {
    font-family: var(--vk2-font-serif);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
}

.vk2-hero-title-accent {
    color: var(--vk2-gold);
}

.vk2-hero-subtitle {
    font-size: 1.1rem;
    color: var(--vk2-text-muted);
}

/* Export Toolbar */
.vk2-export-toolbar {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.vk2-export-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.vk2-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(201, 164, 48, 0.15);
    border: 1px solid rgba(201, 164, 48, 0.3);
    border-radius: 25px;
    color: var(--vk2-gold);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--vk2-transition-fast);
}

.vk2-export-btn:hover {
    background: rgba(201, 164, 48, 0.25);
    transform: translateY(-2px);
}

/* Viking Index Ring */
.vk2-index-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.vk2-index-ring {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 10px 40px rgba(201, 164, 48, 0.3);
}

.vk2-index-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--vk2-bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vk2-index-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--vk2-text-muted);
}

.vk2-index-value {
    font-family: var(--vk2-font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--vk2-gold);
    line-height: 1;
}

.vk2-index-unit {
    font-size: 1.5rem;
    font-weight: 500;
}

/* Hero Match Card */
.vk2-hero-match {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 164, 48, 0.2);
    border-radius: 20px;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform var(--vk2-transition-medium), box-shadow var(--vk2-transition-medium);
}

.vk2-hero-match.vk2-drawer-open {
    cursor: pointer;
}

.vk2-hero-match:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
}

.vk2-hero-match-portrait {
    position: relative;
    height: 100%;
    min-height: 300px;
}

.vk2-hero-match-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

.vk2-crown-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--vk2-gold);
    color: var(--vk2-bg-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.vk2-hero-match-details {
    padding: 32px;
}

.vk2-era-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    background: rgba(201, 164, 48, 0.3);
    color: var(--vk2-gold);
}

.vk2-match-name {
    font-family: var(--vk2-font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.vk2-match-location {
    font-size: 1rem;
    color: var(--vk2-text-muted);
    margin-bottom: 16px;
}

.vk2-match-description {
    font-size: 0.95rem;
    color: var(--vk2-text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.vk2-match-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.vk2-match-fact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--vk2-text);
}

.vk2-match-fact code {
    background: rgba(201, 164, 48, 0.15);
    color: var(--vk2-gold);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

.vk2-match-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Stats Bar */
.vk2-stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 24px;
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(201, 164, 48, 0.15);
    max-width: 800px;
    margin: 0 auto;
}

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

.vk2-stat-value {
    font-family: var(--vk2-font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--vk2-gold);
    margin-bottom: 4px;
}

.vk2-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--vk2-text-muted);
}

.vk2-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(201, 164, 48, 0.2);
}

/* No Match State */
.vk2-no-match-card {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 164, 48, 0.2);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.vk2-no-match-icon {
    margin-bottom: 24px;
    color: var(--vk2-gold);
}

.vk2-no-match-card h3 {
    color: white;
    margin-bottom: 16px;
}

.vk2-no-match-explanation {
    color: var(--vk2-text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
}

/* ========================================
   UNDERSTANDING SECTION
   ======================================== */
.vk2-understanding {
    max-width: 800px;
    margin: 0 auto 32px;
}

.vk2-understanding h4 {
    color: var(--vk2-gold);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.vk2-callout {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(201, 164, 48, 0.1);
    border-left: 3px solid var(--vk2-gold);
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.vk2-callout span {
    color: var(--vk2-gold);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.vk2-callout p {
    margin: 0;
    color: var(--vk2-text);
}

/* ========================================
   NARRATIVE INTRO
   ======================================== */
.vk2-narrative-intro {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(201, 164, 48, 0.15);
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.vk2-narrative-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 164, 48, 0.15);
    border-radius: 12px;
    color: var(--vk2-gold);
    font-size: 1.5rem;
}

.vk2-narrative-content {
    flex: 1;
}

.vk2-narrative-title {
    font-family: var(--vk2-font-serif);
    font-size: 1.3rem;
    color: white;
    margin-bottom: 12px;
}

.vk2-narrative-text {
    color: var(--vk2-text-muted);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .vk2-narrative-intro {
        flex-direction: column;
        gap: 16px;
    }
}

/* ========================================
   BENTO GRID
   ======================================== */
.vk2-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.vk2-bento-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 300px;
    cursor: pointer;
    transition: transform var(--vk2-transition-medium), box-shadow var(--vk2-transition-medium);
    background: var(--vk2-bg-card);
    border: 1px solid rgba(201, 164, 48, 0.15);
}

.vk2-bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.vk2-bento-first {
    grid-column: span 3;
    grid-row: span 1;
    min-height: 400px;
}

.vk2-bento-large {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 400px;
}

.vk2-bento-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0.4;
    transition: opacity var(--vk2-transition-medium);
}

.vk2-bento-card:hover .vk2-bento-bg {
    opacity: 0.5;
}

.vk2-bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(15, 31, 46, 0.3) 50%,
        rgba(15, 31, 46, 0.9) 100%
    );
}

.vk2-bento-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vk2-bento-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.vk2-bento-rank {
    background: var(--vk2-gold);
    color: var(--vk2-bg-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.vk2-bento-era {
    background: rgba(201, 164, 48, 0.2);
    color: var(--vk2-gold);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.vk2-bento-info {
    flex: 1;
}

.vk2-bento-name {
    font-family: var(--vk2-font-serif);
    font-size: 1.3rem;
    color: white;
    margin-bottom: 8px;
}

.vk2-bento-meta {
    color: var(--vk2-text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.vk2-bento-percentage {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--vk2-gold);
}

.vk2-bento-cta {
    margin-top: 16px;
}

.vk2-bento-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--vk2-gold);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Regional Cards */
.vk2-region-card-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.vk2-region-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    transition: transform 0.4s, opacity 0.4s;
}

.vk2-bento-card:hover .vk2-region-card-image img {
    transform: scale(1.08);
    opacity: 0.45;
}

.vk2-region-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 31, 46, 0.95) 0%, rgba(15, 31, 46, 0.7) 40%, transparent 100%);
}

.vk2-region-content {
    position: relative;
    z-index: 1;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vk2-region-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 16px;
}

.vk2-region-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--vk2-gold) 0%, var(--vk2-gold-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vk2-bg-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(201, 164, 48, 0.3);
}

.vk2-region-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.vk2-region-name {
    font-family: var(--vk2-font-serif);
    font-size: 1.2rem;
    color: white;
    margin: 0;
}

.vk2-region-badge {
    background: var(--vk2-gold);
    color: var(--vk2-bg-primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
    align-self: flex-start;
}

.vk2-region-percentage {
    font-family: var(--vk2-font-serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--vk2-gold);
    margin-bottom: 12px;
}

.vk2-region-progress {
    height: 6px;
    background: rgba(201, 164, 48, 0.15);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.vk2-region-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--vk2-gold), var(--vk2-gold-light));
    border-radius: 3px;
    transition: width var(--vk2-transition-slow);
}

.vk2-region-context {
    color: var(--vk2-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 12px;
}

/* Responsive adjustments for region cards */
@media (max-width: 992px) {
    .vk2-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .vk2-bento-first {
        grid-column: span 2;
    }
    .vk2-bento-large {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .vk2-bento-grid {
        grid-template-columns: 1fr;
    }
    .vk2-bento-first {
        grid-column: span 1;
    }
    .vk2-bento-large {
        grid-column: span 1;
    }
    .vk2-region-percentage {
        font-size: 1.75rem;
    }
    .vk2-region-name {
        font-size: 1rem;
    }
}

/* ========================================
   MAP CONTAINER
   ======================================== */
.vk2-map-container {
    position: relative;
    height: 600px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(201, 164, 48, 0.15);
    margin-bottom: 24px;
}

.vk2-map-container #vk2Map {
    width: 100%;
    height: 100%;
}

/* ========================================
   CHART CONTAINER
   ======================================== */
.vk2-chart-container {
    position: relative;
    height: 500px;
    margin-bottom: 24px;
}

/* ========================================
   HISTORY GRID
   ======================================== */
.vk2-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.vk2-history-card {
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 164, 48, 0.15);
    border-radius: 16px;
    padding: 32px;
    transition: transform var(--vk2-transition-medium), box-shadow var(--vk2-transition-medium);
}

.vk2-history-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.vk2-history-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 164, 48, 0.15);
    border-radius: 16px;
    color: var(--vk2-gold);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.vk2-history-title {
    font-family: var(--vk2-font-serif);
    font-size: 1.2rem;
    color: white;
    margin-bottom: 12px;
}

.vk2-history-text {
    color: var(--vk2-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   VIKING ROUTES MAP
   ======================================== */
.vk2-map-routes-container {
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.vk2-map-routes-wrapper {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(201, 164, 48, 0.15);
    background: rgba(31, 41, 55, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 24px;
    transition: transform var(--vk2-transition-medium), box-shadow var(--vk2-transition-medium);
}

.vk2-map-routes-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.vk2-map-routes-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: contain;
    border-radius: 16px;
}

.vk2-map-routes-caption {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 24px;
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 164, 48, 0.15);
    border-radius: 12px;
    color: var(--vk2-text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

.vk2-map-routes-caption .dna-icon {
    color: var(--vk2-gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.vk2-map-routes-caption strong {
    color: var(--vk2-text);
    font-weight: 600;
}

@media (max-width: 768px) {
    .vk2-map-routes-container {
        margin-top: 40px;
    }
    
    .vk2-map-routes-image {
        max-height: 400px;
    }
    
    .vk2-map-routes-caption {
        flex-direction: column;
        gap: 8px;
        padding: 16px;
        font-size: 0.9rem;
    }
    
    .vk2-map-routes-caption .dna-icon {
        margin-top: 0;
    }
}

/* ========================================
   EXPLORER SECTION
   ======================================== */
.vk2-explorer-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--vk2-bg-card);
    border-radius: 12px;
    border: 1px solid rgba(201, 164, 48, 0.15);
}

.vk2-explorer-search {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.vk2-explorer-search .dna-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--vk2-text-muted);
    pointer-events: none;
    z-index: 1;
}

.vk2-explorer-search input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(201, 164, 48, 0.2);
    border-radius: 8px;
    color: var(--vk2-text);
    font-size: 0.95rem;
    transition: border-color var(--vk2-transition-fast);
}

.vk2-explorer-search input:focus {
    outline: none;
    border-color: var(--vk2-gold);
}

.vk2-explorer-search input::placeholder {
    color: var(--vk2-text-muted);
}

.vk2-explorer-filter-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.vk2-explorer-select {
    padding: 12px 36px 12px 14px;
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(201, 164, 48, 0.2);
    border-radius: 8px;
    color: var(--vk2-text);
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23c9a430' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 20px;
    min-width: 150px;
}

.vk2-explorer-select:focus {
    outline: none;
    border-color: var(--vk2-gold);
}

.vk2-explorer-reset-btn {
    padding: 12px 20px;
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(201, 164, 48, 0.2);
    border-radius: 8px;
    color: var(--vk2-text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--vk2-transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.vk2-explorer-reset-btn:hover {
    background: rgba(201, 164, 48, 0.1);
    border-color: var(--vk2-gold);
    color: var(--vk2-gold);
}

.vk2-explorer-stats {
    font-size: 0.9rem;
    color: var(--vk2-text-muted);
    padding: 8px 16px;
    background: rgba(201, 164, 48, 0.1);
    border-radius: 20px;
}

/* View Toggle */
.vk2-explorer-view-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vk2-explorer-view-toggle .vk2-explorer-label {
    font-size: 0.9rem;
    color: var(--vk2-gold);
    font-weight: 500;
}

.vk2-explorer-view-toggle .btn-group {
    display: flex;
    gap: 0;
}

.vk2-explorer-view-toggle .btn {
    padding: 10px 16px;
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(201, 164, 48, 0.2);
    color: var(--vk2-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--vk2-transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.vk2-explorer-view-toggle .btn:first-child {
    border-radius: 8px 0 0 8px;
}

.vk2-explorer-view-toggle .btn:last-child {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

.vk2-explorer-view-toggle .btn:hover {
    background: rgba(201, 164, 48, 0.1);
    border-color: var(--vk2-gold);
    color: var(--vk2-text);
}

.vk2-explorer-view-toggle .btn.active {
    background: rgba(201, 164, 48, 0.2);
    border-color: var(--vk2-gold);
    color: var(--vk2-gold);
}

.vk2-explorer-view-toggle .btn.active:hover {
    background: rgba(201, 164, 48, 0.25);
}

.vk2-explorer-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(201, 164, 48, 0.15);
}

.vk2-explorer-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--vk2-bg-card);
}

.vk2-explorer-table thead {
    background: rgba(0, 0, 0, 0.3);
}

.vk2-explorer-table th {
    padding: 16px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vk2-text-muted);
    border-bottom: 1px solid rgba(201, 164, 48, 0.2);
}

.vk2-explorer-row {
    cursor: pointer;
    transition: background-color var(--vk2-transition-fast);
    border-bottom: 1px solid rgba(201, 164, 48, 0.1);
}

.vk2-explorer-row:last-child {
    border-bottom: none;
}

.vk2-explorer-row:hover {
    background: rgba(201, 164, 48, 0.1);
}

.vk2-explorer-table td {
    padding: 14px 16px;
    vertical-align: middle;
}

.vk2-explorer-cell-sample {
    min-width: 220px;
}

.vk2-explorer-sample-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vk2-explorer-portrait {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(201, 164, 48, 0.3);
    flex-shrink: 0;
}

.vk2-explorer-sample-id {
    display: block;
    font-weight: 600;
    color: var(--vk2-text);
}

.vk2-explorer-sample-type {
    display: block;
    font-size: 0.8rem;
    color: var(--vk2-text-muted);
}

.vk2-explorer-country {
    display: block;
    color: var(--vk2-text);
}

.vk2-explorer-locality {
    display: block;
    font-size: 0.8rem;
    color: var(--vk2-text-muted);
}

.vk2-explorer-era {
    color: var(--vk2-text);
}

.vk2-explorer-date {
    display: block;
    color: var(--vk2-text);
}

.vk2-explorer-years-ago {
    display: block;
    font-size: 0.8rem;
    color: var(--vk2-text-muted);
}

.vk2-explorer-haplo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 6px;
    margin-bottom: 4px;
}

.vk2-haplo-mtdna-badge {
    background: rgba(224, 123, 155, 0.15);
    color: #E07B9B;
}

.vk2-haplo-ydna-badge {
    background: rgba(123, 163, 224, 0.15);
    color: #7BA3E0;
}

.vk2-explorer-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.vk2-explorer-page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--vk2-bg-card);
    border: 1px solid rgba(201, 164, 48, 0.2);
    color: var(--vk2-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--vk2-transition-fast);
}

.vk2-explorer-page-btn:hover:not(:disabled) {
    background: var(--vk2-gold);
    border-color: var(--vk2-gold);
    color: var(--vk2-bg-primary);
}

.vk2-explorer-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.vk2-explorer-page-info {
    font-size: 0.9rem;
    color: var(--vk2-text-muted);
}

@media (max-width: 768px) {
    .vk2-explorer-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .vk2-explorer-search {
        min-width: 100%;
    }
    
    .vk2-explorer-filter-group {
        flex-direction: column;
    }
    
    .vk2-explorer-select {
        min-width: 100%;
    }
    
    .vk2-explorer-view-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .vk2-explorer-view-toggle .btn {
        flex: 1;
        justify-content: center;
    }
    
    .vk2-explorer-table th,
    .vk2-explorer-table td {
        padding: 10px 12px;
    }
    
    .vk2-explorer-th-haplo,
    .vk2-explorer-cell-haplo {
        display: none;
    }
}

/* ========================================
   INSIGHT CARDS
   ======================================== */
.vk2-insight-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(201, 164, 48, 0.1);
    border-left: 3px solid var(--vk2-gold);
    border-radius: 8px;
}

.vk2-insight-card span {
    color: var(--vk2-gold);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.vk2-insight-content {
    flex: 1;
    color: var(--vk2-text);
}

.vk2-suggestion-card {
    padding: 24px;
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(201, 164, 48, 0.15);
    border-radius: 12px;
    text-align: center;
}

.vk2-suggestion-card h5 {
    color: var(--vk2-gold);
    margin-bottom: 12px;
}

.vk2-suggestion-card p {
    color: var(--vk2-text-muted);
    margin-bottom: 20px;
}

/* ========================================
   ACCORDION
   ======================================== */
.vk2-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.vk2-accordion-item {
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(201, 164, 48, 0.15);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.vk2-accordion-header {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    text-align: left;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--vk2-transition-fast);
}

.vk2-accordion-header:hover {
    background: rgba(201, 164, 48, 0.05);
}

.vk2-accordion-header span:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vk2-accordion-icon {
    transition: transform var(--vk2-transition-fast);
    color: var(--vk2-gold);
}

.vk2-accordion-header:not(.collapsed) .vk2-accordion-icon {
    transform: rotate(180deg);
}

.vk2-accordion-body {
    padding: 0 24px 24px;
    color: var(--vk2-text-muted);
    line-height: 1.7;
}

.vk2-accordion-body ul {
    margin-top: 12px;
    padding-left: 24px;
}

.vk2-accordion-body li {
    margin-bottom: 8px;
}

/* ========================================
   ARCHAEOLOGICAL SITES
   ======================================== */
.vk2-archaeological-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.vk2-archaeological-card {
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 164, 48, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: transform var(--vk2-transition-medium), box-shadow var(--vk2-transition-medium);
}

.vk2-archaeological-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.vk2-archaeological-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.vk2-archaeological-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--vk2-transition-slow);
}

.vk2-archaeological-card:hover .vk2-archaeological-image img {
    transform: scale(1.08);
}

.vk2-archaeological-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(31, 41, 55, 0.9), transparent);
    pointer-events: none;
}

.vk2-archaeological-content {
    padding: 24px;
}

.vk2-archaeological-title {
    font-family: var(--vk2-font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin: 0 0 12px;
}

.vk2-archaeological-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--vk2-gold);
    margin: 0 0 16px;
}

.vk2-archaeological-description {
    font-size: 0.95rem;
    color: var(--vk2-text-muted);
    line-height: 1.7;
    margin: 0 0 20px;
}

.vk2-archaeological-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.vk2-archaeological-era {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(201, 164, 48, 0.15);
    border: 1px solid rgba(201, 164, 48, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--vk2-gold);
}

.vk2-archaeological-type {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--vk2-text);
}

@media (max-width: 992px) {
    .vk2-archaeological-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .vk2-archaeological-image {
        height: 180px;
    }
    
    .vk2-archaeological-content {
        padding: 20px;
    }
    
    .vk2-archaeological-title {
        font-size: 1.2rem;
    }
}

/* ========================================
   BUTTONS
   ======================================== */
.vk2-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--vk2-gold), var(--vk2-gold-dark));
    color: var(--vk2-bg-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all var(--vk2-transition-medium);
    box-shadow: 0 4px 15px rgba(201, 164, 48, 0.3);
}

.vk2-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(201, 164, 48, 0.4);
    color: var(--vk2-bg-primary);
    text-decoration: none;
}

.vk2-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--vk2-transition-medium);
}

.vk2-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    text-decoration: none;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .vk2-hero {
        min-height: auto;
        padding-top: var(--content-offset-mobile, 72px);
        padding-bottom: 60px;
    }
    
    .vk2-hero-title {
        font-size: 2rem;
    }
    
    .vk2-bento-grid {
        grid-template-columns: 1fr;
    }
    
    .vk2-stats-bar {
        flex-direction: column;
        gap: 16px;
    }
    
    .vk2-stat-divider {
        display: none;
    }
}

/* ========================================
   TIMELINE STYLES (REMOVED - using shared visual-timeline.css)
   ======================================== */

/* ========================================
   DRAWER STYLES
   ======================================== */
.vk2-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.3s, opacity 0.3s ease;
}

.vk2-drawer.open {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.vk2-drawer-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.vk2-drawer.open .vk2-drawer-backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.vk2-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 500px;
    height: 100%;
    background: var(--vk2-bg-secondary);
    border-left: 1px solid var(--vk2-border);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

.vk2-drawer.open .vk2-drawer-panel {
    transform: translateX(0);
}

.vk2-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--vk2-border);
    background: var(--vk2-bg-primary);
}

.vk2-drawer-title {
    font-family: var(--vk2-font-serif);
    font-size: 1.25rem;
    color: var(--vk2-text);
    margin: 0;
}

.vk2-drawer-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--vk2-bg-card);
    border: none;
    color: var(--vk2-text-muted);
    cursor: pointer;
    transition: all var(--vk2-transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vk2-drawer-close:hover {
    background: var(--vk2-gold);
    color: var(--vk2-bg-primary);
}

.vk2-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.vk2-drawer-portrait {
    text-align: center;
    margin-bottom: 1.5rem;
}

.vk2-drawer-portrait img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--vk2-gold);
}

.vk2-drawer-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.vk2-drawer-info h3 {
    font-family: var(--vk2-font-serif);
    font-size: 1.5rem;
    color: var(--vk2-text);
    margin: 0 0 0.5rem;
}

.vk2-drawer-info p {
    color: var(--vk2-text-muted);
    margin: 0;
}

.vk2-drawer-era {
    text-align: center;
    margin-bottom: 1.5rem;
}

.vk2-drawer-era-badge {
    display: inline-block;
    background: var(--vk2-gold);
    color: var(--vk2-bg-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vk2-drawer-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--vk2-border);
}

.vk2-drawer-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.vk2-drawer-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--vk2-text-muted);
    margin: 0 0 0.75rem;
    font-weight: 600;
}

.vk2-drawer-metadata {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vk2-drawer-metadata-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background: var(--vk2-bg-card);
    border-radius: 4px;
}

.vk2-drawer-metadata-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--vk2-text-muted);
    margin-bottom: 0.25rem;
}

.vk2-drawer-metadata-value {
    color: var(--vk2-text);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.vk2-drawer-metadata-value a {
    color: var(--vk2-gold);
    text-decoration: none;
}

.vk2-drawer-metadata-value a:hover {
    text-decoration: underline;
}

.vk2-drawer-actions {
    text-align: center;
    padding-top: 1rem;
}

.vk2-drawer-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--vk2-text-muted);
}

.vk2-drawer-loading p {
    margin-top: 16px;
    margin-bottom: 0;
}

/* Style headings in drawer body for readability */
.vk2-drawer-body h1,
.vk2-drawer-body h2,
.vk2-drawer-body h3,
.vk2-drawer-body h4,
.vk2-drawer-body h5 {
    color: var(--vk2-text);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.vk2-drawer-body h1 {
    font-size: 1.75rem;
    font-family: var(--vk2-font-serif);
}

.vk2-drawer-body h2 {
    font-size: 1.5rem;
    font-family: var(--vk2-font-serif);
}

.vk2-drawer-body h3 {
    font-size: 1.25rem;
    font-family: var(--vk2-font-serif);
}

.vk2-drawer-body h4 {
    font-size: 1.125rem;
}

.vk2-drawer-body h5 {
    font-size: 1rem;
}

.vk2-drawer-body h1:first-child,
.vk2-drawer-body h2:first-child,
.vk2-drawer-body h3:first-child,
.vk2-drawer-body h4:first-child,
.vk2-drawer-body h5:first-child {
    margin-top: 0;
}

/* Style text elements in drawer body for better readability */
.vk2-drawer-body p,
.vk2-drawer-body div,
.vk2-drawer-body span,
.vk2-drawer-body li,
.vk2-drawer-body td,
.vk2-drawer-body th {
    color: var(--vk2-text) !important;
    line-height: 1.7;
}

/* Ensure era description content is readable */
#vk2DrawerEraDescription,
#vk2DrawerEraDescription p,
#vk2DrawerEraDescription div,
#vk2DrawerEraDescription span {
    color: var(--vk2-text) !important;
}

/* Make section headings in drawer brighter for better contrast */
.vk2-drawer-body h1,
.vk2-drawer-body h2 {
    color: white !important;
}

/* Ensure strong/bold text is also readable */
.vk2-drawer-body strong,
.vk2-drawer-body b {
    color: var(--vk2-text);
    font-weight: 600;
}

/* Mobile drawer - slide up */
@media (max-width: 767.98px) {
    .vk2-drawer-panel {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: none;
        height: 85vh;
        border-left: none;
        border-top: 1px solid var(--vk2-border);
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
    }
    
    .vk2-drawer.open .vk2-drawer-panel {
        transform: translateY(0);
    }
    
    .vk2-drawer-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: var(--vk2-bg-card);
        border-radius: 2px;
    }
}

/* ========================================
   HAPLOGROUP DISTRIBUTION
   ======================================== */
.vk-haplogroup-container {
    margin: 3rem 0;
}

.vk-haplogroup-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(201, 164, 48, 0.2);
}

.vk-haplogroup-tab {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: var(--vk2-text-muted);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--vk2-transition-medium);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vk-haplogroup-tab:hover {
    color: var(--vk2-text);
}

.vk-haplogroup-tab.active {
    color: var(--vk2-gold);
    border-bottom-color: var(--vk2-gold);
}

.vk-haplogroup-content {
    display: none;
}

.vk-haplogroup-content.active {
    display: block;
}

.vk-haplogroup-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.vk-haplogroup-stat {
    text-align: center;
}

.vk-haplogroup-stat-value {
    font-family: var(--vk2-font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--vk2-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.vk-haplogroup-stat-label {
    font-size: 0.875rem;
    color: var(--vk2-text-muted);
}

.vk-haplogroup-charts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.vk-haplogroup-bar {
    padding: 1rem;
    background: var(--vk2-bg-card);
    border-radius: 8px;
    border: 1px solid var(--vk2-border);
}

.vk-haplogroup-bar.vk-haplogroup-match {
    background: rgba(201, 164, 48, 0.1);
    border-color: var(--vk2-gold);
}

.vk-haplogroup-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--vk2-text);
}

.vk-haplogroup-match-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--vk2-gold);
    color: var(--vk2-bg-primary);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.vk-haplogroup-bar-track {
    height: 24px;
    background: var(--vk2-bg-alt);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.vk-haplogroup-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--vk2-gold) 0%, var(--vk2-gold-light) 100%);
    border-radius: 12px;
    transition: width 1s ease;
}

.vk-haplogroup-bar-value {
    font-size: 0.875rem;
    color: var(--vk2-text-muted);
    text-align: right;
}

/* Compatibility: vk-insight-card (used by partial view) */
.vk-insight-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(201, 164, 48, 0.1);
    border-left: 3px solid var(--vk2-gold);
    border-radius: 8px;
}

.vk-insight-card span {
    color: var(--vk2-gold);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.vk-insight-content {
    flex: 1;
    color: var(--vk2-text);
}

/* ========================================
   HAPLOGROUP HERITAGE REDESIGN
   ======================================== */

/* Hero Stats Section */
.vk-haplo-hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--vk2-bg-card);
    border-radius: 12px;
    border: 1px solid var(--vk2-border);
}

@media (max-width: 768px) {
    .vk-haplo-hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
}

.vk-haplo-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 480px) {
    .vk-haplo-hero-stats {
        grid-template-columns: 1fr;
    }
}

.vk-haplo-hero-stat-card {
    text-align: center;
    padding: 1.5rem;
    background: rgba(201, 164, 48, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(201, 164, 48, 0.15);
    transition: var(--vk2-transition-medium);
}

.vk-haplo-hero-stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--vk2-gold);
    box-shadow: 0 4px 12px var(--vk2-gold-glow);
}

.vk-haplo-hero-stat-value {
    font-family: var(--vk2-font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--vk2-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.vk-haplo-hero-stat-label {
    font-size: 0.875rem;
    color: var(--vk2-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Chart Container */
.vk-haplo-chart-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vk-haplo-chart-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
}

.vk-haplo-chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

.vk-haplo-chart-center-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.vk-haplo-chart-dominant {
    display: block;
    font-family: var(--vk2-font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--vk2-gold);
    line-height: 1.2;
}

.vk-haplo-chart-dominant-pct {
    display: block;
    font-size: 1rem;
    color: var(--vk2-text-muted);
    margin-top: 0.25rem;
}

/* Map Section */
.vk-haplo-map-section {
    margin-bottom: 3rem;
}

.vk-haplo-section-title {
    font-family: var(--vk2-font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--vk2-text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vk-haplo-map-container {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--vk2-border);
    background: var(--vk2-bg-alt);
}

@media (max-width: 768px) {
    .vk-haplo-map-container {
        height: 300px;
    }
}

.vk-haplo-map-marker {
    background: transparent !important;
    border: none !important;
}

/* Region Cards Section */
.vk-haplo-region-section {
    margin-bottom: 3rem;
}

.vk-haplo-region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .vk-haplo-region-grid {
        grid-template-columns: 1fr;
    }
}

.vk-haplo-region-card {
    padding: 1.5rem;
    background: var(--vk2-bg-card);
    border-radius: 12px;
    border: 1px solid var(--vk2-border);
    transition: var(--vk2-transition-medium);
}

.vk-haplo-region-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(201, 164, 48, 0.3);
}

.vk-haplo-region-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--vk2-border);
}

.vk-haplo-region-name {
    font-family: var(--vk2-font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--vk2-text);
    margin: 0;
}

.vk-haplo-region-count {
    font-size: 0.875rem;
    color: var(--vk2-text-muted);
    padding: 0.25rem 0.75rem;
    background: rgba(201, 164, 48, 0.1);
    border-radius: 12px;
}

/* Hidden Region Cards */
.vk-haplo-region-card.vk-haplo-region-hidden {
    display: none;
}

/* Show More Button Wrapper */
.vk-haplo-region-show-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--vk2-border);
}

.vk-haplo-region-show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background: transparent;
    color: var(--vk2-gold);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 30px;
    border: 1px solid var(--vk2-gold);
    cursor: pointer;
    transition: all var(--vk2-transition-medium);
    font-family: var(--vk2-font-sans);
}

.vk-haplo-region-show-more-btn:hover {
    background: rgba(201, 164, 48, 0.1);
    border-color: var(--vk2-gold-light);
    color: var(--vk2-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--vk2-gold-glow);
}

.vk-haplo-region-show-more-btn:focus {
    outline: 2px solid var(--vk2-gold);
    outline-offset: 2px;
}

.vk-haplo-region-show-more-btn .dna-icon {
    width: 16px;
    height: 16px;
    transition: transform var(--vk2-transition-medium);
}

.vk-haplo-region-show-more-btn:hover .dna-icon {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .vk-haplo-region-show-more-btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
}

/* Haplogroup Pills Grid */
.vk-haplo-haplogroup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

@media (max-width: 480px) {
    .vk-haplo-haplogroup-grid {
        grid-template-columns: 1fr;
    }
}

.vk-haplo-haplogroup-pill {
    position: relative;
    padding: 1rem;
    background: rgba(201, 164, 48, 0.05);
    border-radius: 8px;
    border: 1px solid var(--vk2-border);
    transition: var(--vk2-transition-medium);
}

.vk-haplo-haplogroup-pill:hover {
    transform: translateY(-2px);
    border-color: var(--vk2-gold);
    box-shadow: 0 4px 12px var(--vk2-gold-glow);
}

.vk-haplo-haplogroup-pill.vk-haplo-user-match {
    background: rgba(201, 164, 48, 0.15);
    border-color: var(--vk2-gold);
    box-shadow: 0 0 12px var(--vk2-gold-glow);
}

.vk-haplo-pill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.vk-haplo-pill-code {
    font-family: var(--vk2-font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--vk2-gold);
}

.vk-haplo-pill-count {
    font-size: 0.75rem;
    color: var(--vk2-text-muted);
    padding: 0.125rem 0.5rem;
    background: rgba(168, 159, 145, 0.2);
    border-radius: 8px;
}

.vk-haplo-pill-percentage {
    font-size: 0.875rem;
    color: var(--vk2-text-muted);
    margin-bottom: 0.5rem;
}

.vk-haplo-pill-bar {
    height: 6px;
    background: var(--vk2-bg-alt);
    border-radius: 3px;
    overflow: hidden;
}

.vk-haplo-pill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--vk2-gold) 0%, var(--vk2-gold-light) 100%);
    border-radius: 3px;
    transition: width 1s ease;
}

.vk-haplo-match-indicator {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: var(--vk2-gold);
    font-size: 0.875rem;
}

/* Insight Cards Section */
.vk-haplo-insight-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--vk2-border);
}

.vk-haplo-insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .vk-haplo-insight-grid {
        grid-template-columns: 1fr;
    }
}

.vk-haplo-insight-card {
    padding: 1.5rem;
    background: var(--vk2-bg-card);
    border-radius: 12px;
    border: 1px solid var(--vk2-border);
    transition: var(--vk2-transition-medium);
}

.vk-haplo-insight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(201, 164, 48, 0.3);
}

.vk-haplo-insight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.vk-haplo-insight-code {
    font-family: var(--vk2-font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vk2-gold);
}

.vk-haplo-insight-badge {
    font-size: 0.75rem;
    color: var(--vk2-text-muted);
    padding: 0.25rem 0.75rem;
    background: rgba(168, 159, 145, 0.2);
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vk-haplo-insight-stats {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.vk-haplo-insight-stat {
    font-family: var(--vk2-font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--vk2-gold);
    line-height: 1;
}

.vk-haplo-insight-stat-label {
    font-size: 0.875rem;
    color: var(--vk2-text-muted);
}

.vk-haplo-insight-description {
    font-size: 0.875rem;
    color: var(--vk2-text-muted);
    line-height: 1.6;
}

/* Animations */
@keyframes vkHaploFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vk-haplo-region-card,
.vk-haplo-insight-card {
    animation: vkHaploFadeInUp 0.6s ease-out forwards;
}

.vk-haplo-region-card:nth-child(1) { animation-delay: 0.1s; }
.vk-haplo-region-card:nth-child(2) { animation-delay: 0.2s; }
.vk-haplo-region-card:nth-child(3) { animation-delay: 0.3s; }
.vk-haplo-region-card:nth-child(4) { animation-delay: 0.4s; }
.vk-haplo-region-card:nth-child(5) { animation-delay: 0.5s; }

/* ========================================
   HAPLOGROUP MATCHES STYLES
   ======================================== */
.vk-haplogroup-matches-container {
    margin: 3rem 0;
}

.vk-haplo-section {
    margin-bottom: 3rem;
}

.vk-haplo-section-title {
    font-family: var(--vk2-font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--vk2-text);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vk-haplo-section-title .dna-icon-venus {
    color: #E07B9B;
}

.vk-haplo-section-title .dna-icon-mars {
    color: #7BA3E0;
}

.vk-haplo-section-desc {
    color: var(--vk2-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.vk-haplo-user-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.vk-haplo-user-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.5rem;
    background: var(--vk2-bg-card);
    border-radius: 12px;
    box-shadow: var(--vk2-shadow-md);
    border: 2px solid rgba(201, 164, 48, 0.15);
    transition: var(--vk2-transition-fast);
}

.vk-haplo-user-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--vk2-shadow-lg);
}

.vk-haplo-mtdna {
    border-color: rgba(224, 123, 155, 0.3);
}

.vk-haplo-mtdna .dna-icon-venus {
    color: #E07B9B;
}

.vk-haplo-ydna {
    border-color: rgba(123, 163, 224, 0.3);
}

.vk-haplo-ydna .dna-icon-mars {
    color: #7BA3E0;
}

.vk-haplo-label {
    font-size: 0.8rem;
    color: var(--vk2-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.vk-haplo-value {
    font-family: var(--vk2-font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--vk2-text);
}

.vk-haplo-link {
    color: var(--vk2-text-muted);
    opacity: 0.6;
    transition: var(--vk2-transition-fast);
    margin-left: auto;
}

.vk-haplo-link:hover {
    color: var(--vk2-gold);
    opacity: 1;
}

.vk-haplo-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .vk-haplo-matches-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   HAPLOGROUP MATCH CARDS
   ======================================== */
.vk-haplo-match-card {
    display: flex;
    gap: 16px;
    background: var(--vk2-bg-card);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all var(--vk2-transition-fast);
    border: 1px solid var(--vk2-border);
}

.vk-haplo-match-card:hover {
    border-color: rgba(201, 164, 48, 0.4);
    transform: translateY(-2px);
    box-shadow: var(--vk2-shadow-md);
}

.vk-haplo-match-portrait {
    position: relative;
    flex-shrink: 0;
    min-width: 0;
    max-width: 80px;
}

.vk-haplo-match-portrait img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--vk2-bg-card);
}

.vk-haplo-match-info {
    flex: 1;
    min-width: 0;
}

.vk-haplo-match-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--vk2-text);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--vk2-font-sans);
}

.vk-haplo-match-haplo {
    margin-bottom: 8px;
}

.vk-haplo-match-haplo code {
    font-size: 0.85rem;
    background: rgba(201, 164, 48, 0.15);
    color: var(--vk2-gold);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.vk-haplo-match-type {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 8px;
    margin-bottom: 8px;
}

.vk-haplo-match-exact {
    background: #4ade80;
    color: white;
}

.vk-haplo-match-subclade {
    background: #5B8DB8;
    color: white;
}

.vk-haplo-match-parent {
    background: #8B7B6B;
    color: white;
}

.vk-haplo-match-base {
    background: var(--vk2-gold);
    color: var(--vk2-bg-primary);
}

.vk-haplo-match-close {
    background: rgba(58, 143, 143, 0.8);
    color: white;
}

.vk-haplo-match-related {
    background: var(--vk2-bg-card);
    color: var(--vk2-text-muted);
    border: 1px solid var(--vk2-border);
}

.vk-haplo-match-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--vk2-text-muted);
    margin-top: 8px;
}

.vk-haplo-match-meta .dna-icon {
    margin-right: 4px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .vk-haplo-match-card {
        padding: 12px;
    }
    
    .vk-haplo-match-portrait img {
        width: 56px;
        height: 56px;
    }
    
    .vk-haplo-match-name {
        font-size: 1rem;
    }
    
    .vk-haplo-match-meta {
        flex-direction: column;
        gap: 4px;
    }
}

.vk-fade-in-up {
    animation: vk2FadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

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

/* ========================================
   HAPLOGROUP MATCHES EMPTY STATE
   ======================================== */
.vk-haplo-empty-state {
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 164, 48, 0.2);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 2rem;
}

.vk-haplo-empty-state-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vk-haplo-empty-state-icon .dna-icon-venus {
    color: #E07B9B;
    opacity: 0.7;
}

.vk-haplo-empty-state-icon .dna-icon-mars {
    color: #7BA3E0;
    opacity: 0.7;
}

.vk-haplo-empty-state h5 {
    font-family: var(--vk2-font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--vk2-text);
    margin-bottom: 1rem;
}

.vk-haplo-empty-state p {
    color: var(--vk2-text-muted);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.95rem;
}

.vk-haplo-empty-state p strong {
    color: var(--vk2-gold);
    font-weight: 600;
}

@media (max-width: 768px) {
    .vk-haplo-empty-state {
        padding: 2rem 1.5rem;
    }
    
    .vk-haplo-empty-state h5 {
        font-size: 1.25rem;
    }
    
    .vk-haplo-empty-state p {
        font-size: 0.9rem;
    }
}

/* ========================================
   HAPLOGROUP LEGEND (Understanding Match Types)
   ======================================== */
.vk-haplo-legend {
    background: var(--vk2-bg-card);
    border: 1px solid rgba(201, 164, 48, 0.15);
    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
}

.vk-haplo-legend h5 {
    font-size: 1rem;
    color: var(--vk2-text);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.vk-haplo-legend h5 .dna-icon {
    color: var(--vk2-gold);
}

.vk-haplo-legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.vk-haplo-legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--vk2-text-muted);
}

.vk-haplo-legend-item .vk-haplo-match-type {
    position: static;
    transform: none;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .vk-haplo-legend {
        padding: 20px;
    }
    
    .vk-haplo-legend-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ========================================
   NARRATIVE CALLOUT (Dive Deeper Into Your Lineage)
   ======================================== */
.vk-narrative-callout {
    display: flex;
    gap: 1.25rem;
    background: rgba(201, 164, 48, 0.08);
    border: 1px solid rgba(201, 164, 48, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.vk-narrative-callout .dna-icon {
    color: var(--vk2-gold);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.vk-narrative-callout > div {
    flex: 1;
}

.vk-narrative-callout strong {
    display: block;
    color: var(--vk2-text);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.vk-narrative-callout p {
    color: var(--vk2-text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0 0 16px 0;
}

.vk-haplo-report-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.vk-haplo-report-links .vk-btn-primary {
    background: var(--vk2-gold);
    border-color: var(--vk2-gold);
    color: var(--vk2-bg-primary);
    font-weight: 600;
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: all var(--vk2-transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vk-haplo-report-links .vk-btn-primary:hover {
    background: var(--vk2-gold-light);
    border-color: var(--vk2-gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 164, 48, 0.3);
}

.vk-haplo-report-links .vk-btn-primary .dna-icon {
    color: var(--vk2-bg-primary);
}

@media (max-width: 767px) {
    .vk-narrative-callout {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .vk-narrative-callout .dna-icon {
        margin: 0 auto;
    }
    
    .vk-haplo-report-links {
        justify-content: center;
    }
}

/* ========================================
   GENETIC CONTINUITY SECTION
   ======================================== */
.vk-continuity-container {
    margin-top: 3rem;
}

/* Narrative Intro Section */
.vk-narrative-intro {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(201, 164, 48, 0.08);
    border: 1px solid rgba(201, 164, 48, 0.2);
    border-radius: 12px;
}

.vk-narrative-icon {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.vk-narrative-icon .dna-icon {
    color: var(--vk2-gold);
    font-size: 1.75rem;
}

.vk-narrative-content {
    flex: 1;
}

.vk-narrative-title {
    font-family: var(--vk2-font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--vk2-text);
    margin-bottom: 0.75rem;
}

.vk-narrative-text {
    color: var(--vk2-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Continuity Cards Grid */
.vk-continuity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 2.5rem;
}

.vk-continuity-card {
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 164, 48, 0.15);
    border-radius: 16px;
    padding: 2rem;
    transition: transform var(--vk2-transition-medium), box-shadow var(--vk2-transition-medium), border-color var(--vk2-transition-medium);
    position: relative;
    overflow: hidden;
}

.vk-continuity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--vk2-gold), var(--vk2-gold-light));
    opacity: 0;
    transition: opacity var(--vk2-transition-medium);
}

.vk-continuity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    border-color: rgba(201, 164, 48, 0.3);
}

.vk-continuity-card:hover::before {
    opacity: 1;
}

.vk-continuity-icon {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.vk-continuity-icon .dna-icon {
    color: var(--vk2-gold);
    font-size: 2rem;
}

.vk-continuity-title {
    font-family: var(--vk2-font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--vk2-text);
    margin-bottom: 0.75rem;
}

.vk-continuity-text {
    color: var(--vk2-text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0;
}

/* Regional Breakdown Section */
.vk-continuity-regions {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--vk2-bg-card);
    border-radius: 12px;
    border: 1px solid var(--vk2-border);
}

.vk-continuity-section-title {
    font-family: var(--vk2-font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--vk2-text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vk-continuity-section-title .dna-icon {
    color: var(--vk2-gold);
}

.vk-continuity-region-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vk-continuity-region-item {
    display: grid;
    grid-template-columns: 150px 1fr 60px;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
}

.vk-continuity-region-name {
    font-weight: 600;
    color: var(--vk2-text);
    font-size: 0.9375rem;
}

.vk-continuity-region-bar {
    height: 24px;
    background: var(--vk2-bg-alt);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.vk-continuity-region-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--vk2-gold) 0%, var(--vk2-gold-light) 100%);
    border-radius: 12px;
    transition: width 1s ease;
    box-shadow: 0 2px 8px rgba(201, 164, 48, 0.3);
}

.vk-continuity-region-value {
    font-size: 0.875rem;
    color: var(--vk2-text-muted);
    text-align: right;
    font-weight: 600;
    font-family: var(--vk2-font-serif);
}

/* Animation Stagger Delays */
.vk-stagger-1 {
    animation-delay: 0.1s;
}

.vk-stagger-2 {
    animation-delay: 0.2s;
}

.vk-stagger-3 {
    animation-delay: 0.3s;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .vk-narrative-intro {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .vk-narrative-icon {
        margin-top: 0;
        align-self: center;
    }
    
    .vk-narrative-icon .dna-icon {
        font-size: 1.5rem;
    }
    
    .vk-narrative-title {
        text-align: center;
        font-size: 1.25rem;
    }
    
    .vk-narrative-text {
        text-align: center;
        font-size: 0.9rem;
    }
    
    .vk-continuity-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vk-continuity-card {
        padding: 1.5rem;
    }
    
    .vk-continuity-icon .dna-icon {
        font-size: 1.75rem;
    }
    
    .vk-continuity-title {
        font-size: 1.125rem;
    }
    
    .vk-continuity-text {
        font-size: 0.9rem;
    }
    
    .vk-continuity-regions {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .vk-continuity-section-title {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .vk-continuity-region-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem 0;
    }
    
    .vk-continuity-region-name {
        font-size: 0.875rem;
    }
    
    .vk-continuity-region-value {
        text-align: left;
        font-size: 0.8125rem;
    }
}

/* ========================================
   PUBLICATIONS SECTION
   ======================================== */
.vk2-publications-container {
    margin: 3rem 0;
}

.vk2-publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.vk2-publication-card {
    background: var(--vk2-bg-card);
    border: 1px solid var(--vk2-border);
    border-left: 4px solid var(--vk2-gold);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--vk2-shadow-md);
    transition: transform var(--vk2-transition-medium), box-shadow var(--vk2-transition-medium), border-color var(--vk2-transition-medium);
    position: relative;
    overflow: hidden;
}

.vk2-publication-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--vk2-gold), var(--vk2-gold-light));
    opacity: 0;
    transition: opacity var(--vk2-transition-medium);
}

.vk2-publication-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--vk2-shadow-lg);
    border-color: var(--vk2-gold);
}

.vk2-publication-card:hover::before {
    opacity: 1;
}

.vk2-publication-icon {
    color: var(--vk2-gold);
    margin-bottom: 1rem;
}

.vk2-publication-icon .dna-icon {
    color: var(--vk2-gold);
}

.vk2-publication-title {
    font-family: var(--vk2-font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--vk2-text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.vk2-publication-authors {
    font-size: 0.875rem;
    color: var(--vk2-text-muted);
    font-style: italic;
    margin-bottom: 0.25rem;
}

.vk2-publication-journal {
    font-size: 0.875rem;
    color: var(--vk2-gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

.vk2-publication-description {
    color: var(--vk2-text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.vk2-publication-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--vk2-gold);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--vk2-transition-fast);
}

.vk2-publication-link:hover {
    color: var(--vk2-gold-light);
    text-decoration: underline;
}

.vk2-publication-link .dna-icon {
    color: var(--vk2-gold);
    transition: color var(--vk2-transition-fast);
}

.vk2-publication-link:hover .dna-icon {
    color: var(--vk2-gold-light);
}

.vk2-publications-resources {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--vk2-border);
}

.vk2-publications-section-title {
    font-family: var(--vk2-font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--vk2-text);
    margin-bottom: 1rem;
}

.vk2-publications-resources-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vk2-resource-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--vk2-gold);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color var(--vk2-transition-fast);
    font-size: 0.9375rem;
}

.vk2-resource-link:hover {
    color: var(--vk2-gold-light);
    text-decoration: underline;
}

.vk2-resource-link .dna-icon {
    color: var(--vk2-gold);
    transition: color var(--vk2-transition-fast);
}

.vk2-resource-link:hover .dna-icon {
    color: var(--vk2-gold-light);
}

/* Fade-in-up animation for publications */
.vk2-fade-in-up {
    animation: vk2FadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Stagger delays for publication cards */
.vk2-stagger-1 {
    animation-delay: 0.1s;
}

.vk2-stagger-2 {
    animation-delay: 0.2s;
}

.vk2-stagger-3 {
    animation-delay: 0.3s;
}

/* Responsive styles for publications */
@media (max-width: 768px) {
    .vk2-publications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .vk2-publication-card {
        padding: 1.5rem;
    }
    
    .vk2-publication-title {
        font-size: 1.125rem;
    }
    
    .vk2-publications-section-title {
        font-size: 1.25rem;
    }
    
    .vk2-publications-resources {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
}

/* ========================================
   AI ASSISTANT VIKING THEME
   ======================================== */
.vk2-ai-section .ai-assistant-section {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(201, 164, 48, 0.25);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    margin-top: 2rem;
}

.vk2-ai-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.vk2-ai-header h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--vk2-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vk2-ai-header h4 .dna-icon {
    color: var(--vk2-gold);
}

.vk2-ai-header h4 small {
    font-size: 0.75rem;
    color: var(--vk2-text-muted);
    font-weight: 400;
}

.vk2-ai-header .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.vk2-ai-header .badge-success {
    background: rgba(26, 90, 58, 0.3);
    border: 1px solid rgba(26, 90, 58, 0.5);
    color: #4ade80;
}

.vk2-ai-header .badge-warning {
    background: rgba(201, 164, 48, 0.2);
    border: 1px solid rgba(201, 164, 48, 0.4);
    color: var(--vk2-gold);
}

.vk2-ai-section .alert-light {
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(201, 164, 48, 0.2);
    color: var(--vk2-text-muted);
    border-radius: 8px;
    padding: 1rem;
}

.vk2-ai-section .alert-light .dna-icon {
    color: var(--vk2-gold);
}

.vk2-ai-section .alert-light p {
    margin: 0;
    color: var(--vk2-text-muted);
}

.vk2-ai-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.vk2-ai-prompts p {
    width: 100%;
    font-size: 0.875rem;
    color: var(--vk2-text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vk2-ai-prompts p .dna-icon {
    color: var(--vk2-gold);
}

.vk2-ai-prompt {
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(201, 164, 48, 0.2);
    color: var(--vk2-text);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--vk2-transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.vk2-ai-prompt:hover {
    background: rgba(201, 164, 48, 0.15);
    border-color: var(--vk2-gold);
    color: var(--vk2-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 164, 48, 0.2);
}

.vk2-ai-prompt .dna-icon {
    color: var(--vk2-gold);
    transition: color var(--vk2-transition-fast);
}

.vk2-ai-prompt:hover .dna-icon {
    color: var(--vk2-gold-light);
}

.vk2-ai-btn {
    background: linear-gradient(135deg, var(--vk2-gold), var(--vk2-gold-dark));
    color: var(--vk2-bg-primary);
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--vk2-transition-medium);
    box-shadow: 0 4px 15px rgba(201, 164, 48, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.vk2-ai-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(201, 164, 48, 0.4);
    background: linear-gradient(135deg, var(--vk2-gold-light), var(--vk2-gold));
}

.vk2-ai-btn:active {
    transform: translateY(0);
}

.vk2-ai-btn .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

.vk2-ai-btn img {
    width: 20px;
    height: 20px;
}

.vk2-ai-results {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(201, 164, 48, 0.2);
    border-left: 3px solid var(--vk2-gold);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    color: var(--vk2-text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.vk2-ai-results .ai-result-content {
    line-height: 1.7;
    color: var(--vk2-text);
}

.vk2-ai-results p {
    color: var(--vk2-text);
    margin-bottom: 1rem;
}

.vk2-ai-results p:last-child {
    margin-bottom: 0;
}

.vk2-ai-sample-output {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(201, 164, 48, 0.25);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.vk2-ai-sample-output h6 {
    color: var(--vk2-gold);
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.vk2-ai-sample-output h6 .dna-icon {
    color: var(--vk2-gold);
}

.vk2-ai-sample-output .sample-content {
    background: rgba(201, 164, 48, 0.08);
    border: 1px solid rgba(201, 164, 48, 0.15);
    border-radius: 8px;
    padding: 1rem;
}

.vk2-ai-sample-output .sample-content p {
    color: var(--vk2-text);
    margin-bottom: 0.5rem;
}

.vk2-ai-sample-output .sample-content p strong {
    color: var(--vk2-gold);
    font-weight: 600;
}

.vk2-ai-sample-output .sample-content p.text-muted {
    color: var(--vk2-text-muted);
    font-size: 0.875rem;
}

.vk2-ai-sample-output .btn-success {
    background: linear-gradient(135deg, var(--vk2-gold), var(--vk2-gold-dark));
    border: none;
    color: var(--vk2-bg-primary);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 50px;
    transition: all var(--vk2-transition-medium);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.vk2-ai-sample-output .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 164, 48, 0.3);
    background: linear-gradient(135deg, var(--vk2-gold-light), var(--vk2-gold));
    color: var(--vk2-bg-primary);
    text-decoration: none;
}

.vk2-ai-sample-output .btn-success .dna-icon {
    color: var(--vk2-bg-primary);
}

@media (max-width: 768px) {
    .vk2-ai-section .ai-assistant-section {
        padding: 1.5rem;
    }
    
    .vk2-ai-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .vk2-ai-prompts {
        gap: 0.5rem;
    }
    
    .vk2-ai-prompt {
        font-size: 0.8rem;
        padding: 6px 14px;
    }
    
    .vk2-ai-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }
}

/* ========================================
   HERITAGE SUMMARY CARD
   ======================================== */
.vk2-summary-card {
    background: linear-gradient(135deg, var(--vk2-bg-card) 0%, var(--vk2-bg-secondary) 100%);
    border: 1px solid var(--vk2-border);
    border-radius: 16px;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto 2rem;
    box-shadow: var(--vk2-shadow-md);
}

.vk2-summary-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--vk2-bg-primary);
    border-bottom: 1px solid var(--vk2-border);
}

.vk2-summary-logo img {
    opacity: 0.9;
    height: 16px;
    width: auto;
    max-width: 60px;
    max-height: 16px;
}

.vk2-summary-title h3 {
    font-family: var(--vk2-font-serif);
    font-size: 1.25rem;
    color: var(--vk2-text);
    margin: 0;
    font-weight: 600;
}

.vk2-summary-title span {
    font-size: 0.8125rem;
    color: var(--vk2-text-muted);
    display: block;
    margin-top: 0.25rem;
}

.vk2-summary-body {
    padding: 1.5rem;
}

.vk2-summary-stats {
    display: flex;
    justify-content: space-around;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--vk2-border);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.vk2-summary-stat {
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.vk2-summary-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--vk2-gold);
    font-family: var(--vk2-font-sans);
}

.vk2-summary-stat-value.vk2-summary-stat-gold {
    color: var(--vk2-gold);
}

.vk2-summary-stat-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--vk2-text-muted);
    margin-top: 0.25rem;
    display: block;
}

.vk2-summary-section {
    margin-bottom: 1.5rem;
}

.vk2-summary-section h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--vk2-text-muted);
    margin: 0 0 1rem;
    font-weight: 600;
}

.vk2-summary-matches {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.vk2-summary-match {
    position: relative;
    text-align: center;
    flex: 0 0 auto;
}

.vk2-summary-match img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 2px solid var(--vk2-gold);
    display: block;
    margin: 0 auto;
}

.vk2-summary-match-rank {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--vk2-gold);
    color: var(--vk2-bg-primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    font-family: var(--vk2-font-sans);
    z-index: 1;
}

.vk2-summary-match-info {
    margin-top: 8px;
}

.vk2-summary-match-name {
    display: block;
    font-size: 0.75rem;
    color: var(--vk2-text);
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 auto;
}

.vk2-summary-match-pct {
    font-size: 0.6875rem;
    color: var(--vk2-gold-light);
    display: block;
    margin-top: 0.25rem;
}

.vk2-summary-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.vk2-summary-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vk2-summary-highlight .dna-icon {
    color: var(--vk2-gold);
    font-size: 1rem;
    flex-shrink: 0;
}

.vk2-summary-hl-label {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vk2-text-muted);
    font-weight: 600;
}

.vk2-summary-hl-value {
    font-size: 0.875rem;
    color: var(--vk2-text);
    display: block;
    margin-top: 0.125rem;
}

.vk2-summary-timespan {
    text-align: center;
    padding: 1rem;
    background: var(--vk2-bg-primary);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--vk2-text-muted);
}

.vk2-summary-timespan strong {
    color: var(--vk2-text);
    font-weight: 600;
}

.vk2-summary-footer {
    padding: 1rem 1.5rem;
    background: var(--vk2-bg-primary);
    text-align: center;
    font-size: 0.75rem;
    color: var(--vk2-text-muted);
    border-top: 1px solid var(--vk2-border);
}

.vk2-summary-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.vk2-summary-actions .vk2-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--vk2-transition-fast);
    cursor: pointer;
    border: none;
    font-family: var(--vk2-font-sans);
}

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

.vk2-summary-actions .vk2-btn-outline:hover {
    background: var(--vk2-bg-card);
    border-color: var(--vk2-gold);
    color: var(--vk2-gold);
}

.vk2-summary-actions .vk2-btn-primary {
    background: var(--vk2-gold);
    color: var(--vk2-bg-primary);
}

.vk2-summary-actions .vk2-btn-primary:hover {
    background: var(--vk2-gold-light);
    box-shadow: var(--vk2-shadow-gold);
}

.vk2-summary-actions .vk2-btn .dna-icon {
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .vk2-summary-card {
        margin: 0 auto 1.5rem;
        border-radius: 12px;
    }
    
    .vk2-summary-header {
        padding: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .vk2-summary-body {
        padding: 1.25rem;
    }
    
    .vk2-summary-stats {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding-bottom: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .vk2-summary-stat {
        min-width: auto;
        width: 100%;
        max-width: 200px;
    }
    
    .vk2-summary-stat-value {
        font-size: 1.25rem;
    }
    
    .vk2-summary-matches {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .vk2-summary-match {
        width: 100%;
        max-width: 150px;
    }
    
    .vk2-summary-match img {
        width: 64px;
        height: 64px;
    }
    
    .vk2-summary-match-name {
        max-width: 100%;
    }
    
    .vk2-summary-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .vk2-summary-actions .vk2-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .vk2-summary-header {
        padding: 1rem;
    }
    
    .vk2-summary-body {
        padding: 1rem;
    }
    
    .vk2-summary-stats {
        gap: 1.25rem;
    }
    
    .vk2-summary-stat-value {
        font-size: 1.125rem;
    }
    
    .vk2-summary-match img {
        width: 56px;
        height: 56px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .vk2-page-nav,
    .vk2-bottom-nav,
    .vk2-back-to-top,
    .vk2-export-toolbar,
    .vk2-summary-actions {
        display: none;
    }
    
    .vk2-section {
        page-break-inside: avoid;
    }
    
    .vk2-drawer {
        display: none;
    }
    
    .vk2-summary-card {
        box-shadow: none;
        border: 1px solid #ccc;
        max-width: 100%;
    }
}
