/* ==========================================================================
   THEME: MODERN EMERALD & CLEAN WHITE (TOP-UP & STORE UI)
   Inspired by modern game stores & top-up apps (Golrox / Roblox / Fintech)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
    --primary: #00c04b;
    --primary-hover: #00a842;
    --primary-light: #e8f8ee;
    --primary-subtle: #f0fbf4;
    --primary-border: #a7f3d0;
    --primary-glow: rgba(0, 192, 75, 0.28);

    --dark: #0c2217;
    --dark-surface: #143224;
    --dark-muted: #2d4f3e;

    --bg-page: #f4f8f5;
    --bg-page-alt: #ebf3ee;
    --card-bg: #ffffff;
    --card-hover: #fafdfb;

    --border-color: #e2ece5;
    --border-subtle: #edf4ef;
    --border-strong: #cbdad1;

    --text-main: #0f1f17;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --blue-accent: #2563eb;
    --blue-light: #eff6ff;
    --blue-border: #bfdbfe;

    --amber-accent: #f59e0b;
    --amber-light: #fef3c7;
    --amber-border: #fde68a;

    --red-accent: #ef4444;
    --red-light: #fef2f2;
    --red-border: #fecaca;

    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-pill: 9999px;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 6px rgba(12, 34, 23, 0.05);
    --shadow-md: 0 6px 20px -2px rgba(12, 34, 23, 0.08), 0 2px 6px rgba(12, 34, 23, 0.04);
    --shadow-lg: 0 12px 32px -4px rgba(0, 192, 75, 0.16), 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 20px -2px rgba(12, 34, 23, 0.06), 0 1px 4px rgba(12, 34, 23, 0.03);

    --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Base Styles ─────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-page);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 192, 75, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 192, 75, 0.04) 0%, transparent 40%);
    color: var(--text-body);
    font-family: var(--font-main);
    font-size: 15px;
    line-height: 1.55;
    min-height: 100vh;
    padding-bottom: 80px;
    /* Space for bottom nav */
}

/* ── Typography Helpers ─────────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ── Container ───────────────────────────────────────────────────────────── */
.store-container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 16px 16px 40px;
}

@media (min-width: 640px) {
    .store-container {
        padding: 24px 20px 60px;
    }
}

/* ── Top Header Navigation Bar ─────────────────────────────────────────── */
.top-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    position: sticky;
    top: 12px;
    z-index: 40;
}

.top-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.top-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #00e065);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.05rem;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.top-brand-text {
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.top-brand-text span {
    color: var(--primary);
}

.top-badges-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.top-badges-wrap::-webkit-scrollbar {
    display: none;
}

.nav-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.nav-pill-badge--rating {
    background: var(--primary-light);
    color: #047857;
    border-color: var(--primary-border);
}

.nav-pill-badge--rating .star-icon {
    color: #f59e0b;
}

.nav-pill-badge--outline {
    background: #ffffff;
    color: var(--text-main);
    border-color: var(--border-color);
}

.nav-pill-badge--outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-subtle);
}

.nav-pill-badge--login {
    background: var(--dark);
    color: #ffffff;
    padding: 6px 14px;
}

.nav-pill-badge--login:hover {
    background: #143224;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ── Interactive Progress Stepper ────────────────────────────────────────── */
.stepper-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 14px 18px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}

.stepper-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f3;
    border: 2px solid var(--border-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    transition: var(--transition-smooth);
}

.step-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    transition: var(--transition-fast);
    white-space: nowrap;
}

/* Stepper States */
.step-node.completed .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.step-node.completed .step-label {
    color: #047857;
}

.step-node.active .step-circle {
    background: #ffffff;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light), 0 2px 10px var(--primary-glow);
}

.step-node.active .step-label {
    color: var(--primary);
    font-weight: 800;
}

