/* ==========================================================================
   RAKSANA AI - Anti-Scam & Risk Advisor Stylesheet
   Modern Cyber-Security Dark Theme
   ========================================================================== */

:root {
    --bg-base: #0a0c10;
    --bg-surface: #12161f;
    --bg-card: #171b26;
    --bg-card-hover: #1e2333;
    --bg-input: #0e121a;
    --border: #262c3d;
    --border-subtle: #1e2333;
    --border-focus: #388bfd;

    --text-primary: #f0f6fc;
    --text-secondary: #9aa4b5;
    --text-muted: #6e7787;

    --brand-primary: #2f81f7;
    --brand-glow: rgba(47, 129, 247, 0.25);

    --risk-low: #3fb950;
    --risk-low-bg: rgba(63, 185, 80, 0.12);
    --risk-low-border: rgba(63, 185, 80, 0.35);

    --risk-medium: #d29922;
    --risk-medium-bg: rgba(210, 153, 34, 0.12);
    --risk-medium-border: rgba(210, 153, 34, 0.35);

    --risk-high: #f85149;
    --risk-high-bg: rgba(248, 81, 73, 0.15);
    --risk-high-border: rgba(248, 81, 73, 0.4);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon {
    font-size: 1.6rem;
    background: var(--brand-glow);
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(47, 129, 247, 0.4);
}

.brand-info h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    background: rgba(47, 129, 247, 0.15);
    color: var(--brand-primary);
    border: 1px solid rgba(47, 129, 247, 0.3);
}

.brand-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.nav-tabs {
    display: flex;
    gap: 0.5rem;
}

.nav-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-tab:hover {
    color: var(--text-primary);
    background-color: var(--bg-card);
}

