/* ==========================================================================
   DESIGN SYSTEM - CYBERPUNK NEON DARK THEME
   ========================================================================== */

   :root {
    --bg-primary: #0b0f19;
    --bg-header: radial-gradient(circle at top, #1e1b4b 0%, #0b0f19 70%);
    --bg-card: rgba(22, 29, 45, 0.7);
    --border-card: rgba(255, 255, 255, 0.06);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Brand Accent Colors */
    --atom-color: #00A3E0;
    --atom-dark: #0033A0;
    --mytel-color: #F15A24;
    --u9-color: #f0c534;
    --u9-dark: #8f5b17;
    --vpn-color: #34d399;
    --vpn-dark: #063f2d;
    --vpn-mid: #0f8f72;
    
    /* Neon Glows */
    --glow-atom: 0 0 12px rgba(0, 163, 224, 0.35);
    --glow-mytel: 0 0 12px rgba(241, 90, 36, 0.35);
    --glow-u9: 0 0 14px rgba(240, 197, 52, 0.38);
    --glow-vpn: 0 0 14px rgba(52, 211, 153, 0.38);
    
    --transition-speed: 0.3s;
    --font-family: 'Outfit', sans-serif;
}

/* Reset and Core Layout */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.5;
    overflow-x: hidden;
    padding-bottom: 75px; /* Bottom nav space */
}

/* Hide helper */
.hide {
    display: none !important;
}

.app-container {
    width: 100%;
    max-width: 600px; /* Restrict width on desktop for mobile look */
    margin: 0 auto;
    padding: 14px;
    min-height: 100vh;
}

/* ==========================================================================
   HEADER & PROFILE CARD
   ========================================================================== */

.app-header {
    margin-bottom: 14px;
    background: rgba(12, 18, 30, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
    overflow: hidden;
}

.profile-card {
    display: flex;
    align-items: center;
    background: transparent;
    border: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0;
    padding: 12px 12px 10px;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    display: none;
}

.avatar-container {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    margin-left: 12px;
    flex-grow: 1;
}

.username {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.balance-container {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.balance-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.balance-val {
    font-size: 14px;
    font-weight: 700;
    color: #38bdf8;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.header-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btn-redeem {
    background: linear-gradient(135deg, #a855f7, #7e22ce);
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
    transition: all 0.2s ease;
}

.btn-redeem:active {
    transform: scale(0.95);
}

.btn-topup {
    background: linear-gradient(135deg, #22c55e, #0891b2);
    border: none;
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.28);
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.btn-topup:active {
    transform: scale(0.95);
    box-shadow: 0 0 6px rgba(2, 132, 199, 0.2);
}

.btn-header-coupon {
    width: 40px;
    min-width: 40px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #c084fc;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    margin-left: 8px;
}

.btn-header-coupon svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.4));
}

.btn-header-coupon span {
    font-size: 9px;
    font-weight: 600;
    color: #d8b4fe;
}

/* ==========================================================================
   REDEEM COUPON BAR (Replaces Search Bar)
   ========================================================================== */

.redeem-bar-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 31px;
    padding: 5px 12px;
    background: rgba(2, 6, 23, 0.28);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.shop-ad-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
}

.shop-ad-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
    flex-shrink: 0;
}

.shop-ad-icon {
    width: auto;
    height: auto;
    display: inline;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 11px;
    flex-shrink: 0;
}

.shop-ad-text {
    color: #cbd5e1;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    min-width: max-content;
    padding-right: 36px;
    white-space: nowrap;
}

.shop-ad-track {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex: 1;
    mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 16px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 16px), transparent 100%);
}

.shop-ad-track .shop-ad-text {
    animation: promoTicker 12s linear infinite;
}

.shop-ad-track:hover .shop-ad-text {
    animation-play-state: paused;
}

@keyframes promoTicker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-ad-track .shop-ad-text {
        animation: none;
    }
}

.shop-ad-arrow {
    color: #94a3b8;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.redeem-bar-box {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.7), rgba(49, 16, 89, 0.7));
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 14px;
    padding: 5px 5px 5px 12px;
    box-shadow: 0 4px 20px rgba(126, 34, 206, 0.25);
    transition: all var(--transition-speed);
}

.redeem-bar-box:focus-within {
    border-color: rgba(192, 132, 252, 0.8);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.4);
}

