/* --- Global Styles & Modern Utilities --- */
:root {
    /* Single Tone Policy: Orange & Greyscale */
    --primary: #ff6b35;
    --primary-gradient: linear-gradient(135deg, #ff6b35 0%, #f53d2d 100%); /* Theme Red */
    --primary-dark: #e85d2a;
    --primary-light: #fff0eb;
    --secondary: #2d3436;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-md: 0 15px 35px rgba(0,0,0,0.08);
    --shadow-lg: 0 30px 60px rgba(255, 107, 53, 0.12);
    --radius-lg: 20px;
}

body {
    font-family: 'Noto Sans Thai', sans-serif; /* Changed to Noto Sans Thai */
    font-weight: 300; /* Thin/Light for Thai */
    color: var(--text-main);
    background-color: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, input, button, select, textarea, .btn {
    font-family: 'Noto Sans Thai', sans-serif;
    font-weight: 600; /* Headers slightly bolder */
    letter-spacing: -0.5px;
}

/* --- Modern Animations & Keyframes --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(-40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

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

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(255, 107, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Scroll Animation Classes (triggered by JS) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Animations */
.animate-float { animation: floatInfinite 6s ease-in-out infinite; }
.animate-pulse { animation: pulseGlow 2s infinite; }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Modern Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #ff6b35 0%, #f53d2d 100%, #ff6b35 200%); /* Theme Red */
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 3s linear infinite;
}

/* --- Navigation (Glassmorphism) --- */
.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    color: var(--primary) !important;
    font-weight: 800;
    font-size: 1.8rem;
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.btn-nav-action {
    background: var(--primary);
    color: white !important;
    padding: 8px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: transform 0.3s;
}

.btn-nav-action:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
}

/* =========================================
   HERO SECTION - VIBRANT BRANDED (Momo Style)
   ========================================= */

.hero-section-vibrant {
    position: relative;
    /* Rich Red-Orange Gradient similar to reference */
    background: linear-gradient(120deg, #ffc312 0%, #ee5a24 60%, #ea2027 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite; /* Added gentle movement */
    padding-top: 100px; /* Added padding to clear fixed nav */
    padding-bottom: 40px; /* Adjusted bottom padding */
    color: white;
    overflow: hidden;
    border-radius: 0 0 60px 60px; /* Adjusted roundness */
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- New Hero Animations --- */

/* 1. Floating Shapes Background */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    /* Removed backdrop-filter to prevent jitter */
    will-change: transform;
    animation: floatShape 20s infinite linear;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-duration: 25s;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    right: 15%;
    background: rgba(255, 255, 255, 0.05);
    animation-duration: 30s;
    animation-delay: -5s;
}

.shape-3 {
    width: 50px;
    height: 50px;
    top: 40%;
    left: 45%;
    background: rgba(255, 233, 150, 0.15); /* Warm yellow tint */
    animation-duration: 15s;
    animation-delay: -2s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    top: -50px;
    right: -20px;
    border: 2px solid rgba(255,255,255,0.05);
    background: transparent;
    will-change: transform;
    animation: rotateShape 60s infinite linear;
}

@keyframes floatShape {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.8; }
    50% { transform: translate3d(0, -20px, 0) rotate(180deg); opacity: 0.4; }
    100% { transform: translate3d(0, 0, 0) rotate(360deg); opacity: 0.8; }
}

@keyframes rotateShape {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 2. Mascot Floating Animation */
@keyframes mascotFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -15px, 0); }
}

.hero-mascot-img {
    filter: drop-shadow(0 15px 20px rgba(0,0,0,0.15)); /* Fixed shadow for better performance */
    will-change: transform;
    animation: mascotFloat 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.hero-mascot-img:hover {
    transform: scale(1.05) translate3d(0, -5px, 0) !important;
}

/* 3. Button Shine Effect */
.hero-action-area .btn-primary {
    position: relative;
    overflow: hidden;
}

.hero-action-area .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-100%);
    will-change: transform;
    animation: shineButton 4s infinite;
}

@keyframes shineButton {
    0% { transform: translateX(-100%); }
    20% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

/* Background Pattern Overlay */
.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px, 20px 20px;
    background-position: 0 0, 25px 25px;
    opacity: 0.6;
    pointer-events: none;
}

/* Semi-Circle Bottom Edge (Optional, if we want curves) 
.hero-section-vibrant::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: white;
    border-radius: 50% 50% 0 0;
    transform: scaleX(1.5);
} */

