/* ======================== CSS VARIABLES & DESIGN TOKENS ======================== */
:root {
    /* Light Theme */
    --bg-body: linear-gradient(135deg, #FEF9F0 0%, #FFF5E6 100%);
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-card-secondary: rgba(255, 255, 255, 0.7);
    --text-primary: #1E2A2F;
    --text-secondary: #4A5B5E;
    --text-tertiary: #7A8C8F;
    
    /* Accent Colors - Modern Gradient */
    --accent-primary: #2C6E49;
    --accent-secondary: #4C9A6F;
    --accent-light: #8ED4A3;
    --accent-very-light: #E8F5F0;
    
    /* Premium Colors */
    --gold-primary: #D4AF37;
    --gold-secondary: #FFE066;
    --gold-light: #FFF4D6;
    
    /* Status Colors */
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #F44336;
    --info: #2196F3;
    
    /* Neutral */
    --border: #E2DFD5;
    --border-light: #F0EDE8;
    --shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-gold: 0 8px 32px rgba(212, 175, 55, 0.15);
    
    /* UI Elements */
    --sidebar-bg: rgba(255, 255, 255, 0.95);
    --sidebar-text: #1E2A2F;
    --btn-hover: #236B43;
    
    /* Animations */
    --transition-default: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    --transition-smooth: all 0.25s ease-out;
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-spring: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-full: 60px;

    /* Canvas / Chart */
    --canvas-blend: multiply;
    --canvas-opacity: 0.35;
}

/* Dark Theme */
body.dark {
    --bg-body: linear-gradient(135deg, #0F1419 0%, #1A1F2E 100%);
    --bg-card: rgba(30, 42, 47, 0.92);
    --bg-card-secondary: rgba(30, 42, 47, 0.7);
    --text-primary: #EFF3F0;
    --text-secondary: #B0C4C2;
    --text-tertiary: #7A9A97;
    
    --accent-primary: #6ABF8A;
    --accent-secondary: #7FD4A3;
    --accent-light: #A8E8C2;
    --accent-very-light: rgba(106, 191, 138, 0.12);
    
    --gold-primary: #E8C547;
    --gold-secondary: #F0D76F;
    --gold-light: rgba(232, 197, 71, 0.12);
    
    --border: rgba(76, 92, 94, 0.5);
    --border-light: rgba(76, 92, 94, 0.25);
    --shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 8px 32px rgba(232, 197, 71, 0.12);
    
    --sidebar-bg: rgba(30, 42, 47, 0.98);
    --sidebar-text: #EFF3F0;
    --btn-hover: #55996E;

    --canvas-blend: screen;
    --canvas-opacity: 0.3;
}

/* ======================== GLOBAL RESET & BASE ======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.5s ease, color 0.4s ease;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ======================== AMBIENT LIGHT PARTICLES (CSS) ======================== */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    will-change: transform;
}

body::before {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.07) 0%, transparent 70%);
    top: -8%;
    left: -6%;
    animation: ambientFloatA 20s ease-in-out infinite;
}

body::after {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle at 70% 70%, rgba(44, 110, 73, 0.06) 0%, transparent 70%);
    bottom: -5%;
    right: -5%;
    animation: ambientFloatB 24s ease-in-out infinite;
}

body.dark::before {
    background: radial-gradient(circle at 30% 30%, rgba(232, 197, 71, 0.06) 0%, transparent 70%);
}

body.dark::after {
    background: radial-gradient(circle at 70% 70%, rgba(106, 191, 138, 0.06) 0%, transparent 70%);
}

@keyframes ambientFloatA {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    33%  { transform: translate(40px, -30px) scale(1.12); opacity: 1; }
    66%  { transform: translate(-25px, 35px) scale(0.92); opacity: 0.6; }
}

@keyframes ambientFloatB {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50%  { transform: translate(-45px, -28px) scale(1.15); opacity: 1; }
}

/* ======================== BACKGROUND CANVAS (dari JS) ======================== */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    opacity: var(--canvas-opacity);
    mix-blend-mode: var(--canvas-blend);
    transition: opacity 0.8s ease, mix-blend-mode 0.5s ease;
}

/* ======================== TOP CONTROLS ======================== */
.top-controls {
    position: fixed;
    top: 1.2rem;
    right: 1.5rem;
    display: flex;
    gap: 12px;
    z-index: 1100;
    animation: slideInRight 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) backwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0px);
    }
}

.icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    transition: var(--transition-spring);
    box-shadow: var(--shadow);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.icon-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.25), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.icon-btn:hover::after {
    opacity: 1;
}

