/* 
   LocalMate - Premium Landing Page Stylesheet
   Rich Aesthetics, Dark Mode Default, Glassmorphism, Neon Accents
*/

:root {
    /* Color Palette */
    --bg-dark: hsl(140, 20%, 98%);
    --bg-dark-rgb: 244, 248, 246;
    --bg-card: hsl(0, 0%, 100%);
    --bg-card-hover: hsl(140, 20%, 94%);
    --border-color: hsl(140, 15%, 88%);
    --border-hover: hsl(142, 76%, 36%);
    
    --text-primary: hsl(140, 40%, 12%);
    --text-secondary: hsl(140, 15%, 42%);
    --text-muted: hsl(140, 10%, 60%);
    
    /* Neon Accent Colors */
    --primary: hsl(142, 76%, 36%);         /* Emerald Green */
    --primary-rgb: 16, 185, 129;
    --secondary: hsl(172, 76%, 35%);       /* Teal/Mint */
    --secondary-rgb: 13, 148, 136;
    --accent: hsl(84, 80%, 45%);           /* Yellow Green / Lime */
    --accent-rgb: 132, 204, 22;
    --error: #f43f5e; /* Rose/Red */
    --warning: #f59e0b; /* Amber */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-glow: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(13, 148, 136, 0.12));
    --gradient-dark: linear-gradient(180deg, hsl(140, 20%, 97%) 0%, hsl(140, 20%, 94%) 100%);
    
    /* Fonts */
    --font-heading: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Transitions & Shadows */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    
    --shadow-sm: 0 2px 8px rgba(16, 185, 129, 0.04);
    --shadow-md: 0 10px 30px -10px rgba(16, 185, 129, 0.08);
    --shadow-lg: 0 20px 40px -15px rgba(16, 185, 129, 0.15);
    --shadow-neon: 0 0 20px rgba(16, 185, 129, 0.2);
    --shadow-neon-cyan: 0 0 20px rgba(13, 148, 136, 0.2);
}

/* ==========================================================================
   Base & Reset Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

li {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Decorative Glow Background
   ========================================================================== */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

.glow-1 {
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.glow-2 {
    background: var(--secondary);
    top: 30%;
    right: -200px;
}

.glow-3 {
    background: var(--primary);
    bottom: 10%;
    left: -200px;
}

/* ==========================================================================
   Reusable Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-cyan { color: var(--secondary); }
.text-purple { color: var(--primary); }
.text-green { color: var(--accent); }
.w-full { width: 100%; }

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.03em;
}

/* Section Common */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    max-width: 760px;
    margin: 0 auto 60px auto;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-neon);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 1;
}

.btn-primary > * {
    position: relative;
    z-index: 2;
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(16, 185, 129, 0.05);
    border-color: var(--primary);
    box-shadow: var(--shadow-neon);
    transform: translateY(-2px);
}

.btn-tertiary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-tertiary:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(244, 248, 246, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.site-header.scrolled {
    padding: 10px 0;
    background: rgba(244, 248, 246, 0.95);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
}

.logo-text {
    letter-spacing: -0.03em;
}

.logo-text .highlight-text {
    color: var(--secondary);
}

.main-nav ul {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-normal);
}

.hero-section {
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-subtitle strong {
    color: var(--text-primary);
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.trust-item svg {
    color: var(--accent);
}

/* Hero Visual: Interactive Live Chat Simulator */
.hero-visual {
    display: flex;
    justify-content: center;
}

.dashboard-mockup {
    width: 100%;
    max-width: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(16, 185, 129, 0.05);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(16, 185, 129, 0.05);
}

.window-controls {
    display: flex;
    gap: 6px;
}

.window-controls .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-controls .red { background-color: var(--error); }
.window-controls .yellow { background-color: var(--warning); }
.window-controls .green { background-color: var(--accent); }

.mockup-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 15px;
    text-align: center;
    flex: 1;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
}

.status-dot.pulsing {
    animation: pulse 2s infinite;
}

.status-text {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}

.mockup-body {
    display: grid;
    grid-template-columns: 80px 1fr;
    height: 320px;
}

.mockup-sidebar {
    background: hsl(140, 25%, 95%);
    border-right: 1px solid var(--border-color);
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.65rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: var(--transition-fast);
    position: relative;
    word-break: keep-all;
}

.sidebar-item.active, .sidebar-item:hover {
    color: var(--primary);
    background: rgba(16, 185, 129, 0.08);
}

.sidebar-item .icon {
    font-size: 1.1rem;
}

.badge-count {
    position: absolute;
    top: 2px;
    right: 8px;
    background-color: var(--error);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
}

.mockup-chat-area {
    display: flex;
    flex-direction: column;
    background: hsl(140, 20%, 98%);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: hsl(140, 25%, 94%);
}

.client-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.client-details .client-name {
    font-size: 0.8rem;
    font-weight: 600;
}

.client-details .client-channel {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.message.incoming {
    align-self: flex-start;
}

.message.outgoing {
    align-self: flex-end;
}

.msg-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.incoming .msg-bubble {
    background: hsl(0, 0%, 100%);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 2px;
}

.outgoing .msg-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 2px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.msg-time {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 4px;
    padding: 0 4px;
}

.incoming .msg-time { align-self: flex-start; }
.outgoing .msg-time { align-self: flex-end; }

.mockup-footer-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border-color);
    background: hsl(140, 25%, 94%);
}