.hero-brand-title {
    font-weight: 800;
    font-size: 4rem; /* Reduced size */
    letter-spacing: 1.5px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.15);
    margin-bottom: 0 !important;
}

.hero-main-head {
    font-weight: 700;
    font-size: 2rem; /* Reduced size */
    color: #fff;
    margin-bottom: 0.5rem !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-desc {
    font-size: 1.25rem; /* Slightly larger reading text */
    font-weight: 300;
    line-height: 1.7;
    max-width: 750px;
    margin: 0 auto;
    opacity: 1;
    margin-bottom: 2rem !important;
}

/* Hero Mascot Image */
.hero-mascot-wrapper {
    position: relative;
    z-index: 15;
    animation: floatInfinite 6s ease-in-out infinite;
    display: flex;
    justify-content: center;
}

.hero-mascot-img {
    max-width: 90%; /* Prevent it from being too huge */
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.hero-mascot-img:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Overlapping Cards Section */
.cards-overlap-section {
    margin-top: -80px; /* Moved up significantly */
    position: relative;
    z-index: 20;
    margin-bottom: 3rem;
}

.feature-card-vibrant {
    background: white;
    border-radius: 16px; /* balanced radius */
    padding: 35px 25px; /* Increased padding slightly more */
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    height: 100%;
    width: 330px; /* Widened slightly more */
    max-width: 100%;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.feature-card-vibrant:hover {
    transform: translateY(-5px);
}

.card-icon-wrapper {
    height: 50px; /* Smaller icon wrapper */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-link-hover {
    position: relative;
    display: inline-block;
    transition: all 0.3s;
}

.card-link-hover:hover {
    transform: translateX(5px);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .cards-overlap-section {
        margin-top: -60px;
    }
    .hero-brand-title {
        font-size: 3rem;
    }
    .hero-main-head {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero-brand-title {
        font-size: 2.5rem;
    }
    .hero-section-vibrant {
        padding-top: 180px; /* Increased from 120px to clear the header */
        padding-bottom: 80px;
    }
    .cards-overlap-section {
        margin-top: 0; /* Stack normally on mobile */
        padding-top: 2rem;
    }
    .feature-card-vibrant {
        margin-bottom: 1rem;
    }
}

/* Hero Features Grid */
.hero-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-card-hero {
    background: white;
    padding: 30px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.feature-icon-hero {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
}

.feature-icon-hero.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.feature-icon-hero.bg-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.feature-icon-hero.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.feature-icon-hero.bg-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.feature-card-hero h5 {
    color: #1f2937;
    font-size: 1.1rem;
}

.feature-card-hero p {
    color: #6b7280;
    line-height: 1.6;
}

/* Wave Divider */
.wave-divider-new {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.wave-divider-new svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Responsive */
@media (max-width: 992px) {
    .platform-logos-new {
        gap: 12px;
        padding: 12px 15px;
    }
    
    .platform-logo-wrapper {
        padding: 6px 10px;
    }
    
    .platform-logo-wrapper img {
        height: 28px;
    }
}

@media (max-width: 768px) {
    .hero-section-new {
        padding-top: 100px;
        padding-bottom: 80px;
    }
    
    .hero-badge-new {
        font-size: 0.8rem;
        padding: 7px 16px;
    }
    
    .hero-title-new {
        font-size: 2.2rem;
    }
    
    .hero-subtitle-new {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .search-wrapper-new {
        flex-direction: column;
        padding: 10px;
        gap: 8px;
    }
    
    .search-wrapper-new i {
        display: none;
    }
    
    .btn-search-new {
        width: 100%;
        padding: 12px 24px;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .platform-logos-new {
        gap: 10px;
        padding: 12px;
    }
    
    .platform-logo-wrapper {
        padding: 5px 8px;
    }
    
    .platform-logo-wrapper img {
        height: 24px;
    }
}

/* 3D Visual Stack */
.hero-visual-stack {
    position: relative;
    padding: 20px;
    z-index: 5;
}

.screen-mockup {
    position: relative;
    border-radius: 20px;
    background: white;
    padding: 10px;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-visual-stack:hover .screen-mockup {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Floating Status Cards */
.status-card {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    z-index: 20;
    min-width: 220px;
    transition: all 0.3s ease;
    animation: float-y 4s ease-in-out infinite;
}

.float-1 { top: 15%; left: -60px; animation-delay: 0s; }
.float-2 { bottom: 15%; right: -40px; animation-delay: 2s; }

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

.icon-circle {
    width: 45px; height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.bg-success-soft { background-color: #e6f9ed; }
.bg-orange-soft { background-color: #fff0eb; }

/* Bottom Curve */
.hero-curve-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}
.hero-curve-bottom svg {
    display: block;
    width: 100%;
    height: auto;
}

/* White Primary Button */
.btn-glow-white {
    background: white;
    color: var(--primary);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
    transition: all 0.3s;
    border: none;
}
.btn-glow-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255,255,255,0.5);
    color: var(--primary-dark);
}

/* Play Button */
.btn-play-circle {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
    transition: 0.3s;
}
.btn-play-circle:hover {
    background: white;
    color: var(--primary);
    transform: scale(1.1);
}

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

.hero-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: rgba(255,255,255,0.1);
    filter: blur(80px);
    border-radius: 50%;
    z-index: 1;
}

/* Wave Divider */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 5;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.hero-wave .shape-fill {
    fill: #FFFFFF;
}

/* New White Button */
.btn-white {
    background: white;
    color: var(--primary);
    border: none;
    transition: all 0.3s ease;
}
.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    background: #fff;
    color: var(--primary-dark);
}

/* Floating Animation for Hero Image */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hero-img-box {
    position: relative;
    z-index: 5;
    animation: float 6s ease-in-out infinite;
    max-width: 550px;
    margin: 0 auto;
}

.hero-img-box .carousel {
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25); /* Darker shadow for depth on color */
    border: 4px solid rgba(255,255,255,0.3); 
}


/* --- Section Design: Curved Top --- */
.section-curve-top {
    border-radius: 80px 80px 0 0;
    margin-top: -80px;
    position: relative;
    z-index: 5;
    padding-top: 100px;
    background: white;
}

/* --- USP Section (Floating Cards) --- */
.usp-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border-bottom: 4px solid transparent;
}
.usp-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15) !important;
}

.usp-card .icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    transition: 0.3s;
}
/* Semantic Soft Colors */
.bg-primary-soft { background-color: #e3f2fd; color: #1565c0; }
.bg-success-soft { background-color: #e8f5e9; color: #2e7d32; }
.bg-info-soft { background-color: #e0f7fa; color: #006064; }
.bg-warning-soft { background-color: #fff3e0; color: #ef6c00; }
.bg-danger-soft { background-color: #ffebee; color: #c62828; }
.bg-blue-soft { background-color: #e3f2fd; color: #1565c0; }

.hover-float {
    transition: transform 0.3s ease;
}
.hover-float:hover {
    transform: translateY(-5px);
}

.usp-card:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
}

/* Legacy Support (Can be removed later) */
.usp-item { display: none; }

/* --- Services (Large Watermark Numbers) --- */
.feature-row {
    margin-bottom: 100px;
    position: relative;
}

.watermark-number {
    font-size: 8rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px rgba(0,0,0,0.05); /* Outline only */
    position: absolute;
    top: -50px;
    left: 0;
    z-index: -1;
    line-height: 1;
    font-family: 'Noto Sans Thai', sans-serif;
}

.feature-img-holder {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(2deg);
    transition: all 0.5s ease;
}

.feature-row:hover .feature-img-holder {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
}
.feature-row:hover img {
    transform: scale(1.05);
}

/* --- Process (Connected Steps) --- */
.process-section {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf8 100%);
    padding: 120px 0;
    overflow: hidden; /* Hide overflow from line */
}

.step-card {
    background: white;
    padding: 45px 30px;
    border-radius: 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    z-index: 2;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.15);
    border-color: transparent;
}

/* Connector Line (Desktop Only) */
.process-line {
    position: absolute;
    top: 140px; /* Adjust based on step-number position */
    left: 0;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(to right, #ddd 0, #ddd 10px, transparent 10px, transparent 20px);
    z-index: 1;
    display: none;
}

@media (min-width: 992px) {
    .process-line { display: block; }
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: white;
    color: var(--primary);
    border: 2px solid #fff0eb;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.1);
    position: relative;
    z-index: 2;
    transition: 0.3s;
}

.step-card:hover .step-number {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: scale(1.1) rotate(10deg);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    opacity: 0.5;
    transition: 0.3s;
}

.step-card:hover .step-icon {
    transform: scale(1.1);
    opacity: 1;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Remove old arrow */
.arrow-icon { display: none; }

/* --- Pricing (Modern Cards) --- */
.pricing-clean {
    border: 1px solid #f0f0f0;
    background: white;
    border-radius: 25px;
    padding: 50px 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.pricing-clean:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.pricing-clean.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: scale(1.05); /* Slightly bigger */
    z-index: 10;
}

.pricing-clean.active .price,
.pricing-clean.active h3, 
.pricing-clean.active .text-muted,
.pricing-clean.active .list-unstyled,
.pricing-clean.active div {
    color: white !important;
    opacity: 1 !important;
}

.pricing-clean.active .badge {
    background: rgba(255,255,255,0.25) !important;
    color: white !important;
    backdrop-filter: blur(5px);
    font-weight: 500;
}

.pricing-clean.active .btn {
    background: white;
    color: var(--primary);
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.pricing-clean.active .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    margin: 20px 0;
    font-family: 'Noto Sans Thai', sans-serif;
    letter-spacing: -2px;
}

.pricing-clean ul li {
    padding: 8px 0;
    font-size: 1rem;
    border-bottom: 1px dashed rgba(0,0,0,0.05);
}
.pricing-clean.active ul li {
    border-bottom: 1px dashed rgba(255,255,255,0.2);
}
.pricing-clean ul li:last-child { border-bottom: none; }

/* --- Contact FormWrapper (Glass) --- */
.form-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,1);
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

/* --- Footer --- */
footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.7);
    padding-top: 80px;
}

.text-orange { color: var(--primary) !important; }
.bg-orange { background-color: var(--primary) !important; }

/* Remove underline from all anchor-based buttons */
a.btn,
a[class*="btn-"],
a.filter-pill,
a.btn-pay-now,
a.nav-link {
    text-decoration: none !important;
}

.btn-outline-orange {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-outline-orange:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(255,107,53,0.35);
}
.fw-600 { font-weight: 600 !important; }

/* Compatibility & Utility Classes */
.text-custom-orange { color: var(--primary) !important; }
.bg-custom-orange { background-color: var(--primary) !important; }

.btn-custom-orange {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}
.btn-custom-orange:hover {
    background-color: #e55a2b;
    border-color: #e55a2b;
    color: white;
}

.line-btn {
    background-color: #00B900;
    color: white;
    font-weight: bold;
    border: none;
}
.line-btn:hover {
    background-color: #009900;
    color: white;
}

/* Utilities */
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-header p { font-size: 1.1rem; color: var(--text-muted); }
.ls-1 { letter-spacing: 1px; }

/* Utility Classes */
.z-index-10 { z-index: 10 !important; }
.z-index-20 { z-index: 20 !important; }
.position-relative { position: relative !important; }

/* Remove old styles references */
.navbar-nav .nav-link:hover { transform: none; text-shadow: none; }

/* Utility: Hover Lift */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- Logo Marquee --- */
.logo-marquee-wrapper {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.logo-marquee {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scrollLeft 30s linear infinite;
}
.logo-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    min-width: 100px;
    transition: all 0.3s;
}
.logo-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}
.logo-item img {
    height: 35px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Make logos white initially */
    opacity: 0.8;
    transition: all 0.3s;
}
.logo-item:hover img {
    filter: none; /* Show original colors on hover */
    opacity: 1;
}

@keyframes scrollLeft {
    to { transform: translateX(-50%); }
}

/* Typography Enhancements */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}
.letter-spacing-1 { letter-spacing: 1px; }
.letter-spacing-2 { letter-spacing: 2px; }

/* Glass Card for Visual Stack */
.glass-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Platform Glass Pills */
.platform-glass-pill {
    background: #ffffff;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 10px 22px; /* Increased padding */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.platform-glass-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.platform-glass-pill img {
    height: 32px; /* Larger logos */
    width: auto;
    filter: none; /* Show real colors */
    opacity: 1;
    transition: all 0.3s;
}

.platform-glass-pill:hover img {
    transform: scale(1.05);
}

/* Responsive Adjustments */

/* Custom Navigation Styles */
.nav-link-custom {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    letter-spacing: 0.3px;
}

.nav-link-custom:hover {
    color: #fff !important;
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background-color: #fff;
    transition: width 0.3s ease;
    border-radius: 10px;
    transform: translateX(-50%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-link-custom:hover::after {
    width: 25px;
}

.nav-link-custom.active {
    color: #fff !important;
    font-weight: 600;
}

.nav-link-custom.active::after {
    width: 40px; /* Longer line for active item */
}

/* =========================================
   AUTH MODAL STYLES (Login & Register)
   ========================================= */

/* Dialog sizing — desktop */
.auth-modal-dialog {
    width: calc(100% - 32px);
    max-width: 720px;
    margin: 16px auto;
}

/* ── Mobile: floating card กลางจอ ── */
@media (max-width: 575.98px) {
    .auth-modal-dialog {
        width: calc(100% - 32px);
        max-width: 420px;
        margin: auto !important;
        align-items: center !important;
    }
    .auth-modal-dialog .modal-content {
        border-radius: 16px !important;
        overflow: hidden;
    }
    /* fade in แบบ scale เล็กน้อย */
    .modal.fade .modal-dialog.auth-modal-dialog {
        transform: scale(0.95);
        opacity: 0;
        transition: transform 0.22s ease-out, opacity 0.22s ease-out;
    }
    .modal.show .modal-dialog.auth-modal-dialog {
        transform: scale(1);
        opacity: 1;
    }

    /* form body บน mobile — scroll ได้ถ้าหน้าจอเล็ก */
    .auth-modal-dialog .modal-content .col-12.col-md-7 {
        max-height: 88vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Input */
.auth-input {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
    font-size: 0.92rem;
    color: #333;
    padding: 9px 12px;
    height: auto;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
    border-color: #ee4d2d;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(238, 77, 45, 0.1);
    outline: none;
}

.auth-input::placeholder {
    color: #bbb;
    font-size: 0.85rem;
}

/* Primary Button */
.auth-btn-primary {
    background: #ee4d2d;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.auth-btn-primary:hover {
    background: #d73211;
    color: #fff;
}

.auth-btn-primary:active {
    background: #c02a0d;
    color: #fff;
}

/* Modal slide-down animation (desktop) */
.modal.fade .modal-dialog {
    transform: translateY(-12px);
    transition: transform 0.25s ease-out;
}
.modal.show .modal-dialog {
    transform: translateY(0);
}

/* Error Shake */
@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}
.shake-animation {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* --- Scraped Product Card Enhancements --- */
.product-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
}

.transition-all {
    transition: all 0.2s ease-in-out;
}

.gallery-thumb {
    transition: all 0.2s;
    border: 2px solid transparent;
}

.gallery-thumb:hover, .gallery-thumb.active {
    border-color: var(--primary) !important;
    transform: scale(1.05);
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.x-small {
    font-size: 0.75rem;
}

.fw-800 {
    font-weight: 800;
}

.nav-tabs .nav-link {
    color: var(--text-muted);
    border: none;
    border-bottom: 2px solid transparent;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    background: transparent;
}

.product-description-content {
    background: #fff;
    font-size: 14px;
    line-height: 1.6;
    text-align: center; /* Center everything */
}

.product-description-content img {
    max-width: 85% !important; /* Limit width so it doesn't touch edges */
    height: auto !important;
    display: block;
    margin: 0 auto 15px; /* Spacing between images */
    border-radius: 8px; /* Soft corners */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Subtle depth */
}

.product-description-content p {
    margin-bottom: 10px;
    color: #666;
}

.sku-card {
    cursor: pointer;
    border: 1px solid #dee2e6;
}

.sku-card:hover {
    border-color: var(--primary) !important;
}

.title-hint {
    cursor: help;
}

/* Floating Bubbles Animation */
.auth-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* Behind content */
    pointer-events: none;
}

.auth-bubbles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: floatUp 25s linear infinite;
    bottom: -150px;
    border-radius: 50%;
}

.auth-bubbles li:nth-child(1) { left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
.auth-bubbles li:nth-child(2) { left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; background: rgba(255, 255, 255, 0.3); }
.auth-bubbles li:nth-child(3) { left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
.auth-bubbles li:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.auth-bubbles li:nth-child(5) { left: 65%; width: 20px; height: 20px; animation-delay: 0s; }
.auth-bubbles li:nth-child(6) { left: 75%; width: 110px; height: 110px; animation-delay: 3s; background: rgba(255, 255, 255, 0.15); }
.auth-bubbles li:nth-child(7) { left: 35%; width: 150px; height: 150px; animation-delay: 7s; }
.auth-bubbles li:nth-child(8) { left: 50%; width: 25px; height: 25px; animation-delay: 15s; animation-duration: 45s; }
.auth-bubbles li:nth-child(9) { left: 20%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 35s; }
.auth-bubbles li:nth-child(10) { left: 85%; width: 150px; height: 150px; animation-delay: 0s; animation-duration: 11s; }

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}



