/* ==========================================================================
   Fibly Landing Page Premium CSS Design System
   ========================================================================== */

/* Variables & Theme configuration */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Theme Colors */
    --bg-primary: #090c14;
    --bg-secondary: #111524;
    --bg-card: rgba(22, 28, 45, 0.6);
    --bg-card-hover: rgba(29, 37, 58, 0.8);
    
    --color-purple: #8b5cf6;
    --color-pink: #ec4899;
    --color-cyan: #06b6d4;
    --color-green: #10b981;
    --color-red: #ef4444;
    --color-warning: #f59e0b;

    /* Text Colors */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #64748b;

    /* Styling Properties */
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    --shadow-glow-purple: 0 0 30px rgba(139, 92, 246, 0.25);
    --shadow-glow-pink: 0 0 30px rgba(236, 72, 153, 0.25);
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Light Theme Variables overriding :root (Identical to FincTrackUser) */
body.light-theme {
    --bg-primary: #f8fafc; /* Ultra clean white-slate background */
    --bg-primary-transparent: rgba(248, 250, 252, 0.85);
    --bg-secondary: #f1f5f9; /* Warm light-gray */
    --bg-footer: #f1f5f9; /* Light footer */
    --bg-card: #ffffff; /* Pure white card for contrast */
    --bg-card-hover: #f1f5f9;
    
    --border-glass: 1px solid rgba(15, 23, 42, 0.08); /* Soft slate border */
    
    --text-main: #0f172a; /* Slate 900 */
    --text-muted: #64748b; /* Slate 500 */
    --text-dark: #475569; /* Slate 600 */
    
    --shadow-premium: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}


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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-main);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-green { color: var(--color-green) !important; }
.text-red { color: var(--color-red) !important; }
.text-pink { color: var(--color-pink) !important; }

/* Buttons & Links */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 8px;
    margin-right: 12px;
    border-radius: 50%;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--color-purple);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-bounce);
    border: none;
    gap: 8px;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-pink) 100%);
    color: #fff;
    box-shadow: var(--shadow-glow-purple);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.4), var(--shadow-glow-pink);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-purple);
    transform: translateY(-2px);
}

/* Plan Button Tiers: More expensive = cooler */

/* Bronze Tier (Cheapest, e.g. 1 Month AI extension @ 35k) */
.btn-plan-bronze {
    background: rgba(6, 182, 212, 0.08);
    color: var(--color-cyan);
    border: 1px solid rgba(6, 182, 212, 0.4);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-plan-bronze:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: var(--color-cyan);
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.25);
    transform: translateY(-2px);
}

/* Silver Tier (Mid-cheapest, e.g. 3 Month AI extension @ 90k, Basic Core @ 100k) */
.btn-plan-silver {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    color: #f8fafc;
    border: 1px solid rgba(139, 92, 246, 0.5);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-plan-silver:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(236, 72, 153, 0.4));
    border-color: var(--color-pink);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

/* Gold Tier (Premium Core e.g. Fibly+ @ 139k, Pro+ @ 149k) */
.btn-plan-gold {
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-pink) 100%);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(139, 92, 246, 0.45), 0 2px 8px rgba(236, 72, 153, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-plan-gold:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #d946ef 100%);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6), 0 4px 12px rgba(236, 72, 153, 0.4);
    transform: translateY(-3px) scale(1.01);
}

/* Diamond Tier (Ultimate Core / 1 Year AI extension @ 300k) */
.btn-plan-diamond {
    background: linear-gradient(135deg, var(--color-cyan) 0%, #3b82f6 50%, var(--color-purple) 100%);
    background-size: 200% auto;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.5), 0 2px 10px rgba(139, 92, 246, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: plan-shimmer-pulse 3s infinite alternate;
}

.btn-plan-diamond:hover {
    background-position: right center;
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.7), 0 4px 15px rgba(139, 92, 246, 0.6);
    transform: translateY(-3px) scale(1.02);
}

@keyframes plan-shimmer-pulse {
    0% {
        background-position: 0% 50%;
        box-shadow: 0 4px 18px rgba(6, 182, 212, 0.4), 0 2px 8px rgba(139, 92, 246, 0.3);
    }
    100% {
        background-position: 100% 50%;
        box-shadow: 0 6px 24px rgba(6, 182, 212, 0.6), 0 4px 12px rgba(139, 92, 246, 0.5);
    }
}

.btn-outline-alt {
    background: rgba(139, 92, 246, 0.1);
    color: var(--color-purple);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.btn-outline-alt:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: var(--border-radius-sm);
}

.w-100 { width: 100%; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }

/* Sticky Site Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--bg-primary-transparent, rgba(9, 12, 20, 0.7));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--border-glass);
    transition: var(--transition-smooth);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--text-main);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--border-glass);
    box-shadow: var(--shadow-premium);
    border-radius: var(--border-radius-lg);
}

/* Section Common Styling */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.12);
    color: var(--color-purple);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 160px 0 100px 0;
    overflow: hidden;
}

.hero-glow-1 {
    position: absolute;
    top: -10%;
    right: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: var(--border-glass);
    border-radius: 40px;
    padding: 6px 14px 6px 6px;
    margin-bottom: 24px;
}

.badge-tag {
    background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: var(--border-glass);
    padding-top: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

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

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.mockup-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.mockup-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(0,0,0,0) 65%);
    filter: blur(20px);
    z-index: 1;
}

.app-mockup-img {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Bento Grid Features */
.features-section {
    padding: 80px 0;
    position: relative;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 24px;
}

.bento-card {
    position: relative;
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    z-index: 2;
}

.bento-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.08), transparent 60%);
    transition: var(--transition-smooth);
    z-index: 1;
}