.stat-card {
    padding: 12px;
    text-align: center;
    border-right: 1px solid var(--border-color);
}

.stat-card:last-child {
    border-right: none;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 2px;
    line-height: 1.2;
    word-break: keep-all;
}

.stat-value {
    font-size: clamp(0.72rem, 1.2vw, 0.95rem);
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .stat-card {
        padding: 8px 4px;
    }
}

/* Chat simulation typing animation rules */
.animate-msg {
    opacity: 0;
    transform: translateY(10px);
}

/* We will trigger active class via JS */
.animate-msg.active {
    animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   Nỗi Đau Chủ Tiệm Section
   ========================================================================== */
.problems-section {
    background: var(--gradient-dark);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.problem-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.08);
    padding: 40px 32px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -15px rgba(16, 185, 129, 0.05);
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--error), #fda4af);
    opacity: 0.8;
    transition: all 0.4s ease;
}

.problem-card:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 63, 94, 0.25);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px -20px rgba(244, 63, 94, 0.15), 0 0 0 1px rgba(244, 63, 94, 0.05);
}
.problem-card:hover::before {
    height: 4px;
    opacity: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.card-icon.error-icon {
    background: rgba(244, 63, 94, 0.06);
    color: var(--error);
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: 14px;
    transition: all 0.4s ease;
}
.problem-card:hover .card-icon.error-icon {
    transform: scale(1.05) rotate(-3deg);
    background: rgba(244, 63, 94, 0.1);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.1);
}

.problem-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.problem-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ==========================================================================
   Giải Pháp Section
   ========================================================================== */
.solutions-grid {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.solution-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.solution-item.reverse {
    direction: rtl;
}

.solution-item.reverse .solution-text {
    direction: ltr;
}

.solution-text {
    display: flex;
    flex-direction: column;
}

.solution-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(16, 185, 129, 0.15);
    line-height: 1;
    margin-bottom: 8px;
}

.solution-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.solution-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.solution-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.solution-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.solution-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    background: rgba(16, 185, 129, 0.1);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.solution-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.graphic-box {
    width: 100%;
    max-width: 440px;
    height: 260px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

/* Chat box graphic */
.chat-box {
    gap: 16px;
}

.chat-row {
    display: flex;
    gap: 12px;
    max-width: 85%;
}

.chat-row.received {
    align-self: flex-start;
}

.chat-row.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-row .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.chat-row.sent .avatar {
    background: rgba(16, 185, 129, 0.2);
}

.chat-row .bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.78rem;
    line-height: 1.4;
}

.chat-row.received .bubble {
    background: rgba(255, 255, 255, 0.08);
}

.chat-row.sent .bubble {
    background: var(--primary);
    color: white;
}

/* Reminder box graphic */
.reminder-box {
    padding: 0;
    overflow: hidden;
    height: auto;
}

