/* ============================================
   PSM POS โ€” Sale Page Stylesheet
   Modern Premium Design
   ============================================ */

:root {
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-dark: #1e2d5e;
    --accent: #e11d48;
    --accent-light: #fb7185;
    --teal: #0f766e;
    --purple: #6d28d9;
    --gold: #d97706;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px -10px rgba(0,0,0,0.08);
    --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.12);
    --shadow-blue: 0 8px 30px -4px rgba(59,130,246,0.3);
    --radius: 16px;
    --radius-lg: 24px;
    --radius-full: 50px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Noto Sans Thai', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.2; color: var(--primary-dark); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; line-height: 1.3; color: var(--primary-dark); margin-bottom: 0.5rem; }
h3 { font-size: 1.3rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; }
p { color: var(--text-muted); font-size: 1.05rem; }
a { text-decoration: none; color: inherit; }

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

.highlight-white {
    background: linear-gradient(135deg, #93c5fd, #dbeafe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Section Layout
   ============================================ */
.section-container { max-width: 1536px; margin: 0 auto; padding: 0 2rem; }

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header p { max-width: 600px; margin: 0.5rem auto 0; }

.section-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary-light);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: 'Prompt', sans-serif;
}
.btn-primary {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: var(--white);
    position: relative;
    overflow: hidden;
    border: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #1e40af, #60a5fa);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}
.btn-line {
    background: #00C300;
    border: 2px solid #00C300;
    color: white;
}
.btn-line:hover {
    background: #00a000;
    border-color: #00a000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -4px rgba(0, 195, 0, 0.4);
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold), #b45309);
    color: var(--white);
    box-shadow: 0 8px 25px -4px rgba(217, 119, 6, 0.3);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 35px -4px rgba(217,119,6,0.4); }
