/* ==========================================================================
   BMI Corp - Value Initiation Quest Stylesheet
   Luxury Corporate Dark Navy & Gold Aesthetic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Palette Warna Khas BMI Corp */
    --bg-base: #050912;
    --bg-surface: #0A1224;
    --bg-surface-elevated: #0F1B33;
    --bg-card: #0D172B;
    --bg-card-back: #070D1A;
    
    /* Aksen Emas BMI Corp */
    --gold-300: #EAD09F;
    --gold-400: #DEBA7B;
    --gold-500: #C69A59;
    --gold-600: #A87C3C;
    --gold-700: #7E5A26;
    --gold-glow: rgba(198, 154, 89, 0.35);
    --gold-subtle: rgba(198, 154, 89, 0.15);
    --gold-border: rgba(198, 154, 89, 0.3);

    /* Teks & Netral */
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --text-dim: #64748B;

    /* Status */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;

    /* Tipografi */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-brand: 'Cinzel', serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Dimensi */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    --shadow-gold: 0 0 25px rgba(198, 154, 89, 0.25);
}

/* Reset & Dasar */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(198, 154, 89, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(10, 25, 48, 0.6) 0%, transparent 50%),
        linear-gradient(180deg, #060B15 0%, #03060B 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Mewah */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-700);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-500);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.app-header {
    background: rgba(7, 14, 28, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gold-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.75rem 2rem;
}

.header-container {
    max-width: 1680px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.brand-logo-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(198, 154, 89, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    border: 1px solid var(--gold-border);
}

.brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(226, 191, 132, 0.5));
}

.brand-info h1 {
    font-family: var(--font-brand);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    line-height: 1.1;
}

.brand-info h1 span {
    color: var(--gold-400);
}

.brand-info p {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-500);
    font-weight: 600;
}

/* Header Phase Stepper Bar */
.header-stepper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(15, 27, 51, 0.6);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(198, 154, 89, 0.2);
}

.step-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.step-pill.active {
    background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%);
    color: #0B1325;
    box-shadow: 0 0 12px var(--gold-glow);
    font-weight: 700;
}

.step-pill.completed {
    color: var(--gold-400);
    background: rgba(198, 154, 89, 0.15);
}

.step-arrow {
    color: var(--text-dim);
    font-size: 0.75rem;
}

.header-quick-stats {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Tombol Panduan Quest di Navbar */
.btn-guide-help {
    background: rgba(198, 154, 89, 0.12);
    border: 1px solid var(--gold-border);
    color: var(--gold-400);
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.25s ease;
}

.btn-guide-help:hover {
    background: var(--gold-500);
    color: #070D1A;
    box-shadow: 0 0 15px var(--gold-glow);
    transform: translateY(-1px);
}

.stat-badge {
    text-align: right;
}

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

.stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--font-brand);
    color: var(--gold-400);
}

/* ==========================================================================
   MODAL ONBOARDING GUIDANCE (3 SLIDES)
   ========================================================================== */
.onboarding-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
}

.onboarding-overlay.active {
    display: flex;
    animation: fadeInModal 0.35s ease forwards;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.onboarding-card {
    background: linear-gradient(165deg, #0F1B33 0%, #070D1B 100%);
    border: 1.5px solid var(--gold-400);
    border-radius: var(--radius-xl);
    max-width: 940px;
    width: 100%;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 35px rgba(198, 154, 89, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Ornamen Sudut Mewah */
.onboarding-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, var(--gold-400) 50%);
    pointer-events: none;
}

.onboarding-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(198, 154, 89, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.onboarding-brand-mini {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-brand);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold-400);
    letter-spacing: 0.05em;
}

.mini-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* Stepper Indikator 1-2-3 */
.onboarding-step-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(15, 27, 51, 0.8);
    border: 1px solid rgba(198, 154, 89, 0.3);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-brand);
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--gold-500);
    color: #070D1A;
    border-color: var(--gold-400);
    box-shadow: 0 0 14px var(--gold-glow);
}

.step-dot.completed {
    background: rgba(198, 154, 89, 0.2);
    color: var(--gold-400);
    border-color: var(--gold-500);
}

.step-line {
    width: 24px;
    height: 2px;
    background: rgba(198, 154, 89, 0.2);
}

