/* ============================================================
   PANEL MARKET - REFINED LIQUID GLASS DESIGN SYSTEM
   Bespoke Glassmorphism, Specular Edge Refraction & Space Black Finish
   ============================================================ */

:root {
    /* Obsidian & Space Black Depth */
    --canvas-bg: #000000;
    --canvas-surface: #0a0a0f;
    --canvas-elevated: #14141a;

    /* Liquid Glass Material Tokens */
    --glass-bg: rgba(255, 255, 255, 0.045);
    --glass-bg-hover: rgba(255, 255, 255, 0.075);
    --glass-bg-modal: rgba(20, 20, 26, 0.88);

    /* Specular Lighting & Refraction */
    --glass-blur: blur(32px) saturate(190%);
    --glass-border: 1px solid rgba(255, 255, 255, 0.11);
    --glass-border-hover: 1px solid rgba(255, 255, 255, 0.22);
    --glass-specular: inset 0 1px 0 0 rgba(255, 255, 255, 0.32);
    --glass-specular-hover: inset 0 1px 0 0 rgba(255, 255, 255, 0.52);

    /* Elevation & Ambient Shadows */
    --glass-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.2);
    --glass-shadow-hover: 0 24px 50px -10px rgba(0, 0, 0, 0.82), 0 0 0 1px rgba(255, 255, 255, 0.06);

    /* Accent Palette */
    --accent-blue: #0071e3;
    --accent-blue-hover: #0077ed;
    --accent-blue-glow: rgba(0, 113, 227, 0.35);
    --accent-emerald: #30d158;
    --accent-amber: #ff9f0a;
    --accent-coral: #ff453a;

    /* Typography Hierarchy */
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --text-tertiary: #6e6e73;

    /* Typography Fonts */
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", sans-serif;
    --font-mono: "SF Mono", Menlo, Monaco, Consolas, monospace;

    /* Continuous Radii */
    --radius-card: 22px;
    --radius-pill: 980px;
    --radius-modal: 26px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   CANVAS & AMBIENT ENVIRONMENTAL LIGHTING
   ============================================================ */

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

body {
    background-color: #030407;
    background-image: url('/images/silk-mesh-bg.svg');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.47059;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Atmospheric Ambient Spotlight */
body::after {
    content: '';
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 650px;
    background: radial-gradient(circle at 50% 30%, rgba(0, 240, 255, 0.07) 0%, rgba(138, 43, 226, 0.03) 40%, transparent 75%);
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ============================================================
   TRANSLUCENT FROSTED NAVBAR
   ============================================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 54px;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.brand-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand:hover .brand-logo-img {
    transform: scale(1.06);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.45);
}

.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.brand-text h1 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #ffffff;
    line-height: 1.1;
}

.brand-text span {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.3px;
    display: block;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Minimalist Wallet Pill */
.nav-wallet-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    font-family: inherit;
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-wallet-chip:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.25);
}

.wallet-chip-icon {
    color: var(--text-secondary);
    font-size: 12px;
}

.wallet-chip-text {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.wallet-chip-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wallet-chip-amount {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-mono);
}

.wallet-chip-add {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 800;
}

/* Nav Button Links */
.nav-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: inherit;
}

.nav-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-btn-reseller {
    color: var(--accent-amber);
    background: rgba(255, 159, 10, 0.08);
    border: 1px solid rgba(255, 159, 10, 0.2);
}

.nav-btn-reseller:hover {
    background: rgba(255, 159, 10, 0.16);
    color: #ffffff;
}

/* ============================================================
   STORE HERO SECTION
   ============================================================ */

.store-hero {
    padding: 44px 0 24px;
    text-align: center;
}

.hero-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    padding: 4px 14px 4px 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-brand-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.auth-center-logo {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 16px;
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.store-hero-title {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 12px;
    background: linear-gradient(180deg, #ffffff 40%, rgba(255, 255, 255, 0.65) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.store-hero-sub {
    font-size: 16px;
    font-weight: 400;
    color: #94a3b8;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ============================================================
   STORE TOOLBAR & SEARCH FIELD
   ============================================================ */

.store-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 12px 0;
}

.toolbar-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.toolbar-category-pill i {
    color: var(--accent-emerald);
    font-size: 16px;
}

.count-tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
}

.search-glass-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 320px;
    max-width: 100%;
}

