:root {
    --primary: #FFB300; /* Exact same yellow as App's header (#FFB300) */
    --primary-dark: #FFA000;
    --secondary: #1A1A1A;
    --text-main: #1D1D1F;
    --text-muted: #333333;
    --bg-snow: #FBFBFD;
    --glass-white: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --font-thai: 'Anuphan', sans-serif;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-thai);
    background-color: var(--bg-snow);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* --- Navigation --- */
.navbar {
    height: 110px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--primary); /* Vibrant Yellow */
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: var(--primary);
    height: 85px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-text span {
    color: var(--secondary); /* Dark color for visibility on yellow in footer */
}

/* Navbar Logo Text should be White as requested */
.navbar .logo {
    color: #FFFFFF !important;
}

.navbar .logo-text span {
    color: #FFFFFF !important;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a:not(.btn-primary) {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 900px;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    padding-top: 140px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
    z-index: 1;
}

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

.glass-card {
    background: var(--glass-white);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1.5px solid var(--glass-border);
    padding: 64px;
    border-radius: 60px;
    box-shadow: 0 40px 120px rgba(0,0,0,0.1);
    margin-top: 40px;
}

.badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.6);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-main);
}

.badge span {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
}

h1 {
    font-size: 4.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--text-main);
    text-shadow: 0 2px 10px rgba(255,255,255,0.5);
}

h1 span {
    color: var(--primary-dark);
}

.hero-content p {
    font-size: 1.45rem;
    color: #111;
    margin-bottom: 48px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(255,255,255,0.3);
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* --- Solution Section --- */
.solution-section {
    padding: 160px 0;
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1498837167922-ddd27525d352?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.solution-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 250, 230, 0.45) 100%);
    backdrop-filter: blur(12px);
}

.relative-z { position: relative; z-index: 5; }

.section-header-centered {
    text-align: center;
    margin-bottom: 80px;
}

.comparison-seamless {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 64px;
    border: 1px solid rgba(255,255,255,0.6);
    padding: 40px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.05);
}

.compare-col {
    padding: 60px;
}

.v-divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1), transparent);
    margin: 40px 0;
}

.col-header {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 50px;
    text-align: center;
}

.col-header.highlight { color: var(--primary-dark); }

.compare-list { list-style: none; }

.compare-list li {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.4rem;
}

.icon-wrap.red { background: #FEE2E2; color: #EF4444; }
.icon-wrap.green { background: #D1FAE5; color: #10B981; }

.compare-list .text strong {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 6px;
    color: var(--text-main);
}

.compare-list .text span {
    font-size: 1.15rem;
    color: #444;
    font-weight: 600;
    line-height: 1.4;
}

/* --- Advantages Section (Split Background with Images) --- */
.advantages {
    padding: 0;
    overflow: hidden;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
    gap: 0;
}

.advantage-box {
    padding: 120px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 800px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.advantage-card {
    max-width: 580px;
    width: 100%;
    padding: 60px;
    border-radius: 48px;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1.5px solid rgba(255,255,255,0.6);
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
}

.advantage-box.customer {
    background-image: url('https://images.unsplash.com/photo-1565299624946-b28f40a0ae38?q=80&w=1000&auto=format&fit=crop');
}

.advantage-box.merchant {
    background-image: url('https://images.unsplash.com/photo-1552566626-52f8b828add9?q=80&w=1000&auto=format&fit=crop');
    border-left: 1px solid rgba(255,255,255,0.1);
}

.box-label {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 24px;
    width: fit-content;
}

.customer .box-label { background: var(--primary); color: var(--secondary); }
.merchant .box-label { background: var(--secondary); color: white; }

.advantage-box h2 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 40px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--secondary);
}

.advantage-box h2 span { color: var(--primary-dark); }

.advantage-list {
    list-style: none;
}

.advantage-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    font-size: 1.3rem;
    color: #333;
    font-weight: 500;
}

.advantage-list i {
    width: 28px;
    color: #4CAF50;
    flex-shrink: 0;
    margin-top: 6px;
}

/* --- Features --- */
.features {
    padding: 120px 0;
    background: var(--bg-snow);
}

.section-label {
    text-align: center;
    font-weight: 800;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    display: block;
}

.section-title {
    text-align: center;
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 80px;
}

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

.feature-card {
    background: white;
    padding: 64px 48px;
    border-radius: 40px;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 3.2rem;
    margin-bottom: 32px;
}