.btn-close-onboarding {
    background: transparent;
    border: 1px solid rgba(198, 154, 89, 0.25);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.btn-close-onboarding:hover {
    border-color: var(--gold-400);
    color: var(--gold-400);
    background: rgba(198, 154, 89, 0.15);
}

/* Body Modal Onboarding */
.onboarding-body {
    padding: 2.25rem 2.5rem;
    min-height: 420px;
    display: flex;
    align-items: center;
}

.onboarding-slide {
    display: none;
    width: 100%;
    animation: slideIn 0.35s ease forwards;
}

.onboarding-slide.active {
    display: block;
}

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

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    background: rgba(198, 154, 89, 0.15);
    border: 1px solid var(--gold-border);
    border-radius: 999px;
    color: var(--gold-400);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.slide-heading {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.slide-heading em {
    color: var(--gold-400);
    font-style: italic;
}

.slide-subheading {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.75rem;
}

/* Grid Kartu Penjelasan Slide 1 & 2 */
.guidance-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.guidance-card {
    background: rgba(10, 18, 36, 0.75);
    border: 1px solid rgba(198, 154, 89, 0.25);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.guidance-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold-400);
    background: rgba(15, 27, 51, 0.85);
}

.guidance-card-icon {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.guidance-card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.2;
}

.guidance-card-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.55;
}

/* Grid 4 Langkah Slide 3 (Cara Melakukan Quest) */
.flow-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.flow-step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(10, 18, 36, 0.75);
    border: 1px solid rgba(198, 154, 89, 0.25);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    transition: all 0.25s ease;
}

.flow-step-item:hover {
    border-color: var(--gold-400);
    transform: translateY(-2px);
}

.flow-step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%);
    color: #070D1A;
    font-family: var(--font-brand);
    font-size: 1.05rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 12px var(--gold-glow);
}

.flow-step-content h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.3rem;
}

.flow-step-content p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.5;
}

.flow-step-content strong {
    color: var(--gold-400);
}

/* Footer Modal Onboarding */
.onboarding-footer {
    padding: 1.25rem 2.5rem;
    border-top: 1px solid rgba(198, 154, 89, 0.2);
    background: rgba(7, 13, 26, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.btn-onboarding-secondary {
    background: transparent;
    border: 1px solid rgba(198, 154, 89, 0.25);
    color: var(--text-secondary);
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-onboarding-secondary:hover:not(:disabled) {
    border-color: var(--gold-400);
    color: var(--gold-400);
}

.btn-onboarding-secondary:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-onboarding-skip {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.25s ease;
}

.btn-onboarding-skip:hover {
    color: var(--text-muted);
}

.btn-onboarding-primary {
    background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%);
    border: 1px solid var(--gold-300);
    color: #070D1A;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-md);
    font-family: var(--font-brand);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(198, 154, 89, 0.35);
    transition: all 0.3s ease;
}

.btn-onboarding-primary:hover {
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 100%);
    box-shadow: 0 6px 25px rgba(198, 154, 89, 0.55);
    transform: translateY(-2px);
}

/* Formulir Profil Peserta (Slide 4) */
.participant-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.required-star {
    color: #EF4444;
    font-weight: 700;
}

.form-input {
    width: 100%;
    background: rgba(10, 18, 36, 0.85);
    border: 1px solid rgba(198, 154, 89, 0.3);
    border-radius: var(--radius-md);
    padding: 0.8rem 1.1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s ease;
}

.form-input:focus {
    border-color: var(--gold-400);
    box-shadow: 0 0 15px rgba(198, 154, 89, 0.3);
    background: rgba(15, 27, 51, 0.95);
}

.form-input.invalid {
    border-color: #EF4444 !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.35) !important;
}

.form-error-msg {
    display: none;
    color: #F87171;
    font-size: 0.75rem;
    font-weight: 600;
}

.form-group.has-error .form-error-msg {
    display: block;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    background: rgba(198, 154, 89, 0.08);
    border: 1px dashed rgba(198, 154, 89, 0.35);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.45;
    margin-top: 0.25rem;
}

/* Kartu Profil Peserta di Layar Hasil Akhir */
.participant-result-card {
    background: linear-gradient(135deg, rgba(15, 27, 51, 0.9) 0%, rgba(9, 16, 32, 0.95) 100%);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.75rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.participant-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.participant-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.meta-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--gold-400);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.meta-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #FFFFFF;
    word-break: break-word;
}

.sync-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 999px;
    color: #34D399;
    font-size: 0.78rem;
    font-weight: 600;
    align-self: flex-start;
}

.sync-status-badge.syncing {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #FBBF24;
}

.sync-status-badge.error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #F87171;
}

/* ==========================================================================
   MAIN GAME LAYOUT
   ========================================================================== */
