:root {
    /* Design Tokens (HSL system) - Light Theme Overhaul */
    --hue: 228;
    --background: HSL(var(--hue), 24%, 97%);
    --background-alt: HSL(var(--hue), 24%, 93%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --primary: HSL(242, 78%, 56%);
    --primary-hover: HSL(242, 78%, 48%);
    --accent: HSL(150, 78%, 32%);
    --accent-hover: HSL(150, 78%, 26%);
    --danger: HSL(0, 72%, 48%);
    --border-color: rgba(0, 0, 0, 0.07);
    --text-main: HSL(var(--hue), 24%, 12%);
    --text-muted: HSL(var(--hue), 12%, 42%);
    --shadow-primary: 0 12px 30px rgba(99, 102, 241, 0.08);
    --shadow-success: 0 12px 30px rgba(16, 185, 129, 0.08);
    --glass-blur: 20px;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.04) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.03) 0%, transparent 40%);
}

/* Container & Grid Setup */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Translucent Header */
header.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

header.nav-header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.logo i {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

nav.menu-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

nav.menu-links a:hover {
    color: var(--text-main);
}

.btn-admin {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-admin:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Hero Section */
section.hero {
    padding: 130px 0 60px 0; /* Mobile First */
    text-align: center;
    position: relative;
}

section.hero h1 {
    font-size: 32px; /* Mobile First */
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -1px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #0f172a 30%, #312e81 80%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

section.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 36px auto;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-primary-action {
    background: var(--primary);
    color: white;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: var(--shadow-primary);
}

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

.btn-secondary-action {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-secondary-action:hover {
    background: rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
}

/* Router Session Switcher */
.session-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 32px 0;
    background: var(--background-alt);
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: inline-flex;
    margin-left: auto;
    margin-right: auto;
}

.session-switcher select {
    background: transparent;
    color: var(--text-main);
    border: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    padding-right: 8px;
}

/* Status & Alert Banners */
.alert-bar {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.15);
    padding: 16px;
    border-radius: 16px;
    color: #b91c1c;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    font-size: 14px;
    text-align: left;
}

.alert-bar i {
    font-size: 20px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.status-online {
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.status-offline {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

/* Products Grid */
section.products {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #0f172a 50%, #4338ca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile First: 1 column */
    gap: 24px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(var(--glass-blur));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: var(--shadow-primary);
}

.product-card.card-offline:hover {
    transform: translateY(-6px);
    border-color: rgba(239, 68, 68, 0.2);
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.05);
}

.card-top {
    margin-bottom: 24px;
}

.plan-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.06);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 20px;
}

.card-offline .plan-icon {
    background: rgba(239, 68, 68, 0.06);
    color: var(--danger);
}

.plan-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.plan-description {
    font-size: 13px;
    color: var(--text-muted);
    min-height: 48px;
    margin-bottom: 16px;
}

.plan-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.03);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.plan-meta span i {
    margin-right: 4px;
    color: var(--primary);
}

.card-offline .plan-meta span i {
    color: var(--danger);
}

.plan-price-wrapper {
    margin-bottom: 24px;
}

.plan-price-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.plan-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}

.card-offline .plan-price {
    color: var(--text-muted);
    text-decoration: line-through;
}

.btn-buy-voucher {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-buy-voucher:hover {
    background: var(--primary-hover);
}

.btn-buy-voucher:disabled {
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    cursor: not-allowed;
}

/* How it Works */
section.how-it-works {
    padding: 80px 0;
    background: var(--background-alt);
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr; /* Mobile First: 1 column */
    gap: 24px;
}

.step-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin: 0 auto 20px auto;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-main);
}

.step-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Terms & Policies */
section.compliance-docs {
    padding: 80px 0;
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

.tab-content {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px; /* Mobile First */
    backdrop-filter: blur(var(--glass-blur));
    display: none;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
    text-align: left;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 22px;
    margin-bottom: 24px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    color: var(--text-main);
}

.tab-content ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.tab-content li {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.tab-content li strong {
    color: var(--text-main);
}

.tab-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Contact Section */
section.contact {
    padding: 80px 0;
    background: var(--background-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile First: 1 column */
    gap: 24px;
}

.contact-info-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-item i {
    font-size: 20px;
    color: var(--primary);
    margin-top: 4px;
}

.contact-item-text h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-main);
}

.contact-item-text p {
    font-size: 13px;
    color: var(--text-muted);
}

.contact-form {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input, .form-group textarea {
    background: rgba(0, 0, 0, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    background: #ffffff;
}

.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--primary-hover);
}

/* Checkout Overlay & Loader */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--text-main);
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.05);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border-left-color: var(--primary);
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.loading-overlay p {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}

/* Success Voucher Receipt Card */
.receipt-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px dashed rgba(99, 102, 241, 0.25);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    margin: 0 auto;
    position: relative;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 24px auto;
    border: 1px solid rgba(16, 185, 129, 0.15);
    animation: pulse-success 2s infinite;
}

@keyframes pulse-success {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.25); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.receipt-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
}

.receipt-subtitle {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 24px;
}

.voucher-box {
    background: rgba(99, 102, 241, 0.03);
    border: 1px dashed rgba(99, 102, 241, 0.25);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
}

.voucher-code-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.voucher-code {
    font-family: monospace;
    font-size: 32px;
    letter-spacing: 4px;
    font-weight: 800;
    color: var(--primary);
    text-shadow: none;
}

.receipt-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    text-align: left;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    margin-bottom: 28px;
}

.receipt-info-item span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.receipt-info-item strong {
    font-size: 14px;
    color: var(--text-main);
}