.btn-large { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

.pulse-glow {
    /* Removed the pulse shadow effect for a cleaner look */
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.nav-container {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 62px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img { height: 75px; object-fit: contain; transform: translateY(8px); }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.3s;
    position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 10px;
}
.nav-actions { display: flex; align-items: center; gap: 1rem; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   Top Announcement Bar
   ============================================ */
.top-announcement-bar {
    background: var(--primary);
    background-image: 
        linear-gradient(90deg, var(--primary) 0%, var(--primary) 65%, transparent 100%),
        repeating-linear-gradient(-45deg, rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 15px, transparent 15px, transparent 30px);
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 400;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1000;
    line-height: 1.5;
}

.top-announcement-bar strong {
    font-weight: 600;
    color: #fde047; /* Bright yellow highlight */
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ============================================
   Hero Metrics
   ============================================ */
.hero-metrics {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-text {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-top: 4px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: calc(100vh - 50px);
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
    position: relative;
    gap: 2rem;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: linear-gradient(145deg, #f0f7ff 0%, #ffffff 50%, #f5f3ff 100%);
    z-index: -2;
}
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}
.shape-1 { width: 500px; height: 500px; background: var(--primary-light); top: -10%; right: -5%; }
.shape-2 { width: 400px; height: 400px; background: var(--purple); bottom: 10%; left: -10%; }
.shape-3 { width: 300px; height: 300px; background: var(--teal); top: 40%; right: 20%; }

.hero-content { flex: 1.2; max-width: 680px; }

.hero-main-title {
    white-space: nowrap;
}
.hero-blue-pill {
    display: inline-block;
    white-space: nowrap;
    background: #2563eb;
    color: white;
    padding: 6px 20px;
    border-radius: 12px;
    font-size: 0.52em;
    line-height: 1.6;
    margin-top: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}
.hero-red-tag {
    display: block;
    white-space: nowrap;
    font-size: 0.75em;
    margin-top: 8px;
    color: var(--primary-dark);
}
.red-tag-highlight {
    background: #ffe4e6;
    color: #e11d48;
    padding: 4px 12px;
    border-radius: 8px;
}
.badge-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary-light);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}
.badge-green {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.hero-desc { font-size: 1.15rem; font-weight: 500; color: var(--text); margin: 1.5rem 0 1.5rem; line-height: 1.6; }

.hero-buttons { display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }

.trust-indicators { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.5rem; }
.desktop-only { display: inline; }
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 0.4rem 0.9rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.trust-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
}
.trust-icon { font-size: 1.35rem; }

/* AWS Tooltip */
.tooltip-trigger {
    position: relative;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1;
}
.tooltip-trigger:hover {
    color: var(--primary);
    z-index: 1000;
}
.trust-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 320px;
    background: white;
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(6,182,212,0.05);
    opacity: 0;
    visibility: hidden;
    transition: none;
    z-index: 100;
    text-align: left;
    pointer-events: none;
}
.trust-tooltip::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: white;
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
    border-right: 1px solid rgba(6, 182, 212, 0.2);
}
.tooltip-trigger:hover .trust-tooltip,
.tooltip-trigger:focus .trust-tooltip,
.tooltip-trigger:focus-within .trust-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.trust-tooltip-header {
    color: #0891b2;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.trust-tooltip p {
    font-size: 0.9rem;
    color: var(--text-body);
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}
@media (max-width: 768px) {
    .trust-tooltip {
        width: 280px;
        left: 0;
        transform: translateX(-20%) translateY(10px);
    }
    .trust-tooltip::before {
        left: 20%;
    }
    .tooltip-trigger:hover .trust-tooltip,
    .tooltip-trigger:focus .trust-tooltip,
    .tooltip-trigger:focus-within .trust-tooltip {
        transform: translateX(-20%) translateY(0);
    }
}

/* Hero Visual / Mockup */
.hero-visual {
    flex: 1;
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    perspective: 1200px;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(59, 130, 246, 0.12) 35%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.browser-mockup {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.browser-mockup:hover {
    transform: translateY(-5px);
}

.browser-header {
    background: #f1f5f9;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #f8fafc;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8fafc;
}

/* Pagination Dots */
.slider-pagination {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.page-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.page-dot:hover {
    background: rgba(148, 163, 184, 0.8);
}

.page-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Hover Interactive Tooltips */
.slide-tooltip {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.85;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border: 1px solid rgba(226, 232, 240, 0.5);
    z-index: 10;
}

.slide:hover .slide-tooltip {
    opacity: 0.2;
}

.tooltip-bottom-right { bottom: 20px; right: 20px; }
.tooltip-top-left { top: 20px; left: 20px; }
.tooltip-bottom-left { bottom: 20px; left: 20px; }

.bounce-soft {
    animation: bounceSoft 4s infinite ease-in-out;
}

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

.hero-photo-wrapper:hover .hero-photo {
    transform: rotateY(0deg) rotateX(0deg) translateY(-10px);
    box-shadow: 0 40px 70px -15px rgba(0,0,0,0.4);
}

.mockup-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transform: rotateY(-8deg) rotateX(4deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.mockup-card:hover { transform: rotateY(0deg) rotateX(0deg); }

.glass-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.5);
}

/* Premium Enhancements */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.glass-badge {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    color: var(--text-main);
    z-index: 20;
}

.floating-stat-card {
    position: absolute;
    top: 60px;
    left: -40px;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 6s ease-in-out infinite;
}

.stat-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.25);
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

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

.mockup-header {
    background: #f1f5f9;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e2e8f0;
}
.dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.mockup-title { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }

.mockup-body { padding: 1.5rem; }

.stats-row { display: flex; gap: 0.75rem; margin-bottom: 1rem; }
.stat-box {
    flex: 1;
    background: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}
.stat-label { display: block; font-size: 0.75rem; color: var(--text-light); }
.stat-value { display: block; font-size: 1.4rem; font-weight: 700; color: var(--primary); margin: 2px 0; }
.stat-change { font-size: 0.7rem; font-weight: 600; }
.stat-change.positive { color: #10b981; }

/* Chart bars */
.chart-placeholder {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100px;
    padding: 12px 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 0.75rem;
}
.chart-bar {
    flex: 1;
    height: var(--h);
    background: linear-gradient(to top, #dbeafe, #93c5fd);
    border-radius: 6px 6px 0 0;
    transition: height 0.5s ease;
}
.chart-bar.active {
    background: linear-gradient(to top, var(--primary-light), var(--primary));
}

.mini-table { display: flex; flex-direction: column; gap: 4px; }
.table-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f8fafc;
    color: var(--text-muted);
}
.text-blue { color: var(--primary); font-weight: 600; }

/* Floating badges */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 8px 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    animation: floatBadge 3s ease-in-out infinite;
}
.fb-1 { top: -10px; right: -10px; animation-delay: 0s; }
.fb-2 { bottom: 20%; left: -20px; animation-delay: 1s; }
.fb-3 { bottom: -10px; right: 30%; animation-delay: 2s; }
.fb-4 { top: 15%; left: -30px; animation-delay: 1.5s; }

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

/* ============================================
   Stats Banner
   ============================================ */
.stats-banner {
    background-color: #1d4ed8;
    padding: 3rem 2rem;
}
.stats-container {
    max-width: 1536px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
}
.stat-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    font-weight: 400;
}

/* ============================================
   Deep Features Section (Pro Features)
   ============================================ */
.deep-features-section {
    padding: 6rem 0;
    background: var(--bg-alt);
}

.deep-features-section .section-container {
    max-width: 1536px; /* เธ‚เธขเธฒเธขเธ‚เธญเธšเนƒเธซเน‰เธ เธงเน‰เธฒเธ‡เธชเธธเธ”เน† เน€เธžเธทเนˆเธญเธฃเธญเธ‡เธฃเธฑเธš 2 เธ„เธญเธฅเธฑเธกเธ™เนŒ */
}

.deep-feature-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2.5rem;
    padding: 0 2rem 2rem 2rem;
    scrollbar-width: none;
}
.deep-feature-grid::-webkit-scrollbar {
    display: none;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    color: var(--primary);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.slider-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
    border-color: var(--primary);
}
.slider-prev { left: 15px; }
.slider-next { right: 15px; }