.step-line {
    flex: 1;
    height: 3px;
    background: var(--border-color);
    margin: 0 -8px 20px;
    position: relative;
    z-index: 1;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.step-line.active {
    background: var(--primary);
}

/* ── Category Filter Pills ──────────────────────────────────────────────── */
.category-filter-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.cat-pill-btn {
    flex: 1;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-base);
    text-align: left;
    position: relative;
    box-shadow: var(--shadow-xs);
}

.cat-pill-btn:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.cat-pill-btn.active {
    border-color: var(--primary);
    background: var(--primary-subtle);
    box-shadow: 0 4px 14px rgba(0, 192, 75, 0.12);
}

.cat-pill-btn.active-blue {
    border-color: var(--blue-accent);
    background: var(--blue-light);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.cat-title {
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cat-pill-btn.active-blue .cat-title {
    color: var(--blue-accent);
}

.cat-pill-btn.active .cat-title {
    color: #047857;
}

.cat-sub {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 3px;
}

.flash-tag {
    position: absolute;
    top: -8px;
    right: 12px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

/* ── Modern Card Container ──────────────────────────────────────────────── */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
    padding: 20px 20px;
    margin-bottom: 16px;
    position: relative;
    transition: var(--transition-base);
}

@media (min-width: 640px) {
    .card {
        padding: 24px 26px;
        margin-bottom: 20px;
    }
}

.card-title-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-section-title .step-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-light);
    color: #047857;
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── Hero / Product Banner ──────────────────────────────────────────────── */
.hero-product-card {
    background: linear-gradient(145deg, #ffffff 0%, #f0fbf4 100%);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-2xl);
    padding: 22px 20px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.hero-product-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 192, 75, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.hero-logo-box {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--dark), #143224);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    box-shadow: 0 4px 14px rgba(12, 34, 23, 0.2);
    flex-shrink: 0;
}

.hero-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

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

.hero-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-desc {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 14px;
}

.hero-features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

@media (min-width: 480px) {
    .hero-features-list {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-features-list li {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 7px;
}

.hero-features-list li .feat-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-light);
    color: #047857;
    font-size: 0.68rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-badge-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hero-chip {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    letter-spacing: 0.3px;
}

/* ── Live Stats Card ────────────────────────────────────────────────────── */
.stats-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat-metric-card {
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px 10px;
    text-align: center;
    transition: var(--transition-base);
}

.stat-metric-card:hover {
    background: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.stat-metric-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}

.stat-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 6px var(--primary);
    display: inline-block;
}

.stat-metric-value {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.2;
}

.stat-metric-sub {
    font-size: 0.66rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.stat-note-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.74rem;
    color: var(--text-muted);
}

.stat-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: #047857;
    font-size: 0.72rem;
}

/* ── Package Selection Grid ─────────────────────────────────────────────── */
.packages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 480px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pkg-card {
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 16px 14px;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pkg-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pkg-card.active {
    border-color: var(--primary);
    background: linear-gradient(160deg, #ffffff 0%, var(--primary-subtle) 100%);
    box-shadow: 0 8px 24px -2px rgba(0, 192, 75, 0.2), 0 2px 6px rgba(0, 192, 75, 0.08);
}

.pkg-card.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f8faf9;
}

.pkg-card.disabled:hover {
    transform: none;
    border-color: var(--border-color);
    box-shadow: none;
}

.pkg-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pkg-brand-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pkg-logo-circle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f4f8f5;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.pkg-logo-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.pkg-duration-title {
    font-size: 1rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.15;
}

.pkg-status-tag {
    display: inline-block;
    font-size: 0.64rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    margin-top: 3px;
    text-transform: uppercase;
}

.pkg-status--avail {
    background: var(--primary-light);
    color: #047857;
}

.pkg-status--out {
    background: var(--red-light);
    color: var(--red-accent);
}

.pkg-check-indicator {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border-strong);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.7rem;
    font-weight: 900;
    transition: var(--transition-fast);
}

.pkg-card.active .pkg-check-indicator {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 6px var(--primary-glow);
}

.pkg-meta-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.pkg-chip {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-page);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}

.pkg-card-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
}

.pkg-rating-text {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 3px;
}