.reminder-card {
    background: #111827;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.reminder-header {
    background: #1f2937;
    padding: 12px 16px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.reminder-body {
    padding: 16px;
    font-size: 0.8rem;
    color: #d1d5db;
}

.reminder-body p {
    margin-bottom: 8px;
}

.reminder-buttons {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-remind {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-remind.accept {
    color: var(--accent);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-remind.accept:hover {
    background: rgba(16, 185, 129, 0.05);
}

.btn-remind.change {
    color: var(--text-secondary);
}

.btn-remind.change:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Dashboard box graphic */
.dashboard-box {
    align-items: center;
}

.mini-chart {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.chart-header {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.chart-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 100px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.chart-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 40px;
}

.chart-bar-container .bar {
    width: 20px;
    background: var(--gradient-primary);
    border-radius: 4px 4px 0 0;
    animation: barGrow 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chart-bar-container:nth-child(2) .bar {
    background: var(--secondary);
}

.chart-bar-container .label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.chart-summary {
    font-size: 0.78rem;
    text-align: center;
    color: var(--text-primary);
}

/* ==========================================================================
   Portfolio Section
   ========================================================================== */
.portfolio-section {
    background: var(--gradient-dark);
}

.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.tab-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-neon);
}

/* Portfolio Tabs Content Animation */
.portfolio-tab-content {
    display: none;
}

.portfolio-tab-content.active {
    display: block;
    animation: fadeInTab 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.case-study-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.case-info {
    display: flex;
    flex-direction: column;
}

.case-badge {
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-info h3 {
    font-size: 2.2rem;
    line-height: 1.25;
    margin-bottom: 20px;
}

.case-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.case-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.metric {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.metric .num {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: 4px;
}

.metric .lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.case-testimonial {
    background: rgba(16, 185, 129, 0.04);
    border-left: 3px solid var(--primary);
    padding: 24px;
    border-radius: 0 12px 12px 0;
}

.case-testimonial p {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.case-testimonial cite {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.case-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--secondary);
    filter: blur(50px);
    opacity: 0.1;
    top: -50px;
    right: -50px;
}

/* Before / After graphic style */
.case-before-after {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ba-item {
    padding: 16px;
    border-radius: 10px;
}

.ba-item h4 {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.ba-item.before {
    background: rgba(244, 63, 94, 0.05);
    border: 1px solid rgba(244, 63, 94, 0.1);
}

.ba-item.before h4 { color: var(--error); }

.ba-item.after {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.ba-item.after h4 { color: var(--accent); }

.ba-item ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ba-item li {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Flow Chart style */
.flow-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.flow-node {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center;
    width: 100%;
}

.flow-node.highlight {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.3);
    color: var(--secondary);
    font-weight: 600;
}

.flow-node.success {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--accent);
    font-weight: 600;
}

.node-arrow {
    font-size: 0.8rem;
    margin-top: 6px;
    color: var(--text-muted);
}

/* Branch Simulator style */
.branch-simulator {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.branch-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.indicator.full { background-color: var(--error); }
.indicator.free { background-color: var(--accent); }

.branch-status-action {
    background: rgba(16, 185, 129, 0.1);
    border: 1px dashed var(--primary);
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    text-align: center;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-normal);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

/* Popular pricing card highlighted style */
.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-neon);
    background: hsl(140, 25%, 97%);
    transform: scale(1.03);
}

.pricing-card.popular:hover {
    transform: scale(1.03) translateY(-8px);
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.25);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 100px;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.pricing-header {
    margin-bottom: 32px;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.pricing-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.4;
}

.price {
    display: flex;
    align-items: baseline;
    font-family: var(--font-heading);
}

.price .currency {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    align-self: flex-start;
    margin-right: 2px;
}

.price .amount {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.price .period {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.pricing-features {
    margin-bottom: 40px;
    flex-grow: 1;
}

.pricing-features ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.pricing-cta .btn {
    display: flex;
    width: 100%;
}

/* Guarantee Box (Alex Hormozi Model) */
.guarantee-box {
    background: rgba(245, 158, 11, 0.03);
    border: 1px dashed var(--warning);
    padding: 32px;
    border-radius: 16px;
    display: flex;
    gap: 24px;
    align-items: center;
    max-width: 960px;
    margin: 40px auto 0 auto;
}

.guarantee-icon {
    font-size: 3rem;
    line-height: 1;
}

.guarantee-content h3 {
    font-size: 1.25rem;
    color: var(--warning);
    margin-bottom: 8px;
}

.guarantee-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.guarantee-content p strong {
    color: var(--text-primary);
}

/* ==========================================================================
   Lead Capture Form Section
   ========================================================================== */
.consultation-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.consult-info h2 {
    font-size: 2.3rem;
    line-height: 1.25;
    margin-bottom: 24px;
}

.consult-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.bonus-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.bonus-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.bonus-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.bonus-list li div {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.bonus-list li div strong {
    color: var(--text-primary);
}

.urgency-note {
    background: rgba(244, 63, 94, 0.05);
    border-left: 3px solid var(--error);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    font-size: 0.85rem;
    color: #fda4af;
    line-height: 1.5;
}

/* Form Styling */
.consult-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.form-header {
    margin-bottom: 30px;
}

.form-header h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.form-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.form-group select option {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

.submit-btn {
    margin-top: 10px;
}

/* ==========================================================================
   Success Modal (Popup)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    text-align: center;
    box-shadow: var(--shadow-lg), var(--shadow-neon);
    transform: scale(0.9);
    transition: var(--transition-normal);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.modal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.modal-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.modal-content p strong {
    color: var(--text-primary);
}

.modal-content .btn {
    margin-top: 16px;
    width: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: hsl(140, 25%, 94%);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px 0;
    font-size: 0.9rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    line-height: 1.6;
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-contact p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes barGrow {
    from {
        height: 0;
    }
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animation classes triggered by JS */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* ==========================================================================
   Timeline Steps Section
   ========================================================================== */
.timeline-section {
    background: var(--gradient-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.timeline-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.timeline-step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 32px;
    position: relative;
    transition: var(--transition-normal);
}

.timeline-step-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-neon);
    background: var(--bg-card-hover);
}

.step-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.timeline-step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.timeline-step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   Responsive Styles (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 1024px) {
    .timeline-steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .solutions-grid {
        gap: 80px;
    }
    
    .solution-item {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .solution-item.reverse {
        direction: ltr;
    }
    
    .solution-item.reverse .solution-text {
        direction: ltr;
    }
    
    .solution-graphic {
        order: 2;
    }
    
    .case-study-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-8px);
    }
    
    .consultation-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding-top: 130px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    /* Header mobile navigation */
    .mobile-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(244, 248, 246, 0.98);
        backdrop-filter: blur(16px);
        transition: var(--transition-normal);
        padding: 40px 24px;
        border-top: 1px solid var(--border-color);
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .header-cta {
        display: none; /* Hide on mobile header, user can scroll to form */
    }
    
    /* Problems */
    .problems-grid {
        grid-template-columns: 1fr;
    }
    
    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .guarantee-box {
        flex-direction: column;
        text-align: center;
    }
    
    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Responsive Headings & Adjustments */
    .solution-text h3 {
        font-size: clamp(1.35rem, 4.5vw, 1.6rem);
        word-break: keep-all;
    }
    .case-info h3 {
        font-size: clamp(1.4rem, 5vw, 1.75rem);
        word-break: keep-all;
    }
    .pricing-header h3 {
        font-size: clamp(1.2rem, 4vw, 1.4rem);
        word-break: keep-all;
    }
    .guarantee-box {
        padding: 24px;
    }
    .guarantee-content h3 {
        font-size: clamp(1.1rem, 3.5vw, 1.3rem);
        word-break: keep-all;
    }
}

/* Mobile Nav Toggle Icon Change */
.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Typing Indicator Animation */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    border-bottom-left-radius: 2px;
    align-self: flex-start;
    max-width: 80%;
    margin-top: 4px;
}
.incoming .typing-indicator {
    background: #ffffff;
}
.outgoing .typing-indicator {
    background: var(--primary);
    border-bottom-right-radius: 2px;
    border-bottom-left-radius: 14px;
    align-self: flex-end;
}
.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
    animation: typingBounce 1.4s infinite ease-in-out both;
}
.outgoing .typing-dot {
    background-color: rgba(255, 255, 255, 0.9);
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.2); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.typewriter-cursor::after {
    content: '|';
    animation: blinkCursor 0.8s infinite;
    font-weight: 300;
    color: var(--primary);
}
@keyframes blinkCursor {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Interactive ROI Calculator Widget */
.roi-calculator-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}
.roi-calculator-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}
.roi-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    position: relative;
    z-index: 1;
}
@media (max-width: 768px) {
    .roi-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .roi-calculator-container {
        padding: 24px;
    }
}
.roi-inputs {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.roi-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.roi-label-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
}
.roi-value-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 700;
}
.roi-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: var(--border-color);
    outline: none;
    transition: opacity .2s;
}
.roi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
    transition: transform var(--transition-fast);
}
.roi-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}
.roi-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
    transition: transform var(--transition-fast);
}
.roi-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.roi-outputs {
    background: rgba(16, 185, 129, 0.03);
    border: 1px dashed rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}
.roi-output-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}
.roi-output-item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}
.roi-output-item.highlight-roi {
    background: var(--gradient-primary);
    margin: 10px -15px 0 -15px;
    padding: 16px 20px;
    border-radius: 12px;
    color: white;
    box-shadow: var(--shadow-neon);
}
.roi-output-item.highlight-roi .roi-output-val {
    color: white;
    font-size: clamp(1.2rem, 3.5vw, 1.6rem);
    white-space: nowrap;
}
.roi-output-lbl {
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.highlight-roi .roi-output-lbl {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}
.roi-output-val {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Image styling updates for premium layout */
.case-visual-img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}
.case-visual-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.solution-graphic img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   AI Sandbox (Trình Thử Nghiệm AI) Styles
   ========================================================================== */
.sandbox-container {
    max-width: 900px;
    margin: 40px auto 0 auto;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.05);
    transition: var(--transition-normal);
}

