
    /* --- Root Variables --- */
    :root {
        --bg-color: #020617;
        --surface-color: #1e293b;
        --text-main: #f8fafc;
        --text-muted: #94a3b8;
        --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
        --text-gradient: linear-gradient(90deg, #818cf8, #c084fc);
        --glass-bg: rgba(30, 41, 59, 0.7);
        --glass-border: rgba(255, 255, 255, 0.1);
        --indigo-400: #818cf8;
        --indigo-500: #6366f1;
        --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    body {
        font-family: 'Kanit', sans-serif;
        background-color: var(--bg-color);
        color: var(--text-main);
        line-height: 1.6;
        overflow-x: hidden;
        scroll-behavior: smooth;
        font-size: 16px;
    }

    button, input, select, textarea, a, span, p, h1, h2, h3, h4, h5, h6 {
        font-family: 'Kanit', sans-serif;
    }

    .container {
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 1.5rem;
    }

    /* --- Utilities --- */
    .glass {
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid var(--glass-border);
    }

    .gradient-text {
        background: var(--text-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .gradient-bg {
        background: var(--primary-gradient);
    }

    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        padding: 0.875rem 1.75rem;
        border-radius: 0.875rem;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        text-decoration: none;
        border: none;
        color: white;
        font-size: 1.1rem;
    }

    .btn:active { transform: scale(0.95); }
    .btn-primary { 
        box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3); 
    }
    .btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }

    /* --- Navigation --- */
    nav {
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
        padding: 1.5rem 0;
        transition: var(--transition);
    }

    nav.scrolled {
        padding: 1rem 0;
        background: rgba(2, 6, 23, 0.9);
    }

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

    .logo {
        font-size: 1.75rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 0.6rem;
        cursor: pointer;
    }

    .nav-links {
        display: none; 
        align-items: center;
        gap: 2.5rem;
    }

    .nav-links a {
        color: var(--text-main);
        text-decoration: none;
        font-size: 1rem;
        transition: var(--transition);
    }

    .nav-links a:hover { color: var(--indigo-400); }

    /* --- Section Controls --- */
    #page-home, #page-checkout {
        min-height: 100vh;
    }

    /* --- Hero Section --- */
    .hero {
        padding-top: 10rem;
        padding-bottom: 6rem;
        min-height: 100vh;
        display: flex;
        align-items: center;
        position: relative;
    }

    .hero-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5rem;
        align-items: center;
        text-align: center;
    }

    .hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        background: rgba(99, 102, 241, 0.1);
        border: 1px solid rgba(99, 102, 241, 0.2);
        padding: 0.4rem 1.25rem;
        border-radius: 9999px;
        color: var(--indigo-400);
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: 3.5rem;
        line-height: 1.2;
        margin-bottom: 2rem;
    }

    .hero p {
        color: var(--text-muted);
        font-size: 1.25rem;
        max-width: 36rem;
        margin: 0 auto 2.5rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        justify-content: center;
    }

    .hero-info {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
        margin-top: 3rem;
        font-size: 1rem;
        color: var(--text-muted);
    }

    .hero-info span { display: flex; align-items: center; gap: 0.5rem; }
    .hero-info i { color: #4ade80; }

    /* --- Phone Mockup --- */
    .phone-container {
        position: relative;
        display: flex;
        justify-content: center;
    }

    .phone-glow {
        position: absolute;
        z-index: -1;
        width: 20rem;
        height: 20rem;
        background: rgba(79, 70, 229, 0.2);
        filter: blur(120px);
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .phone-frame {
        width: 300px;
        height: 600px;
        border: 12px solid var(--surface-color);
        border-radius: 45px;
        position: relative;
        background: var(--bg-color);
        overflow: hidden;
        box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
        animation: float 5s ease-in-out infinite;
    }

    .phone-notch {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 130px;
        height: 26px;
        background: var(--surface-color);
        border-bottom-left-radius: 18px;
        border-bottom-right-radius: 18px;
        z-index: 10;
    }

    .phone-screen {
        padding: 1.75rem;
        padding-top: 3.5rem;
    }

    .phone-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 3rem;
    }

    .avatar-circle {
        width: 2.25rem;
        height: 2.25rem;
        border-radius: 50%;
        background: rgba(99, 102, 241, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .phone-card {
        padding: 1.5rem;
        border-radius: 1.5rem;
        border: 1px solid rgba(255, 255, 255, 0.05);
        margin-bottom: 2rem;
    }

    .phone-task {
        background: rgba(30, 41, 59, 0.5);
        padding: 1.25rem;
        border-radius: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .icon-box {
        width: 3rem;
        height: 3rem;
        border-radius: 0.75rem;
        background: var(--indigo-500);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .animate-spin-custom {
        animation: spin 2s linear infinite;
    }

    /* --- Features --- */
    .features {
        padding: 8rem 0;
        background: rgba(15, 23, 42, 0.3);
    }

    .section-header {
        text-align: center;
        margin-bottom: 5rem;
    }

    .section-header h2 { font-size: 3rem; margin-bottom: 1.25rem; }
    .section-header p { font-size: 1.15rem; color: var(--text-muted); }

    .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2.5rem;
    }

    .feature-card {
        padding: 2.5rem;
        border-radius: 2rem;
        text-align: center;
        transition: var(--transition);
    }

    .feature-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px -10px rgba(99, 102, 241, 0.3);
    }

    .feature-icon {
        width: 4.5rem;
        height: 4.5rem;
        background: rgba(99, 102, 241, 0.1);
        border-radius: 1.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 2rem;
        color: var(--indigo-400);
    }

    .feature-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
    .feature-card p { font-size: 1.05rem; }

    /* --- Pricing --- */
    .pricing {
        padding: 8rem 0;
    }

    .pricing-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 1100px;
        margin: 0 auto;
        align-items: center;
    }

    .price-card {
        padding: 3rem;
        border-radius: 2rem;
        border: 1px solid var(--surface-color);
        display: flex;
        flex-direction: column;
        transition: var(--transition);
    }

    .price-card.featured {
        border: 2px solid var(--indigo-500);
        position: relative;
        box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
    }

    .price-badge {
        position: absolute;
        top: -1.5rem;
        left: 50%;
        transform: translateX(-50%);
        padding: 0.5rem 1.5rem;
        border-radius: 9999px;
        font-size: 0.875rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .price-card h3 { font-size: 1.5rem; margin-bottom: 1.25rem; }
    .price-amount { font-size: 3rem; font-weight: 700; margin-bottom: 2rem;  text-align: center;}
    .price-amount span { font-size: 1.125rem; font-weight: 400; color: var(--text-muted); }

    .price-list {
        list-style: none;
        margin-bottom: 3rem;
        flex-grow: 1;
    }

    .price-list li {
        display: flex;
        align-items: center;
        gap: 1rem;
        font-size: 1.05rem;
        margin-bottom: 1.25rem;
        color: #cbd5e1;
    }

    .btn-outline {
        background: transparent;
        border: 2px solid var(--indigo-400);
        color: var(--indigo-400);
    }

    .btn-outline:hover { background: var(--indigo-400); color: white; }

    /* --- Review Slider Styles --- */
    .reviews-section {
        padding: 8rem 0;
        background: rgba(15, 23, 42, 0.2);
        position: relative;
    }

    .review-card {
        border-radius: 2rem;
        overflow: hidden;
        border: 1px solid var(--glass-border);
        height: 100%;
        background: rgba(30, 41, 59, 0.3);
        transition: var(--transition);
    }

    .review-card:hover {
        transform: scale(1.02);
        border-color: var(--indigo-500);
    }

    .review-img {
        width: 100%;
        height: auto;
        aspect-ratio: 9/16;
        object-fit: cover;
        display: block;
    }

    .review-info {
        padding: 1.5rem;
        text-align: center;
    }

    .review-name {
        font-weight: 700;
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
        color: var(--text-main);
    }

    .swiper-pagination-bullet {
        background: var(--indigo-400);
        opacity: 0.3;
    }

    .swiper-pagination-bullet-active {
        opacity: 1;
        width: 24px;
        border-radius: 4px;
    }

    /* --- Custom Swiper Navigation (Circle Buttons) --- */
    .review-nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 48px;
        height: 48px;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        cursor: pointer;
        z-index: 50;
        transition: var(--transition);
    }

    .review-nav-btn:hover {
        background: var(--indigo-500);
        border-color: var(--indigo-500);
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
        transform: translateY(-50%) scale(1.1);
    }

    .review-nav-btn.prev { left: -10px; }
    .review-nav-btn.next { right: -10px; }

    @media (min-width: 1024px) {
        .review-nav-btn.prev { left: -30px; }
        .review-nav-btn.next { right: -30px; }
    }

    /* Hide default swiper arrows */
    .swiper-button-next::after, .swiper-button-prev::after { display: none; }

    /* --- Footer --- */
    footer {
        padding: 4rem 0;
        border-top: 1px solid var(--surface-color);
        background: #020617;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        text-align: center;
    }

    /* --- Footer Social Styles 2026 --- */
    .footer-social {
        display: flex;
        gap: 1.5rem;
        align-items: center;
        justify-content: center; /* ปรับให้อยู่กึ่งกลางหากอยู่ใน Mobile */
    }

    .social-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        color: var(--text-muted);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        text-decoration: none;
    }

    /* เอฟเฟกต์เมื่อ Hover */
    .social-link:hover {
        transform: translateY(-5px);
        background: rgba(99, 102, 241, 0.1);
        border-color: var(--indigo-400);
        color: #fff;
        box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
    }

    /* สีเฉพาะของแต่ละแพลตฟอร์มเมื่อ Hover */
    .social-link.fb:hover {
        color: #0084ff;
        box-shadow: 0 10px 20px rgba(0, 132, 255, 0.2);
    }

    .social-link.ig:hover {
        color: #e4405f;
        box-shadow: 0 10px 20px rgba(228, 64, 95, 0.2);
    }

    .footer-social i {
        width: 1.5rem;
        height: 1.5rem;
        stroke-width: 2px; /* ทำให้เส้นไอคอนชัดขึ้น */
    }

    /* --- Vertical Video Modal Styles --- */
    #video-modal {
        position: fixed;
        inset: 0;
        z-index: 10010;
        background: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(8px);
        display: none;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
    }

    #video-modal.active { display: flex; }

    .modal-container {
        position: relative;
        width: 100%;
        max-width: 400px; 
        border-radius: 2.5rem;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 0 50px rgba(99, 102, 241, 0.2);
        padding-bottom: 1.5rem; 
        display: flex;
        flex-direction: column;
    }

    .modal-close {
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
        z-index: 2100;
        background: rgba(2, 6, 23, 0.6);
        border: none;
        color: white;
        padding: 0.75rem;
        border-radius: 50%;
        cursor: pointer;
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-close:hover { 
        background: #ef4444; 
        transform: rotate(90deg);
    }

    .video-wrapper {
        position: relative;
        padding-bottom: 177.78%; 
        height: 0;
        background: #000;
        width: 100%;
    }

    .video-wrapper iframe {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
    }

    /* --- Modal Mini Stories --- */
    .modal-stories {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        padding-top: 1.5rem;
        background: rgba(30, 41, 59, 0.5);
        width: 100%;
    }

    .mini-story {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        transition: var(--transition);
    }

    .mini-story:hover { transform: translateY(-5px); }
    .mini-circle { width: 65px; height: 65px; border-radius: 50%; padding: 3px; background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); display: flex; align-items: center; justify-content: center; }
    .mini-inner { width: 100%; height: 100%; border-radius: 50%; background: #1e293b; display: flex; align-items: center; justify-content: center; border: 2px solid #020617; }
    .mini-label { font-size: 11px; font-weight: 600; color: var(--text-main); text-transform: uppercase; letter-spacing: 0.05em; }
    .mini-story.active .mini-circle { background: var(--primary-gradient); box-shadow: 0 0 15px rgba(99, 102, 241, 0.5); }

    /* --- Checkout Page Styles --- */
    .checkout-page {
        padding-top: 10rem;
        padding-bottom: 6rem;
        min-height: 100vh;
    }

    .checkout-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4rem;
        align-items: start;
    }

    .checkout-left {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .checkout-title {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .order-card {
        background: rgba(30, 41, 59, 0.4);
        border: 1px solid var(--glass-border);
        border-radius: 1.5rem;
        padding: 2rem;
        position: relative;
        overflow: hidden;
        transition: var(--transition);
    }

    .order-row {
        display: flex;
        justify-content: space-between;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .order-row:last-child { border-bottom: none; }
    .order-row.total { font-size: 1.5rem; font-weight: 700; color: var(--indigo-400); margin-top: 1rem; }


    .payment-input {
        width: 100%;
        background: rgba(15, 23, 42, 0.5);
        border: 1px solid var(--glass-border);
        padding: 1rem 1.25rem;
        border-radius: 0.75rem;
        color: white;
        outline: none;
        font-size: 1rem;
        transition: var(--transition);
    }

    .payment-input:focus {
        border-color: var(--indigo-500);
        background: rgba(15, 23, 42, 0.8);
    }

    /* --- Payment Simulation Styles --- */
    #payment-processing-overlay {
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        padding: 3rem 0;
    }

    .spinner {
        width: 60px;
        height: 60px;
        border: 5px solid rgba(99, 102, 241, 0.1);
        border-top: 5px solid var(--indigo-500);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    #license-result-card {
        display: none;
        animation: fadeIn 0.5s ease-out;
    }

    .license-box {
        background: rgba(15, 23, 42, 0.6);
        border: 2px dashed var(--indigo-400);
        border-radius: 1rem;
        padding: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin: 2.5rem 0 1.5rem;
        position: relative;
    }

    .license-key-text {
        font-family: monospace;
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--indigo-400);
        letter-spacing: 2px;
    }

    .copy-success-msg {
        display: none;
        position: absolute;
        top: -45px;
        left: 50%;
        transform: translateX(-50%);
        background: #4ade80;
        color: #020617;
        font-size: 12px;
        font-weight: bold;
        padding: 6px 14px;
        border-radius: 6px;
        box-shadow: 0 4px 10px rgba(74, 222, 128, 0.3);
        pointer-events: none;
        z-index: 50;
        white-space: nowrap;
    }

    /* Fade In/Out Animation */
    @keyframes toastFade {
        0% { opacity: 0; transform: translate(-50%, 10px); }
        15% { opacity: 1; transform: translate(-50%, 0); }
        85% { opacity: 1; transform: translate(-50%, 0); }
        100% { opacity: 0; transform: translate(-50%, -10px); }
    }

    .toast-animate {
        display: block !important;
        animation: toastFade 2.2s ease-in-out forwards;
    }

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

    /* QR Code Styling */
    .qr-card-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .qr-payment-card {
        background: white;
        border-radius: 2rem;
        padding: 1rem;
        width: 100%;
        max-width: 320px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        text-align: center;
    }

    .qr-pp-header {
        background: #00427a;
        /* ปรับ Margin ติดลบให้เท่ากับ Padding ใหม่ (1rem) */
        margin: -1rem -1rem 1rem; 
        padding: 1.25rem;
        border-radius: 2rem 2rem 0 0;
        color: white;
        font-weight: 700;
        font-size: 1.2rem;
    }

    .qr-image-placeholder {
        width: 100%; 
        height: auto; /* ให้ความสูงปรับตามรูป */
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .qr-placeholder-svg {
        width: 100%;
        height: 100%;
    }

    /* ขยายรูป QR ให้ใหญ่เต็มที่ */
    #real-qr-image {
        width: 300px !important; /* ขยายจาก 220px เป็น 300px */
        height: 300px !important;
        margin-bottom: 5px;
        object-fit: contain;
    }

    .qr-info {
        margin-top: 1.5rem;
        color: #1e293b;
    }

    .qr-account {
        font-size: 1.25rem;
        font-weight: 700;
        color: #00427a;
        letter-spacing: 0.05em;
    }

    .payment-instructions {
        background: rgba(99, 102, 241, 0.05);
        border: 1px dashed rgba(99, 102, 241, 0.3);
        border-radius: 1rem;
        padding: 1.5rem;
        font-size: 0.95rem;
        color: var(--text-muted);
    }

    .instruction-item {
        display: flex;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

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

    /* --- Keyframes --- */
    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-20px); }
    }

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

    /* --- Responsive Queries --- */
    @media (min-width: 768px) {
        .nav-links { display: flex; }
        .hero-btns { flex-direction: row; }
        .pricing-grid { grid-template-columns: repeat(3, 1fr); }
        .hero h1 { font-size: 4.5rem; }
        .footer-content { flex-direction: row; justify-content: space-between; text-align: left; }
        .checkout-grid { grid-template-columns: 1.2fr 0.8fr; }
    }

    @media (min-width: 1024px) {
        .hero-grid { 
            grid-template-columns: 1.2fr 0.8fr; 
            text-align: left; 
            gap: 14rem;
        }
        .hero h1 { font-size: 5rem; }
        .hero p { margin-left: 0; }
        .hero-btns { justify-content: flex-start; }
        .hero-info { justify-content: flex-start; }
        .price-card.featured { transform: scale(1.05); }
    }

        /* CSS สำหรับส่วนเสริมที่ทำงานร่วมกับต้นฉบับ */
        @keyframes spin { to { transform: rotate(360deg); } }
        .spinner { width: 60px; height: 60px; border: 5px solid rgba(99, 102, 241, 0.1); border-top: 5px solid var(--indigo-500); border-radius: 50%; animation: spin 1s linear infinite; }
        .animate-spin-custom { animation: spin 2s linear infinite; }

        /* --- Auth Modal Styles (FIXED FONT & LARGER SIZES) --- */
        #auth-modal {
            position: fixed;
            inset: 0;
            z-index: 10020;
            background: rgba(2, 6, 23, 0.85);
            backdrop-filter: blur(10px);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
            font-family: 'Kanit', sans-serif !important;
        }

        #auth-modal.active {
            display: flex;
            animation: fadeIn 0.3s ease-out;
        }

        .auth-card {
            width: 100%;
            max-width: 450px;
            background: #1e293b; /* Fallback to surface color */
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 2rem;
            padding: 3rem;
            text-align: center;
            position: relative;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            font-family: 'Kanit', sans-serif !important;
        }

        .auth-icon-wrap {
            width: 5rem;
            height: 5rem;
            background: rgba(99, 102, 241, 0.1);
            border-radius: 1.25rem;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 2rem;
            color: #818cf8;
        }

        .auth-card h2 {
            font-size: 2.25rem; /* Larger title */
            margin-bottom: 1rem;
            font-weight: 700;
            color: white;
            font-family: 'Kanit', sans-serif !important;
        }

        .auth-card p {
            color: #94a3b8;
            margin-bottom: 2.5rem;
            font-size: 1.25rem; /* Larger description */
            line-height: 1.6;
            font-family: 'Kanit', sans-serif !important;
        }

        /* ✅ แก้ไขฟอนต์สำหรับปุ่ม Google โดยเฉพาะ รวมถึงคลาสที่คุณระบุ */
        .nsm7Bb-HzV7m-LgbsSe-BPrWId,
        .nsm7Bb-HzV7m-LgbsSe-BPrWId *,
        #google-login-btn-container span,
        #google-login-btn-container div {
            font-family: 'Kanit', sans-serif !important;
            font-size: 1.1rem !important; /* ปรับขนาดฟอนต์ในปุ่มให้ใหญ่ขึ้น */
        }

        .btn-google {
            width: 100%;
            background: white;
            color: #1e293b;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            padding: 1.25rem;
            border-radius: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            font-family: 'Kanit', sans-serif !important;
            font-size: 1.4rem;
        }

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

        .auth-close {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            color: #94a3b8;
            background: none;
            border: none;
            cursor: pointer;
        }

        .auth-close:hover {
            color: white;
        }

        .auth-footer-notice {
            font-size: 1rem;
            margin-top: 2rem;
            color: #94a3b8;
            opacity: 0.7;
            font-family: 'Kanit', sans-serif !important;
        }

        /* --- QR Skeleton Shimmer Animation --- */