.search-glass-wrap .search-icon {
    position: absolute;
    left: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    pointer-events: none;
}

.search-glass-wrap input {
    width: 100%;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    padding: 0 34px 0 34px;
    font-size: 13px;
    font-family: inherit;
    color: #ffffff;
    transition: all 0.2s var(--ease-out);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.search-glass-wrap input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.search-clear-btn {
    position: absolute;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    transition: all 0.2s;
}

.search-clear-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

@media (max-width: 768px) {
    .store-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-glass-wrap {
        width: 100%;
    }
}

/* ============================================================
   LIQUID GLASS PRODUCT CARDS
   ============================================================ */

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
    margin-bottom: 70px;
}

.glass-card,
.panel-card,
.liquid-card {
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-card);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--glass-shadow), var(--glass-specular);
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

/* Card Thumbnail Banner */
.card-thumb-banner {
    position: relative;
    width: 100%;
    height: 140px;
    border-radius: calc(var(--radius-card) - 6px);
    overflow: hidden;
    margin-bottom: 12px;
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.card-thumb-banner.no-image {
    height: 44px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 240, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    padding: 0 8px;
    box-shadow: none;
    margin-bottom: 12px;
}

.card-thumb-banner.no-image .thumb-badge-row {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
}

.card-thumb-banner.no-image .card-thumb-img {
    display: none !important;
}

.card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s var(--ease-out), filter 0.4s ease;
}

.glass-card:hover .card-thumb-img {
    transform: scale(1.04);
    filter: brightness(1.1);
}

/* Floating Badges on Thumbnail */
.thumb-badge-row {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    align-items: center;
    z-index: 2;
}