.pkg-rating-text .star-ic {
    color: #f59e0b;
}

.pkg-price-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    line-height: 1.15;
}

.pkg-price-text {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.pkg-original-price {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.75;
    margin-top: 3px;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.pkg-discount-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 1.5px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 4px rgba(220, 38, 38, 0.25);
}

/* ── Modern Form Inputs ─────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-prefix {
    position: absolute;
    left: 14px;
    font-size: 1rem;
    color: var(--text-light);
    pointer-events: none;
}

.form-input-modern {
    width: 100%;
    padding: 13px 16px 13px 44px;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-family: var(--font-main);
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition-fast);
}

.form-input-modern::placeholder {
    color: var(--text-light);
    font-weight: 500;
}

.form-input-modern:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.form-input-clean {
    width: 100%;
    padding: 13px 16px;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-family: var(--font-main);
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition-fast);
}

.form-input-clean:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.form-hint-text {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

/* ── Order Summary Receipt Box ─────────────────────────────────────────── */
.summary-receipt {
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-page) 100%);
    border: 1.5px dashed var(--border-strong);
    border-radius: var(--radius-xl);
    padding: 18px 18px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.summary-row .label {
    font-weight: 600;
}

.summary-row .value {
    font-weight: 700;
    color: var(--text-main);
    text-align: right;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-row.total-row {
    border-top: 1.5px dashed var(--border-strong);
    margin-top: 8px;
    padding-top: 12px;
}

.summary-row.total-row .label {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
}

.summary-row.total-row .value {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.02em;
}

/* ── Primary Action Buttons ─────────────────────────────────────────────── */
.btn-primary-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(135deg, var(--primary), #00b344);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 1.05rem;
    font-weight: 800;
    font-family: var(--font-main);
    cursor: pointer;
    box-shadow: 0 8px 24px -2px rgba(0, 192, 75, 0.35);
    transition: var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.btn-primary-action:hover {
    background: linear-gradient(135deg, #00d252, #00a03d);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -2px rgba(0, 192, 75, 0.45);
}

.btn-primary-action:active {
    transform: translateY(0);
}

.btn-secondary-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: #ffffff;
    color: var(--text-main);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-size: 0.92rem;
    font-weight: 700;
    font-family: var(--font-main);
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn-secondary-action:hover {
    border-color: var(--text-main);
    background: var(--bg-page);
}

.btn-telegram-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #229ed9, #1b85b8);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 20px -2px rgba(34, 158, 217, 0.3);
    margin-top: 14px;
    transition: var(--transition-base);
}

.btn-telegram-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -2px rgba(34, 158, 217, 0.4);
}

/* ── Transaction Check Status Card ──────────────────────────────────────── */
.check-status-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 20px;
    box-shadow: var(--shadow-card);
    margin-top: 20px;
}

.status-result-box {
    margin-top: 16px;
    display: none;
}

.status-progress-track {
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 16px;
    margin-top: 14px;
}

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

.progress-title-text {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-main);
}

.progress-percent-badge {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #00e065);
    border-radius: var(--radius-pill);
    transition: width 0.6s ease;
}

/* ── Video Preview Section ──────────────────────────────────────────────── */
.video-preview-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 18px;
    box-shadow: var(--shadow-card);
    margin-top: 24px;
}

.video-frame-wrap {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000000;
    margin: 12px 0;
}

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

/* ── Leaderboard Podium (Top Customers) ─────────────────────────────────── */
.leaderboard-section {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 24px 20px;
    box-shadow: var(--shadow-card);
    margin-top: 24px;
}

.podium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    align-items: flex-end;
    margin: 20px 0 16px;
}

.podium-card {
    background: var(--bg-page);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 14px 8px;
    text-align: center;
    position: relative;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.podium-card--rank1 {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fde68a;
    padding: 20px 8px 16px;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.15);
    z-index: 3;
}

.podium-card--rank2 {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #e2e8f0;
    z-index: 2;
}