.redeem-gift-icon {
    font-size: 18px;
    margin-right: 8px;
}

#inline-coupon-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 500;
}

#inline-coupon-input::placeholder {
    color: rgba(216, 180, 254, 0.6);
}

.btn-inline-redeem {
    background: linear-gradient(135deg, #a855f7, #7e22ce);
    border: none;
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.4);
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

@media (max-width: 380px) {
    .shop-ad-text {
        font-size: 12px;
    }

    #inline-coupon-input {
        font-size: 12px;
    }

    .btn-inline-redeem {
        padding: 8px 10px;
        font-size: 11px;
    }
}

.btn-inline-redeem:active {
    transform: scale(0.95);
}

.inline-phone-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    background: rgba(30, 27, 75, 0.5);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    padding: 6px 6px 6px 12px;
}

#inline-phone-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font-family);
    font-size: 13px;
}

.inline-result-box {
    margin-top: 10px;
}

.search-icon {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    margin-right: 10px;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    width: 100%;
    font-family: var(--font-family);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

/* ==========================================================================
   TAB SELECTORS
   ========================================================================== */

.tab-section {
    margin-bottom: 0;
}

.tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: 9px 6px 10px;
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 10px;
    padding: 6px 4px;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-family);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 58px;
    position: relative;
}

.tab-btn:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: rgba(148, 163, 184, 0.18);
}

.brand-svg,
.atom-logo-img,
.mytel-logo-img,
.mpt-logo-img,
.u9-logo-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    margin-bottom: 4px;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.atom-logo-img {
    filter: drop-shadow(0 0 6px rgba(0, 163, 224, 0.5));
}
.mytel-logo-img {
    filter: drop-shadow(0 0 6px rgba(241, 90, 36, 0.5));
}
.mpt-logo-img {
    filter: drop-shadow(0 0 6px rgba(253, 184, 19, 0.5));
}
.u9-logo-img {
    filter: drop-shadow(0 0 7px rgba(240, 197, 52, 0.58));
}

.tab-btn span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Tab specific styling for active states */
.tab-btn[data-tab="atom"].active {
    background: rgba(0, 163, 224, 0.08);
    box-shadow: inset 0 0 18px rgba(0, 163, 224, 0.08);
    color: #fff;
}
.tab-btn[data-tab="atom"].active .brand-svg,
.tab-btn[data-tab="atom"].active .atom-logo-img {
    transform: scale(1.18);
    filter: drop-shadow(0 0 10px rgba(0, 163, 224, 0.8));
}

.tab-btn[data-tab="mytel"].active {
    background: rgba(241, 90, 36, 0.08);
    box-shadow: inset 0 0 18px rgba(241, 90, 36, 0.08);
    color: #fff;
}
.tab-btn[data-tab="mytel"].active .brand-svg,
.tab-btn[data-tab="mytel"].active .mytel-logo-img {
    transform: scale(1.18);
    filter: drop-shadow(0 0 10px rgba(241, 90, 36, 0.8));
}

.tab-btn[data-tab="mpt"].active {
    background: linear-gradient(180deg, rgba(253, 184, 19, 0.08) 0%, rgba(0, 85, 165, 0.12) 100%);
    box-shadow: inset 0 0 18px rgba(253, 184, 19, 0.08);
    color: #ffd13b;
}
.tab-btn[data-tab="mpt"].active .brand-svg,
.tab-btn[data-tab="mpt"].active .mpt-logo-img {
    transform: scale(1.18);
    filter: drop-shadow(0 0 10px rgba(253, 184, 19, 0.8));
}

.tab-btn[data-tab="u9"].active {
    background: linear-gradient(180deg, rgba(240, 197, 52, 0.13) 0%, rgba(143, 91, 23, 0.2) 100%);
    box-shadow: inset 0 0 18px rgba(240, 197, 52, 0.12);
    color: #fde68a;
}
.tab-btn[data-tab="u9"].active .brand-svg,
.tab-btn[data-tab="u9"].active .u9-logo-img {
    transform: scale(1.18);
    filter: drop-shadow(0 0 12px rgba(240, 197, 52, 0.9));
}

.tab-btn[data-tab="vpn"].active {
    background: linear-gradient(180deg, rgba(52, 211, 153, 0.12) 0%, rgba(6, 63, 45, 0.2) 100%);
    box-shadow: inset 0 0 18px rgba(52, 211, 153, 0.1);
    color: #fff;
}
.tab-btn[data-tab="vpn"].active svg {
    transform: scale(1.1);
}
.outline-vpn-logo {
    border-radius: 10px;
    filter: drop-shadow(0 0 9px rgba(52, 211, 153, 0.5));
}