.badge-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-tag.platform-tag.android {
    background: rgba(16, 185, 129, 0.35);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.badge-tag.platform-tag.ios {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.badge-tag.root-tag.nonroot {
    background: rgba(6, 182, 212, 0.3);
    color: #22d3ee;
    border: 1px solid rgba(34, 211, 238, 0.5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.badge-tag.root-tag.root {
    background: rgba(239, 68, 68, 0.3);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.badge-tag.root-tag.all {
    background: rgba(168, 85, 247, 0.3);
    color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.badge-tag.type-tag {
    background: rgba(15, 23, 42, 0.85);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.glass-card:hover,
.panel-card:hover,
.liquid-card:hover {
    background-color: var(--glass-bg-hover);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: var(--glass-shadow-hover), var(--glass-specular-hover);
    transform: translateY(-2px);
}

.glass-card.is-maintenance,
.panel-card.maintenance-mode {
    opacity: 0.5;
    filter: grayscale(0.6);
}

/* Card Header */
.card-head-wrap {
    margin-bottom: 14px;
}

.panel-name {
    font-size: 16px;
    font-weight: 600;
    color: #f5f5f7;
    line-height: 1.3;
    letter-spacing: -0.015em;
    margin-bottom: 6px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pid-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 7px;
    border-radius: 6px;
}


.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
}

.stock-status.online {
    color: var(--accent-emerald);
}

.stock-status.offline {
    color: var(--text-tertiary);
}

.stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.stock-status.online .stock-dot {
    box-shadow: 0 0 6px var(--accent-emerald);
}

/* ============================================================
   PRECISION GLASS DURATION SELECTOR (BALANCED GRID TILES)
   ============================================================ */

/* ============================================================
   PRECISION GLASS DURATION SELECTOR (BALANCED ADAPTIVE TILES)
   ============================================================ */

.segmented-track,
.duration-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 14px 0 16px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    width: 100%;
}

/* Adaptive Column Configurations */
.duration-selector.variant-grid-1col,
.segmented-track.variant-grid-1col {
    grid-template-columns: 1fr;
    gap: 6px;
}

.duration-selector.variant-grid-2col,
.segmented-track.variant-grid-2col {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.duration-selector.variant-grid-3col,
.segmented-track.variant-grid-3col {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.duration-selector.variant-grid-4col,
.segmented-track.variant-grid-4col {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

@media (max-width: 480px) {
    .duration-selector.variant-grid-4col,
    .segmented-track.variant-grid-4col {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

/* Luxury Liquid Glass Pill / Tile */
.segmented-pill,
.dur-pill {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    color: var(--text-secondary);
    min-height: 36px;
    padding: 6px 8px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.25);
    user-select: none;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-sizing: border-box;
    width: 100%;
}

/* Comfortable height when in 2-col variant grid */
.variant-grid-2col .segmented-pill,
.variant-grid-2col .dur-pill {
    min-height: 42px;
    padding: 6px 8px;
}

/* Dual-Tier Typography: Primary Time (e.g. 1 Day, 7 Days) */
.segmented-pill .dur-time,
.dur-pill .dur-time {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.2;
    letter-spacing: -0.01em;
    pointer-events: none;
}

.segmented-pill .dur-time.single-line,
.dur-pill .dur-time.single-line {
    font-size: 11.5px;
}

/* Dual-Tier Typography: Subtitle Variant (e.g. APKMOD SAFE, BYPASS REPLAY) */
.segmented-pill .dur-variant,
.dur-pill .dur-variant {
    font-size: 9.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.52);
    line-height: 1.15;
    margin-top: 2px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    pointer-events: none;
}

/* Hover Interaction */
.segmented-pill:hover,
.dur-pill:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 12px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

.segmented-pill:hover .dur-time,
.dur-pill:hover .dur-time {
    color: #ffffff;
}

.segmented-pill:hover .dur-variant,
.dur-pill:hover .dur-variant {
    color: rgba(255, 255, 255, 0.75);
}

/* Active Selected State - Specular Edge Light & Radiant Glass */
.segmented-pill.active,
.dur-pill.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 
                0 0 12px rgba(255, 255, 255, 0.06), 
                0 4px 16px rgba(0, 0, 0, 0.45);
    transform: translateY(0);
}

.segmented-pill.active .dur-time,
.dur-pill.active .dur-time {
    color: #ffffff;
    font-weight: 700;
}

.segmented-pill.active .dur-variant,
.dur-pill.active .dur-variant {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

/* ============================================================
   CARD FOOTER, PRICING & CHECKOUT ACTION
   ============================================================ */

.card-footer,
.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.price-container .curr {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.price-container .val {
    font-size: 24px;
    font-weight: 700;
    color: #f5f5f7;
    letter-spacing: -0.02em;
    font-family: var(--font-mono);
}

/* Also support legacy price-block */
.price-block {
    display: flex;
    flex-direction: column;
}

.price-amount {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-mono);
}

.price-amount span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Solid Executive Blue Button */
.btn-checkout,
.btn-apple-buy,
.btn-liquid-buy,
.buy-btn {
    background-color: var(--accent-blue);
    color: #ffffff;
    border: none;
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.3);
}

.btn-checkout:hover,
.btn-apple-buy:hover,
.btn-liquid-buy:hover,
.buy-btn:hover {
    background-color: var(--accent-blue-hover);
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.45);
    transform: scale(1.02);
}

.btn-checkout:active,
.btn-apple-buy:active,
.buy-btn:active {
    transform: scale(0.97);
}

/* ============================================================
   TRANSLUCENT SHEET MODALS
   ============================================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: var(--glass-bg-modal);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-modal);
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 30px 80px rgba(0, 0, 0, 0.88);
    animation: sheetModalAppear 0.25s var(--ease-out);
}

@keyframes sheetModalAppear {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.015em;
}

.close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.modal-body {
    padding: 24px;
}

/* Clean Translucent Form Inputs */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 14px;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.3), inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.help-text {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 5px;
    display: block;
    line-height: 1.4;
}

/* Modal Action Buttons */
.btn-primary {
    background-color: var(--accent-blue);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

/* QR Presentation & Razorpay Standard UPI Checkout */
.rzp-checkout-box {
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.rzp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rzp-merchant-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rzp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(12, 131, 254, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.rzp-merchant-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rzp-verified-icon {
    color: #0c83fe;
    font-size: 13px;
}

.rzp-order-id {
    font-size: 11px;
    color: var(--text-muted);
}

.rzp-price-tag {
    text-align: right;
}

.rzp-price-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}

.rzp-amount {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-main);
    letter-spacing: -0.02em;
}

/* Elevated White Card for QR */
.rzp-qr-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px 14px 14px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    margin-bottom: 14px;
}

.rzp-timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.rzp-timer-pill strong {
    font-family: var(--font-mono);
    color: #92400e;
}

.rzp-qr-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    padding: 4px;
}

.rzp-qr-img {
    width: 190px;
    height: 190px;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
}

.rzp-scan-instructions {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin: 10px 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.rzp-app-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 4px;
}

.rzp-app-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.rzp-app-chip i {
    font-size: 11px;
}

.rzp-app-chip.gpay i { color: #4285F4; }
.rzp-app-chip.phonepe i { color: #5f259f; }
.rzp-app-chip.paytm i { color: #00b9f5; }
.rzp-app-chip.bhim i { color: #003366; }
.rzp-app-chip.fampay i { color: #f59e0b; }

/* Status Bar */
.rzp-status-bar {
    background: rgba(12, 131, 254, 0.07);
    border: 1px solid rgba(12, 131, 254, 0.22);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rzp-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(12, 131, 254, 0.25);
    border-top-color: #0c83fe;
    border-radius: 50%;
    animation: rzpSpin 0.75s linear infinite;
    flex-shrink: 0;
}

@keyframes rzpSpin {
    to { transform: rotate(360deg); }
}

.rzp-status-text {
    flex: 1;
    text-align: left;
}

.rzp-status-text strong {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    display: block;
    margin-bottom: 2px;
}

.rzp-status-text span {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.35;
    display: block;
}

/* Razorpay Footer */
.rzp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rzp-security-tag {
    font-size: 11px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.rzp-security-tag i {
    color: #0c83fe;
}

.rzp-cancel-btn {
    background: transparent;
    border: none;
    color: var(--accent-danger);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.rzp-cancel-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    text-decoration: underline;
}

.qr-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 18px;
}

.qr-code-img {
    max-width: 170px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 4px solid #ffffff;
    margin: 10px auto;
    display: block;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.countdown-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--accent-amber);
    background: rgba(255, 159, 10, 0.1);
    border: 1px solid rgba(255, 159, 10, 0.2);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
}

.copy-row {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 12px;
    margin-top: 10px;
}

.copy-row span {
    font-family: var(--font-mono);
    font-size: 12px;
    flex: 1;
    text-align: left;
    color: #ffffff;
    word-break: break-all;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Key Delivery Box */
.key-box {
    background: rgba(48, 209, 88, 0.08);
    border: 1px solid rgba(48, 209, 88, 0.25);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin: 18px 0;
}

.key-text {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-emerald);
    letter-spacing: 0.8px;
    word-break: break-all;
    margin: 10px 0;
}

/* Tabs */
.banti-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.banti-tab-btn.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(22, 22, 28, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8);
    z-index: 2000;
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.28s var(--ease-out);
    backdrop-filter: var(--glass-blur);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================================
   RESELLER HUB STYLING
   ============================================================ */

.reseller-auth-card {
    max-width: 420px;
    margin: 40px auto;
    background: var(--glass-bg-modal);
    border: 1px solid rgba(255, 159, 10, 0.2);
    border-radius: var(--radius-modal);
    padding: 32px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 25px 60px rgba(0, 0, 0, 0.85);
}

.reseller-auth-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 159, 10, 0.1);
    border: 1px solid rgba(255, 159, 10, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-amber);
    font-size: 20px;
    margin: 0 auto 16px;
}

.btn-reseller-auth {
    width: 100%;
    background-color: var(--accent-amber);
    color: #000000;
    border: none;
    padding: 11px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.btn-reseller-auth:hover {
    background-color: #ffb13b;
    transform: scale(1.01);
}

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    .store-hero-title {
        font-size: 32px;
    }
}

/* ============================================================
   GOOGLE & GMAIL OTP AUTHENTICATION & RESELLER TAGS
   ============================================================ */

.btn-google-auth {
    width: 100%;
    background: #ffffff;
    color: #1f1f1f;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s var(--ease-out);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    margin-bottom: 16px;
    font-family: inherit;
}

.btn-google-auth:hover {
    background: #f1f3f4;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-divider span {
    padding: 0 14px;
    text-transform: lowercase;
}

.user-uid-pill {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.user-uid-pill:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: rgba(0, 240, 255, 0.6);
}

.badge-reseller-tag {
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.2), rgba(255, 100, 0, 0.1));
    border: 1px solid rgba(255, 170, 0, 0.4);
    color: #ffb833;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.02em;
}

.reseller-rate-tag {
    font-size: 9px;
    font-weight: 700;
    color: #ffaa00;
    background: rgba(255, 170, 0, 0.12);
    border: 1px solid rgba(255, 170, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

/* ============================================================
   MANDATORY HIGH-SECURITY ACCESS GATEWAY
   ============================================================ */

.auth-gate-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(3, 4, 7, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
}

.auth-gate-card {
    background: linear-gradient(180deg, rgba(16, 20, 29, 0.94) 0%, rgba(9, 12, 18, 0.98) 100%);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 45px rgba(0, 240, 255, 0.08);
    width: 100%;
    max-width: 440px;
    padding: 36px 32px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: gateFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gateFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.auth-gate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), rgba(0, 240, 255, 0.4), transparent);
}

.gate-brand-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 240, 255, 0.1);
    margin-bottom: 20px;
}

.gate-brand-icon-wrap img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.gate-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    line-height: 1.25;
}

.gate-subtitle {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 24px;
}

.gate-tab-nav {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 3px;
    margin-bottom: 18px;
    gap: 4px;
}

.gate-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
}