.bento-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium), var(--shadow-glow-purple);
    border-color: rgba(139, 92, 246, 0.3);
}

.bento-card:hover .bento-card-bg {
    opacity: 1;
    background: radial-gradient(circle at top right, rgba(236, 72, 153, 0.15), transparent 60%);
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--color-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 24px;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.bento-card:hover .card-icon {
    background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-description {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Bento Grid Spans */
.card-large {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
}

.card-large .card-content {
    width: 50%;
}

/* Dashboard Card - Web Interaktif Mockup */
.card-dashboard {
    grid-column: span 2;
    grid-row: span 2; /* Menempati 2 baris bento grid untuk mencegah tumpang tindih */
    flex-direction: row;
    align-items: stretch;
    padding: 0 !important;
    overflow: hidden;
}

.dashboard-card-text {
    width: 42%;
    flex-shrink: 0;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    z-index: 2;
    position: relative;
}

/* Dashboard Inline Mockup Container (no iframe) */
.dashboard-card-iframe {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.dashboard-card-iframe .dm-shell {
    display: flex;
    height: 100%;
    min-height: 0;
    background: #0a0c18;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #e8eaf0;
}

/* Sidebar */
.dm-sidebar {
    width: 44px;
    background: #0d1020;
    border-right: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    gap: 4px;
    flex-shrink: 0;
}

.dm-logo {
    width: 28px; height: 28px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; color: white; margin-bottom: 6px;
}

.dm-nav-item {
    width: 36px; height: 34px;
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    color: #8892a4; font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}

.dm-nav-item.dm-active {
    background: rgba(124,58,237,0.15);
    color: #a78bfa;
}

/* Main scrollable area */
.dm-main {
    flex: 1;
    min-height: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
}

.dm-main::-webkit-scrollbar { display: none; }

/* Top header */
.dm-header {
    padding: 12px 12px 0;
    flex-shrink: 0;
}

.dm-page-title { font-size: 0.9rem; font-weight: 700; }
.dm-page-sub   { font-size: 0.55rem; color: #8892a4; margin-top: 1px; }

.dm-info-cards { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }

.dm-info-card {
    background: #12152b;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex; align-items: center; justify-content: space-between;
}

.dm-ic-left { display: flex; flex-direction: column; }
.dm-ic-label { font-size: 0.45rem; text-transform: uppercase; letter-spacing: 0.7px; color: #8892a4; font-weight: 600; }
.dm-ic-value { font-size: 0.78rem; font-weight: 700; margin-top: 2px; }
.dm-ic-sub   { font-size: 0.48rem; color: #10b981; margin-top: 1px; }
.dm-ai-bar   { height: 2px; width: 60%; background: linear-gradient(90deg, #7c3aed, #0ea5e9); border-radius: 1px; margin-top: 3px; }

.dm-icon-box {
    width: 26px; height: 26px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem;
}

.dm-purple-bg { background: rgba(124,58,237,0.15); color: #a78bfa; }
.dm-blue-bg   { background: rgba(14,165,233,0.15);  color: #0ea5e9; }
.dm-green-bg  { background: rgba(16,185,129,0.15);  color: #10b981; }
.dm-red-bg    { background: rgba(239,68,68,0.15);   color: #ef4444; }

/* Tabs */
.dm-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 0 12px;
    margin-top: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0;
    flex-shrink: 0;
}
.dm-tabs::-webkit-scrollbar { display: none; }

.dm-tab {
    padding: 6px 8px;
    font-size: 0.55rem;
    color: #8892a4;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    display: flex; align-items: center; gap: 4px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.dm-tab.dm-active {
    color: #a78bfa;
    border-bottom-color: #7c3aed;
}

/* Tab panels */
.dm-panel {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px 32px;
    flex-shrink: 0;
}
.dm-panel.dm-active { display: flex; }

/* Metric cards */
.dm-metric {
    background: #12152b;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex; align-items: center; justify-content: space-between;
}
.dm-m-left { display: flex; flex-direction: column; }
.dm-m-label { font-size: 0.45rem; text-transform: uppercase; letter-spacing: 0.7px; color: #8892a4; font-weight: 600; }
.dm-m-value { font-size: 0.85rem; font-weight: 700; margin-top: 3px; }
.dm-m-sub   { font-size: 0.45rem; color: #8892a4; margin-top: 1px; }

/* AI insight */
.dm-ai {
    background: rgba(124,58,237,0.1);
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex; align-items: flex-start; gap: 7px;
    font-size: 0.54rem;
}
.dm-ai i { color: #a78bfa; font-size: 0.75rem; margin-top: 1px; flex-shrink: 0; }
.dm-ai-tag {
    display: inline-block; font-size: 0.42rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    background: rgba(124,58,237,0.25); color: #a78bfa;
    padding: 1px 5px; border-radius: 3px; margin-bottom: 3px;
}
.dm-ai-text { font-size: 0.54rem; color: #cbd5e1; line-height: 1.4; }

/* Chart */
.dm-chart-card {
    background: #12152b;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 10px 12px;
}
.dm-chart-title { font-size: 0.62rem; font-weight: 600; margin-bottom: 8px; }
.dm-bars {
    display: flex; align-items: flex-end; gap: 5px;
    height: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-left:  1px solid rgba(255,255,255,0.08);
    padding: 4px 4px 4px 6px;
}
.dm-bar {
    flex: 1; border-radius: 2px 2px 0 0;
    background: linear-gradient(180deg, #7c3aed 0%, rgba(124,58,237,0.15) 100%);
}
.dm-chart-labels {
    display: flex; justify-content: space-between;
    margin-top: 3px; font-size: 0.42rem; color: #8892a4;
}

/* Donut */
.dm-donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; }
.dm-donut-svg  { width: 60px; height: 60px; transform: rotate(-90deg); }
.dm-donut-bg   { fill: none; stroke: #1a1e35; stroke-width: 10; }
.dm-donut-fill { fill: none; stroke: #f59e0b; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 2 98; }
.dm-donut-val  { font-size: 0.65rem; font-weight: 700; color: #f59e0b; }
.dm-donut-lbl  { font-size: 0.5rem; color: #8892a4; }

/* Transaction list */
.dm-tx { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; background: #12152b; border: 1px solid rgba(255,255,255,0.07); border-radius: 7px; }
.dm-tx-left { display: flex; align-items: center; gap: 7px; }
.dm-tx-icon { width: 24px; height: 24px; border-radius: 50%; background: #1a1e35; display: flex; align-items: center; justify-content: center; font-size: 0.55rem; color: #8892a4; }
.dm-tx-name { font-size: 0.58rem; font-weight: 600; }
.dm-tx-cat  { font-size: 0.46rem; color: #8892a4; }
.dm-tx-amt  { font-size: 0.6rem; font-weight: 700; }

/* Budget */
.dm-month-row  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.dm-month-btn  { display: flex; align-items: center; gap: 4px; background: #12152b; border: 1px solid rgba(255,255,255,0.07); border-radius: 6px; padding: 4px 8px; font-size: 0.55rem; }
.dm-add-btn    { background: #7c3aed; color: white; border: none; border-radius: 6px; padding: 4px 8px; font-size: 0.55rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 3px; }
.dm-budget-tabs { display: flex; gap: 5px; margin-bottom: 6px; }
.dm-btab { border-radius: 20px; padding: 4px 8px; font-size: 0.52rem; font-weight: 600; cursor: pointer; border: 1px solid rgba(255,255,255,0.07); color: #8892a4; display: flex; align-items: center; gap: 3px; }
.dm-btab.dm-active { background: rgba(124,58,237,0.15); border-color: rgba(124,58,237,0.35); color: #a78bfa; }
.dm-summary { background: #12152b; border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; padding: 10px 12px; }
.dm-sum-title { font-size: 0.62rem; font-weight: 700; margin-bottom: 8px; }
.dm-sum-row { display: flex; flex-direction: column; gap: 1px; margin-bottom: 8px; }
.dm-sum-lbl { font-size: 0.47rem; color: #8892a4; }
.dm-sum-val { font-size: 0.75rem; font-weight: 700; }
.dm-bcat { background: #12152b; border: 1px solid rgba(255,255,255,0.07); border-left: 3px solid #7c3aed; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; }
.dm-bcat-hdr { display: flex; align-items: center; justify-content: space-between; }
.dm-bcat-name { font-size: 0.6rem; font-weight: 700; }
.dm-bcat-used { font-size: 0.47rem; color: #8892a4; }
.dm-progress { height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.dm-progress-fill { height: 100%; background: #7c3aed; border-radius: 2px; }
.dm-bcat-ftr { display: flex; align-items: center; justify-content: space-between; }
.dm-rem { font-size: 0.5rem; color: #10b981; font-weight: 600; }
.dm-pct { font-size: 0.47rem; color: #8892a4; }

/* Colour helpers */
.dm-green  { color: #10b981; }
.dm-blue   { color: #0ea5e9; }
.dm-red    { color: #ef4444; }
.dm-orange { color: #f59e0b; }
.dm-purple { color: #a78bfa; }
.dm-section-title { font-size: 0.72rem; font-weight: 700; }

/* Fade top */
.dm-fade-top {
    position: absolute; top: 0; left: 0; right: 0; height: 20px;
    background: linear-gradient(to bottom, #12152b, transparent);
    pointer-events: none; z-index: 5;
}


.card-interactive-visual {
    position: relative;
    width: 45%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dashboard Mockup Visual - Dark Theme Fibly */
.mockup-ui-wrapper {
    background: #0f111a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    width: 95%;
    max-width: 320px;
    height: 250px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto !important;
    scrollbar-width: none; /* Firefox */
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transform: perspective(800px) rotateY(-8deg) rotateX(4deg);
    transition: transform 0.4s ease;
    font-family: 'Inter', sans-serif;
    z-index: 10;
}

.mockup-ui-wrapper::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.bento-card:hover .mockup-ui-wrapper {
    transform: perspective(800px) rotateY(0deg) rotateX(0deg) translateY(-5px);
}

.mockup-dashboard-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.mockup-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mockup-metric-card {
    background: #181b2b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mockup-metric-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mockup-metric-label {
    font-size: 0.55rem;
    color: #8b92a5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.mockup-metric-value {
    font-size: 1.05rem;
    font-weight: 700;
}

.mockup-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* Fibly Theme Colors */
.val-green { color: #10b981; }
.val-blue { color: #0ea5e9; }
.val-red { color: #ef4444; }
.val-purple { color: #8b5cf6; }

.bg-green { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.bg-blue { background: rgba(14, 165, 233, 0.15); color: #0ea5e9; }
.bg-red { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.bg-purple { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }

.mockup-ai-insight {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.65rem;
    color: #cbd5e1;
}

.mockup-ai-insight i {
    color: #8b5cf6;
    font-size: 0.9rem;
}

.mockup-chart-card {
    background: #181b2b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
}

.mockup-chart-placeholder {
    height: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: 5px;
    gap: 8px;
}

.mockup-bar {
    width: 20%;
    background: linear-gradient(180deg, #8b5cf6 0%, rgba(139, 92, 246, 0.2) 100%);
    border-radius: 4px 4px 0 0;
}

.mockup-tx-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
}

.mockup-tx-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mockup-tx-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: #cbd5e1;
}

/* Scanner visual inside card */
.scan-visual {
    perspective: 800px;
}

.scanner-container {
    position: relative;
    width: 130px;
    height: 160px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 10px;
}

.receipt-paper {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 4px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: rotateX(10deg);
}

.receipt-line {
    font-size: 0.65rem;
    font-family: 'Courier New', Courier, monospace;
    color: #0f172a;
    line-height: 1.2;
}

.receipt-line.title {
    font-weight: bold;
    text-align: center;
    margin-bottom: 4px;
    font-size: 0.75rem;
}

.receipt-line.total {
    font-weight: bold;
    text-align: right;
    margin-top: 6px;
    border-top: 1px dashed #94a3b8;
    padding-top: 4px;
}

.scanner-laser {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-pink);
    box-shadow: 0 0 10px var(--color-pink), 0 0 20px var(--color-pink);
    animation: laser 3s ease-in-out infinite;
}

@keyframes laser {
    0%, 100% { top: 0%; opacity: 0.3; }
    50% { top: 97%; opacity: 1; }
}

.scanner-output {
    position: absolute;
    bottom: 10px;
    right: -20px;
    background: var(--bg-card, rgba(17, 21, 36, 0.95));
    border: 1px solid var(--color-purple);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transform: scale(0.9);
}

.tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.tag-food {
    background: rgba(139, 92, 246, 0.2);
    color: var(--color-purple);
}

.amount {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 4px;
}

/* Sync Visual Card */
.sync-visual {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.sync-node {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: var(--border-glass);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    position: relative;
    z-index: 3;
}

.sync-node i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.sync-node span {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
}

.sync-node.center-node {
    background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
    border: none;
    width: 70px;
    height: 70px;
    box-shadow: var(--shadow-glow-purple);
}

.sync-node.center-node i {
    color: white;
    font-size: 1.5rem;
}

.sync-node.center-node span {
    color: white;
    font-size: 0.75rem;
}

.sync-line {
    position: absolute;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.line-left {
    left: 20%;
    width: 30%;
    top: 50%;
    border-top: 2px dashed rgba(139, 92, 246, 0.4);
}

.line-right {
    right: 20%;
    width: 30%;
    top: 50%;
    border-top: 2px dashed rgba(236, 72, 153, 0.4);
}

/* Interactive Demo Section */
.demo-section {
    padding: 80px 0;
    position: relative;
}

.demo-dashboard-container {
    background: #0d111d;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-premium), 0 30px 60px rgba(0,0,0,0.8);
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    overflow: hidden;
    height: 620px;
}

/* --- COLUMN 1: Chat Bot Mockup --- */
.demo-chat-column {
    background: var(--bg-primary); /* Dark theme background */
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.chat-header {
    background: var(--bg-secondary); /* Accent background */
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: var(--border-glass);
}

.chat-bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
}

.chat-bot-info h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.chat-bot-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 2px 0 0 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-bot-info p::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--color-green);
    border-radius: 50%;
}

.chat-body {
    flex: 1 1 0%;
    min-height: 0;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-image: radial-gradient(rgba(255,255,255,0.02) 1px, transparent 0);
    background-size: 20px 20px;
}

.chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.4;
    position: relative;
    word-break: break-word;
}

.chat-bubble-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-pink) 100%);
    color: #ffffff;
    border-bottom-right-radius: 2px;
    box-shadow: var(--shadow-glow-purple);
}

.chat-bubble-bot {
    align-self: flex-start;
    background: var(--bg-card); /* Glass card background */
    color: var(--text-main);
    border-bottom-left-radius: 2px;
    border: 1px solid rgba(139, 92, 246, 0.2); /* subtle purple accent border */
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.chat-bubble-time {
    display: block;
    text-align: right;
    font-size: 0.65rem;
    color: var(--text-dark);
    margin-top: 4px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    display: inline-block;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.chat-input-area {
    background: var(--bg-secondary);
    padding: 16px;
    border-top: var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-simulation-triggers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trigger-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted, #8696a0);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.trigger-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.trigger-btn {
    background: var(--bg-card, rgba(255, 255, 255, 0.05));
    border: var(--border-glass);
    color: var(--text-main, #e9edef);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.trigger-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--color-purple);
    color: white;
}

.trigger-btn i {
    color: var(--color-purple);
    font-size: 0.95rem;
}

/* --- COLUMN 2: Google Sheets Mockup --- */
.demo-sheets-column {
    background: #11141c;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.sheets-header {
    background: #1b202c;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sheets-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sheets-title-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sheets-logo {
    color: #0f9d58; /* Google Sheets green */
    font-size: 1.25rem;
}

.sheets-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #e9edef;
}

.sheets-badge {
    background: rgba(15, 157, 88, 0.15);
    color: #0f9d58;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.sheets-menu-bar {
    display: flex;
    gap: 14px;
    font-size: 0.72rem;
    color: #8696a0;
}

.sheets-menu-item {
    cursor: pointer;
}

.sheets-menu-item.active, .sheets-menu-item:hover {
    color: #e9edef;
}

/* Sheets dashboard stats widgets inside spreadsheet mockup */
.sheets-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
    background: #131722;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sheet-stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sheet-stat-box:hover {
    background: rgba(255, 255, 255, 0.04);
}

.sheet-stat-label {
    font-size: 0.68rem;
    color: #8696a0;
}

.sheet-stat-value {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #e9edef;
}

.sheet-stat-value.income { color: #00e676; }
.sheet-stat-value.expense { color: #ff5252; }
.sheet-stat-value.balance { color: #00e5ff; }

/* Grid spreadsheet table */
.sheets-table-wrapper {
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
    background: #11141c;
}

.sheets-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    color: #e9edef;
    text-align: left;
}

.sheets-table th, .sheets-table td {
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 12px;
}

.sheets-table th {
    background: #171c26;
    font-weight: 600;
    color: #8696a0;
    position: sticky;
    top: 0;
    z-index: 2;
}

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

.sheets-cell-category {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sheets-cat-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.sheets-cat-food { background: rgba(139, 92, 246, 0.2); color: var(--color-purple); }
.sheets-cat-transport { background: rgba(236, 72, 153, 0.2); color: var(--color-pink); }
.sheets-cat-entertainment { background: rgba(6, 182, 212, 0.2); color: var(--color-cyan); }
.sheets-cat-income { background: rgba(16, 185, 129, 0.2); color: #0f9d58; }

.sheets-amount {
    font-weight: 600;
}

.sheets-amount.expense { color: #ff5252; }
.sheets-amount.income { color: #00e676; }

/* Glow indicator when new row is inserted */
.sheets-row-new {
    animation: sheets-row-pulse 2.5s ease;
}

@keyframes sheets-row-pulse {
    0% {
        background: rgba(16, 185, 129, 0.3);
        box-shadow: inset 0 0 12px rgba(16, 185, 129, 0.3);
    }
    100% {
        background: transparent;
    }
}

.sheets-footer-tabs {
    background: #171c26;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 8px 16px;
    display: flex;
    gap: 8px;
    font-size: 0.72rem;
}

.sheet-tab {
    padding: 4px 10px;
    border-radius: 4px;
    color: #8696a0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.sheet-tab.active {
    background: #11141c;
    color: #0f9d58;
    border-top: 2px solid #0f9d58;
    font-weight: 600;
}

/* Pricing Plans CSS */
.pricing-section {
    padding: 80px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition-smooth);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-premium);
}

.pricing-card.premium-plan {
    border: 2px solid var(--color-purple);
    box-shadow: var(--shadow-glow-purple);
    background: rgba(139, 92, 246, 0.05);
}

.pricing-card.premium-plan:hover {
    box-shadow: 0 20px 40px -15px rgba(139, 92, 246, 0.3), var(--shadow-glow-purple);
    background: rgba(139, 92, 246, 0.08);
}

.popular-ribbon {
    position: absolute;
    top: 24px;
    right: 24px;
    background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.plan-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.plan-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.plan-price {
    margin-bottom: 32px;
}

.plan-price .currency {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    vertical-align: top;
}

.plan-price .amount {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.plan-price .period {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    width: 100%;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.plan-features li i {
    color: var(--color-cyan);
    font-size: 1rem;
}

.plan-features li.disabled {
    color: var(--text-dark);
}

.plan-features li.disabled i {
    color: var(--text-dark);
}

.plan-select-btn {
    margin-top: auto;
}

/* Checkout / Multi-step Form Section */
.checkout-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.checkout-glow {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.checkout-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.checkout-sub {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.benefit-item {
    display: flex;
    gap: 16px;
}

.benefit-item .b-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--color-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.benefit-item h5 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.benefit-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.checkout-card-wrapper {
    position: relative;
    z-index: 5;
}

.checkout-trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.checkout-trust-badges .badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.checkout-trust-badges .badge-item i {
    color: var(--primary-color, #4F46E5);
}


.checkout-card {
    padding: 40px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Step Tracker Indicators */
.step-tracker {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    position: relative;
}

.step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    cursor: pointer;
}

.dot-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.dot-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-dot.active .dot-num {
    background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-glow-purple);
}

.step-dot.active .dot-title {
    color: var(--text-main);
}

.step-dot.completed .dot-num {
    background: var(--color-cyan);
    color: var(--bg-primary);
    border-color: transparent;
}

.step-line {
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    flex-grow: 1;
    margin: 0 10px;
    transform: translateY(-10px);
    z-index: 1;
    transition: var(--transition-smooth);
}

.step-line.filled {
    background: var(--color-cyan);
}

/* Form Sections styling */
.step-content {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.step-content.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.step-intro {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Form Groups & Inputs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
    position: relative;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    color: white;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus {
    border-color: var(--color-purple);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.password-input-wrapper {
    position: relative;
    display: flex;
    width: 100%;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 48px;
}

.btn-toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.05rem;
}

.error-msg {
    font-size: 0.75rem;
    color: var(--color-red);
    display: none;
}

.button-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

/* Plan Option Selection Radio cards */
.plan-selector-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.plan-option-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.plan-option-card input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.plan-option-card input[type="radio"]:checked {
    border-color: var(--color-purple);
}

.plan-option-card input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-purple);
    transform: scale(0);
    transition: var(--transition-smooth);
}

.plan-option-card input[type="radio"]:checked::before {
    transform: scale(1);
}

.plan-option-card.selected {
    background: rgba(139, 92, 246, 0.05);
    border-color: var(--color-purple);
}

.plan-option-details {
    flex-grow: 1;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.option-name {
    font-family: var(--font-heading);
    font-size: 1rem;
}

.badge-recom {
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    background: var(--color-purple);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    text-transform: uppercase;
}

.option-cost {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-main);
}

.sm-period {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.option-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Invoice Summary */
.invoice-summary {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.inv-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.inv-row.promo-discount {
    color: var(--color-green);
    font-weight: 500;
}

.inv-divider {
    border: none;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    margin: 12px 0;
}

.inv-row.total-row {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0;
}

/* Payment Methods selection layout */
.payment-methods-container {
    margin-bottom: 24px;
}

.payment-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pay-method-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-sm);
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.pay-method-card .method-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.pay-method-card span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

.pay-method-card.active {
    background: rgba(139, 92, 246, 0.05);
    border-color: var(--color-purple);
}

.pay-method-card.active .method-icon, .pay-method-card.active span {
    color: var(--color-purple);
}

/* Method details content */
.payment-method-details {
    display: none;
    margin-top: 20px;
    background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: var(--border-radius-md);
    padding: 20px;
}

.payment-method-details.active {
    display: block;
}

.instruction-text {
    font-size: 0.825rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* QRIS details spacing */
.qris-barcode-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.qris-barcode-box {
    background: white;
    color: black;
    border-radius: 12px;
    padding: 16px;
    width: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-premium);
}

.qris-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    margin-bottom: 12px;
}

.qris-tag { color: #f59e0b; }
.gpn-tag { color: #ef4444; }

.qris-qr-code {
    margin-bottom: 12px;
}

.merchant-name {
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}

.nmu-tag {
    font-size: 0.6rem;
    color: #64748b;
    margin-top: 2px;
}

.expiry-timer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-warning);
    font-weight: 500;
}

/* Bank Details Styling */
.bank-details-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.bank-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.bank-info-row span {
    color: var(--text-muted);
}

.copyable-text {
    cursor: pointer;
    color: var(--color-purple);
}

.copyable-text i {
    font-size: 0.8rem;
    margin-left: 4px;
}

.bank-warning-text {
    font-size: 0.75rem;
    color: var(--color-warning);
}

/* CC styles */
.cc-form-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cc-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 12px;
}

/* Loading Simulation Modal inside checkout */
.checkout-processing-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 12, 20, 0.95);
    z-index: 10;
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    text-align: center;
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
}

.pulse-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(139, 92, 246, 0.1);
    border-top: 4px solid var(--color-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.checkout-processing-overlay p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Success Card page styles */
.success-state {
    display: none;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

.success-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.success-icon-wrapper i {
    font-size: 4.5rem;
    color: var(--color-green);
    position: relative;
    z-index: 2;
}

.success-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(16, 185, 129, 0.2);
    filter: blur(15px);
    border-radius: 50%;
    z-index: 1;
}

.badge-plan-success {
    background: rgba(139, 92, 246, 0.2);
    color: var(--color-purple);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
}

.success-invoice-box {
    width: 100%;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--border-radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 24px 0;
}

.succ-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.succ-row span {
    color: var(--text-muted);
}

.status-badge {
    background: rgba(16, 185, 129, 0.2);
    color: var(--color-green);
    padding: 1px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.success-next-steps {
    text-align: left;
    background: rgba(139, 92, 246, 0.05);
    border-left: 3px solid var(--color-purple);
    padding: 16px;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    margin-bottom: 24px;
}

.success-next-steps h5 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.success-next-steps p {
    font-size: 0.825rem;
    color: var(--text-muted);
}

/* Testimonials Layout styling */
.testimonials-section {
    padding: 80px 0;
    overflow-x: hidden;
}

.testimonials-marquee-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.testimonials-marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: marquee-scroll 45s linear infinite;
    padding: 10px 0;
}

.testimonials-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    flex-shrink: 0;
    width: 380px;
    white-space: normal;
}

.btn-demo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-demo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.user-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-purple);
}

.testimonial-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
}

.stars {
    color: #fbbf24;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.testi-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 24px;
}

.testi-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.testi-user h6 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
}

.testi-user p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* FAQ Accordion Styling */
.faq-section {
    padding: 80px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.1);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 24px;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    outline: none;
}

.faq-question i {
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
    color: var(--color-purple);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 24px;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-bottom: 24px;
}

/* Footer Section CSS */
.site-footer {
    background: var(--bg-footer, #06080e);
    border-top: var(--border-glass);
    padding: 80px 0 0 0;
    margin-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding-bottom: 60px;
}

.footer-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 20px 0;
    max-width: 380px;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.footer-socials a:hover {
    background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-purple);
    border-color: transparent;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-column h5 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column ul a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-column ul a:hover {
    color: var(--text-main);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 32px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 16px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .card-large {
        grid-column: span 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .card-large .card-content {
        width: 100%;
    }

    /* Dashboard mockup card - mobile */
    .card-dashboard {
        grid-column: span 1;
        flex-direction: column;
        min-height: auto;
    }

    .dashboard-card-text {
        width: 100%;
        padding: 24px;
    }

    .dashboard-card-iframe {
        width: 100%;
        height: 380px;
    }

    .card-interactive-visual {
        width: 100%;
        height: 180px;
    }

    .demo-dashboard-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .demo-chat-column {
        height: 480px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .demo-sheets-column {
        height: 400px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .checkout-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 8px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 18, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px 0;
        z-index: 1000;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }


    .mobile-menu-toggle {
        display: block;
    }

    .nav-cta-btn {
        display: none;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .checkout-title {
        font-size: 2rem;
    }

    .checkout-card {
        padding: 24px 16px;
    }

    .step-tracker {
        margin-bottom: 24px;
    }

    .sidebar-menu {
        display: none;
    }

    .button-row {
        grid-template-columns: 1fr;
    }

    .payment-grid {
        grid-template-columns: 1fr;
    }

    .footer-links-group {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .trigger-buttons-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom Pricing Updates from screenshot layout */
.pricing-card-top-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.pricing-card-top-tag.manual {
    color: var(--color-cyan);
}
.pricing-card-top-tag.best-value {
    color: var(--color-purple);
    display: flex;
    align-items: center;
    gap: 8px;
}
.pricing-card-top-tag.power {
    color: #ff5252;
    display: flex;
    align-items: center;
    gap: 8px;
}
.badge-inline {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-green);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    text-transform: uppercase;
}
.pricing-card-paling-lengkap-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(16,185,129,0.3);
    z-index: 10;
}
.pricing-discount-badge {
    border: 1px dashed rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.08);
    color: var(--color-green);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 16px;
    display: inline-block;
}
.pricing-strikethrough-price {
    text-decoration: line-through;
    color: var(--text-dark);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.plan-price-main {
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 8px;
}
.plan-price-subtitle {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 12px;
}
.plan-price-subtitle span {
    font-weight: 400;
    color: var(--text-muted);
}
.plan-price-highlight-bubble {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 8px 12px;
    width: 100%;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 24px;
}
.pricing-card.premium-plan .plan-price-highlight-bubble {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}
.plan-feature-section-header {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    margin-top: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding-bottom: 4px;
    width: 100%;
}
.plan-features-list-updated {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
}
.plan-features-list-updated li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-main);
}
.plan-features-list-updated li i {
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.plan-features-list-updated li i.fa-check {
    color: var(--color-green);
}
.plan-features-list-updated li i.fa-xmark {
    color: var(--color-red);
    text-shadow: 0 0 6px rgba(239, 68, 68, 0.45);
    opacity: 1;
}
.plan-features-list-updated li.disabled {
    color: var(--text-dark);
}
.plan-features-list-updated li i.fa-lock {
    color: var(--color-warning);
    text-shadow: 0 0 6px rgba(245, 158, 11, 0.35);
    opacity: 0.9;
}
.pricing-bottom-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 24px;
}
.plan-key-stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-bottom: 24px;
}
.plan-key-stat-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 6px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.plan-key-stat-box .stat-val {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-main);
}
.plan-key-stat-box .stat-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Language Selector Styling */
.lang-selector {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-glass);
    padding: 3px 8px;
    border-radius: 20px;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 12px;
    position: relative;
    z-index: 105;
    pointer-events: auto;
}
.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    transition: var(--transition-smooth);
    padding: 2px 6px;
    border-radius: 12px;
    position: relative;
    z-index: 106;
    pointer-events: auto;
}
.lang-btn:hover {
    color: var(--text-main);
}
.lang-btn.active {
    background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
    color: white;
    box-shadow: var(--shadow-glow-purple);
}
.lang-divider {
    color: rgba(255, 255, 255, 0.15);
    font-weight: 300;
}

/* ==========================================================================
   Manual Book Modal Styles
   ========================================================================== */
.manual-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.manual-modal.active {
    display: flex;
}

.manual-modal-content {
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-premium);
    animation: modalFadeIn 0.3s ease-out;
}

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

.manual-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.manual-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

.close-modal-btn:hover {
    color: white;
}

.manual-modal-body {
    padding: 24px;
    overflow-y: auto;
    color: var(--text-color);
    line-height: 1.6;
}

/* Markdown styling inside modal */
.markdown-body h1, .markdown-body h2, .markdown-body h3 {
    color: white;
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
}

.markdown-body h2 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.markdown-body p {
    margin-bottom: 16px;
}

.markdown-body code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.markdown-body pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 16px;
    border-radius: var(--border-radius-md);
    overflow-x: auto;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.markdown-body pre code {
    background: none;
    padding: 0;
}

.markdown-body ul, .markdown-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

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

.markdown-body hr {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 24px 0;
}

/* Toast Notifications */
.custom-toast {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 16px 20px;
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-premium);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 300px;
    max-width: 450px;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1), toastFadeOut 0.3s 4.7s forwards;
    position: relative;
    overflow: hidden;
}
.custom-toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-purple), var(--color-pink));
    animation: toastProgress 5s linear forwards;
}
.custom-toast.success::after {
    background: var(--color-green);
}
.custom-toast.warning::after {
    background: #f39c12;
}
.custom-toast.info::after {
    background: var(--color-cyan);
}
@keyframes toastSlideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes toastFadeOut {
    to { transform: translateX(120%); opacity: 0; }
}
@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Beautiful Hourglass/Pulse Wait Animation */
.cool-waiting-anim {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 20px auto;
}
.glowing-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.15) 0%, transparent 70%);
    animation: circlePulse 2s infinite ease-in-out;
}
.hourglass-spinner {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    font-size: 32px;
    color: #f39c12;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 15px rgba(243, 156, 18, 0.5);
    animation: hourglassFlip 2.5s infinite ease-in-out;
}
@keyframes circlePulse {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0.9; }
}
@keyframes hourglassFlip {
    0% { transform: rotate(0deg); }
    40% { transform: rotate(180deg); }
    50% { transform: rotate(180deg); }
    90% { transform: rotate(360deg); }
    100% { transform: rotate(360deg); }
}

/* Matrix Table Styling */
.pricing-matrix-container {
    width: 100%;
    max-width: 1000px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem 0;
    margin: 3rem auto 0 auto;
    overflow-x: auto;
}

.pricing-matrix-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: center;
    min-width: 700px;
}

/* Base cells */
.pricing-matrix-table th, 
.pricing-matrix-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-matrix-table th {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
}

.pricing-matrix-table td {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.pricing-matrix-table tr:last-child td {
    border-bottom: none;
}

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

/* Sticky First Column */
.pricing-matrix-table th:first-child,
.pricing-matrix-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    text-align: left;
    background: var(--bg-secondary); /* Solid background to prevent text overlapping */
    padding-left: 2rem;
    min-width: 160px;
}

.pricing-matrix-table th:last-child,
.pricing-matrix-table td:last-child {
    padding-right: 2rem;
}

.pricing-matrix-table td:first-child {
    color: var(--text-main);
    font-weight: 500;
}

/* Subtle gradient shadow on the sticky column */
.pricing-matrix-table th:first-child::after,
.pricing-matrix-table td:first-child::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    bottom: 0;
    width: 10px;
    background: linear-gradient(to right, rgba(0,0,0,0.15) 0%, transparent 100%);
    pointer-events: none;
}

/* Icons */
.pricing-matrix-table .check-icon {
    color: var(--color-green);
    font-size: 1.1rem;
}

.pricing-matrix-table .cross-icon {
    color: var(--color-red);
    font-size: 1.1rem;
    opacity: 0.7;
}

/* AI Section row override */
.ai-section-row td {
    padding: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    position: static !important;
    background: rgba(139, 92, 246, 0.1) !important;
    color: var(--color-purple) !important;
}

.ai-section-row td::after {
    display: none !important;
}

/* Matrix Table Premium Column Highlights */
.plan-header-cell {
    vertical-align: top;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}

/* Fibly+ Column (3rd column) */
.pricing-matrix-table th:nth-child(3),
.pricing-matrix-table td:nth-child(3) {
    border-left: 2px solid rgba(139, 92, 246, 0.3);
    border-right: 2px solid rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.02);
}
.pricing-matrix-table th:nth-child(3) {
    border-top: 2px solid var(--color-purple);
    border-left: 2px solid var(--color-purple);
    border-right: 2px solid var(--color-purple);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -10px 30px rgba(139, 92, 246, 0.15);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.02) 100%) !important;
}
.pricing-matrix-table tr:last-child td:nth-child(3) {
    border-bottom: 2px solid var(--color-purple);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

/* Pro+ Column (4th column) */
.pricing-matrix-table th:nth-child(4),
.pricing-matrix-table td:nth-child(4) {
    border-left: 2px solid rgba(6, 182, 212, 0.3);
    border-right: 2px solid rgba(6, 182, 212, 0.3);
    background: rgba(6, 182, 212, 0.02);
}
.pricing-matrix-table th:nth-child(4) {
    border-top: 2px solid var(--color-cyan);
    border-left: 2px solid var(--color-cyan);
    border-right: 2px solid var(--color-cyan);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -10px 30px rgba(6, 182, 212, 0.15);
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.1) 0%, rgba(6, 182, 212, 0.02) 100%) !important;
}
.pricing-matrix-table tr:last-child td:nth-child(4) {
    border-bottom: 2px solid var(--color-cyan);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15);
}

/* Matrix Table Mobile Font & Spacing Adjustments */
.matrix-title {
    margin-bottom: 0.5rem; 
    font-size: 1.2rem; 
    font-weight: 700; 
    color: var(--text-main);
}
.matrix-subtitle {
    font-size: 0.85rem; 
    font-weight: normal; 
    color: var(--text-muted); 
    white-space: normal; 
    line-height: 1.4;
}
.plan-tag {
    justify-content: center;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .pricing-matrix-table th {
        padding: 12px 8px !important;
    }
    .plan-header-cell {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }
    .matrix-title {
        font-size: 0.95rem;
        margin-bottom: 0;
    }
    .matrix-subtitle {
        display: none; /* Hide subtitle to reduce height on mobile */
    }
    .plan-name {
        font-size: 1.1rem !important;
        margin-bottom: 4px !important;
    }
    .plan-price-main {
        font-size: 1.15rem !important;
        margin-bottom: 8px !important;
    }
    .pricing-strikethrough-price {
        font-size: 0.75rem !important;
    }
    .plan-select-btn {
        padding: 0.4rem 0.5rem !important;
        font-size: 0.8rem !important;
    }
    .plan-tag {
        font-size: 0.65rem !important;
        margin-bottom: 4px !important;
        padding: 2px 6px !important;
    }
    .pricing-matrix-table td {
        font-size: 0.85rem;
        padding: 12px 8px !important;
    }
    .pricing-matrix-table .check-icon,
    .pricing-matrix-table .cross-icon {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .pricing-matrix-container {
        padding: 1.5rem 0;
        margin-left: -16px; /* Typically container has 16px padding on mobile */
        margin-right: -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        width: calc(100% + 32px);
        max-width: none;
    }
    .pricing-matrix-table td:first-child,
    .pricing-matrix-table th:first-child {
        padding-left: 16px !important;
        min-width: 140px; /* Important to keep width */
    }
    .pricing-matrix-table td:last-child,
    .pricing-matrix-table th:last-child {
        padding-right: 16px !important;
    }
}

/* Floating Demo Popup */
.floating-demo-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 12, 24, 0.85);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.floating-demo-popup.show {
    opacity: 1;
    pointer-events: auto;
}

.demo-popup-content {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    max-width: 450px;
    width: 90%;
    text-align: center;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-demo-popup.show .demo-popup-content {
    transform: translateY(0) scale(1);
}

.demo-popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-purple), var(--color-cyan));
}

.demo-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

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

.demo-popup-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--color-purple), var(--color-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.demo-popup-text h4 {
    margin: 0 0 6px 0;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.demo-popup-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.demo-popup-content .btn {
    margin-top: 8px;
    width: 100%;
    font-size: 0.95rem;
    padding: 12px;
}

@media (max-width: 768px) {
    .floating-demo-popup {
        padding: 20px;
    }
    
    .floating-demo-popup.show {
        opacity: 1;
    }
}
