/* ==========================================================================
   BOOKOMN.XYZ - Thai Book Landing Page Design System & Stylesheet
   Optimized for Google Search Ads, High-Conversion UX & Responsive Mobile
   ========================================================================== */

/* --- Design Tokens & CSS Variables --- */
:root {
    --primary-navy: #0f172a;
    --secondary-navy: #1e293b;
    --accent-gold: #f59e0b;
    --accent-gold-hover: #d97706;
    --accent-emerald: #10b981;
    --accent-emerald-dark: #059669;
    --accent-crimson: #ef4444;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    
    --font-heading: 'Kanit', sans-serif;
    --font-body: 'Prompt', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.15);
    --shadow-gold: 0 10px 25px rgba(245, 158, 11, 0.35);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

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

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

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout Container --- */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography Helpers --- */
h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    line-height: 1.25;
}

.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.text-green { color: var(--accent-emerald); }

.section-header {
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-gold-hover);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

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

/* --- Buttons & Action Elements --- */
.btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.btn-nav-cta {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
    color: #fff;
    padding: 10px 24px;
    font-size: 1rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-gold);
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.5);
}

.btn-hero-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    padding: 16px 36px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-gold);
    min-width: 280px;
}

.btn-hero-primary .btn-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.btn-hero-primary .btn-subtext {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.95;
    margin-top: 2px;
}

.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.5);
}

.btn-hero-secondary {
    background: #ffffff;
    color: var(--primary-navy);
    padding: 18px 28px;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
}

.btn-hero-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-navy);
}

/* Pulsing Effect for CTA */
.pulse-effect {
    animation: pulseGlow 2.2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

/* --- Top Announcement Bar --- */
.top-banner {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.badge-fire {
    background: var(--accent-crimson);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

.timer-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
}

.timer {
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
}

/* --- Main Header & Nav --- */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    padding: 14px 0;
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-navy);
}

.logo-dot {
    color: var(--accent-gold);
}

.verified-badge {
    background: #ecfdf5;
    color: var(--accent-emerald-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-weight: 500;
    color: var(--secondary-navy);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-gold-hover);
}

/* --- Hero Section --- */
.hero-section {
    padding: 60px 0 80px;
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
                linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 20px;
}

.hero-headline {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.highlight-gold {
    color: var(--accent-gold-hover);
    background: linear-gradient(120deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0) 100%);
    padding: 0 8px;
    border-radius: 4px;
}

.sub-headline {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 6px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.hero-highlights {
    margin-bottom: 32px;
}

.hero-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--accent-emerald);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-stock-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--accent-crimson);
    font-weight: 500;
}

.pulse-red-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-crimson);
    border-radius: 50%;
    animation: blink 1.2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* 3D Book Presentation */
.hero-visual-col {
    position: relative;
    display: flex;
    justify-content: center;
}

.book-3d-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    perspective: 1200px;
    padding: 20px;
}

.book-cover-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: -15px 20px 40px rgba(15, 23, 42, 0.35);
    transform: rotateY(-12deg) rotateX(6deg);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.book-3d-wrapper:hover .book-cover-img {
    transform: rotateY(0deg) rotateX(0deg) scale(1.03);
}

.floating-badge {
    position: absolute;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 12px 18px;
}

.floating-badge.top-right {
    top: 0;
    right: -10px;
    background: linear-gradient(135deg, var(--accent-crimson), #dc2626);
    color: #fff;
    text-align: center;
}

.discount-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.discount-text {
    font-size: 0.8rem;
    font-weight: 700;
}

.floating-badge.bottom-left {
    bottom: -10px;
    left: -10px;
}

.rating-stars {
    color: var(--accent-gold);
    display: block;
    font-size: 1.1rem;
}

.rating-val {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-navy);
}

/* --- Trust & Stats Bar --- */
.trust-bar-section {
    background: var(--primary-navy);
    color: #fff;
    padding: 36px 0;
}

.trust-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.trust-stat-item {
    border-right: 1px solid rgba(255,255,255,0.1);
    padding: 0 12px;
}

.trust-stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-gold);
}

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

/* --- Problem / Solution Section --- */
.problem-solution-section {
    padding: 80px 0;
    background: #fff;
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.problem-card {
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.problem-card.negative {
    background: #fef2f2;
    border: 1px solid #fee2e2;
}

.problem-card.positive {
    background: #ecfdf5;
    border: 1px solid #d1fae5;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary-navy);
}

.problem-card ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 1.05rem;
}

.problem-card.negative ul li::before {
    content: "✖";
    position: absolute;
    left: 0;
    color: var(--accent-crimson);
    font-weight: bold;
}

.problem-card.positive ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--accent-emerald);
    font-weight: bold;
}

/* --- Table of Contents Accordion --- */
.toc-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.accordion-container {
    max-width: 840px;
    margin: 0 auto;
}

.accordion-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.accordion-item:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-sm);
}

.accordion-header {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: var(--font-body);
    text-align: left;
}

.chapter-badge {
    background: var(--primary-navy);
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    margin-right: 16px;
    flex-shrink: 0;
}

.chapter-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-navy);
    flex-grow: 1;
}

.accordion-icon {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
    color: var(--accent-gold-hover);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, padding 0.35s;
    background: #fafafa;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    padding: 0 24px 20px 72px;
    color: var(--text-muted);
}

/* --- Author Profile Section --- */
.author-section {
    padding: 80px 0;
    background: #fff;
}

.author-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    align-items: center;
}

.author-card-glass {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.author-avatar {
    font-size: 5rem;
    margin-bottom: 16px;
}

.author-name-badge h3 {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 6px;
}

.author-name-badge p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.author-bio {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.author-quote {
    background: var(--bg-light);
    border-left: 4px solid var(--accent-gold);
    padding: 20px 24px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--primary-navy);
}

/* --- Reviews Section --- */
.reviews-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.overall-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    margin-top: 12px;
}