.gate-tab-btn.active {
    background: var(--bg-elevated);
    color: #fff;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.gate-guarantees {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
    font-size: 11px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.gate-guarantees span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav-logout-btn {
    color: var(--accent-danger) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.nav-logout-btn:hover {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: var(--accent-danger) !important;
}

/* ============================================================
   CYBERPUNK DIGITAL TAX INVOICE MODAL & BUTTONS
   ============================================================ */

.btn-invoice {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: var(--accent-cyan);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.btn-invoice:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--accent-cyan);
    transform: translateY(-1px);
}

.invoice-modal-card {
    background: #0d1118;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: var(--radius-md);
    max-width: 500px;
    width: 100%;
    padding: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 240, 255, 0.08);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.invoice-modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald), var(--accent-amber));
}

.invoice-receipt-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 14px;
}

.invoice-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
}

.invoice-meta-row:last-child {
    border-bottom: none;
}

.invoice-meta-label {
    color: var(--text-secondary);
}

.invoice-meta-val {
    color: #fff;
    font-weight: 600;
    font-family: var(--font-mono);
}

/* ============================================================
   CYBERPUNK LIQUID GLASS PROFILE COMMAND CENTER
   ============================================================ */

.profile-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeIn 0.25s ease-out;
}

/* 1. Hero Identity Card */
.profile-hero-card {
    background: linear-gradient(135deg, rgba(13, 17, 24, 0.95), rgba(7, 9, 14, 0.98));
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.profile-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-emerald), transparent);
}