/* --- Floating Cards --- */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(25px);
    border: 1.5px solid rgba(255,255,255,0.6);
    padding: 24px 32px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.1);
    min-width: 300px;
}

.card-verified { top: 5%; right: -20px; animation: float 6s ease-in-out infinite; }
.card-price { top: 40%; right: 60px; animation: float 6s ease-in-out infinite; animation-delay: 1s; }
.card-boost { bottom: 5%; right: 30px; animation: float 6s ease-in-out infinite reverse; animation-delay: 2s; }

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

.icon-circle { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.bg-green { background: #E8F5E9; color: #2E7D32; }
.bg-yellow { background: var(--primary); color: var(--secondary); }
.bg-blue { background: #E3F2FD; color: #1976D2; }

.card-label { font-size: 0.95rem; color: #111; font-weight: 700; margin-bottom: 2px; }
.card-val { font-weight: 800; font-size: 1.25rem; color: var(--text-main); }

/* --- CTA --- */
.cta-banner { background: var(--secondary); border-radius: 60px; padding: 100px 40px; text-align: center; color: white; margin-bottom: 80px; }
.cta-banner h2 { font-size: 4rem; margin-bottom: 32px; font-weight: 800; }
.cta-banner h2 span { color: var(--primary); }
.btn-primary.btn-xl { font-size: 1.3rem; padding: 20px 60px; }

/* --- Footer --- */
.footer { padding: 80px 0; background: white; border-top: 1px solid #EEE; color: var(--text-muted); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 40px; }
.footer-links a { text-decoration: none; color: var(--text-muted); font-weight: 600; }

/* --- Responsive --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1100px) {
    h1 { font-size: 3rem; }
    .hero { padding-top: 120px; }
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-btns { justify-content: center; }
    .hero-visual { display: none; }
    .comparison-grid { grid-template-columns: 1fr; }
    .advantage-box { padding: 40px 24px; }
    .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
    /* Navbar Mobile Layout - scroll with content instead of fixed */
    .navbar {
        height: 70px;
        position: relative !important;
    }
    
    .navbar.scrolled {
        height: 70px;
        position: relative !important;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo {
        font-size: 1.3rem;
        gap: 8px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px 20px;
        gap: 12px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.08);
        border-top: 1px solid rgba(0,0,0,0.05);
        transform: translateY(-150%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        align-items: stretch;
        text-align: center;
        z-index: 999;
    }
    
    .navbar.scrolled .nav-links {
        top: 70px;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        padding: 10px 0;
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.03);
    }
    
    .nav-links a.btn-primary {
        border-bottom: none;
        padding: 14px;
        border-radius: 16px;
        margin-top: 8px;
    }

    /* Hero section responsiveness */
    .hero {
        height: auto;
        min-height: auto;
        padding: 40px 0 60px 0;
    }
    .glass-card {
        padding: 32px 24px;
        border-radius: 32px;
        margin-top: 20px;
    }
    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 32px;
    }

    /* Comparison Section (#solution) */
    .comparison-seamless {
        grid-template-columns: 1fr;
        padding: 24px;
        border-radius: 32px;
    }
    .compare-col {
        padding: 20px 10px;
    }
    .v-divider {
        width: 100%;
        height: 1px;
        margin: 20px 0;
        background: linear-gradient(to right, transparent, rgba(0,0,0,0.1), transparent);
    }
    .col-header {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    .compare-list li {
        margin-bottom: 24px;
        gap: 16px;
    }
    .compare-list .text strong {
        font-size: 1.15rem;
    }
    .compare-list .text span {
        font-size: 1rem;
    }
    .icon-wrap {
        width: 50px;
        height: 50px;
        border-radius: 16px;
        font-size: 1.1rem;
    }

    /* Advantages Section (#advantages) */
    .advantage-box {
        min-height: auto;
        padding: 80px 24px;
    }
    .advantage-card {
        padding: 32px;
        border-radius: 32px;
    }
    .advantage-box h2 {
        font-size: 2.2rem;
        margin-bottom: 24px;
    }
    .advantage-list li {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    /* Features Section (#features) */
    .section-title {
        font-size: 2.4rem;
        margin-bottom: 40px;
    }
    .feature-card {
        padding: 40px 24px;
        border-radius: 28px;
    }
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    /* CTA Section */
    .cta-banner {
        padding: 60px 24px;
        border-radius: 32px;
        margin-bottom: 40px;
    }
    .cta-banner h2 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    .btn-primary.btn-xl {
        font-size: 1.1rem;
        padding: 16px 40px;
    }

    /* Footer Section */
    .footer {
        padding: 60px 0;
    }
    .footer-grid {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    .footer-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-links {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }
    .hero-btns {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    .btn-primary, .btn-outline-white {
        text-align: center;
        width: 100%;
    }
}

/* ==========================================
   Merchant User Manual Styles (หน้าคู่มือร้านค้า)
   ========================================== */

/* --- Manual Hero Section --- */
.manual-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #2D2D2D 100%);
    padding: 160px 0 80px 0;
    color: white;
    text-align: center;
    position: relative !important;
    overflow: hidden;
}

.manual-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 234, 0, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.manual-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.manual-hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 16px;
    text-shadow: none;
}

.manual-hero h1 span {
    color: var(--primary);
}

.manual-hero p {
    font-size: 1.25rem;
    color: #CCCCCC;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Search Section --- */
.search-container {
    max-width: 600px;
    margin: 32px auto 0 auto;
    position: relative;
    z-index: 5;
}

.search-input-wrapper {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 6px 6px 6px 24px;
    display: flex;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(255, 234, 0, 0.25);
}

.search-icon {
    color: #64748B;
    margin-right: 14px;
    display: flex;
    align-items: center;
}

.search-input {
    border: none;
    outline: none;
    width: 100%;
    font-family: var(--font-thai);
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 600;
}

.search-input::placeholder {
    color: #94A3B8;
}

.search-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 14px;
    font-family: var(--font-thai);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.search-btn:hover {
    background: #000;
    transform: translateY(-2px);
}

/* --- Manual Main Layout --- */
.manual-main {
    padding: 60px 0 120px 0;
    background: #F8FAFC;
    min-height: 800px;
    overflow-x: hidden;
    max-width: 100vw;
}

.manual-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: start;
}

/* --- Sticky Sidebar --- */
.manual-sidebar {
    position: sticky;
    top: 130px;
    background: white;
    border-radius: 32px;
    padding: 24px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #F1F5F9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 16px;
    color: #64748B;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
}

.sidebar-menu li a:hover {
    background: #F8FAFC;
    color: var(--secondary);
}

.sidebar-menu li.active a {
    background: linear-gradient(135deg, rgba(255, 234, 0, 0.15) 0%, rgba(255, 234, 0, 0.05) 100%);
    color: var(--secondary);
    border-left-color: var(--primary-dark);
}

.sidebar-menu li a i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Manual Content Area --- */
.manual-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.chapter-section {
    background: white;
    border-radius: 40px;
    padding: 60px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.01);
    scroll-margin-top: 140px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.chapter-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid #F1F5F9;
}

.chapter-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #FFF9C4 100%);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(255, 234, 0, 0.2);
}

.chapter-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
}

/* --- Step Cards --- */
.step-item {
    margin-bottom: 48px;
    position: relative;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.step-badge {
    background: var(--secondary);
    color: white;
    font-weight: 800;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.step-heading h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--secondary);
}

.step-body {
    padding-left: 48px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.step-desc p {
    font-size: 1.15rem;
    color: #475569;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.7;
}

.step-desc ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.step-desc ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #334155;
}

.step-desc ul li i {
    color: #10B981;
    margin-top: 4px;
    flex-shrink: 0;
}

/* --- Alert Box (Premium Note/Warning) --- */
.alert-box {
    background: #F8FAFC;
    border-left: 4px solid var(--secondary);
    border-radius: 0 16px 16px 0;
    padding: 20px 24px;
    margin-top: 20px;
    display: flex;
    gap: 16px;
}

.alert-box.info {
    background: #EFF6FF;
    border-left-color: #3B82F6;
}
.alert-box.info i { color: #3B82F6; }

.alert-box.warning {
    background: #FFFBEB;
    border-left-color: #F59E0B;
}
.alert-box.warning i { color: #F59E0B; }

.alert-box.success {
    background: #ECFDF5;
    border-left-color: #10B981;
}
.alert-box.success i { color: #10B981; }

.alert-content {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.6;
    color: #334155;
}

.alert-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 4px;
}

/* --- Phone Mockup (จำลอง UI แอปจริงๆ) --- */
.phone-mockup-wrapper {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-mockup {
    width: 290px;
    height: 560px;
    background: #111827; /* iPhone Deep Frame */
    border-radius: 44px;
    padding: 12px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.25);
    border: 4px solid #374151;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: rotateY(-5deg) translateY(-5px);
}

/* Dynamic Notch */
.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background: #000000;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

/* Phone Screen Inner */
.phone-screen {
    width: 100%;
    height: 100%;
    background: #F8FAFC;
    border-radius: 34px;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    font-family: var(--font-thai);
    font-size: 12px;
    scrollbar-width: none; /* Hide scrollbar in Firefox */
}

.phone-screen::-webkit-scrollbar {
    display: none; /* Hide scrollbar in Chrome/Safari */
}

/* Mockup Components */
.mockup-app-bar {
    background: var(--primary);
    padding: 24px 16px 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    color: var(--secondary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.mockup-store-card {
    background: white;
    border-radius: 16px;
    padding: 12px;
    margin: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #E2E8F0;
}

.mockup-store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mockup-store-name {
    font-weight: 800;
    font-size: 14px;
}

.mockup-badge-active {
    background: #ECFDF5;
    color: #10B981;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 100px;
    font-size: 10px;
}

.mockup-badge-inactive {
    background: #FEF2F2;
    color: #EF4444;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 100px;
    font-size: 10px;
}

.mockup-menu-item {
    display: flex;
    gap: 10px;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 8px;
    border: 1px solid #E2E8F0;
    margin-bottom: 8px;
}

.mockup-menu-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #E2E8F0;
    background-size: cover;
    background-position: center;
}

.mockup-chat-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    max-width: 80%;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 11px;
    line-height: 1.4;
}

.mockup-chat-bubble.customer {
    background: #E2E8F0;
    color: var(--secondary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.mockup-chat-bubble.merchant {
    background: var(--secondary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.mockup-order-status {
    background: white;
    border-radius: 16px;
    padding: 12px;
    border: 1px solid #E2E8F0;
}

.mockup-status-step {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.mockup-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFB300;
}

.mockup-status-dot.done {
    background: #10B981;
}

/* Accordion FAQs */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.faq-item {
    background: #F8FAFC;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-trigger {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--secondary);
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-thai);
}

.faq-trigger:hover {
    background: #F1F5F9;
}

.faq-trigger i {
    transition: transform 0.3s ease;
    color: #64748B;
}

.faq-item.open .faq-trigger i {
    transform: rotate(180deg);
}

.faq-panel {
    padding: 0 24px 20px 24px;
    font-size: 1.05rem;
    font-weight: 500;
    color: #475569;
    line-height: 1.6;
    display: none;
}

.faq-item.open .faq-panel {
    display: block;
}

/* Back to Top / Help Float button */
.help-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 234, 0, 0.4);
    z-index: 999;
    text-decoration: none;
    font-size: 1.5rem;
    transition: var(--transition-smooth);
    border: 2px solid white;
}

.help-fab:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 234, 0, 0.6);
}

/* --- Responsive Media for Manual --- */
@media (max-width: 992px) {
    .manual-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .manual-main {
        padding: 32px 0 80px 0;
    }

    .manual-sidebar {
        position: relative !important;
        top: 0 !important;
        z-index: 10;
        padding: 12px;
        border-radius: 16px;
    }
    
    .sidebar-title {
        font-size: 1rem;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
    
    .sidebar-menu li {
        flex-shrink: 0;
    }
    
    .sidebar-menu li a {
        padding: 8px 12px;
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 10px;
        font-size: 0.8rem;
        gap: 6px;
        white-space: nowrap;
    }
    
    .sidebar-menu li.active a {
        border-left-color: transparent;
        border-bottom-color: var(--primary-dark);
    }
    
    .chapter-section {
        padding: 24px 16px;
        border-radius: 24px;
    }
    
    .step-body {
        display: flex;
        flex-direction: column;
        gap: 24px;
        align-items: center;
        padding-left: 0;
    }
    
    .step-desc {
        width: 100%;
    }

    .phone-mockup-wrapper {
        order: -1;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .manual-hero {
        padding: 40px 0 32px 0;
        position: relative !important;
    }

    .manual-hero h1 {
        font-size: 1.8rem;
    }

    .manual-hero p {
        font-size: 1rem;
        padding: 0 16px;
    }

    .search-container {
        padding: 0 16px;
    }

    .search-input {
        font-size: 0.9rem;
    }

    .search-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .search-input-wrapper {
        padding: 4px 4px 4px 12px;
    }

    /* Alert boxes mobile */
    .alert-box {
        padding: 12px;
        gap: 10px;
        border-radius: 0 12px 12px 0;
    }

    .alert-content {
        font-size: 0.85rem;
        word-break: break-word;
    }

    /* Phone mockup responsive */
    .phone-mockup {
        width: 100%;
        max-width: 260px;
        height: auto;
        aspect-ratio: 9 / 18;
        padding: 8px;
        border-radius: 32px;
        border-width: 3px;
        margin: 0 auto;
    }

    .phone-mockup:hover {
        transform: none;
    }

    .phone-mockup img {
        border-radius: 24px !important;
    }

    .phone-notch {
        width: 80px;
        height: 16px;
        top: 8px;
    }

    /* FAQ responsive */
    .faq-trigger {
        padding: 14px 12px;
        font-size: 0.9rem;
    }

    .faq-panel {
        padding: 0 12px 14px 12px;
        font-size: 0.9rem;
        word-break: break-word;
    }

    /* Step items */
    .step-item {
        padding: 16px 0;
    }

    .step-heading h3 {
        font-size: 1.05rem;
    }

    .step-desc p {
        font-size: 0.9rem;
        word-break: break-word;
    }

    .step-badge {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 0.85rem;
    }

    /* Help FAB */
    .help-fab {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 16px;
        font-size: 1.2rem;
    }

    /* Prevent any child from overflowing */
    .manual-content {
        max-width: 100%;
        overflow-x: hidden;
        padding: 0;
    }

    .chapter-section * {
        max-width: 100%;
    }

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



@media (max-width: 576px) {
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: 32px 0 40px 0;
    }

    .glass-card {
        padding: 24px 16px;
        border-radius: 24px;
        margin-top: 12px;
    }

    .badge {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin-bottom: 16px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }

    .btn-outline-white {
        width: 100%;
        text-align: center;
    }

    /* Solution Section */
    .solution-section {
        padding: 60px 0;
    }

    .section-header-centered {
        margin-bottom: 32px;
    }

    .section-label {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 24px;
    }

    .comparison-seamless {
        grid-template-columns: 1fr;
        padding: 16px;
        border-radius: 24px;
    }

    .compare-col {
        padding: 16px 8px;
    }

    .col-header {
        font-size: 1.3rem;
        margin-bottom: 24px;
    }

    .compare-list li {
        gap: 12px;
        margin-bottom: 20px;
    }

    .icon-wrap {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 12px;
        font-size: 0.9rem;
    }

    .compare-list .text strong {
        font-size: 1rem;
    }

    .compare-list .text span {
        font-size: 0.9rem;
    }

    .v-divider {
        width: 100%;
        height: 1px;
        margin: 8px 0;
    }

    /* Advantages Section */
    .advantage-box {
        padding: 40px 16px;
    }

    .advantage-card {
        padding: 24px 16px;
        border-radius: 24px;
    }

    .advantage-box h2 {
        font-size: 1.6rem;
        margin-bottom: 16px;
    }

    .advantage-list li {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    /* Features Section */
    .feature-card {
        padding: 32px 16px;
        border-radius: 20px;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .feature-card h3 {
        font-size: 1.15rem;
    }

    .feature-card p {
        font-size: 0.95rem;
    }

    /* CTA Section */
    .cta-banner {
        padding: 40px 16px;
        border-radius: 24px;
        margin-bottom: 32px;
    }

    .cta-banner h2 {
        font-size: 1.6rem;
        margin-bottom: 16px;
    }

    .cta-banner p {
        font-size: 0.95rem;
    }

    .btn-primary.btn-xl {
        font-size: 1rem;
        padding: 14px 32px;
        width: 100%;
    }

    /* Footer Section */
    .footer {
        padding: 40px 0;
    }

    .footer-grid {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-info p {
        font-size: 0.9rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .footer-links a {
        font-size: 0.9rem;
}

@media (max-width: 400px) {
    .manual-hero h1 {
        font-size: 1.5rem;
    }

    .phone-mockup {
        max-width: 240px;
        padding: 6px;
        border-radius: 28px;
    }

    .phone-mockup img {
        border-radius: 22px !important;
    }

    .chapter-section {
        padding: 16px 12px;
    }

    .chapter-title {
        font-size: 1.15rem;
    }

    .step-heading h3 {
        font-size: 1rem;
    }
}