.qr-skeleton-wrapper {
    text-align: center;
}

.skeleton-box {
    background: #e2e8f0; /* สีเทาเริ่มต้น */
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

/* สร้างแสงวูบที่วิ่งผ่าน (Shimmer) */
.skeleton-box::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 1.5s infinite;
}

/* สไตล์เฉพาะของ QR Box และ Text Box */
.sk-qr {
    width: 200px;
    height: 260px !important;
    margin: 0 auto;
    border-radius: 1rem;
}

.sk-text {
    width: 60%;
    height: 22px;
    margin: 25px auto 0 !important;
    border-radius: 4px;
}

/* Keyframe สำหรับให้แสงวิ่งจากซ้ายไปขวา */
@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}


/* --- 💎 Premium Showcase Section Styles - FINAL COMPLETE --- */
.premium-single-layout {
    background: #020617;
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
}

.glow-sphere-bg {
    position: absolute;
    top: -5%; left: 50%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    transform: translateX(-50%);
    z-index: 1;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 150px; /* 🚀 ระยะห่าง Gap กว้างสะใจตามสั่ง */
    position: relative;
    z-index: 10;
}

.visual-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ✅ ทำให้ทุกปุ่มแสดงเป็นรูปมือ และอยู่เลเยอร์ที่คลิกได้ */
.clickable-link {
    cursor: pointer !important;
    position: relative;
    z-index: 50;
}