.podium-card--rank3 {
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fed7aa;
    z-index: 1;
}

.podium-crown-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
}

.crown--gold {
    color: #f59e0b;
}

.crown--silver {
    color: #94a3b8;
}

.crown--bronze {
    color: #d97706;
}

.podium-rank-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.rank-gold {
    background: #f59e0b;
    color: #ffffff;
}

.rank-silver {
    background: #94a3b8;
    color: #ffffff;
}

.rank-bronze {
    background: #d97706;
    color: #ffffff;
}

.podium-user-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-main);
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.podium-user-spent {
    font-size: 0.75rem;
    font-weight: 800;
    color: #047857;
    margin-top: 2px;
}

.podium-user-orders {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Leaderboard Table Rank 4-10 */
.leaderboard-table-clean {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
}

.leaderboard-table-clean th {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.leaderboard-table-clean td {
    padding: 10px;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--border-subtle);
}

.rank-badge-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--bg-page);
    color: var(--text-muted);
    font-weight: 800;
    font-size: 0.72rem;
}

/* ── Reviews / Testimonials Section ─────────────────────────────────────── */
.reviews-section {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 24px 20px;
    box-shadow: var(--shadow-card);
    margin-top: 24px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 18px 0;
}

@media (min-width: 540px) {
    .reviews-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.review-card-modern {
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-head-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.review-avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), #bbf7d0);
    color: #047857;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.review-author-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-main);
}

.review-author-sub {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
}

.review-stars-row {
    color: #f59e0b;
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.review-quote-text {
    font-size: 0.82rem;
    color: var(--text-body);
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 8px;
}

.review-tag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.review-tag-pill {
    font-size: 0.64rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: #047857;
}

/* ── Payment Screen & Tab Styles ────────────────────────────────────────── */
#payment-screen,
#verify-screen {
    display: none;
}

.pay-tab-btn {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    border: 1.5px solid var(--border-color);
    background: #ffffff;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.pay-tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.account-box {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.btn-copy-sm {
    padding: 5px 12px;
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-pill);
    color: #047857;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-copy-sm:hover {
    background: var(--primary);
    color: #ffffff;
}

/* ── Floating Telegram CS Button ────────────────────────────────────────── */
.floating-telegram {
    position: fixed;
    bottom: 84px;
    right: 18px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #229ed9, #1b85b8);
    color: #ffffff;
    padding: 10px 16px 10px 12px;
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 20px rgba(34, 158, 217, 0.4);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.82rem;
    transition: var(--transition-base);
}

.floating-telegram:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(34, 158, 217, 0.5);
}

.floating-telegram-pulse {
    position: absolute;
    inset: -3px;
    border-radius: var(--radius-pill);
    background: rgba(34, 158, 217, 0.4);
    z-index: -1;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.08);
        opacity: 0;
    }

    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

/* ── Floating / Fixed Bottom Navigation Bar ─────────────────────────────── */
.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 16px rgba(12, 34, 23, 0.06);
}

.bnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    transition: var(--transition-fast);
}

.bnav-item.active {
    color: var(--primary);
    background: var(--primary-light);
}

.bnav-icon {
    font-size: 1.15rem;
    line-height: 1;
}

/* ── Live Toast Notification Overlay ─────────────────────────────────────── */
#buy-toasts {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 380px;
    width: auto;
}

#buy-toasts.pos-bottom-right { bottom: 84px; right: 20px; left: auto; top: auto; }
#buy-toasts.pos-bottom-left  { bottom: 84px; left: 20px; right: auto; top: auto; }
#buy-toasts.pos-top-right    { top: 20px; right: 20px; left: auto; bottom: auto; }
#buy-toasts.pos-top-left     { top: 20px; left: 20px; right: auto; bottom: auto; }

/* Posisi default jika class posisi belum di-set */
#buy-toasts:not([class*="pos-"]) {
    bottom: 84px;
    left: 20px;
}