/* ==========================================================================
   PACKAGE LIST & CARDS
   ========================================================================== */

.content-section {
    min-height: 250px;
}

.package-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.package-card {
    display: flex;
    width: 100%;
    max-width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

/* Atom Package Specific Card Theme */
.package-card.atom-card {
    border-left: 4px solid var(--atom-color);
    background: linear-gradient(135deg, rgba(0, 51, 160, 0.35) 0%, rgba(15, 23, 42, 0.85) 100%);
    border-top: 1px solid rgba(0, 163, 224, 0.25);
    border-right: 1px solid rgba(0, 51, 160, 0.25);
    border-bottom: 1px solid rgba(0, 51, 160, 0.2);
}
.package-card.atom-card:hover {
    border-color: rgba(0, 163, 224, 0.8);
    box-shadow: 0 10px 30px rgba(0, 163, 224, 0.25), 0 0 20px rgba(0, 51, 160, 0.3);
    transform: translateY(-2px);
}
.package-card.atom-card .card-logo-container {
    background: linear-gradient(135deg, rgba(0, 163, 224, 0.2) 0%, rgba(0, 51, 160, 0.35) 100%);
    border: 1.5px solid rgba(0, 163, 224, 0.5);
    box-shadow: 0 0 14px rgba(0, 163, 224, 0.3);
}
.package-card.atom-card .package-name {
    color: #ffffff;
    font-weight: 700;
}
.package-card.atom-card .package-desc {
    color: #cbd5e1;
}
.package-card.atom-card .price-tag {
    color: #38bdf8;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(0, 163, 224, 0.35);
}

/* Mytel Package Specific Card Theme */
.package-card.mytel-card {
    border-left: 4px solid var(--mytel-color);
    background: linear-gradient(135deg, rgba(241, 90, 36, 0.3) 0%, rgba(15, 23, 42, 0.85) 100%);
    border-top: 1px solid rgba(241, 90, 36, 0.25);
    border-right: 1px solid rgba(194, 60, 11, 0.25);
    border-bottom: 1px solid rgba(194, 60, 11, 0.2);
}
.package-card.mytel-card:hover {
    border-color: rgba(241, 90, 36, 0.8);
    box-shadow: 0 10px 30px rgba(241, 90, 36, 0.25), 0 0 20px rgba(194, 60, 11, 0.3);
    transform: translateY(-2px);
}
.package-card.mytel-card .card-logo-container {
    background: linear-gradient(135deg, rgba(241, 90, 36, 0.2) 0%, rgba(194, 60, 11, 0.35) 100%);
    border: 1.5px solid rgba(241, 90, 36, 0.5);
    box-shadow: 0 0 14px rgba(241, 90, 36, 0.3);
}
.package-card.mytel-card .package-name {
    color: #ffffff;
    font-weight: 700;
}
.package-card.mytel-card .package-desc {
    color: #cbd5e1;
}
.package-card.mytel-card .price-tag {
    color: #fb923c;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(241, 90, 36, 0.35);
}

/* MPT Package Specific Card Theme */
.package-card.mpt-card {
    border-left: 4px solid #fdb813;
    background: linear-gradient(135deg, rgba(0, 45, 94, 0.4) 0%, rgba(15, 23, 42, 0.85) 100%);
    border-top: 1px solid rgba(253, 184, 19, 0.25);
    border-right: 1px solid rgba(0, 85, 165, 0.25);
    border-bottom: 1px solid rgba(0, 85, 165, 0.2);
}
.package-card.mpt-card:hover {
    border-color: rgba(253, 184, 19, 0.8);
    box-shadow: 0 10px 30px rgba(253, 184, 19, 0.25), 0 0 20px rgba(0, 85, 165, 0.3);
    transform: translateY(-2px);
}
.package-card.mpt-card .card-logo-container {
    background: linear-gradient(135deg, rgba(253, 184, 19, 0.2) 0%, rgba(0, 85, 165, 0.35) 100%);
    border: 1.5px solid rgba(253, 184, 19, 0.5);
    box-shadow: 0 0 14px rgba(253, 184, 19, 0.3);
}
.card-logo-container .atom-logo-img,
.card-logo-container .mytel-logo-img,
.card-logo-container .mpt-logo-img,
.card-logo-container .u9-logo-img {
    width: 38px;
    height: 38px;
    margin-bottom: 0;
    border-radius: 8px;
}
.card-logo-container .atom-logo-img {
    filter: drop-shadow(0 0 8px rgba(0, 163, 224, 0.6));
}
.card-logo-container .mytel-logo-img {
    filter: drop-shadow(0 0 8px rgba(241, 90, 36, 0.6));
}
.card-logo-container .mpt-logo-img {
    filter: drop-shadow(0 0 8px rgba(253, 184, 19, 0.6));
}
.card-logo-container .u9-logo-img {
    filter: drop-shadow(0 0 10px rgba(240, 197, 52, 0.72));
}
.package-card.mpt-card .package-name {
    color: #ffffff;
    font-weight: 700;
}
.package-card.mpt-card .package-desc {
    color: #cbd5e1;
}
.package-card.mpt-card .price-tag {
    color: #ffd13b;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(253, 184, 19, 0.35);
}

/* U9 Package Specific Card Theme */
.package-card.u9-card {
    border-left: 4px solid var(--u9-color);
    background: linear-gradient(135deg, rgba(143, 91, 23, 0.34) 0%, rgba(15, 23, 42, 0.86) 100%);
    border-top: 1px solid rgba(240, 197, 52, 0.28);
    border-right: 1px solid rgba(143, 91, 23, 0.24);
    border-bottom: 1px solid rgba(143, 91, 23, 0.2);
}
.package-card.u9-card:hover {
    border-color: rgba(240, 197, 52, 0.82);
    box-shadow: 0 10px 30px rgba(240, 197, 52, 0.24), 0 0 20px rgba(143, 91, 23, 0.28);
    transform: translateY(-2px);
}
.package-card.u9-card .card-logo-container {
    background: linear-gradient(135deg, rgba(240, 197, 52, 0.22) 0%, rgba(143, 91, 23, 0.34) 100%);
    border: 1.5px solid rgba(240, 197, 52, 0.48);
    box-shadow: 0 0 14px rgba(240, 197, 52, 0.28);
}
.package-card.u9-card .package-name {
    color: #ffffff;
    font-weight: 700;
}
.package-card.u9-card .package-desc {
    color: #e5e7eb;
}
.package-card.u9-card .price-tag {
    color: #fde047;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(240, 197, 52, 0.36);
}

/* VPN Package Specific Card Theme */
.package-card.vpn-card {
    border-left: 4px solid var(--vpn-color);
    background:
        linear-gradient(135deg, rgba(6, 63, 45, 0.36) 0%, rgba(22, 29, 45, 0.82) 42%, rgba(22, 29, 45, 0.74) 100%);
}
.package-card.vpn-card:hover {
    border-color: rgba(52, 211, 153, 0.7);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.22), inset 0 0 16px rgba(6, 63, 45, 0.28);
}
.package-card.vpn-card .outline-vpn-logo {
    filter: drop-shadow(0 0 11px rgba(52, 211, 153, 0.62));
}
.package-card.vpn-card .card-logo-container {
    background: rgba(6, 63, 45, 0.62);
    border-color: rgba(52, 211, 153, 0.24);
    box-shadow: 0 0 18px rgba(52, 211, 153, 0.16);
}
.package-card.vpn-card .package-name {
    color: #ffffff;
}
.package-card.vpn-card .price-tag {
    color: #d1fae5;
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.32);
}