/* --- 📱 Phone UI: ใหญ่สะใจ 380px --- */
.phone-frame-outer.larger-phone {
    width: 380px; 
    background: #1e293b;
    padding: 15px;
    border-radius: 60px;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.8), inset 0 0 15px rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 20; /* 🚀 อยู่หน้าแสง Glow */
    transition: transform 0.5s ease;
}

.phone-frame-outer.larger-phone:hover {
    transform: translateY(-10px) rotate(-1deg);
}

.phone-screen-inner {
    background: #0f172a;
    height: 720px; 
    border-radius: 48px;
    padding: 45px 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 🚀 ย้ายแสง Glow ไปหลังโทรศัพท์ และป้องกันการบัง Hover */
.phone-shadow-glow.large-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 650px; height: 650px;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.25) 0%, transparent 70%);
    z-index: 5; /* 🚀 อยู่หลังตัวเครื่อง (20) */
    pointer-events: none; /* 🚀 ให้เมาส์ทะลุผ่านไปหาปุ่มได้ 100% */
}

/* Phone UI Elements */
.phone-ui-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.phone-icon-top { color: #64748b; width: 2rem !important; height: 2rem !important; }
.phone-ui-title { font-size: 14px; font-weight: bold; color: var(--indigo-400); text-transform: uppercase; letter-spacing: 2px; }
.phone-avatar { width: 45px; height: 45px; background: rgba(129, 140, 248, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.phone-icon-user { color: var(--indigo-400); width: 1.6rem !important; height: 1.6rem !important; }

.phone-ui-card.glass-blur {
    padding: 30px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.phone-card-label { font-size: 15px; color: var(--text-muted); margin-bottom: 8px; }
.phone-card-value { font-size: 2.5rem; font-weight: 800; color: #fff; margin: 0; }
.phone-ui-trend { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #4ade80; margin-top: 12px; }

.phone-tasks-wrapper { margin-top: 3rem; }
.phone-ui-tag { font-size: 14px; font-weight: 600; color: #64748b; text-transform: uppercase; margin-bottom: 20px; }
.phone-ui-task { display: flex; align-items: center; gap: 18px; background: rgba(255,255,255,0.02); padding: 20px; border-radius: 22px; border: 1px solid rgba(255,255,255,0.05); }
.phone-ui-icon-box { width: 56px; height: 56px; background: var(--primary-gradient); border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.phone-ui-icon-box i { width: 1.8rem !important; height: 1.8rem !important; color: white; }
.task-name { font-size: 18px; font-weight: bold; color: #fff; margin: 0; }
.task-status { font-size: 13px; color: var(--text-muted); margin: 0; }

.phone-ui-btn { margin-top: auto; width: 100%; padding: 20px; border-radius: 18px; border: none; color: #fff; font-size: 1.1rem; font-weight: 800; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.phone-ui-btn:hover { background: #fff !important; color: #000 !important; transform: scale(0.98); }

/* --- 🏷️ Content Side: Pricing --- */
.hero-title-text { font-size: 5.5rem; font-weight: 950; color: #fff; line-height: 0.9; margin-bottom: 30px; letter-spacing: -2px; }
.hero-title-text span { background: var(--text-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.hero-price-wrap { display: flex; align-items: baseline; gap: 15px; margin-bottom: 40px; }
.price-number { 
    font-size: 10rem; 
    font-weight: 900; 
    color: #fff; 
    line-height: 0.9;      /* ปรับจาก 0.8 เป็น 0.9 เพื่อไม่ให้ด้านบน/ล่างโดนตัด */
    letter-spacing: -4px;  /* ลดความแน่นลงจาก -8px เป็น -4px (หรือตามความชอบ) */
    padding-right: 15px;   /* เพิ่มพื้นที่ด้านขวาเพื่อไม่ให้เลข 9 ตัวสุดท้ายโดนเบียด */
    background: linear-gradient(180deg, #fff 40%, #475569 100%); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    display: inline-block; /* ช่วยให้การคำนวณพื้นที่ตัวอักษรแม่นยำขึ้น */
}
.curr-text { font-size: 2rem; font-weight: 800; color: #fff; }
.sub-text { font-size: 1.1rem; color: var(--text-muted); }

.hero-description { font-size: 1.25rem; color: #94a3b8; margin-bottom: 50px; max-width: 520px; line-height: 1.8; }

.hero-cta-btn {
    width: 100%;
    padding: 26px;
    background: #fff;
    color: #000;
    border-radius: 22px;
    font-size: 1.5rem;
    font-weight: 900;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hero-cta-btn:hover { 
    background: var(--indigo-500) !important; 
    color: #fff !important; 
    transform: translateY(-10px) scale(1.02); 
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.4); 
}

.hero-footer-icons { display: flex; justify-content: space-between; margin-top: 60px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); }
.icon-node { text-align: center; color: #94a3b8; font-size: 1rem; font-weight: 500; }
.node-bg { width: 60px; height: 60px; background: rgba(255,255,255,0.04); border-radius: 18px; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; color: var(--indigo-400); font-size: 1.6rem; }

/* Responsive */
@media (max-width: 1200px) {
    .main-container { gap: 80px; }
    .price-number { font-size: 8rem; }
}



/* --- FAQ Accordion Styles --- */
.faq-section {
    padding: 8rem 0;
    position: relative;
}

.faq-grid {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    border-radius: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    color: var(--text-main);
    font-size: 1.15rem;
    font-weight: 600;
}

.faq-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--indigo-400);
    transition: transform 0.4s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(15, 23, 42, 0.2);
}

.faq-answer p {
    padding: 0 2rem 1.5rem 2rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-content-list {
    padding: 0 2rem 1.5rem 2rem;
}

.faq-content-list ul {
    list-style: none;
    margin-top: 1rem;
}

.faq-content-list li {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.faq-content-list li strong {
    color: var(--indigo-400);
}

.faq-item.active {
    background: rgba(30, 41, 59, 0.6);
    border-color: var(--indigo-500);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 600px;
}

/* --- Notch สำหรับโทรศัพท์ตัวใหญ่ (Premium Section) --- */
.phone-notch-large {
    position: absolute;
    top: 0; /* ชิดขอบบนของหน้าจอใน */
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 20px !important;
    background: #1e293b; /* สีเดียวกับขอบเครื่อง (var(--surface-color)) */
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 100; /* อยู่เหนือ UI ทุกอย่างในหน้าจอ */
}

/* ปรับระยะห่าง Header หลบ Notch */
.phone-screen-inner {
    position: relative; /* เพื่อให้ Notch อิงตำแหน่งได้ถูกต้อง */
    padding-top: 45px; /* ระยะที่ตั้งไว้เดิมจะพอดีสำหรับ Notch หนา 30px */
}

@media (min-width: 768px) {
    .footer-social {
        justify-content: flex-end; /* ในจอใหญ่ให้ชิดขวาตามเดิม */
    }
}
/* --- Responsive Adjustments สำหรับจอเล็ก --- */
@media (max-width: 968px) {
    .main-container { flex-direction: column; text-align: center; padding: 40px 20px; }
    .hero-price-wrap {
        justify-content: center; 
        flex-direction: column; /* 1. สั่งให้เรียงเป็นแนวตั้ง (ย้าย THB ลงมา) */
        align-items: center;    /* 2. จัดให้ทุกอย่างอยู่กึ่งกลาง */
        gap: 0px;               /* ลดระยะห่างระหว่างบรรทัด */
    }
    .hero-description { margin: 0 auto 40px auto; }
    .phone-frame-outer.larger-phone { width: 340px; }
    .phone-screen-inner { height: 640px; }
    /* ปรับขนาดหัวข้อ Pro Mobile */
    .hero-title-text { 
        font-size: 3.5rem !important; /* ลดจาก 5.5rem */
        letter-spacing: -1px;
    }

    /* ปรับขนาดตัวเลขราคา 599 */
    .price-number { 
        font-size: 9rem !important;  /* 3. เพิ่มขนาด font (เดิม 6.5rem) */
        letter-spacing: -2px;
        padding-right: 0;            /* ล้าง padding ออกเพื่อให้กึ่งกลางเป๊ะ */
        line-height: 1;              /* ปรับ line-height ไม่ให้ตัวเลขโดนตัด */
        text-align: center;
    }

    .price-meta-info {
        text-align: center;          /* จัดข้อความ THB ให้กึ่งกลาง */
        margin-top: -10px;           /* ขยับขึ้นไปชิดตัวเลขมากขึ้น (ปรับได้ตามชอบ) */
    }

    /* 1. ลด Padding ของทุก Section ยกเว้น Hero */
    .features, 
    .pricing, 
    .premium-single-layout, 
    .reviews-section, 
    .faq-section, 
    .checkout-page {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    /* ปรับ Footer ให้เล็กลงด้วยเพื่อให้เข้ากับ Section อื่น */
    footer {
        padding: 2.5rem 0 !important;
    }

    .hero-cta-btn span {
        font-weight: 800; /* ปรับความหนาให้พอดีกับขนาดที่เล็กลง */
    }

    /* 2. รักษาสัดส่วนฟอนต์ของ Hero Title และ Price (ที่แก้ไว้ก่อนหน้า) */
    .hero-title-text { 
        font-size: 3.5rem !important; 
        letter-spacing: -1px;
    }

    .price-number { 
        font-size: 6.5rem !important; 
        letter-spacing: -2px;
        padding-right: 10px;
    }

    /* ปรับระยะห่างในส่วน Premium Layout ให้แคบลงสำหรับจอเล็ก */
    .main-container {
        gap: 40px !important;
    }

    /* 1. เพิ่มระยะห่างระหว่างตัวเครื่องโทรศัพท์ (Visual) กับข้อมูล (Content) */
    .visual-wrapper {
        margin-bottom: 50px !important; /* เพิ่มระยะห่างจากด้านล่างของมือถือ */
    }

    /* หรือปรับผ่านตัวแม่เพื่อความคุมภาพรวม */
    .main-container {
        flex-direction: column;
        text-align: center;
        gap: 80px !important; /* ปรับ Gap ให้กว้างขึ้นจากเดิมที่เคยตั้งไว้ 40px */
        padding: 60px 20px !important;
    }

    /* 2. ปรับแสง Glow ด้านหลังมือถือในจอเล็กให้ไม่ฟุ้งจนกลบตัวหนังสือ */
    .phone-shadow-glow.large-glow {
        width: 450px;
        height: 450px;
        opacity: 0.6;
    }

    /* --- แก้ไขส่วนหน้า Checkout จอเล็ก --- */
    
    /* 1. เพิ่มระยะห่างด้านบนให้ปุ่ม 'กลับสู่หน้าหลัก' */
    .checkout-left a[onclick*="navigateTo('home')"] {
        margin-top: 1.5rem !important; /* ดันลงมาจากขอบบน */
        margin-bottom: 0.5rem !important; /* เว้นระยะก่อนถึงคำว่า ชำระเงิน */
    }

    /* 2. ปรับตัวหัวข้อ ชำระเงิน Checkout ให้ดูห่างออกมาอีกนิด */
    .checkout-title {
        font-size: 2rem !important; /* ลดขนาดลงตามกฎ Section Header h2 เดิม */
        margin-top: 0.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* 3. ปรับระยะรวมของหน้า Checkout ให้มีพื้นที่ด้านบนเพิ่มขึ้นเล็กน้อย */
    .checkout-page {
        padding-top: 6rem !important; /* เพิ่มจาก 4rem เป็น 6rem เพื่อหลบแถบเมนู */
    }
    .phone-notch-large {
        width: 130px;
        height: 15px !important;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
    }
}

@media (max-width: 480px) {
        /* สำหรับมือถือจอเล็กพิเศษ (iPhone SE / จอเล็ก) */
    .hero-text h1 {
        font-size: 2.8rem !important;
    }
    /* สำหรับมือถือจอเล็กพิเศษ (iPhone SE / จอเล็ก) */
    .section-header h2 {
        font-size: 2.2rem !important;
    }
    /* สำหรับมือถือจอเล็กพิเศษ */
    .hero-cta-btn {
        font-size: 1.3rem !important;
        padding: 15px !important;
        gap: 10px !important;
    }
    /* สำหรับมือถือจอเล็กมาก */
    .hero-title-text { 
        font-size: 2.8rem !important; 
    }

    .price-number { 
        font-size: 6.5rem !important; /* เพิ่มขนาด font สำหรับมือถือจอเล็ก (เดิม 5rem) */
        letter-spacing: -1px;
    }

    .price-meta-info {
        text-align: center;          /* จัดข้อความ THB ให้กึ่งกลาง */
        margin-top: 15px;           /* ขยับขึ้นไปชิดตัวเลขมากขึ้น (ปรับได้ตามชอบ) */
    }

    .curr-text {
        font-size: 1.8rem !important;
    }

    .features, 
    .pricing, 
    .premium-single-layout, 
    .reviews-section, 
    .faq-section, 
    .checkout-page {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}


.fb-smart-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9000;
}

.fb-main-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 50px;
    background: linear-gradient(135deg, #0084ff 0%, #00c6ff 100%); /* สีฟ้า Messenger */
    color: white;
    text-decoration: none;
    font-family: 'Kanit', sans-serif;
    box-shadow: 0 10px 20px rgba(0, 132, 255, 0.3);
    transition: all 0.3s ease;
}

.fb-main-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 132, 255, 0.5);
}


/* --- Hamburger Menu & Mobile Overlay --- */

/* 1. Hamburger Icon */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    /* ปรับให้สูงกว่าปุ่มทักแชท (9999) */
    z-index: 10001; 
    position: relative;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Hamburger Animation (แปลงเป็น X) */
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); background-color: var(--indigo-400); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background-color: var(--indigo-400); }

/* --- ปุ่มกากบาทปิด (Mobile Close Button) --- */
.mobile-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    /* ตั้งค่าให้อยู่เหนือทุกอย่างใน Overlay */
    z-index: 10002; 
}

.mobile-close:hover {
    transform: scale(1.1);
    color: var(--indigo-400);
}

.mobile-close:active {
    transform: scale(0.9);
}

.mobile-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(15px);
    /* ปรับให้สูงกว่าปุ่มทักแชท (9999) แต่ต่ำกว่าปุ่ม Hamburger เล็กน้อย */
    z-index: 10000; 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    transform: translateY(-20px);
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.mobile-nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.75rem;
    font-weight: 600;
    transition: var(--transition);
}

.mobile-nav-links a:hover {
    color: var(--indigo-400);
}

/* 3. Responsive แสดง Hamburger บนจอเล็ก */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
}