.btn-connect {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.btn-connect:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.25);
    transform: translateY(-1px);
}

.receipt-actions {
    display: flex;
    gap: 12px;
}

.btn-copy {
    flex: 1;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: rgba(0, 0, 0, 0.06);
}

.btn-done {
    flex: 1;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-done:hover {
    background: var(--primary-hover);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    background: var(--background-alt);
    padding: 40px 0;
    text-align: center;
}

footer p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-main);
}

/* Bottom Navigation Bar for Mobile */
nav.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(var(--glass-blur));
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 900;
    padding: 0 12px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    flex: 1;
    text-align: center;
    transition: all 0.2s ease;
}

.nav-item i {
    font-size: 18px;
}

.nav-item.active, .nav-item:hover {
    color: var(--primary);
}

/* Default menu link behaviour (mobile first: hide top navigation menu links) */
nav.menu-links {
    display: none;
}

/* Responsive Breakpoints - Desktop layout overrides */
@media (min-width: 768px) {
    nav.bottom-nav {
        display: none; /* Hide bottom nav on desktop */
    }

    nav.menu-links {
        display: flex; /* Display horizontally on desktop */
        position: static;
        width: auto;
        background: transparent;
        backdrop-filter: none;
        border: none;
        flex-direction: row;
        padding: 0;
        gap: 32px;
        box-shadow: none;
    }

    section.hero {
        padding: 180px 0 100px 0; /* Desktop padding */
    }

    section.hero h1 {
        font-size: 52px; /* Desktop font size */
        letter-spacing: -1.5px;
        margin-bottom: 24px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .steps-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 32px;
    }

    .tab-content {
        padding: 40px; /* Desktop padding */
    }

    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 40px;
    }
}

/* Skeleton Loaders */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 8px;
    display: inline-block;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    width: 100%;
}

.skeleton-title {
    height: 24px;
    margin-bottom: 12px;
    width: 60%;
}

.skeleton-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Button pulse success animation */
.btn-connect-pulse {
    animation: btn-pulse 2s infinite !important;
}

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

/* Toast Copy Notification */
.toast-copy {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-copy.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Status Indicator Dot */
.status-indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    position: relative;
    top: -1px;
}
.status-indicator-dot.online {
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    animation: status-pulse 2s infinite;
}
.status-indicator-dot.offline {
    background-color: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    animation: status-pulse-red 2s infinite;
}
@keyframes status-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}
@keyframes status-pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Layout Switcher */
.layout-toggle-container {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0 4px;
}
.layout-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.layout-toggle:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
}
.layout-toggle.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

/* Products Carousel with CSS Scroll Snap */
.products-wrapper.products-carousel {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    gap: 20px !important;
    padding: 10px 5px 24px 5px !important;
    -webkit-overflow-scrolling: touch !important;
}
.products-wrapper.products-carousel .product-card {
    flex: 0 0 300px !important;
    scroll-snap-align: start !important;
    margin: 0 !important;
}

/* Stepper Checkout */
.checkout-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 500px;
    margin: 0 auto 32px auto;
    padding: 0 20px;
}
.checkout-stepper .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}
.checkout-stepper .step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--background-alt);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    transition: all 0.3s;
}
.checkout-stepper .step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s;
}
.checkout-stepper .step.active .step-num {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-primary);
}
.checkout-stepper .step.active .step-label {
    color: var(--text-main);
    font-weight: 700;
}
.checkout-stepper .step.completed .step-num {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}
.checkout-stepper .step.completed .step-label {
    color: var(--accent);
}
.checkout-stepper .step-line {
    flex: 1;
    height: 2px;
    background: var(--border-color);
    margin-top: -24px;
    z-index: 1;
}

/* Purchase History Styles */
.history-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-primary);
    overflow: hidden;
    transition: all 0.3s ease;
}
.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.01);
}
.history-card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-clear-history {
    background: transparent;
    border: none;
    color: var(--danger);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
    padding: 4px 8px;
    border-radius: 6px;
}
.btn-clear-history:hover {
    opacity: 0.8;
    background: rgba(239, 68, 68, 0.05);
}
.history-card-body {
    padding: 8px 20px;
}
.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 16px;
}
.history-item:last-child {
    border-bottom: none;
}
.history-item-info {
    flex: 1;
    min-width: 180px;
}
.history-item-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.history-item-profile {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
}
.history-badge-validity {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-glow);
    padding: 2px 6px;
    border-radius: 4px;
}
.history-item-meta {
    font-size: 11px;
    color: var(--text-muted);
}
.history-monospace {
    font-family: monospace;
    font-weight: 600;
}
.history-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.history-item-code {
    font-family: monospace;
    font-weight: 800;
    font-size: 14px;
    color: var(--text-main);
    background: var(--background-alt);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    min-width: 90px;
    text-align: center;
}
.history-btn-copy, .history-btn-connect {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-muted);
}
.history-btn-copy:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
}
.history-btn-connect {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}
.history-btn-connect:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: var(--shadow-primary);
}

/* Responsive History */
@media (max-width: 600px) {
    .history-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .history-item-actions {
        justify-content: flex-start;
    }
    .history-item-code {
        flex: 1;
    }
    .history-btn-copy, .history-btn-connect {
        flex: 1;
        justify-content: center;
    }
}

/* WhatsApp Support Button */
.btn-wa-support {
    background: #25D366;
    color: white;
    font-weight: 700;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}
.btn-wa-support:hover {
    background: #20BA5A;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
    transform: translateY(-1px);
}
.btn-wa-support:active {
    transform: translateY(0);
}

/* Buy button disabled loading state */
.btn-buy-voucher:disabled {
    background: var(--border-color) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