.icon-btn:hover {
    transform: translateY(-5px) scale(1.08);
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-secondary);
    box-shadow: 0 10px 28px rgba(44, 110, 73, 0.35), var(--shadow-gold);
}

.icon-btn:active {
    transform: translateY(-2px) scale(0.96);
    transition: var(--transition-smooth);
}

/* ======================== MORPHING MENU BUTTON ======================== */
.menu-btn .menu-icon-line {
    width: 22px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.menu-icon-line span {
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 4px;
    transition: var(--transition-bounce);
    transform-origin: center;
}

.menu-btn:hover .menu-icon-line span {
    background: white;
}

.menu-btn.morph-active {
    background: var(--accent-primary);
    transform: scale(0.92) rotate(45deg);
    color: white;
}

.menu-btn.morph-active .menu-icon-line span {
    background: white;
}

.menu-btn.morph-active .menu-icon-line span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-btn.morph-active .menu-icon-line span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.menu-btn.morph-active .menu-icon-line span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ======================== SIDEBAR ======================== */
.sidebar {
    position: fixed;
    top: 0;
    right: -380px;
    width: 320px;
    max-width: 88vw;
    height: 100vh;
    height: 100dvh;
    background: var(--sidebar-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--border);
    z-index: 1150;
    transition: right 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    padding: 5rem 1.8rem 2.5rem;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar.open {
    right: 0;
}

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--accent-secondary);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1120;
    display: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

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

.sidebar-header {
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--accent-primary);
    display: inline-block;
    padding-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin: 0.85rem 0;
    animation: slideInLeft 0.45s ease-out backwards;
}

.sidebar li:nth-child(n) {
    animation-delay: calc(0.06s * var(--index, 0));
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(24px);
        filter: blur(3px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

.sidebar a {
    color: var(--sidebar-text);
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 0.7rem 1rem;
    transition: var(--transition-smooth);
    border-left: 3px solid transparent;
    border-radius: 0 10px 10px 0;
    margin-left: -0.5rem;
    position: relative;
}

.sidebar a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-very-light);
    border-radius: 0 10px 10px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.sidebar a:hover::before {
    opacity: 1;
}

.sidebar a:hover {
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
    transform: translateX(10px);
}

/* ======================== MAIN APP & PAGES ======================== */
.app-main {
    max-width: 920px;
    margin: 0 auto;
    padding: 2rem 1.5rem 5rem;
    position: relative;
    z-index: 5;
}

.page {
    display: none;
    opacity: 0;
    transform: translateY(24px);
    filter: blur(2px);
    transition: opacity 0.5s cubic-bezier(0.2, 0.9, 0.3, 1), 
                transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1),
                filter 0.4s ease;
}

.page.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    animation: pageReveal 0.6s ease-out;
}

@keyframes pageReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* ======================== HOMEPAGE ======================== */
.hero-center {
    min-height: 80vh;
    min-height: 80dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content {
    animation: fadeInUp 0.9s cubic-bezier(0.2, 0.9, 0.3, 1) backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.breathing-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.4rem, 8vw, 4.2rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--accent-primary) 45%, var(--gold-secondary) 75%, var(--accent-light) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: breatheSoft 4.5s ease-in-out infinite, shimmerGradient 6s ease-in-out infinite;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 0 35px rgba(212, 175, 55, 0.15));
}

@keyframes breatheSoft {
    0%, 100% {
        transform: scale(0.97);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.06);
        opacity: 1;
        filter: drop-shadow(0 0 50px rgba(212, 175, 55, 0.35));
    }
}

@keyframes shimmerGradient {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.hero-sub {
    max-width: 600px;
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.9s ease-out 0.15s backwards;
}

.btn-start {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    padding: 1rem 2.8rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.05rem;
    color: white;
    cursor: pointer;
    transition: var(--transition-spring);
    box-shadow: 0 8px 28px rgba(44, 110, 73, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.9s ease-out 0.25s backwards;
    letter-spacing: 0.02em;
}

.btn-start::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.btn-start:hover::before {
    opacity: 1;
}

.btn-start:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-light));
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(44, 110, 73, 0.45), 0 0 60px rgba(212, 175, 55, 0.12);
    padding: 1rem 3.2rem;
}

.btn-start:active {
    transform: translateY(-2px);
    transition: var(--transition-smooth);
}

/* ======================== CONTENT CARDS ======================== */
.content-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin: 1.5rem 0 2.5rem;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: slideUp 0.65s cubic-bezier(0.2, 0.9, 0.3, 1) backwards;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.content-card:hover {
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    transform: translateY(-2px);
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--gold-primary) 50%, var(--accent-secondary) 100%);
    background-size: 200% 100%;
    opacity: 0.7;
    animation: borderShimmer 5s ease-in-out infinite;
}