@media (max-width: 992px) {
    .slider-btn { display: none !important; }
}

.df-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 80px 1fr;
    column-gap: 2.5rem;
    width: 85%;
    max-width: 800px;
    scroll-snap-align: center;
    flex-shrink: 0;
    row-gap: 0.75rem;
    align-items: start;
    position: relative;
    overflow: hidden;
}
.df-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

/* Theme Colors for Cards */
.df-card.color-blue { --theme-main: #3b82f6; --theme-grad: linear-gradient(135deg, #3b82f6, #6366f1); --theme-bg: #eff6ff; --theme-border: #dbeafe; }
.df-card.color-orange { --theme-main: #f97316; --theme-grad: linear-gradient(135deg, #f97316, #f43f5e); --theme-bg: #fff7ed; --theme-border: #ffedd5; }
.df-card.color-teal { --theme-main: #0d9488; --theme-grad: linear-gradient(135deg, #14b8a6, #0ea5e9); --theme-bg: #f0fdfa; --theme-border: #ccfbf1; }
.df-card.color-pink { --theme-main: #ec4899; --theme-grad: linear-gradient(135deg, #ec4899, #d946ef); --theme-bg: #fdf2f8; --theme-border: #fce7f3; }
.df-card.color-purple { --theme-main: #8b5cf6; --theme-grad: linear-gradient(135deg, #a855f7, #6366f1); --theme-bg: #f5f3ff; --theme-border: #ede9fe; }
.df-card.color-cyan { --theme-main: #06b6d4; --theme-grad: linear-gradient(135deg, #06b6d4, #3b82f6); --theme-bg: #ecfeff; --theme-border: #cffafe; }
.df-card.color-green { --theme-main: #22c55e; --theme-grad: linear-gradient(135deg, #22c55e, #10b981); --theme-bg: #f0fdf4; --theme-border: #dcfce7; }

/* Card Preview Button */
.df-preview-btn {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1rem;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(99,102,241,0.06));
    border: 1px dashed rgba(59,130,246,0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.df-preview-btn:hover {
    background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(99,102,241,0.12));
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.15);
}
.df-preview-thumb {
    width: 56px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(59,130,246,0.2);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.df-preview-btn span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}
.df-preview-btn span i {
    font-size: 1rem;
}

.df-icon-wrapper {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 80px;
    height: 80px;
    background: var(--theme-grad, linear-gradient(135deg, #f97316, #e11d48));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    box-shadow: 0 10px 25px -5px var(--theme-main, #f97316);
}
.df-icon {
    font-size: 2.5rem;
    color: white;
}

.df-card h3 {
    grid-column: 2;
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin: 0;
}
.df-card > p {
    grid-column: 2;
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 0 0 1rem 0;
}


.df-list {
    grid-column: 1 / -1;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0.5rem 0 0 0;
    padding-top: 1.5rem;
    border-top: 1px dashed #e2e8f0;
}
.df-list li {
    font-size: 0.95rem;
    color: var(--text);
    padding-left: 1.8rem;
    position: relative;
    line-height: 1.5;
}
.df-list li::before {
    content: "โ’";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Hover Preview Image Tooltip */
.hover-preview-image {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
    pointer-events: none;
    padding-bottom: 15px;
}
.hover-preview-item:hover .hover-preview-image {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.hover-preview-image img {
    width: 220px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    border: 3px solid white;
    cursor: pointer;
    transition: transform 0.2s;
}
.hover-preview-image img:hover {
    transform: scale(1.03);
}
.hover-preview-image::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

/* Premium List Styles */
.premium-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
    margin-top: 0.5rem;
}
.premium-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-left: 0;
}
.premium-list li::before {
    content: none;
}
.list-icon {
    width: 44px;
    height: 44px;
    background: var(--theme-bg, #fff7ed);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    border: 1px solid var(--theme-border, #ffedd5);
    transition: all 0.2s ease;
}
.list-icon i {
    color: var(--theme-main, #f97316);
}
.premium-list li:hover .list-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 12px -2px var(--theme-main, #f97316);
}
.list-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.list-text strong {
    font-size: 1.05rem;
    color: var(--primary-dark);
}
.list-text span {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
}


/* ============================================
   Ecosystem Section
   ============================================ */
.ecosystem { padding: 6rem 0; }

.eco-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.eco-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}
.eco-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transition: height 0.3s ease;
}
.eco-blue::before { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.eco-dark::before { background: linear-gradient(90deg, #334155, #64748b); }
.eco-purple::before { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.eco-red::before { background: linear-gradient(90deg, #dc2626, #fb7185); }
.eco-teal::before { background: linear-gradient(90deg, var(--teal), #2dd4bf); }

.eco-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.eco-card:hover::before { height: 6px; }

.eco-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-wrapper img { width: 56px; height: 56px; object-fit: contain; }
.icon-pill { color: var(--teal); }

.eco-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    background: var(--bg-alt);
    color: var(--text-muted);
}

.eco-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.eco-card > p { font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.6; }

/* ============================================
   CRM Showcase
   ============================================ */
.crm-showcase {
    padding: 6rem 0;
    background-color: #1d4ed8; /* Deepened slightly for better text contrast */
    color: var(--white);
    overflow: hidden;
}
.crm-showcase .section-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.badge-white {
    background: rgba(255,255,255,0.15);
    color: #93c5fd;
}

.crm-content { flex: 1; }
.crm-content h2 { color: var(--white); }
.crm-content p { color: rgba(255,255,255,0.95); margin-bottom: 2rem; font-size: 1.05rem; }

.crm-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.crm-features li {
    color: #ffffff;
    font-size: 1.05rem;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    text-align: left;
}

/* Phone Frame */
.crm-visual { flex: 0.6; display: flex; justify-content: center; }

.phone-frame {
    width: 280px;
    height: 500px;
    background: #1a1a2e;
    border-radius: 40px;
    padding: 16px;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.5);
    position: relative;
}
.phone-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #333;
    border-radius: 10px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0f172a, #1e293b);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    padding: 2rem 1.5rem;
}

.crm-card-demo { width: 100%; }

.crm-card-front {
    background: linear-gradient(135deg, #1e40af, #7c3aed);
    border-radius: 16px;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.4);
}
.card-logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.9;
}
.card-logo-area img { filter: brightness(0) invert(1); }
.card-name { font-size: 1rem; font-weight: 500; margin-bottom: 1rem; }
.card-points { margin-bottom: 0.75rem; }
.points-label { display: block; font-size: 0.7rem; opacity: 0.7; }
.points-value { font-size: 2.2rem; font-weight: 800; }
.card-tier {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    width: 100%;
}

/* ============================================
   Pricing Section
   ============================================ */
.pricing-section { padding: 6rem 0; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pricing-card.popular {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-blue);
    transform: scale(1.03);
}
.pricing-card.popular:hover { transform: scale(1.05) translateY(-4px); }

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 4px 20px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-header { text-align: center; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #e2e8f0; }
.pricing-header h3 { font-size: 1.3rem; color: var(--text); }
.price { font-size: 3rem; font-weight: 800; color: var(--primary-dark); margin: 0.5rem 0; }
.currency { font-size: 1.5rem; vertical-align: top; }
.price-period { font-size: 0.85rem; color: var(--text-light); margin: 0; }

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.pricing-features li {
    font-size: 0.9rem;
    color: var(--text);
    padding-left: 1.5rem;
    position: relative;
}
.pricing-features li::before {
    content: 'โ“';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}
.pricing-features li.disabled {
    color: var(--text-light);
    text-decoration: line-through;
}
.pricing-features li.disabled::before {
    content: 'โ—';
    color: #cbd5e1;
}

.premium-card {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #fcd34d;
}

.pricing-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 2rem;
}

/* ============================================
   Contact Section
   ============================================ */
.contact { padding: 6rem 0; background: var(--bg-alt); }

.contact-panel {
    background: linear-gradient(135deg, var(--primary-dark), #0f172a);
    border-radius: var(--radius-lg);
    padding: 4rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    color: var(--white);
    box-shadow: 0 25px 60px -15px rgba(30, 58, 138, 0.35);
    position: relative;
    overflow: hidden;
}
.contact-panel::before {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-info { flex: 1; z-index: 1; }
.contact-info h2 { color: var(--white); margin-bottom: 1rem; }
.contact-info p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }

.contact-methods { display: flex; gap: 1rem; flex-wrap: wrap; }

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s ease;
}
.contact-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
}
.contact-btn-icon { font-size: 1.5rem; }
.btn-title { display: block; font-weight: 600; font-size: 1rem; }
.btn-subtitle { display: block; font-size: 0.8rem; opacity: 0.7; }

.register-btn { border-left: 3px solid #3b82f6; }
.line-btn { border-left: 3px solid #00c300; }
.fb-btn { border-left: 3px solid #1877f2; }

.qr-section { z-index: 1; }
.qr-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transform: rotate(2deg);
    transition: transform 0.3s;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
.qr-card:hover { transform: rotate(0deg); }
.qr-image { width: 160px; height: 160px; border-radius: 12px; margin-bottom: 0.75rem; }
.qr-text { font-size: 0.9rem; color: var(--text); margin: 0 0 0.5rem; font-weight: 500; }
.qr-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e8fce8;
    color: #059669;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: #0f172a;
    color: rgba(255,255,255,0.7);
    padding: 4rem 2rem 2rem;
}
.footer-container { max-width: 1536px; margin: 0 auto; }

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img { margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: 0.8; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 1rem; }
.contact-text p { font-size: 0.9rem; margin-bottom: 0.5rem; }

.footer-links-group h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 1rem; }
.footer-links-group a {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    padding: 0.4rem 0;
    transition: color 0.2s;
}
.footer-links-group a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom { text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* ============================================
   Backend Showcase (Alternating Layout)
   ============================================ */
.backend-showcase {
    padding: 6rem 2rem;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    margin-top: 4rem;
}

.showcase-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.showcase-block.reverse {
    direction: rtl;
}
.showcase-block.reverse > * {
    direction: ltr;
}

.showcase-text h3 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin: 1rem 0;
    line-height: 1.3;
}
.showcase-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.showcase-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.showcase-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1rem;
    color: var(--text);
}
.showcase-checklist li i {
    font-size: 1.5rem;
    color: var(--teal);
    flex-shrink: 0;
    margin-top: 2px;
}

.showcase-image-wrapper {
    position: relative;
    border-radius: 24px;
    padding: 1.5rem;
    background: var(--bg-alt);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}
.showcase-image-wrapper:hover {
    transform: translateY(-10px) scale(1.02);
}
.showcase-image-wrapper img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: block;
    transition: all 0.3s ease;
}
.showcase-image-wrapper img.widget-img {
    max-width: 260px;
    margin: 0 auto;
}
.image-hint {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transition: opacity 0.3s ease, bottom 0.3s ease;
}
.showcase-image-wrapper:hover .image-hint {
    opacity: 1;
    bottom: -20px;
}

/* ============================================
   Lightbox Modal
   ============================================ */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 2rem;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}
.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.lightbox-modal.show .lightbox-content {
    transform: scale(1);
}
.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    background: rgba(255,255,255,0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.lightbox-close:hover {
    color: var(--accent-light);
    background: rgba(255,255,255,0.2);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    /* horizontal scroll maintains layout on mobile */
    .eco-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .crm-showcase .section-container { flex-direction: column; text-align: center; }
    .crm-features { align-items: flex-start; display: inline-flex; margin: 0 auto; }
    .showcase-block { grid-template-columns: 1fr; gap: 2rem; }
    .showcase-block.reverse { direction: ltr; }
    .showcase-text { text-align: center; }
    .showcase-checklist li { justify-content: center; text-align: left; }
    .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .section-container { padding: 0 1rem; }
    
    .nav-links { 
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-bottom: 1px solid #e2e8f0;
    }
    .nav-links.open { display: flex; }
    .nav-links a.active::after { display: none; }
    .nav-actions .btn { display: none; }
    .hamburger { display: flex; }

    .hero-logo-side { display: none !important; }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
        min-height: auto;
        gap: 1rem;
    }
    .hero-content, .hero-visual { display: contents; }
    .hero-buttons { justify-content: center; order: 6; }
    .trust-indicators { justify-content: center; }
    .trust-section { order: 7; margin-top: 1.5rem !important; width: 100%; }
    
    .badge-row { 
        justify-content: center; 
        flex-wrap: nowrap; 
        gap: 4px; 
        order: 1;
    }
    .badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
        white-space: nowrap;
    }
    
    .browser-wrapper { 
        width: 100%; 
        max-width: 400px; 
        margin: 0 auto 1.5rem auto; 
        order: 2;
    }
    
    .hero h1 { order: 3; font-size: 2.2rem; }
    .hero-desc { order: 4; }
    .hero-metrics { 
        order: 5; 
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        margin-bottom: 25px;
    }
    .hero-metrics .metric {
        flex: 1;
    }
    .hero-metrics .metric-num {
        font-size: 1.8rem;
    }
    .hero-metrics .metric-text {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .mobile-hide { display: none !important; }
    
    .slide-tooltip {
        font-size: 0.75rem;
        padding: 6px 12px;
        white-space: nowrap;
        width: auto;
        left: 10px !important;
        right: auto !important;
        bottom: 10px !important;
        top: auto !important;
    }
    .hero-main-title { 
        white-space: normal; 
        word-break: keep-all; 
        font-size: 0.9em; 
    }
    .hero-blue-pill {
        white-space: normal;
        font-size: 0.52em;
        padding: 8px 14px;
        border-radius: 10px;
        margin-top: 10px;
        margin-bottom: 12px;
        line-height: 1.6;
    }
    .hero-red-tag {
        white-space: normal;
        margin-top: 8px;
        font-size: 0.7em;
    }
    .desktop-only { display: none !important; }
    .red-tag-highlight {
        display: inline-block;
        margin-bottom: 4px;
    }
    .mockup-card, .hero-photo { transform: none !important; border-width: 4px; }
    .hero-photo-wrapper:hover .hero-photo { transform: none !important; }
    .floating-badge { display: none; }

    .deep-feature-grid {
        padding: 0 1rem 2rem 1rem; /* เพิ่มขอบซ้ายขวาในมือถือ */
    }
    
    .df-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.5rem 1.25rem;
        row-gap: 1rem;
    }
    .df-icon-wrapper {
        grid-column: 1;
        grid-row: 1;
        margin: 0 auto 0.5rem auto;
    }
    .df-card h3 { grid-column: 1; font-size: 1.25rem; }
    .df-card > p { grid-column: 1; padding-bottom: 0; margin-bottom: 0.5rem; font-size: 0.9rem; }
    .df-list { grid-column: 1; text-align: left; }
    
    /* ระบบ Accordion แตะแล้วขยายคำอธิบายในมือถือ */
    .premium-list { grid-template-columns: 1fr; gap: 0; }
    .premium-list li { 
        align-items: center; /* เปลี่ยนกลับเป็น center เพื่อให้อยู่กึ่งกลางเป๊ะเหมือนเดิม */
        padding: 0.75rem 0; 
        border-bottom: 1px solid #f1f5f9; 
        gap: 0.75rem; 
        cursor: pointer;
        position: relative;
    }
    .premium-list li.expanded {
        align-items: flex-start; /* ดันไอคอนขึ้นบนเฉพาะตอนกางออก */
    }
    .premium-list li:last-child { border-bottom: none; }
    
    .premium-list .list-icon { width: 32px; height: 32px; font-size: 1rem; border-radius: 8px; margin-top: 2px; }
    .premium-list .list-text { gap: 0; width: calc(100% - 60px); }
    .premium-list .list-text strong { font-size: 0.95rem; display: block; }
    
    /* ซ่อนคำอธิบายเริ่มต้น พร้อมทำ Animation กางออก */
    .premium-list .list-text span { 
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: all 0.3s ease-in-out;
        display: block;
        font-size: 0.85rem;
        color: var(--text-muted);
        line-height: 1.4;
    }
    
    /* เมื่อกางออก (li.expanded) */
    .premium-list li.expanded .list-text span {
        max-height: 150px;
        opacity: 1;
        margin-top: 0.4rem;
    }

    .stats-container { grid-template-columns: repeat(2, 1fr); }
    .stat-number { font-size: 2rem; }

    .eco-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-4px); }

    .showcase-image-wrapper {
        padding: 0; /* เอาขอบเทาออกทั้งหมด */
        background: transparent;
        height: 220px; /* ล็อกความสูงเพื่อบังคับ Crop */
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid #e2e8f0;
    }
    .showcase-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* ซูมภาพให้เต็มกรอบ (Crop) */
        object-position: center top; /* โฟกัสช่วงกลาง-บนของโปรแกรม */
    }
    .showcase-image-wrapper .image-hint {
        opacity: 1; /* แสดงปุ่มขยายตลอดเวลาในมือถือ */
        bottom: 15px; /* ดันปุ่มเข้าไปอยู่ในรูป */
        background: rgba(15, 23, 42, 0.85); /* สีเข้มโปร่งแสงให้ดูพรีเมียม */
        backdrop-filter: blur(4px);
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    .contact-panel {
        flex-direction: column;
        padding: 2.5rem 1.5rem;
        text-align: center;
        gap: 2rem;
    }
    .contact-methods { justify-content: center; }
    .qr-section { display: none; }

    .footer-main { grid-template-columns: 1fr; text-align: center; gap: 2rem; }

    /* Reduce massive section gaps on mobile */
    .deep-features-section,
    .ecosystem,
    .crm-showcase,
    .pricing-section,
    .contact,
    .smart-payment-section {
        padding: 2rem 0;
    }
    
    /* Remove huge gaps around specific elements on mobile */
    .sp-image-container {
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 1.5rem auto !important;
    }
    hr {
        margin-bottom: 2.5rem !important;
    }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; }
    .btn-large { width: 100%; }
    .contact-methods { flex-direction: column; width: 100%; }
    .contact-btn { width: 100%; justify-content: center; }
    .stats-container { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* Custom Modal for Conditions */
.custom-modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(15, 23, 42, 0.6); 
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}
.custom-modal.show {
    display: flex;
    opacity: 1;
}
.custom-modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-modal.show .custom-modal-content {
    transform: translateY(0) scale(1);
}
.custom-modal-close {
    color: var(--text-muted);
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    background: #f1f5f9;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.custom-modal-close:hover {
    color: var(--text-dark);
    background: #e2e8f0;
}
.modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}
.modal-header .modal-icon {
    font-size: 2rem;
    background: #f0fdf4;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}
.modal-body {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* Smart Payment Section */
.smart-payment-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, #f0fdf4 100%);
    position: relative;
    overflow: hidden;
}
.sp-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.sp-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.sp-feature-list li {
    display: flex;
    gap: 1.25rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #dcfce7;
    transition: transform 0.3s, box-shadow 0.3s;
}
.sp-feature-list li:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.sp-icon {
    font-size: 2rem;
    color: #22c55e;
    background: #f0fdf4;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}
.sp-text strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}
.sp-text span {
    font-size: 0.95rem;
    color: var(--text-muted);
}
.sp-visuals {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.sp-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 600px;
}
.sp-qr-img {
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: 260px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border: 8px solid white;
    z-index: 2;
    transition: transform 0.3s;
    cursor: pointer;
}
.sp-line-img {
    position: absolute;
    top: 60%;
    right: -20px;
    transform: translateY(-50%);
    width: 320px;
    border-radius: 16px;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.3);
    z-index: 3;
    border: 4px solid white;
    transition: transform 0.3s;
    cursor: pointer;
}
.sp-qr-img:hover {
    transform: scale(1.05) translate(-50%, -50%);
    z-index: 10;
}
.sp-line-img:hover {
    transform: scale(1.05) translateY(-50%);
}

@media (max-width: 1024px) {
    .sp-content { grid-template-columns: 1fr; }
    .sp-visuals { margin-top: 3rem; }
    .sp-image-container { height: 500px; }
}
@media (max-width: 640px) {
    .sp-image-container { height: 400px; }
    .sp-qr-img { width: 200px; left: 45%; }
    .sp-line-img { width: 240px; right: 0; top: 70%; }
}

/* Interactive Badge for ABC Analysis */
.interactive-badge { display: inline-flex; align-items: center; justify-content: center; background: #eff6ff; color: #3b82f6; border-radius: 50%; width: 26px; height: 26px; margin-left: 6px; cursor: pointer; transition: all 0.2s ease; animation: bounce-small 2s infinite; vertical-align: middle; }

/* Interactive Badge for ABC Analysis */
.interactive-badge { display: inline-flex; align-items: center; justify-content: center; background: #eff6ff; color: #3b82f6; border-radius: 50%; width: 26px; height: 26px; margin-left: 6px; cursor: pointer; transition: all 0.2s ease; animation: bounce-small 2s infinite; vertical-align: middle; }
.interactive-badge i { font-size: 16px; }
.interactive-badge:hover { background: #3b82f6; color: white; transform: scale(1.1); animation: none; }
@keyframes bounce-small { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }


/* Center and compact the Smart Payment section */
.smart-payment-section .section-container { max-width: 1280px; margin: 0 auto; }

/* ============================================
   Video Modal
   ============================================ */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.video-modal.show {
    display: flex;
    opacity: 1;
}
.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.video-modal.show .video-modal-content {
    transform: scale(1);
}
.video-modal-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
@keyframes playPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
    70% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Play button overlay */
.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    color: var(--primary);
    animation: playPulse 2s infinite ease-in-out;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
}
.video-modal-close:hover {
    color: var(--primary-light);
}
.play-btn-overlay i {
    font-size: 2.5rem;
    margin-left: 6px; /* center the play triangle optically */
}
.play-btn-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary);
    color: white;
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}
.slide.cursor-pointer {
    cursor: pointer;
}

/* ============================================
   Floating Video Widget (Bottom-Right)
   ============================================ */
.floating-video-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 8000;
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.floating-video-widget.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.floating-video-widget.dismissed {
    opacity: 0;
    transform: translateY(40px) scale(0.8);
    pointer-events: none;
}

.fvw-card {
    width: 320px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow:
        0 20px 60px -10px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(59, 130, 246, 0.08);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.fvw-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 25px 70px -10px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(59, 130, 246, 0.15);
}

/* Close button */
.fvw-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    opacity: 0;
}
.fvw-card:hover .fvw-close {
    opacity: 1;
}

@media (hover: none) and (pointer: coarse), (max-width: 768px) {
    .fvw-close {
        opacity: 1 !important;
        display: flex !important;
    }
}
.fvw-close:hover {
    background: rgba(239, 68, 68, 0.9);
    transform: scale(1.1);
}

/* Thumbnail area */
.fvw-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    overflow: hidden;
}
.fvw-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.fvw-card:hover .fvw-thumbnail img {
    transform: scale(1.05);
}

/* Dark gradient overlay on thumbnail */
.fvw-thumbnail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    pointer-events: none;
}

/* Play button on thumbnail */
.fvw-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    z-index: 5;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.fvw-play-btn i {
    margin-left: 3px;
}
.fvw-card:hover .fvw-play-btn {
    background: var(--primary);
    color: white;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

/* Pulsing ring animation */
.fvw-play-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    animation: fvwPulse 2s ease-out infinite;
}
@keyframes fvwPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Bottom info bar */
.fvw-info {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
}
.fvw-info-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.fvw-info-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
}
.fvw-info-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fvw-info-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.fvw-live-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: fvwLiveDot 1.5s infinite;
}
@keyframes fvwLiveDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Mobile responsive */
@media (max-width: 640px) {
    .floating-video-widget {
        bottom: 16px;
        right: 16px;
        left: 16px;
    }
    .fvw-card {
        width: 100%;
    }
}