.profile-hero-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.profile-hero-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.profile-avatar-wrap {
    position: relative;
    width: 58px;
    height: 58px;
    flex-shrink: 0;
}

.profile-avatar-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(168, 85, 247, 0.2));
    border: 2px solid rgba(0, 240, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 24px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

.profile-avatar-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff88;
    border: 2px solid #0d1118;
    box-shadow: 0 0 8px #00ff88;
}

.profile-identity-info {
    flex: 1;
    min-width: 0;
}

.profile-sub-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.profile-main-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.profile-badges-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.profile-tier-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.02em;
}

.profile-tier-badge.tier-retail {
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.profile-tier-badge.tier-reseller {
    background: rgba(255, 170, 0, 0.15);
    border: 1px solid rgba(255, 170, 0, 0.4);
    color: #ffaa00;
    box-shadow: 0 0 12px rgba(255, 170, 0, 0.2);
}

.profile-telemetry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}

.profile-telemetry-item {
    display: flex;
    flex-direction: column;
}

.profile-telemetry-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    font-weight: 600;
}

.profile-telemetry-val {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-mono);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 2. Sleek Section Cards */
.profile-section-card {
    background: #0d1118;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.profile-section-card:hover {
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.profile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.profile-section-title {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.02em;
}

.profile-section-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.4;
}

/* 3. Communication Channel Items (Mobile & Email) */
.profile-channel-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-channel-item {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    transition: all 0.2s ease;
}

.profile-channel-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.5);
}

.profile-channel-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.profile-channel-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.profile-channel-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.profile-channel-icon.phone {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 240, 255, 0.25);
}