@keyframes borderShimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(35px);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.content-card h1 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 2rem;
    color: var(--text-primary);
    border-left: 5px solid var(--accent-primary);
    padding-left: 1.2rem;
    letter-spacing: -0.01em;
}

.content-card h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--text-primary);
    border-left: 4px solid var(--accent-secondary);
    padding-left: 1rem;
}

.content-card h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.content-card p {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Perbaikan Sub-point (Daftar) */
.content-card ul,
.content-card ol {
    margin: 1.2rem 0;
    padding-left: 1.8rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.content-card li {
    margin-bottom: 0.6rem;
}

.content-card ul li::marker {
    color: var(--accent-primary);
    font-weight: 600;
}

.content-card ol li::marker {
    color: var(--accent-primary);
    font-weight: 700;
}

.content-card em {
    color: var(--accent-primary);
    font-style: italic;
    font-weight: 500;
}

.content-card strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Blockquote styling */
.content-card blockquote {
    border-left: 4px solid var(--accent-primary);
    padding: 1.2rem 0 1.2rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--accent-very-light);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.content-card blockquote::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gold-primary);
    border-radius: 0 3px 3px 0;
    opacity: 0.7;
}

/* ======================== INVESTMENT CHART (KOMPONEN DINAMIS) ======================== */
.investment-chart {
    background: var(--bg-card-secondary);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.8rem 2rem;
    margin: 2rem 0;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    animation: chartReveal 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}

@keyframes chartReveal {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(25px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    z-index: 2;
}

.chart-bar {
    width: 52px;
    min-height: 8px;
    border-radius: 16px 16px 6px 6px;
    box-shadow: 0 4px 18px var(--chart-glow-color, rgba(212, 175, 55, 0.2));
    transition: height 0.9s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.4s ease, 
                filter 0.35s ease,
                transform 0.3s ease;
    position: relative;
    cursor: pointer;
    background: linear-gradient(180deg, 
        var(--gold-primary) 0%, 
        var(--accent-primary) 70%, 
        var(--accent-secondary) 100%);
    animation: growBar 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    filter: brightness(1) saturate(1);
    transform-origin: bottom center;
}

body.dark .chart-bar {
    background: linear-gradient(180deg, 
        var(--gold-primary) 0%, 
        var(--accent-primary) 60%, 
        var(--accent-secondary) 100%);
}

.chart-bar::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 8px;
    right: 8px;
    height: 35%;
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 100%);
    border-radius: 12px;
    opacity: 0.6;
    transition: opacity 0.3s ease, height 0.3s ease;
    pointer-events: none;
}

.chart-bar:hover {
    box-shadow: 0 10px 30px var(--chart-glow-color, rgba(212, 175, 55, 0.35)), 
                0 0 50px var(--gold-light);
    filter: brightness(1.2) saturate(1.25);
    transform: scaleY(1.04);
    transition: height 0.25s ease, box-shadow 0.35s, filter 0.25s, transform 0.25s;
}

.chart-bar:hover::after {
    opacity: 0.85;
    height: 40%;
}

.chart-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chart-bar-group:hover .chart-label {
    color: var(--accent-primary);
    transform: translateY(-3px);
}

/* Glow di dasar chart */
.investment-chart::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, var(--chart-glow-color, rgba(212, 175, 55, 0.1)), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Keyframe animasi tumbuh batang */
@keyframes growBar {
    from { height: 0; opacity: 0.5; }
    to   { height: var(--target-height, 120px); opacity: 1; }
}

/* ======================== TAB WIDGET ======================== */
.tab-widget {
    background: var(--bg-card-secondary);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
    animation: slideUp 0.65s ease-out;
    transition: box-shadow 0.4s ease;
}

.tab-widget:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1), var(--shadow-gold);
}

.tab-headers {
    display: flex;
    gap: 0.8rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.25));
    padding: 1.1rem 1.2rem;
    border-bottom: 2px solid var(--border-light);
    flex-wrap: wrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.dark .tab-headers {
    background: linear-gradient(135deg, rgba(40, 55, 60, 0.6), rgba(30, 42, 47, 0.4));
}

.tab-headers::-webkit-scrollbar {
    height: 4px;
}

.tab-headers::-webkit-scrollbar-track {
    background: transparent;
}

.tab-headers::-webkit-scrollbar-thumb {
    background: var(--accent-secondary);
    border-radius: 10px;
}

.tab-btn {
    background: transparent;
    border: 2px solid var(--border-light);
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-spring);
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

.tab-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-very-light);
    border-radius: var(--radius-full);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tab-btn:hover::before {
    opacity: 1;
}