/* Toast Container Card: Glassmorphism Ultra Premium */
.buy-toast,
.toast-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.90) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(16, 185, 129, 0.28) !important;
    border-left: 4px solid var(--primary) !important;
    border-radius: 14px !important;
    padding: 10px 14px !important;
    box-shadow: 
        0 10px 25px -4px rgba(12, 34, 23, 0.12),
        0 0 16px rgba(16, 185, 129, 0.10),
        inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
    pointer-events: auto;
    cursor: default;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.buy-toast:hover,
.toast-item:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 14px 30px -4px rgba(12, 34, 23, 0.16),
        0 0 20px rgba(16, 185, 129, 0.18) !important;
}

/* Icon / Avatar Wrapper */
.buy-toast-icon-wrap,
.toast-icon-circle {
    position: relative;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.20), rgba(5, 150, 105, 0.35)) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    color: #047857 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.buy-toast-live-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #ffffff;
    box-shadow: 0 0 6px #10b981;
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.7; }
}

/* Toast Body & Content */
.buy-toast-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.buy-toast-title,
.toast-text-title {
    font-size: 0.79rem;
    line-height: 1.35;
    color: var(--text-main);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.buy-toast-name,
.toast-name {
    font-weight: 800;
    color: var(--text-main);
}

.buy-toast-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.52rem;
    font-weight: 900;
    line-height: 1;
}

.buy-toast-action {
    color: var(--text-muted);
    font-weight: 500;
}

.buy-toast-dur,
.toast-dur {
    color: #047857;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.22);
    padding: 1px 7px;
    border-radius: 6px;
    font-size: 0.72rem;
    white-space: nowrap;
}

.buy-toast-meta,
.toast-text-sub {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.buy-toast-time,
.toast-time {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--text-muted);
}

.buy-toast-dot {
    color: var(--border);
    font-size: 0.65rem;
}

.buy-toast-success {
    color: #059669;
    font-weight: 700;
}

/* ── GLOSSY TRANSPARENT COUNT BADGE ───────────────────────────────────────── */
.toast-count-badge,
.buy-toast-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    color: #065f46;
    
    /* Crystal Glossy Transparent Glass Effect */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.70) 0%, rgba(209, 250, 229, 0.45) 50%, rgba(16, 185, 129, 0.20) 100%) !important;
    backdrop-filter: blur(14px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
    border: 1px solid rgba(16, 185, 129, 0.40) !important;
    box-shadow: 
        inset 0 1.5px 1.5px rgba(255, 255, 255, 0.95),
        inset 0 -1px 2px rgba(16, 185, 129, 0.20),
        0 2px 8px rgba(16, 185, 129, 0.16) !important;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* Gloss reflection streak on top half of the badge */
.toast-count-badge::before,
.buy-toast-count::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.90) 0%, rgba(255, 255, 255, 0.15) 100%);
    border-radius: 999px 999px 0 0;
    pointer-events: none;
}

.toast-count-badge .count-tag,
.buy-toast-count .count-tag {
    font-size: 0.60rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #059669;
    opacity: 0.92;
}

.toast-count-badge .count-val,
.buy-toast-count .count-val {
    font-family: inherit;
    font-weight: 900;
    color: #047857;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* Toast Animations */
@keyframes toastIn {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(0.94);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-12px) scale(0.92);
    }
}

@keyframes toast-slide-in {
    from { transform: translateX(-40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    #buy-toasts {
        max-width: calc(100vw - 32px);
        width: calc(100vw - 32px);
    }
    #buy-toasts.pos-bottom-left,
    #buy-toasts.pos-bottom-right,
    #buy-toasts:not([class*="pos-"]) {
        bottom: 76px;
        left: 16px;
        right: 16px;
    }
    #buy-toasts.pos-top-left,
    #buy-toasts.pos-top-right {
        top: 16px;
        left: 16px;
        right: 16px;
    }
    .buy-toast,
    .toast-item {
        padding: 8px 12px !important;
        gap: 10px;
    }
    .buy-toast-title,
    .toast-text-title {
        font-size: 0.74rem;
    }
}