/* ============================================
   Mobile Bottom Navigation
   ============================================ */
.mobile-bottom-nav {
    display: none;
}
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 -5px 20px rgba(0,0,0,0.08);
        z-index: 9999;
        border-top: 1px solid #e2e8f0;
        justify-content: space-around;
        align-items: center;
        padding: 8px 0;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    }
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #64748b;
        font-size: 0.75rem;
        font-weight: 500;
        gap: 4px;
        flex: 1;
        transition: all 0.3s;
    }
    .mobile-nav-item i {
        font-size: 1.4rem;
    }
    .mobile-nav-item.active {
        color: #2563eb;
    }
    .mobile-nav-item.highlight {
        color: #f59e0b;
    }
    body {
        padding-bottom: 60px;
    }
    .floating-video-widget {
        bottom: 75px !important;
    }
}


/* ============================================
   Floating LINE Button (PC only)
   ============================================ */
.floating-line-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.floating-line-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.floating-line-btn img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.floating-line-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,200,0,0.3);
}
.floating-line-tooltip {
    position: absolute;
    right: 70px;
    background: white;
    color: #1e293b;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
}
.floating-line-tooltip::before {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}
.floating-line-btn:hover .floating-line-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .floating-line-btn {
        display: none !important;
    }
}

.floating-line-btn.translucent {
    opacity: 0.35 !important;
}
.floating-line-btn.translucent:hover {
    opacity: 1 !important;
}
