/* ==========================================================================
   DESIGN SYSTEM & CUSTOM PROPERTIES
   ========================================================================== */
:root {
    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, Cambria, "Times New Roman", Times, serif;

    /* Theme: Light (Default) */
    --bg-primary: #fcfbf9;     /* Cream/Off-white paper style */
    --bg-secondary: #f4f2ee;   /* Editorial grey card background */
    --bg-tertiary: #ffffff;
    --text-primary: #1a202c;   /* Charcoal text */
    --text-secondary: #4a5568; /* Slate text */
    --text-muted: #718096;
    
    --color-primary: #0a2540;   /* Deep Navy */
    --color-primary-light: #1e3a5f;
    --color-accent: #00875a;    /* Emerald Green */
    --color-accent-light: #e6f4ea;
    --color-gold: #b25e00;      /* Amber/Gold */
    --color-gold-light: #fef3c7;
    --color-red: #c53030;       /* Editorial red */
    --color-red-light: #fde8e8;
    
    --border-color: #e2e8f0;
    --border-editorial: 1px solid #1a202c;
    --border-muted: 1px solid #e2e8f0;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

/* Theme: Dark */
body.dark-theme {
    --bg-primary: #0b0f19;      /* Extremely dark navy/slate */
    --bg-secondary: #131a2c;    /* Deep dark slate */
    --bg-tertiary: #1a233d;
    --text-primary: #f7fafc;
    --text-secondary: #cbd5e0;
    --text-muted: #a0aec0;
    
    --color-primary: #38bdf8;   /* Sky Blue accent in dark mode */
    --color-primary-light: rgba(56, 189, 248, 0.1);
    --color-accent: #34d399;    /* Bright emerald green */
    --color-accent-light: rgba(52, 211, 153, 0.1);
    --color-gold: #fbbf24;      /* Bright gold */
    --color-gold-light: rgba(251, 191, 36, 0.1);
    
    --border-color: #2d3748;
    --border-editorial: 1px solid #f7fafc;
    --border-muted: 1px solid #2d3748;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4);
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.25;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    gap: 8px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    filter: brightness(1.15);
}

body.dark-theme .btn-primary {
    background-color: #38bdf8;
    color: #0b0f19;
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-icon .icon {
    width: 18px;
    height: 18px;
}

.btn-block {
    display: flex;
    width: 100%;
    padding: 12px;
}

.btn-text-link {
    background: none;
    border: none;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    transition: transform var(--transition-fast);
}

.btn-text-link:hover {
    transform: translateX(4px);
    text-decoration: underline;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.editorial-header {
    background-color: var(--bg-tertiary);
    border-bottom: 2px solid var(--text-primary);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color var(--transition-normal), border-bottom var(--transition-normal);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-section {
    display: flex;
    align-items: center;
}

.bhxh-logo-placeholder {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-primary);
}

.logo-svg {
    width: 44px;
    height: 44px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.5px;
    line-height: 1.1;
    color: var(--text-primary);
}

.logo-sub {
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--text-muted);
}

.header-controls {
    display: flex;
    gap: 12px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 48px 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.editorial-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-red);
    background-color: var(--color-red-light);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 46px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.15;
}

.text-highlight {
    color: var(--color-red);
    border-bottom: 3px double var(--color-red);
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-subtitle strong {
    color: var(--text-primary);
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat-card {
    background-color: var(--bg-tertiary);
    border: var(--border-muted);
    border-top: 4px solid var(--color-primary);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-card:nth-child(2) {
    border-top-color: var(--color-accent);
}

.stat-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1;
}

.text-primary {
    color: var(--color-primary);
}

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

.stat-change {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    gap: 4px;
}

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

.arrow-icon {
    width: 14px;
    height: 14px;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: var(--border-muted);
}

.hero-illustration {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.hero-image-wrapper:hover .hero-illustration {
    transform: scale(1.03);
}

/* ==========================================================================
   DASHBOARD / TABS
   ========================================================================== */
.dashboard-section {
    padding: 64px 0 48px;
}

.section-header {
    margin-bottom: 36px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 30px;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 700px;
}

.tab-headers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 2px solid var(--text-primary);
    margin-bottom: 32px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 16px 20px;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-sans);
    border-top: 4px solid transparent;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tab-btn:hover {
    background-color: var(--bg-secondary);
}

.tab-btn.active {
    background-color: var(--bg-secondary);
    border-top-color: var(--color-accent);
}

.tab-num {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-muted);
}

.tab-btn.active .tab-num {
    color: var(--color-accent);
}

.tab-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-secondary);
}