.rating-score {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-navy);
}

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

.review-card {
    background: #fff;
    padding: 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

.review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

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

.avatar-circle {
    width: 44px;
    height: 44px;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-pink { background: #fce7f3; color: #be185d; }
.avatar-blue { background: #dbeafe; color: #1d4ed8; }

.user-name {
    font-size: 0.95rem;
    color: var(--primary-navy);
}

.verified-purchase {
    font-size: 0.78rem;
    color: var(--accent-emerald-dark);
    font-weight: 500;
}

.stars {
    color: var(--accent-gold);
    font-size: 0.9rem;
}

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

.review-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* --- Pricing Section --- */
.pricing-section {
    padding: 80px 0;
    background: #fff;
}

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

.pricing-card {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pricing-card.featured {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
    transform: scale(1.04);
}

.featured-ribbon {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #f59e0b, #d97706);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 20px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    white-space: nowrap;
}

.card-top-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.package-title {
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-bottom: 16px;
}

.price-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.price-currency {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1;
}

.old-price {
    font-size: 1.1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

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

.package-features {
    margin-bottom: 32px;
}

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

.package-features li.disabled {
    color: var(--text-light);
    text-decoration: line-through;
}

.package-features .check {
    color: var(--accent-emerald);
    font-weight: bold;
}

.package-features .cross {
    color: var(--text-light);
}

.btn-select-package {
    width: 100%;
    padding: 14px;
    background: var(--bg-light);
    color: var(--primary-navy);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.btn-select-package:hover {
    background: var(--primary-navy);
    color: #fff;
    border-color: var(--primary-navy);
}

.pricing-card.featured .btn-select-package {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
    color: #fff;
    border: none;
    box-shadow: var(--shadow-gold);
}

/* --- Checkout Order Form Section --- */
.checkout-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
}

.checkout-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 48px;
    max-width: 980px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.checkout-header h2 {
    font-size: 2.2rem;
    color: var(--primary-navy);
    margin: 8px 0;
}

.checkout-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 14px;
    border-radius: var(--radius-full);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 36px;
}

.form-step-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    color: var(--primary-navy);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.form-step-title span {
    width: 32px;
    height: 32px;
    background: var(--primary-navy);
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.required { color: var(--accent-crimson); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.form-row {
    display: flex;
    gap: 16px;
}

.col-6 { width: 50%; }

/* Payment Selection Radio Cards */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.payment-card:hover, .payment-card.active {
    border-color: var(--accent-gold);
    background: #fffdfa;
}

.payment-card input[type="radio"] {
    width: auto;
    margin-top: 4px;
}

.payment-icon { font-size: 1.5rem; }

.payment-text strong {
    display: block;
    font-size: 1rem;
    color: var(--primary-navy);
}

.payment-text small {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Order Summary Box */
.order-summary-box {
    background: var(--bg-light);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.summary-divider {
    border: none;
    border-top: 1px dashed var(--border-color);
    margin: 14px 0;
}

.total-row {
    font-size: 1.1rem;
    font-weight: 700;
}

.total-price {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-gold-hover);
}

.btn-submit-order {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 18px;
    font-size: 1.2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
}

.btn-submit-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.45);
}

.security-guarantee {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 14px;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 80px 0;
    background: #fff;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.faq-item h4 {
    font-size: 1.1rem;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

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

/* --- Main Footer --- */
.main-footer {
    background: var(--primary-navy);
    color: #fff;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .brand-logo {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.footer-desc {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-contact p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

.disclaimer-text {
    display: block;
    margin-top: 8px;
    font-size: 0.78rem;
    opacity: 0.7;
}

/* --- Modals (Order Confirmation & Legal Policies) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-icon-success {
    font-size: 4rem;
    margin-bottom: 12px;
}

.modal-card h2 {
    font-size: 1.8rem;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.modal-order-details {
    background: var(--bg-light);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin: 20px 0;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.delivery-notice {
    font-size: 0.9rem;
    color: var(--accent-emerald-dark);
    margin-bottom: 20px;
    font-weight: 500;
}

.btn-close-modal {
    width: 100%;
    padding: 14px;
    background: var(--primary-navy);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
}

/* Policy Modal Variant */
.policy-card {
    max-width: 700px;
    text-align: left;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.btn-close-x {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.policy-body {
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.policy-body h4 {
    color: var(--primary-navy);
    margin: 16px 0 8px;
}

/* --- Live Social Proof Toast --- */
.sales-toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 90;
    max-width: 360px;
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.sales-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.8rem;
}

.toast-info {
    font-size: 0.85rem;
}

.toast-title {
    color: var(--primary-navy);
}

.toast-desc {
    color: var(--text-muted);
}

.toast-time {
    font-size: 0.75rem;
    color: var(--accent-emerald-dark);
    font-weight: 500;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Mobile & Tablet Optimization)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-headline { font-size: 2.3rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .hero-highlights li { justify-content: center; }
    .hero-cta-group { justify-content: center; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .pricing-card.featured { transform: none; }
    .reviews-grid { grid-template-columns: 1fr; }
    .author-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Hide desktop nav menu on mobile */
    .top-banner-content { font-size: 0.82rem; }
    .hero-section { padding: 36px 0 50px; }
    .hero-headline { font-size: 1.9rem; }
    .sub-headline { font-size: 1.15rem; }
    .trust-bar-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .trust-stat-item { border-right: none; }
    .problem-grid { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .checkout-card { padding: 24px 18px; }
    .form-row { flex-direction: column; gap: 0; }
    .col-6 { width: 100%; }
    .sales-toast { left: 10px; right: 10px; max-width: none; bottom: 10px; }
}