.sandbox-form-card, .sandbox-terminal-card, .sandbox-results-card {
    transition: var(--transition-normal);
}

.sandbox-form-card .form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
    text-align: center;
}

.form-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-group-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Terminal Console Styles */
.sandbox-terminal-card {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.terminal-header {
    background: #1e293b;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #334155;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.terminal-buttons .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-buttons .dot.red { background: #ef4444; }
.terminal-buttons .dot.yellow { background: #f59e0b; }
.terminal-buttons .dot.green { background: #10b981; }

.terminal-title {
    color: #94a3b8;
    font-family: monospace;
    font-size: 0.85rem;
}

.terminal-body {
    padding: 25px;
    min-height: 220px;
    max-height: 350px;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.terminal-line {
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(5px);
    animation: terminalFadeIn 0.3s forwards;
}

.terminal-line.info { color: #38bdf8; }
.terminal-line.warn { color: #f59e0b; }
.terminal-line.success { color: #4ade80; }
.terminal-line.input { color: #e2e8f0; }

@keyframes terminalFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Results Styles */
.results-header-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .results-header-grid {
        grid-template-columns: 1fr;
    }
}

.score-box {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-title {
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 700;
}

.score-value-circle {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
}

.score-value-circle .score-max {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 500;
}

.score-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.tips-box {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
}

.tips-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tips-list li {
    position: relative;
    padding-left: 25px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tips-list li::before {
    content: "⚠️";
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 0.95rem;
}

/* Chatbot Script Block */
.script-box {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.script-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.script-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.script-content-wrapper {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.script-content-wrapper pre {
    margin: 0;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
    font-style: italic;
}

/* Offer Box */
.offer-box {
    background: var(--gradient-glow);
    border: 1px dashed rgba(16, 185, 129, 0.4);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

@media (max-width: 900px) {
    .offer-box {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .offer-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .offer-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.offer-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.offer-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.offer-actions {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

/* ==========================================================================
   Interactive Widgets Styles (Workflow & Google Maps rankings)
   ========================================================================== */
.interactive-workflow-widget, .interactive-maps-widget {
    direction: ltr;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.04);
    overflow: hidden;
    transition: var(--transition-normal);
    width: 100%;
}

.interactive-workflow-widget:hover, .interactive-maps-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(16, 185, 129, 0.08);
}

.widget-header {
    background: rgba(16, 185, 129, 0.06);
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.widget-dots {
    display: flex;
    gap: 6px;
    margin-right: 15px;
}

.widget-dots .w-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.widget-dots .w-dot.red { background: #ef4444; }
.widget-dots .w-dot.yellow { background: #f59e0b; }
.widget-dots .w-dot.green { background: #10b981; }

.widget-title {
    color: var(--text-secondary);
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Workflow Widget */
.widget-body {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

@media (max-width: 768px) {
    .widget-body {
        flex-direction: column;
        gap: 20px;
    }
    .wf-arrow-container {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}

.wf-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.card-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    align-self: flex-start;
    text-transform: uppercase;
}

.tag-ai {
    background: rgba(56, 189, 248, 0.1);
    color: #0284c7;
}

.tag-human {
    background: rgba(167, 139, 250, 0.1);
    color: #6d28d9;
}

.post-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
}

.post-date {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-left: auto;
}

.post-text {
    font-size: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
    background: #f8fafc;
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid #0284c7;
}

.post-image-placeholder {
    height: 60px;
    background: #f1f5f9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    border: 1px dashed var(--border-color);
}

.wf-arrow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 60px;
}

.wf-arrow-line {
    width: 30px;
    height: 2px;
    background: var(--primary);
    position: relative;
}

.wf-arrow-line::after {
    content: "";
    position: absolute;
    right: -2px;
    top: -4px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid var(--primary);
}

.wf-badge.pending {
    font-size: 0.6rem;
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 5px;
    white-space: nowrap;
}

.auditor-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auditor-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auditor-avatar {
    font-size: 1.5rem;
}

.auditor-meta {
    display: flex;
    flex-direction: column;
}

.auditor-meta strong {
    font-size: 0.8rem;
    color: var(--text-primary);
}

.auditor-meta span {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.audit-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.audit-checklist li {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.audit-checklist li.checked {
    color: var(--primary);
    font-weight: 500;
}

.btn-publish-approved {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
}

.btn-publish-approved:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Maps Widget */
.maps-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.maps-search-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    border: none;
    background: transparent;
    font-size: 0.8rem;
    color: var(--text-primary);
    width: 100%;
    font-weight: 500;
}

.maps-results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-result-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.01);
    transition: var(--transition-fast);
}

.map-result-item:hover {
    border-color: rgba(16, 185, 129, 0.3);
}

.map-result-item.active {
    border: 1.5px solid var(--primary);
    background: rgba(16, 185, 129, 0.03);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.08);
}

.rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.map-result-item.active .rank-badge {
    background: var(--gradient-primary);
    color: white;
}

.result-info {
    flex: 1;
}

.result-info .biz-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.text-gradient-green {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-info .biz-stars {
    font-size: 0.72rem;
    color: #f59e0b;
    margin-bottom: 2px;
}

.result-info .biz-meta {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin: 0;
}

.badge-seo {
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.65rem;
}

.rank-growth {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary);
}

.growth-arrow {
    font-size: 0.8rem;
    font-weight: 700;
}

.growth-num {
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Animations */
.animate-pulse-border {
    animation: pulseBorder 2s infinite ease-in-out;
}

@keyframes pulseBorder {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.08);
        border-color: var(--primary);
    }
    50% {
        box-shadow: 0 4px 25px rgba(16, 185, 129, 0.2);
        border-color: var(--secondary);
    }
}

/* ==========================================================================
   Comparison Section (Decoy Anchor)
   ========================================================================== */
.comparison-section {
    background: var(--gradient-dark);
    padding: 100px 0;
}

.comparison-container {
    max-width: 1100px;
    margin: 0 auto;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.comparison-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.comparison-card:hover {
    transform: translateY(-5px);
}

.comparison-card.localmate-featured {
    background: #ffffff;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(16, 185, 129, 0.15);
    z-index: 2;
}

.comparison-card.localmate-featured:hover {
    box-shadow: var(--shadow-lg), 0 0 35px rgba(16, 185, 129, 0.25);
    transform: translateY(-8px);
}

.featured-ribbon {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    box-shadow: var(--shadow-neon);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.comp-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.comparison-card.localmate-featured .comp-header {
    border-bottom-color: rgba(16, 185, 129, 0.15);
}

.comp-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: inline-block;
}

.comp-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-weight: 800;
}

.comp-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.comp-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    margin-bottom: 30px;
}

.comp-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.comp-list li strong {
    color: var(--text-primary);
}

.status-icon {
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.status-icon.check {
    color: var(--primary);
    font-weight: 900;
}

.status-icon.x {
    color: var(--error);
}

.status-icon.warning {
    color: var(--warning);
}

.comp-price-indicator {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 12px;
    background: rgba(16, 185, 129, 0.04);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.comparison-card.localmate-featured .comp-price-indicator {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--primary);
}

@media (max-width: 992px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .comparison-card.localmate-featured {
        order: -1;
    }
}

/* Pricing Stack Fix to prevent wrapping */
.price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 25px;
    width: 100%;
}

.price {
    display: flex;
    align-items: baseline;
    font-family: var(--font-heading);
    margin-bottom: 4px;
}

.price .amount {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.price .currency {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    align-self: flex-start;
    margin-left: 2px;
    margin-right: 4px;
}

.price .period {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.price-converted {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.12);
    padding: 3px 10px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 2px;
}

/* Why Now Section 2-Column Desktop Grid */
.why-now-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.why-now-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.why-now-content .section-title {
    text-align: left;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.25;
}

.why-now-content .section-subtitle {
    text-align: left;
    margin-top: 10px;
}

@media (max-width: 992px) {
    .why-now-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .why-now-content {
        align-items: center;
    }
    
    .why-now-content .section-title {
        text-align: center;
    }
    
    .why-now-content .section-subtitle {
        text-align: center;
    }
}