.tab-btn.active .tab-text {
    color: var(--text-primary);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-panel.active {
    display: block;
}

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

/* ==========================================================================
   FILTERS & SEARCH
   ========================================================================== */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 460px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: var(--border-muted);
    border-radius: var(--radius-md);
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.category-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tag {
    background-color: var(--bg-tertiary);
    border: var(--border-muted);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-tag:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.filter-tag.active {
    background-color: var(--color-primary);
    color: var(--bg-primary);
    border-color: var(--color-primary);
}

body.dark-theme .filter-tag.active {
    background-color: #38bdf8;
    color: #0b0f19;
    border-color: #38bdf8;
}

/* ==========================================================================
   TABLES
   ========================================================================== */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: var(--border-muted);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background-color: var(--bg-tertiary);
    font-size: 14px;
}

.data-table th, .data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.th-sub {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: none;
}

.data-table tbody tr {
    transition: background-color var(--transition-fast);
}

.data-table tbody tr:hover {
    background-color: var(--bg-secondary);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.table-cell-with-icon {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cell-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cell-icon {
    width: 20px;
    height: 20px;
}

.cell-sub {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
}

.formula-badge {
    background-color: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 12px;
    color: var(--text-secondary);
    border: var(--border-muted);
    display: inline-block;
}

.text-bold {
    font-weight: 700;
}

.text-semibold {
    font-weight: 600;
}

.text-gray {
    color: var(--text-secondary);
}

.val-up-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.up-arrow-badge {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 2px;
}

.table-note-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-secondary);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-secondary);
}

.note-banner-icon {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
}

/* ==========================================================================
   PENSION TAB SPECIFIC
   ========================================================================== */
.pension-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
}

.panel-heading {
    font-family: var(--font-serif);
    font-size: 24px;
    margin-bottom: 16px;
}

.panel-paragraph {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 15px;
}

.info-card-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.tier-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tier-card {
    background-color: var(--bg-tertiary);
    border: var(--border-muted);
    border-left: 6px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.tier-card.border-gold {
    border-left-color: #b25e00;
}

.tier-card.border-emerald {
    border-left-color: var(--color-accent);
}

.tier-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.tier-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tier-icon {
    width: 22px;
    height: 22px;
}

.text-gold {
    color: #b25e00;
}

body.dark-theme .text-gold {
    color: #fbbf24;
}

.tier-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.tier-action {
    display: block;
    font-size: 16px;
    font-weight: 800;
}

.tier-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 58px;
}

/* Calculator Card */
.pension-calculator {
    background-color: var(--bg-tertiary);
    border: 2px solid var(--text-primary);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.calc-title {
    font-family: var(--font-serif);
    font-size: 20px;
    margin-bottom: 8px;
}

.calc-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.calc-form {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-group {
    display: flex;
    border: var(--border-muted);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--bg-primary);
    margin-bottom: 16px;
}

.form-input {
    flex: 1;
    border: none;
    background: none;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-sans);
    color: var(--text-primary);
    width: 100%;
}

.form-input:focus {
    outline: none;
}

.input-suffix {
    background-color: var(--bg-secondary);
    padding: 12px 18px;
    font-weight: 700;
    font-size: 14px;
    border-left: 1px solid var(--border-color);
    color: var(--text-muted);
}

.calc-results {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 20px;
    border: var(--border-muted);
}

.result-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 10px;
}

.result-row:last-child {
    margin-bottom: 0;
}