.card-logo-container {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    flex-shrink: 0;
}

.card-details {
    margin-left: 14px;
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.package-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.32;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.package-card.mpt-card .package-name {
    font-size: 15px;
    line-height: 1.38;
}

.package-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 4px 0 8px 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.package-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.price-tag {
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
}

.btn-buy {
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

/* Brand Specific Buy Buttons */
.atom-btn-buy {
    background: linear-gradient(135deg, var(--atom-color), var(--atom-dark));
    box-shadow: 0 0 10px rgba(0, 163, 224, 0.3);
}
.atom-btn-buy:active {
    transform: scale(0.95);
}

.mytel-btn-buy {
    background: linear-gradient(135deg, var(--mytel-color), #c23c0b);
    box-shadow: 0 0 10px rgba(241, 90, 36, 0.3);
}
.mytel-btn-buy:active {
    transform: scale(0.95);
}

.mpt-btn-buy {
    background: linear-gradient(135deg, #fdb813 0%, #e5a800 35%, #0055a5 100%);
    box-shadow: 0 4px 15px rgba(253, 184, 19, 0.4), 0 2px 8px rgba(0, 85, 165, 0.3);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.mpt-btn-buy:hover {
    box-shadow: 0 6px 22px rgba(253, 184, 19, 0.6), 0 4px 12px rgba(0, 85, 165, 0.5);
    transform: scale(1.03);
}
.mpt-btn-buy:active {
    transform: scale(0.96);
}

.u9-btn-buy {
    background: linear-gradient(135deg, #f8df63 0%, #d7a51f 45%, #8f5b17 100%);
    box-shadow: 0 4px 15px rgba(240, 197, 52, 0.36), 0 2px 8px rgba(143, 91, 23, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-weight: 800;
}
.u9-btn-buy:hover {
    box-shadow: 0 6px 22px rgba(240, 197, 52, 0.55), 0 4px 12px rgba(143, 91, 23, 0.45);
    transform: scale(1.03);
}
.u9-btn-buy:active {
    transform: scale(0.96);
}

.vpn-btn-buy {
    background: linear-gradient(135deg, #34d399 0%, #0f8f72 48%, #063f2d 100%);
    box-shadow: 0 4px 15px rgba(52, 211, 153, 0.34), 0 2px 8px rgba(6, 63, 45, 0.42);
    border: 1px solid rgba(209, 250, 229, 0.22);
    color: #ffffff;
    font-weight: 800;
}
.vpn-btn-buy:hover {
    box-shadow: 0 6px 22px rgba(52, 211, 153, 0.52), 0 4px 12px rgba(6, 63, 45, 0.55);
    transform: scale(1.03);
}
.vpn-btn-buy:active {
    transform: scale(0.96);
}

/* ==========================================================================
   LOADING & STATE MESSAGES
   ========================================================================== */

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid var(--atom-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.no-items-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    gap: 12px;
    color: var(--text-muted);
}

.no-items-container svg {
    width: 48px;
    height: 48px;
}

.mpt-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 1px solid rgba(253, 184, 19, 0.35);
    border-radius: 12px;
    background: rgba(8, 20, 38, 0.88);
}

.mpt-result-header strong,
.mpt-result-header span {
    display: block;
}

.mpt-result-header strong {
    color: var(--text-primary);
    font-size: 14px;
}

.mpt-result-header span {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 3px;
}

.u9-phone-card .card-logo-container {
    background: linear-gradient(135deg, rgba(240, 197, 52, 0.22) 0%, rgba(143, 91, 23, 0.34) 100%);
    border: 1.5px solid rgba(240, 197, 52, 0.5);
    box-shadow: 0 0 18px rgba(240, 197, 52, 0.28);
}

.u9-check-btn {
    background: linear-gradient(135deg, #f8d94a 0%, #c99516 45%, #7a5016 100%) !important;
    box-shadow: 0 4px 18px rgba(240, 197, 52, 0.38), 0 2px 10px rgba(143, 91, 23, 0.42) !important;
}

.u9-result-header {
    border-color: rgba(240, 197, 52, 0.38);
    background: linear-gradient(135deg, rgba(143, 91, 23, 0.24) 0%, rgba(8, 20, 38, 0.9) 100%);
}

/* ==========================================================================
   MY ORDERS HISTORY PAGE
   ========================================================================== */

.page-section {
    padding: 8px 0;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.history-id {
    font-weight: 600;
    color: var(--text-muted);
}

.history-status {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-awaiting_otp {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

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

.history-item-name {
    font-size: 15px;
    font-weight: 700;
}

.history-phone {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.history-price {
    font-size: 14px;
    font-weight: 700;
    color: #38bdf8;
}

.history-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

/* ==========================================================================
   BOTTOM NAVIGATION
   ========================================================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(11, 15, 25, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    max-width: 600px;
    margin: 0 auto;
}

.nav-item {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 25%;
    height: 100%;
    cursor: pointer;
    font-family: var(--font-family);
    transition: all 0.2s ease;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
}

.nav-item span {
    font-size: 10px;
    font-weight: 600;
}

.nav-item.active {
    color: var(--atom-color);
}

.nav-item.active svg {
    transform: scale(1.1);
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: flex-end; /* Slide up from bottom */
    justify-content: center;
}

.modal-content {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    width: 100%;
    max-width: 600px;
    padding: 20px 20px 30px 20px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.scrollable-modal-body {
    overflow-y: auto;
    max-height: 60vh;
    padding-right: 4px;
}

/* Slide up animation */
.slide-up {
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 600;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.confirm-item-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
}

.item-icon-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 5px;
}

.item-info {
    margin-left: 12px;
}

.item-info h4 {
    font-size: 14px;
    font-weight: 700;
}

.item-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.price-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 16px;
    font-size: 14px;
}

.price-summary strong {
    font-size: 16px;
    color: #38bdf8;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

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

.input-group input {
    background: rgba(15, 22, 36, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    font-size: 15px;
    font-family: var(--font-family);
    outline: none;
    width: 100%;
}

.input-group input:focus {
    border-color: var(--atom-color);
}

.input-error {
    color: #ef4444;
    font-size: 11px;
    display: none;
}

.btn-primary-glow {
    background: linear-gradient(135deg, var(--atom-color), var(--atom-dark));
    border: none;
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    box-shadow: var(--glow-atom);
    transition: all 0.2s ease;
}

.btn-primary-glow:active {
    transform: scale(0.98);
}

/* Payment Modal Specific Box */
.topup-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.payment-info-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.payment-row {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 12px 14px;
}

.pay-method {
    font-size: 12px;
    color: var(--text-secondary);
    width: 100px;
}

.pay-num {
    font-size: 14px;
    flex-grow: 1;
    color: #f1f5f9;
}

.btn-copy {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.btn-copy:active {
    background: rgba(56, 189, 248, 0.2);
}

.topup-notice {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    background: rgba(245, 158, 11, 0.05);
    border: 1px dashed rgba(245, 158, 11, 0.2);
    padding: 12px;
    border-radius: 10px;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */

.toast-notification {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    z-index: 300;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
    width: max-content;
    max-width: 80vw;
}

/* ==========================================================================
   AUTO DIRECT PAYMENT STYLES
   ========================================================================== */

.payment-tabs-container {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.section-sub-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.payment-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(15, 22, 36, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3px;
    border-radius: 10px;
}

.pay-tab-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-family);
    transition: all var(--transition-speed);
}

.pay-tab-btn.active {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.direct-payment-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed rgba(255, 255, 255, 0.06);
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 20px;
    animation: fadeIn 0.2s ease-in;
}

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

.direct-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.bank-info-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 10px 12px;
}

.bank-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.bank-name {
    color: var(--text-muted);
}

.bank-num {
    color: #f1f5f9;
    font-weight: 600;
}

.btn-copy-inline {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    font-family: var(--font-family);
}

.btn-copy-inline:active {
    background: rgba(56, 189, 248, 0.2);
}

.custom-select {
    background: rgba(15, 22, 36, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    font-size: 15px;
    font-family: var(--font-family);
    outline: none;
    width: 100%;
    cursor: pointer;
}

.custom-select:focus {
    border-color: var(--atom-color);
}

.custom-select option {
    background: #111827;
    color: #fff;
}

.redeem-page-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 18px;
    padding: 20px;
    width: 100%;
    max-width: 480px;
    margin: 10px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.redeem-card-header {
    text-align: center;
    margin-bottom: 20px;
}

.gift-icon-glow {
    font-size: 42px;
    margin-bottom: 10px;
    animation: bounceGlow 2s infinite ease-in-out;
}

@keyframes bounceGlow {
    0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.6)); }
    50% { transform: translateY(-6px) scale(1.1); filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.9)); }
}

.redeem-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #f3e8ff;
}

.redeem-card-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.redeem-banner {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(126, 34, 206, 0.9), rgba(168, 85, 247, 0.9));
    border: 1px solid rgba(192, 132, 252, 0.4);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(126, 34, 206, 0.35);
    cursor: pointer;
    transition: all 0.25s ease;
}

.redeem-banner:hover, .redeem-banner:active {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.5);
}

.banner-icon {
    font-size: 28px;
    margin-right: 12px;
}

.banner-text {
    flex-grow: 1;
}

.banner-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.banner-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

.btn-banner-redeem {
    background: #ffffff;
    color: #7e22ce;
    border: none;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}