.profile-channel-icon.email {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.profile-channel-meta {
    min-width: 0;
}

.profile-channel-meta-label {
    font-size: 10.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.profile-channel-meta-val {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-mono);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-channel-meta-val.not-linked {
    color: var(--text-secondary);
    font-family: inherit;
    font-weight: 500;
    font-size: 12px;
}

.profile-channel-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.profile-channel-btn:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.profile-channel-drawer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    display: none;
    animation: fadeIn 0.2s ease-out;
}

.profile-input-group {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.profile-input-group:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.profile-input-prefix {
    padding: 0 12px;
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    height: 38px;
    display: flex;
    align-items: center;
    user-select: none;
}

.profile-input-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
}

.profile-input-field::placeholder {
    color: var(--text-muted);
}

.profile-save-btn {
    background: linear-gradient(135deg, var(--accent-cyan), #00a2ff);
    color: #07090e;
    font-weight: 800;
    font-size: 12px;
    border: none;
    padding: 0 16px;
    height: 38px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.profile-save-btn:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.profile-save-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: none;
}

/* 4. Tactical PIN Vault Form */
.profile-vault-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

@media (max-width: 600px) {
    .profile-vault-grid {
        grid-template-columns: 1fr;
    }
}

.profile-vault-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-vault-label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-vault-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-vault-input-wrap i {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 12px;
    pointer-events: none;
}

.profile-vault-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 9px 12px 9px 34px;
    font-size: 12px;
    color: #fff;
    font-family: inherit;
    transition: all 0.2s ease;
}

.profile-vault-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    background: rgba(0, 0, 0, 0.75);
}

.profile-vault-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(0, 255, 136, 0.15));
    border: 1px solid rgba(0, 240, 255, 0.35);
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
    padding: 11px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.profile-vault-submit-btn:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.28), rgba(0, 255, 136, 0.28));
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    transform: translateY(-1px);
}

/* ==========================================================================
   Full-Page Single Page App (SPA) Architecture
   Replaces popups for Wallet, My Keys, and Profile with dedicated views
   ========================================================================== */

.app-page {
    display: none;
    animation: spaPageFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    padding-bottom: 60px;
}

.app-page.active {
    display: block !important;
}

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

.page-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.page-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.page-back-btn:hover {
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.3);
    color: #ffffff;
    transform: translateX(-3px);
}

.page-title-group {
    flex: 1;
    min-width: 260px;
}

.page-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    background: linear-gradient(180deg, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    margin-bottom: 0;
}

/* Active Navbar States */
.nav-btn.nav-active,
.user-pill-btn.nav-active,
.nav-wallet-chip.nav-active {
    background: rgba(0, 240, 255, 0.12) !important;
    border-color: rgba(0, 240, 255, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.3) !important;
}

/* Full-Page Executive Wallet Layout */
.wallet-hero-card {
    background: linear-gradient(135deg, rgba(13, 17, 24, 0.95), rgba(7, 9, 14, 0.98));
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.wallet-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-emerald), transparent);
}

.wallet-balance-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wallet-balance-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-balance-huge {
    font-size: 38px;
    font-weight: 900;
    font-family: var(--font-mono);
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
}

.wallet-page-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 960px) {
    .wallet-page-grid {
        grid-template-columns: 1fr;
    }
}

.wallet-card-panel {
    background: rgba(13, 17, 24, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    position: relative;
    backdrop-filter: blur(12px);
}

.wallet-card-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wallet-card-panel-title {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Full-Page Keys Grid */
.keys-page-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

@media (max-width: 640px) {
    .keys-page-feed {
        grid-template-columns: 1fr;
    }
}

.key-vault-card {
    background: linear-gradient(135deg, rgba(13, 17, 24, 0.95), rgba(8, 10, 16, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
}

.key-vault-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 240, 255, 0.3);
}

.profile-fullpage-wrap {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media print {
    body * {
        visibility: hidden !important;
    }
    #invoiceModal, #invoiceModal * {
        visibility: visible !important;
    }
    #invoiceModal {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: #fff !important;
        color: #000 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .invoice-modal-card {
        background: #fff !important;
        color: #111 !important;
        border: 2px solid #222 !important;
        box-shadow: none !important;
        max-width: 600px !important;
        width: 100% !important;
        padding: 24px !important;
    }
    .invoice-modal-card * {
        color: #111 !important;
        text-shadow: none !important;
    }
    .invoice-receipt-box {
        background: #f7f9fc !important;
        border: 1px solid #ddd !important;
    }
    #invoiceDisplayAmount {
        color: #0b8e4e !important;
    }
    #printInvoiceBtn, #dismissInvoiceBtn, #closeInvoiceBtn {
        display: none !important;
    }
}