.result-label {
    color: var(--text-secondary);
}

.result-value {
    font-weight: 700;
}

.calc-divider {
    border: none;
    border-top: 1px dashed var(--border-color);
    margin: 14px 0;
}

.highlight-row {
    font-size: 16px;
}

.highlight-row .result-value {
    font-size: 20px;
    font-weight: 800;
}

.total-increase-row {
    margin-top: 8px;
    background-color: var(--bg-tertiary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    border: 1px solid rgba(0, 135, 90, 0.15);
}

/* ==========================================================================
   ACCIDENT SECTION
   ========================================================================== */
.accident-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: start;
}

.accident-illustration-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: var(--border-muted);
    aspect-ratio: 4 / 3.4;
}

.accident-illustration {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.illustration-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10,37,64,0.95) 0%, rgba(10,37,64,0.7) 60%, rgba(10,37,64,0) 100%);
    padding: 24px;
    color: #ffffff;
}

.illustration-overlay-text h4 {
    font-family: var(--font-serif);
    font-size: 18px;
    margin-bottom: 6px;
    color: #ffffff;
}

.illustration-overlay-text p {
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.85;
}

/* ==========================================================================
   QUICK CALCULATOR WIDGET
   ========================================================================== */
.quick-calculator-section {
    padding: 36px 0;
}

.quick-calc-wrapper {
    background-color: var(--color-primary);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

body.dark-theme .quick-calc-wrapper {
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
}

.quick-calc-header {
    margin-bottom: 30px;
    text-align: center;
}

.quick-calc-title {
    font-family: var(--font-serif);
    font-size: 26px;
    color: #ffffff;
    margin-bottom: 8px;
}

.quick-calc-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.quick-calc-body {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: center;
}

.quick-calc-controls .form-label {
    color: rgba(255,255,255,0.9);
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background-color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.form-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.4);
}

.quick-calc-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    position: relative;
}

.comp-box {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.comp-box.comp-after {
    border-color: rgba(52, 211, 153, 0.4);
    background-color: rgba(52, 211, 153, 0.05);
}

.comp-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 8px;
}

.comp-value {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
}

.comp-box.comp-after .comp-value {
    color: #34d399;
}

.comp-subtext {
    font-size: 11px;
    opacity: 0.6;
}

.comp-diff-card {
    grid-column: span 2;
    background-color: #ffffff;
    color: #1a202c;
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-md);
}

.diff-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background-color: rgba(0, 135, 90, 0.1);
    color: #00875a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.diff-arrow {
    width: 16px;
    height: 16px;
}

.diff-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.diff-value {
    font-size: 18px;
    font-weight: 800;
    color: #00875a;
    margin-left: auto;
}

.diff-percent {
    font-size: 14px;
    font-weight: 700;
    color: #00875a;
}

/* ==========================================================================
   BENEFICIARIES GRID
   ========================================================================== */
.beneficiaries-section {
    padding: 64px 0;
    border-top: 1px solid var(--border-color);
}

.text-center {
    text-align: center;
}

.beneficiaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

@media (min-width: 969px) {
    .beneficiaries-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .beneficiary-card {
        grid-column: span 2;
    }
    .beneficiary-card:nth-child(4) {
        grid-column: 2 / span 2;
    }
    .beneficiary-card:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

.beneficiary-card {
    background-color: var(--bg-tertiary);
    border: var(--border-muted);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.beneficiary-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.beneficiary-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 20px;
    transition: all var(--transition-fast);
}

.beneficiary-card:hover .beneficiary-icon-wrapper {
    background-color: var(--color-primary-light);
}

.beneficiary-icon {
    width: 24px;
    height: 24px;
}

.beneficiary-name {
    font-family: var(--font-serif);
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.beneficiary-brief {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* ==========================================================================
   MODAL OVERLAY
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 37, 64, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--bg-tertiary);
    border: 2px solid var(--text-primary);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 580px;
    padding: 36px;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.modal-overlay.open .modal-card {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--text-primary);
}

.modal-content-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.modal-content-title {
    font-family: var(--font-serif);
    font-size: 22px;
}

.modal-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    margin-top: 18px;
}