.tab-btn:hover {
    color: var(--accent-primary);
    border-color: var(--accent-light);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(44, 110, 73, 0.35);
    transform: translateY(-1px);
}

.tab-content {
    padding: 2rem;
    background: var(--bg-card);
    min-height: 150px;
    transition: background 0.4s ease;
}

.tab-pane {
    display: none;
    color: var(--text-primary);
    line-height: 1.8;
    animation: fadeInContent 0.35s ease-out;
}

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

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

.tab-pane p {
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ======================== NAVIGATION BUTTONS ======================== */
.next-section {
    margin-top: 3rem;
    display: flex;
    gap: 1.4rem;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 2px solid var(--border-light);
    animation: slideUp 0.65s ease-out;
}

/* Tombol navigasi menggunakan gaya yang sama dengan "Mulai Pelajari" */
.nav-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    padding: 0.9rem 2.2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-spring);
    color: white;
    font-size: 0.95rem;
    box-shadow: 0 6px 20px rgba(44, 110, 73, 0.25);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: 0.02em;
    outline: none;
}

.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.7s ease, height 0.7s ease;
}

.nav-btn:hover::after {
    width: 350px;
    height: 350px;
}

.nav-btn:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-light));
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(44, 110, 73, 0.4), 0 0 50px rgba(212, 175, 55, 0.1);
    padding: 0.9rem 2.6rem;
}

.nav-btn:active {
    transform: translateY(-2px);
    transition: var(--transition-smooth);
}

/* ======================== RESPONSIVE DESIGN ======================== */
@media (max-width: 768px) {
    .app-main {
        padding: 1.5rem 1rem 4rem;
    }

    .breathing-title {
        font-size: 2.2rem;
    }

    .content-card {
        padding: 1.6rem;
        border-radius: var(--radius-md);
    }

    .content-card h1 {
        font-size: 1.5rem;
        padding-left: 0.8rem;
    }

    .content-card h2 {
        font-size: 1.2rem;
    }

    .icon-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .sidebar {
        width: 280px;
        right: -300px;
    }

    .tab-headers {
        padding: 0.9rem;
        gap: 0.6rem;
    }

    .tab-btn {
        padding: 0.5rem 1.1rem;
        font-size: 0.88rem;
    }

    .tab-content {
        padding: 1.5rem;
    }

    .next-section {
        flex-direction: column;
        gap: 0.9rem;
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
    }

    .investment-chart {
        gap: 1.2rem;
        padding: 1.8rem 1rem 1.5rem;
    }

    .chart-bar {
        width: 38px;
    }
}

@media (max-width: 480px) {
    .breathing-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero-sub {
        font-size: 0.95rem;
        margin-bottom: 1.6rem;
    }

    .btn-start {
        padding: 0.85rem 2rem;
        font-size: 0.95rem;
    }
    
    .btn-start:hover {
        padding: 0.85rem 2.4rem;
    }

    .content-card {
        padding: 1.3rem;
        margin: 1rem 0 1.8rem;
        border-radius: var(--radius-md);
    }

    .content-card h1 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .icon-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .tab-headers {
        padding: 0.7rem;
    }

    .tab-btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.82rem;
    }

    .tab-content {
        padding: 1.2rem;
        min-height: 120px;
    }

    .top-controls {
        right: 1rem;
        top: 1rem;
        gap: 8px;
    }

    .sidebar {
        width: 100%;
        right: -100%;
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.2);
    }

    .investment-chart {
        gap: 0.7rem;
        padding: 1.4rem 0.6rem 1.2rem;
    }

    .chart-bar {
        width: 30px;
        border-radius: 12px 12px 6px 6px;
    }
    
    .chart-label {
        font-size: 0.72rem;
    }
}

/* ======================== FALLBACK TABLE STYLING ======================== */
.fallback-table {
    background: var(--bg-card-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    white-space: pre-wrap;
    color: var(--text-secondary);
    box-shadow: var(--shadow);
}

/* ======================== SCROLLBAR STYLING ======================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 10px;
    transition: background 0.3s ease;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* ======================== SELECTION ======================== */
::selection {
    background: rgba(44, 110, 73, 0.2);
    color: var(--text-primary);
}

body.dark ::selection {
    background: rgba(106, 191, 138, 0.25);
    color: var(--text-primary);
}

/* ======================== FOCUS VISIBLE ======================== */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ======================== PRINT ======================== */
@media print {
    .bg-canvas,
    .top-controls,
    .sidebar,
    .sidebar-overlay,
    .next-section {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: #1E2A2F !important;
    }
    
    .app-main {
        max-width: 100%;
        padding: 1rem;
    }
    
    .content-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
                                               }