.main-wrapper {
    max-width: 1720px;
    margin: 0 auto;
    padding: 1.5rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
    width: 100%;
}

/* Board Header & Controls */
.board-header {
    background: linear-gradient(135deg, rgba(15, 27, 51, 0.7) 0%, rgba(10, 18, 36, 0.85) 100%);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.board-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(198, 154, 89, 0.15), transparent 70%);
    pointer-events: none;
}

.phase-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem;
    background: rgba(198, 154, 89, 0.15);
    border: 1px solid var(--gold-border);
    border-radius: 999px;
    color: var(--gold-400);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

.board-heading {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.board-heading em {
    color: var(--gold-400);
    font-style: italic;
}

.board-subheading {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 800px;
}

/* Filter & Search Bar */
.board-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background: rgba(15, 27, 51, 0.8);
    border: 1px solid rgba(198, 154, 89, 0.2);
    color: var(--text-muted);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-btn:hover {
    border-color: var(--gold-400);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--gold-500);
    border-color: var(--gold-500);
    color: #070D1A;
    font-weight: 700;
    box-shadow: 0 0 14px var(--gold-glow);
}

.search-box {
    position: relative;
    min-width: 240px;
}

.search-box input {
    width: 100%;
    background: rgba(15, 27, 51, 0.8);
    border: 1px solid rgba(198, 154, 89, 0.25);
    border-radius: 999px;
    padding: 0.45rem 1rem 0.45rem 2.2rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.25s ease;
}

.search-box input:focus {
    border-color: var(--gold-400);
    box-shadow: 0 0 10px rgba(198, 154, 89, 0.25);
}

.search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 0.85rem;
    pointer-events: none;
}

/* ==========================================================================
   5-COLUMN CARD GRID & 3D FLIP CARDS
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
}

/* Single 3D Card */
.value-card-container {
    perspective: 1200px;
    height: 270px;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: transform 0.3s ease;
}

.value-card-container:hover {
    transform: translateY(-4px);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.34, 1.3, 0.64, 1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

/* Flipped State (Dinonaktifkan / Ditutup) */
.value-card-container.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* SISI DEPAN (FRONT - AKTIF) */
.card-front {
    background: linear-gradient(160deg, #111E38 0%, #0A1326 100%);
    border: 1px solid var(--border-gold);
    padding: 1.1rem;
    justify-content: space-between;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.value-card-container:hover .card-front {
    border-color: var(--gold-400);
    box-shadow: 0 0 20px rgba(198, 154, 89, 0.3);
}

/* Aksen Geometris Sudut */
.card-front::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, transparent 50%, rgba(198, 154, 89, 0.25) 50%);
    pointer-events: none;
}

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

.card-id-badge {
    font-family: var(--font-brand);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold-400);
    background: rgba(198, 154, 89, 0.15);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(198, 154, 89, 0.3);
}