.modal-content-body {
    font-size: 14px;
    color: var(--text-secondary);
}

.modal-bullet-list {
    margin-left: 20px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ==========================================================================
   DISCLAIMER
   ========================================================================== */
.disclaimer-section {
    padding: 12px 0 64px;
}

.disclaimer-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: var(--border-muted);
}

.disclaimer-icon-wrapper {
    color: var(--text-muted);
    flex-shrink: 0;
}

.disclaimer-icon {
    width: 24px;
    height: 24px;
}

.disclaimer-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.disclaimer-text strong {
    color: var(--text-primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.editorial-footer {
    background-color: var(--color-primary);
    color: rgba(255,255,255,0.7);
    padding: 32px 0;
    border-top: 4px solid var(--text-primary);
    font-size: 13px;
}

body.dark-theme .editorial-footer {
    background-color: var(--bg-secondary);
    border-top-color: var(--border-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-copyright {
    font-weight: 700;
    color: #ffffff;
}

.footer-sources {
    font-size: 11px;
    opacity: 0.8;
}

.footer-logos {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.footer-badge {
    font-size: 9px;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 1px;
}

.vov-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
}

.vov-text {
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
}

.vov-sub {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-image-wrapper {
        order: -1;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .pension-grid, .accident-grid, .quick-calc-body {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .accident-illustration-card {
        aspect-ratio: 16 / 9;
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 34px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tab-headers {
        grid-template-columns: 1fr;
        border-bottom: none;
        gap: 8px;
    }
    
    .tab-btn {
        border-top: none;
        border-left: 4px solid transparent;
        padding: 12px 16px;
        background-color: var(--bg-secondary);
    }
    
    .tab-btn.active {
        border-left-color: var(--color-accent);
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        align-items: center;
    }
    
    .footer-logos {
        align-items: center;
    }
    
    .vov-brand {
        align-items: center;
    }
}

/* ==========================================================================
   FLASHING STAR ANIMATION
   ========================================================================== */
@keyframes star-blink {
    0%, 100% {
        opacity: 0.4;
        transform: scale(0.9) rotate(0deg);
        filter: drop-shadow(0 0 1px rgba(251, 191, 36, 0.4));
    }
    50% {
        opacity: 1;
        transform: scale(1.15) rotate(15deg);
        filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.9));
    }
}

.flashing-star {
    animation: star-blink 1.2s infinite ease-in-out;
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
    color: var(--color-gold);
    fill: currentColor;
    transition: color var(--transition-fast);
}

.tab-btn.active .flashing-star {
    color: var(--color-accent);
}

/* ==========================================================================
   PRINT MEDIA STYLES
   ========================================================================== */
@media print {
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
        font-size: 12px;
    }
    
    .editorial-header, #theme-toggle, #print-btn, .filter-bar, .pension-calculator, .quick-calculator-section, .modal-overlay {
        display: none !important;
    }
    
    .container {
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .hero-section {
        padding: 20px 0 !important;
    }
    
    .hero-grid {
        grid-template-columns: 1fr !important;
    }
    
    .hero-image-wrapper {
        display: none !important;
    }
    
    .tab-headers {
        display: none !important;
    }
    
    .tab-panel {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        margin-bottom: 40px;
        page-break-inside: avoid;
    }
    
    .data-table {
        border: 1px solid #000000 !important;
    }
    
    .data-table th {
        background-color: #f0f0f0 !important;
        border-bottom: 2px solid #000000 !important;
    }
    
    .data-table td {
        border-bottom: 1px solid #e2e8f0 !important;
    }
    
    .pension-grid, .accident-grid {
        grid-template-columns: 1fr !important;
    }
    
    .accident-illustration-card {
        display: none !important;
    }
    
    .beneficiaries-section {
        page-break-before: always;
    }
    
    .beneficiary-card {
        border: 1px solid #e2e8f0 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
}