.nav-tab.active {
    color: var(--text-primary);
    background-color: var(--bg-card);
    border-color: var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Hero Banner
   ========================================================================== */
.hero-section {
    padding: 2rem 0 1.5rem 0;
    text-align: center;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #f0f6fc 30%, #58a6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
}

/* ==========================================================================
   Card System
   ========================================================================== */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.75rem;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   Presets Bar
   ========================================================================== */
.preset-wrapper {
    margin-bottom: 1rem;
}

.preset-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    display: block;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-preset {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-preset:hover {
    color: var(--text-primary);
    border-color: var(--brand-primary);
    background-color: rgba(47, 129, 247, 0.1);
}

/* ==========================================================================
   Input Form
   ========================================================================== */
.textarea-wrapper {
    position: relative;
    margin-bottom: 0.75rem;
}

textarea.message-input {
    width: 100%;
    min-height: 120px;
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    transition: var(--transition);
}

textarea.message-input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(47, 129, 247, 0.2);
}

.char-counter {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.consent-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.consent-toggle input[type="checkbox"] {
    accent-color: var(--brand-primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.btn-group {
    display: flex;
    gap: 0.5rem;
}

.btn {
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

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

.btn-primary:hover:not(:disabled) {
    background-color: #2671e0;
    box-shadow: 0 4px 12px rgba(47, 129, 247, 0.35);
}

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

.btn-secondary:hover:not(:disabled) {
    background-color: var(--bg-card-hover);
    color: var(--text-primary);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   Results Display
   ========================================================================== */
.results-card {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

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

.results-header-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.banner-high {
    background: var(--risk-high-bg);
    border: 1px solid var(--risk-high-border);
}

.banner-medium {
    background: var(--risk-medium-bg);
    border: 1px solid var(--risk-medium-border);
}

.banner-low {
    background: var(--risk-low-bg);
    border: 1px solid var(--risk-low-border);
}

.risk-level-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.risk-level-icon {
    font-size: 2.2rem;
}

.risk-level-badge {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.banner-high .risk-level-badge { color: var(--risk-high); }
.banner-medium .risk-level-badge { color: var(--risk-medium); }
.banner-low .risk-level-badge { color: var(--risk-low); }

.risk-level-subtext {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.score-counter {
    text-align: right;
}

.score-counter-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-mono);
    line-height: 1;
}

.score-counter-max {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Risk Meter Bar */
.risk-meter {
    margin: 1.25rem 0 1.5rem 0;
}

.meter-track {
    height: 10px;
    background: #21262d;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.meter-fill {
    height: 100%;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 6px;
}

.meter-fill.fill-high { background: linear-gradient(90deg, #d29922, #f85149); }
.meter-fill.fill-medium { background: linear-gradient(90deg, #3fb950, #d29922); }
.meter-fill.fill-low { background: #3fb950; }

.meter-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Masked Message Section */
.masked-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #79c0ff;
    word-break: break-word;
}

.masked-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* AI Narrative (Hermes Agent) */
.narrative-card {
    background: linear-gradient(135deg, rgba(47, 129, 247, 0.10), rgba(47, 129, 247, 0.03));
    border: 1px solid rgba(47, 129, 247, 0.35);
    border-left: 3px solid var(--brand-primary);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    margin-bottom: 1.5rem;
}

.narrative-header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.narrative-engine-label {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    color: #79c0ff;
    background: rgba(47, 129, 247, 0.12);
    border: 1px solid rgba(47, 129, 247, 0.3);
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
}

.narrative-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.narrative-disclaimer {
    margin-top: 0.55rem;
    font-size: 0.7rem;
    line-height: 1.4;
    color: var(--text-muted);
}

/* Section Grid */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.detail-col h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Indicators List */
.indicator-list, .rec-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.indicator-item {
    background: var(--bg-surface);
    border-left: 3px solid var(--risk-high);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.indicator-text strong {
    font-size: 0.9rem;
    display: block;
    color: var(--text-primary);
}

.indicator-text small {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.indicator-weight {
    background: rgba(248, 81, 73, 0.2);
    color: var(--risk-high);
    font-weight: 700;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.empty-state-notice {
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Recommendations List */
.rec-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.rec-item .rec-bullet {
    color: var(--brand-primary);
    font-weight: bold;
}

/* ==========================================================================
   Dashboard Tab
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-mono);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-total { color: var(--brand-primary); }
.stat-high { color: var(--risk-high); }
.stat-medium { color: var(--risk-medium); }
.stat-low { color: var(--risk-low); }

/* Indicators Education Cards */
.indicator-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.edu-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.edu-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.edu-card-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.edu-weight-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(47, 129, 247, 0.15);
    color: var(--brand-primary);
}

.edu-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.edu-keywords {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #e3b341;
    background: #1f1b12;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(210, 153, 34, 0.25);
    word-break: break-word;
}

/* Brands Directory */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.brand-chip {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
}

.brand-chip-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
    text-transform: capitalize;
    margin-bottom: 0.25rem;
}

.brand-chip-domains {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   History Tab
   ========================================================================== */
.history-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.history-privacy-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.history-table-wrapper {
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.history-table th {
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.history-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.history-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.history-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.badge-TINGGI { background: var(--risk-high-bg); color: var(--risk-high); }
.badge-SEDANG { background: var(--risk-medium-bg); color: var(--risk-medium); }
.badge-RENDAH { background: var(--risk-low-bg); color: var(--risk-low); }

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-size: 0.9rem;
    display: none;
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    background-color: var(--bg-surface);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; height: auto; padding: 1rem 0; gap: 0.75rem; }
    .nav-tabs { width: 100%; justify-content: center; }
    .detail-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 1.5rem; }
    .results-header-banner { flex-direction: column; text-align: center; gap: 1rem; }
    .score-counter { text-align: center; }
}

/* ==========================================================================
   Print & Official Scam Report PDF Styling
   ========================================================================== */
.print-only {
    display: none;
}

@media print {
    @page {
        margin: 12mm 15mm;
        size: A4 portrait;
    }

    body {
        background: #ffffff !important;
        color: #111111 !important;
        font-size: 10pt !important;
    }

    /* Hide non-report web chrome */
    .site-header,
    .site-footer,
    .nav-tabs,
    .hero-section,
    .preset-wrapper,
    .textarea-wrapper,
    .form-actions,
    .toast,
    .no-print,
    .btn,
    #dashboard-tab,
    #history-tab,
    #about-tab {
        display: none !important;
    }

    #analyzer-tab {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .card {
        background: #ffffff !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .results-card {
        display: block !important;
        page-break-inside: avoid;
    }

    .card-header {
        border-bottom: 2px solid #0f172a !important;
        padding-bottom: 0.5rem !important;
        margin-bottom: 1rem !important;
    }

    .card-title {
        font-size: 1.15rem !important;
        color: #0f172a !important;
    }

    /* Print Official Header */
    .print-only {
        display: block !important;
    }

    .print-official-header {
        text-align: center;
        margin-bottom: 1rem;
    }

    .print-emblem {
        font-size: 0.85rem;
        font-weight: 700;
        color: #1d4ed8;
        letter-spacing: 0.5px;
        margin-bottom: 0.25rem;
    }

    .print-doc-title {
        font-size: 1.25rem;
        font-weight: 800;
        color: #0f172a;
        margin-bottom: 0.75rem;
        text-transform: uppercase;
        letter-spacing: -0.2px;
    }

    .print-meta-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.35rem 1rem;
        font-size: 0.8rem;
        color: #334155;
        text-align: left;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        padding: 0.6rem 0.8rem;
        border-radius: 6px;
    }

    .print-divider {
        border: none;
        border-top: 1.5px solid #cbd5e1;
        margin: 0.85rem 0;
    }

    /* Banners in Print */
    .results-header-banner {
        border-radius: 6px !important;
        padding: 0.75rem 1rem !important;
        margin-bottom: 1rem !important;
        border: 1.5px solid #000000 !important;
    }

    .banner-high {
        background: #fee2e2 !important;
        border-color: #b91c1c !important;
        color: #7f1d1d !important;
    }

    .banner-medium {
        background: #fef3c7 !important;
        border-color: #b45309 !important;
        color: #78350f !important;
    }

    .banner-low {
        background: #dcfce7 !important;
        border-color: #15803d !important;
        color: #14532d !important;
    }

    .risk-level-badge {
        font-size: 1.1rem !important;
        color: inherit !important;
    }

    .risk-level-subtext {
        font-size: 0.85rem !important;
        color: inherit !important;
        opacity: 0.9 !important;
    }

    .score-counter-number {
        font-size: 1.75rem !important;
        color: inherit !important;
    }

    .score-counter-max {
        color: inherit !important;
        opacity: 0.8 !important;
    }

    .risk-meter {
        margin-bottom: 1rem !important;
    }

    .meter-track {
        background: #e2e8f0 !important;
        border: 1px solid #94a3b8 !important;
        height: 10px !important;
    }

    .meter-labels {
        font-size: 0.75rem !important;
        color: #475569 !important;
    }

    .masked-header {
        font-size: 0.85rem !important;
        color: #0f172a !important;
        font-weight: 700 !important;
    }

    .masked-box {
        background: #f8fafc !important;
        color: #0f172a !important;
        border: 1px solid #cbd5e1 !important;
        font-size: 0.85rem !important;
        padding: 0.65rem 0.85rem !important;
        margin-bottom: 1rem !important;
    }

    .narrative-card {
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        border-left: 3px solid #0f172a !important;
        color: #0f172a !important;
        padding: 0.7rem 0.9rem !important;
        margin-bottom: 1rem !important;
    }

    .narrative-header,
    .narrative-text,
    .narrative-disclaimer,
    .narrative-engine-label {
        color: #0f172a !important;
        background: transparent !important;
        border-color: #cbd5e1 !important;
    }

    .detail-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }

    .detail-col h4 {
        font-size: 0.9rem !important;
        color: #0f172a !important;
        border-bottom: 1px solid #cbd5e1 !important;
        padding-bottom: 0.25rem !important;
        margin-bottom: 0.5rem !important;
    }

    .indicator-item {
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        color: #1e293b !important;
        padding: 0.5rem !important;
        margin-bottom: 0.35rem !important;
    }

    .indicator-text strong {
        color: #0f172a !important;
        font-size: 0.85rem !important;
    }

    .indicator-text small {
        color: #64748b !important;
        font-size: 0.75rem !important;
    }

    .indicator-weight {
        background: #e2e8f0 !important;
        color: #0f172a !important;
        border: 1px solid #cbd5e1 !important;
        font-size: 0.8rem !important;
    }

    .rec-item {
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        color: #1e293b !important;
        padding: 0.45rem 0.6rem !important;
        margin-bottom: 0.35rem !important;
        font-size: 0.8rem !important;
    }

    .rec-bullet {
        color: #2563eb !important;
    }

    .print-official-footer {
        margin-top: 1.25rem;
        page-break-inside: avoid;
    }

    .print-signature-row {
        display: flex;
        justify-content: space-between;
        margin-top: 0.5rem;
        padding-top: 0.4rem;
        border-top: 1px dashed #cbd5e1;
        font-size: 0.75rem;
    }
}