.card-cat-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.card-main-content {
    margin: auto 0;
    text-align: center;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.15;
    margin-bottom: 0.6rem;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-bottom-bar {
    border-top: 1px solid rgba(198, 154, 89, 0.18);
    padding-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.card-action-hint {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--gold-400);
    font-size: 0.7rem;
    font-weight: 600;
}

/* SISI BELAKANG (BACK - DINONAKTIFKAN / DITUTUP) */
.card-back {
    background: radial-gradient(circle at center, #0B172E 0%, #050A14 100%);
    border: 1px solid rgba(198, 154, 89, 0.25);
    transform: rotateY(180deg);
    padding: 1.25rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

/* Pola Frame Ornamen Geometris Sharia */
.card-back::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(198, 154, 89, 0.3);
    border-radius: calc(var(--radius-md) - 4px);
    pointer-events: none;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
}

.back-logo-wrap {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    background: radial-gradient(circle, rgba(198, 154, 89, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    border: 1px solid rgba(198, 154, 89, 0.35);
    box-shadow: 0 0 20px rgba(198, 154, 89, 0.2);
}

.back-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(226, 191, 132, 0.6));
}

.back-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #F87171;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.back-card-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 0.5rem;
}

.back-reopen-hint {
    font-size: 0.72rem;
    color: var(--gold-400);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Hidden Card / Filtered Out */
.value-card-container.hidden {
    display: none !important;
}

/* ==========================================================================
   STICKY RIGHT DASHBOARD
   ========================================================================== */
.dashboard-sidebar {
    position: sticky;
    top: 5rem;
    background: linear-gradient(165deg, rgba(15, 27, 51, 0.9) 0%, rgba(7, 13, 26, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dash-header {
    border-bottom: 1px solid rgba(198, 154, 89, 0.2);
    padding-bottom: 1rem;
}

.dash-title {
    font-family: var(--font-brand);
    font-size: 1.05rem;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.dash-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Target & Remaining Metric Display */
.quota-box {
    background: rgba(10, 18, 36, 0.85);
    border: 1px solid rgba(198, 154, 89, 0.25);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quota-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}

.quota-numbers {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.quota-current {
    font-family: var(--font-brand);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--gold-400);
    text-shadow: 0 0 20px var(--gold-glow);
    transition: color 0.3s ease;
}

.quota-current.match {
    color: #34D399;
    text-shadow: 0 0 20px rgba(52, 211, 153, 0.5);
}

.quota-divider {
    font-size: 1.75rem;
    color: var(--text-dim);
}

.quota-target {
    font-family: var(--font-brand);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.quota-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

/* Progress Bar */
.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(7, 13, 26, 0.8);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(198, 154, 89, 0.2);
    margin-bottom: 0.6rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-600) 0%, var(--gold-400) 100%);
    border-radius: 999px;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px var(--gold-glow);
}

.quota-instruction {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.quota-instruction strong {
    color: var(--gold-400);
}

/* Category Live Breakdown Bars */
.category-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.cat-breakdown-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-400);
    font-weight: 700;
    display: flex;
    justify-content: space-between;
}

.cat-stat-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cat-stat-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.cat-stat-name {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.cat-stat-count {
    font-weight: 700;
    color: var(--text-primary);
}

.cat-mini-track {
    width: 100%;
    height: 5px;
    background: rgba(10, 18, 36, 0.9);
    border-radius: 999px;
    overflow: hidden;
}

.cat-mini-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.35s ease;
}

/* Submit Action Button */
.dash-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-submit-phase {
    width: 100%;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%);
    border: 1px solid var(--gold-300);
    border-radius: var(--radius-md);
    color: #070D1A;
    font-family: var(--font-brand);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 4px 20px rgba(198, 154, 89, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-submit-phase:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(198, 154, 89, 0.6);
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 100%);
}

.btn-submit-phase:disabled {
    background: rgba(15, 27, 51, 0.8);
    border-color: rgba(198, 154, 89, 0.15);
    color: var(--text-dim);
    cursor: not-allowed;
    box-shadow: none;
}

/* Pulsing highlight when ready */
.btn-submit-phase.ready {
    animation: goldPulse 1.8s infinite;
}

@keyframes goldPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(226, 191, 132, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(226, 191, 132, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(226, 191, 132, 0);
    }
}

.btn-reset-phase {
    background: transparent;
    border: 1px solid rgba(198, 154, 89, 0.25);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    padding: 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-reset-phase:hover {
    border-color: var(--gold-400);
    color: var(--gold-400);
    background: rgba(198, 154, 89, 0.08);
}

/* ==========================================================================
   RESULT VIEW / FINAL VICTORY SCREEN
   ========================================================================== */
.result-screen-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 9, 18, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1000;
    overflow-y: auto;
    padding: 3rem 1.5rem;
    animation: fadeIn 0.6s ease forwards;
}

.result-screen-overlay.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.result-container {
    max-width: 1380px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.result-header {
    text-align: center;
    max-width: 800px;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(198, 154, 89, 0.15);
    border: 1px solid var(--gold-border);
    border-radius: 999px;
    color: var(--gold-400);
    font-family: var(--font-brand);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.result-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.15;
    margin-bottom: 0.6rem;
}

.result-title em {
    color: var(--gold-400);
    font-style: italic;
}

.result-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* 5 Winning Core Value Cards Showcase */
.final-cards-showcase {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    width: 100%;
}

.final-card-item {
    background: linear-gradient(160deg, #132240 0%, #0B152A 100%);
    border: 2px solid var(--gold-400);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 320px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(198, 154, 89, 0.3);
    animation: cardRise 0.8s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.final-card-item:nth-child(1) { animation-delay: 0.1s; }
.final-card-item:nth-child(2) { animation-delay: 0.25s; }
.final-card-item:nth-child(3) { animation-delay: 0.4s; }
.final-card-item:nth-child(4) { animation-delay: 0.55s; }
.final-card-item:nth-child(5) { animation-delay: 0.7s; }

@keyframes cardRise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.final-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, transparent 50%, var(--gold-400) 50%);
    border-top-right-radius: var(--radius-lg);
}

.final-card-rank {
    font-family: var(--font-brand);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--gold-400);
    background: rgba(198, 154, 89, 0.15);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    align-self: flex-start;
    border: 1px solid var(--gold-border);
}

.final-card-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    margin: 0.8rem 0;
    line-height: 1.15;
}

.final-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
    text-align: center;
}

.final-card-footer {
    border-top: 1px solid rgba(198, 154, 89, 0.25);
    padding-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.final-card-core-badge {
    color: var(--gold-400);
    font-family: var(--font-brand);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(198, 154, 89, 0.12);
    border: 1px solid var(--gold-border);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.toolbar-hint {
    color: var(--gold-400);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Radar Chart & Character Profile Section */
.result-analytics-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
}

.radar-chart-card,
.character-analysis-card {
    background: linear-gradient(160deg, rgba(15, 27, 51, 0.85) 0%, rgba(8, 15, 30, 0.95) 100%);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
}

.chart-card-header,
.profile-card-header {
    border-bottom: 1px solid rgba(198, 154, 89, 0.2);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-400);
}

.section-title {
    font-family: var(--font-brand);
    font-size: 1.25rem;
    color: #FFFFFF;
    margin-top: 0.25rem;
}

.canvas-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 440px;
}

#radarCanvas {
    width: 100%;
    max-width: 480px;
    height: 480px;
}

/* Character Profile Content */
.archetype-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(198, 154, 89, 0.2) 0%, rgba(198, 154, 89, 0.05) 100%);
    border: 1px solid var(--gold-border);
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.archetype-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-400);
}

.profile-narrative {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.pillars-summary-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.pillar-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.85rem;
    background: rgba(10, 18, 36, 0.7);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--gold-500);
    font-size: 0.85rem;
}

/* Result Action Buttons */
.result-actions {
    display: flex;
    gap: 1.25rem;
    margin-top: 1rem;
}

.btn-print {
    padding: 0.9rem 1.75rem;
    background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%);
    border: 1px solid var(--gold-300);
    border-radius: var(--radius-md);
    color: #070D1A;
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-print:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(198, 154, 89, 0.5);
}

.btn-restart {
    padding: 0.9rem 1.75rem;
    background: transparent;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-brand);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-restart:hover {
    border-color: var(--gold-400);
    color: var(--gold-400);
    background: rgba(198, 154, 89, 0.1);
}

/* ==========================================================================
   PRINT STYLES FOR CPANEL / CLIENT EXPORT
   ========================================================================== */
@media print {
    body {
        background: #FFFFFF !important;
        color: #1E293B !important;
    }
    .app-header,
    .main-wrapper,
    .onboarding-overlay,
    .result-actions {
        display: none !important;
    }
    .result-screen-overlay {
        position: static !important;
        display: block !important;
        background: #FFFFFF !important;
        padding: 0 !important;
    }
    .final-card-item {
        background: #F8FAFC !important;
        border: 2px solid #C69A59 !important;
        color: #0F172A !important;
        box-shadow: none !important;
    }
    .final-card-title {
        color: #0F172A !important;
    }
    .final-card-desc {
        color: #475569 !important;
    }
    .radar-chart-card,
    .character-analysis-card {
        background: #F8FAFC !important;
        border: 1px solid #CBD5E1 !important;
        color: #0F172A !important;
        box-shadow: none !important;
    }
    .section-title {
        color: #0F172A !important;
    }
    .profile-narrative {
        color: #334155 !important;
    }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1400px) {
    .cards-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1120px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }
    .dashboard-sidebar {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        max-height: 85vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        z-index: 90;
        transform: translateY(calc(100% - 75px));
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .dashboard-sidebar.expanded {
        transform: translateY(0);
    }
    .cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-bottom: 90px;
    }
    .final-cards-showcase {
        grid-template-columns: repeat(3, 1fr);
    }
    .result-analytics-row {
        grid-template-columns: 1fr;
    }
    .guidance-cards-grid {
        grid-template-columns: 1fr;
    }
    .flow-steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .final-cards-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
    .board-heading {
        font-size: 1.6rem;
    }
    .slide-heading {
        font-size: 1.8rem;
    }
    .header-stepper {
        display: none;
    }
    .onboarding-header {
        padding: 1.25rem 1.5rem;
    }
    .onboarding-body {
        padding: 1.5rem;
    }
    .onboarding-footer {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .final-cards-showcase {
        grid-template-columns: 1fr;
    }
    .onboarding-brand-mini span {
        display: none;
    }
}
