:root {
    --bg-main: #090d16;
    --bg-secondary: #0f172a;
    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.4);
    --secondary: #8b5cf6;
    --accent: #00f0ff;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: rgba(15, 23, 42, 0.75);
    --card-border: rgba(255, 255, 255, 0.08);
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

body.light-theme {
    --bg-main: #f8fafc;
    --bg-secondary: #ffffff;
    --primary: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.25);
    --secondary: #3b82f6;
    --accent: #0284c7;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-border: rgba(226, 232, 240, 0.8);
}

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

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    max-width: 100vw;
}

body:not(.light-theme) {
    background-color: #070a12 !important;
    background: #070a12 !important;
    background-image:
        radial-gradient(circle at 15% 30%, rgba(56, 189, 248, 0.08), transparent 35%),
        radial-gradient(circle at 85% 70%, rgba(139, 92, 246, 0.08), transparent 35%) !important;
    color: #f8fafc !important;
}

body.light-theme {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
    color: #0f172a !important;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-price {
    color: var(--accent);
}

.font-bold {
    font-weight: 700;
}

.text-lg {
    font-size: 1.25rem;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Views */
.view {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.view.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.glass-header {
    background: var(--bg-secondary); /* Solid background to prevent overlap visibility */
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
    padding: 8px 0;
    gap: 12px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 1;
}

.logo i {
    color: var(--primary);
}

.logo span {
    color: var(--accent);
}

.site-img-logo {
    height: 56px;
    width: clamp(150px, 16vw, 190px);
    aspect-ratio: 2036 / 600;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    border-radius: 16px;
    clip-path: inset(0 round 16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28), 0 0 18px rgba(0, 198, 255, 0.16);
}





#nav-user-1 a {
    min-width: 108px;
    text-align: center;
}





/* Nav never wraps — scrolls horizontally if needed */



/* Shrink btn-primary & btn-outline inside nav */




/* Buttons */
button,
.btn-primary,
.btn-outline,
.btn-large {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 10px 24px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 9px 23px;
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
}

.btn-glow {
    position: relative;
    z-index: 1;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    z-index: -1;
    border-radius: inherit;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-glow:hover::after {
    opacity: 0.8;
    animation: glow 3s linear infinite;
}

@keyframes glow {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

/* Main Content */
main {
    flex: 1;
    padding: 40px 20px;
}

/* =============================================
   HERO SECTION - REDESIGNED WITH PARTICLES
   ============================================= */

.hero {
    text-align: center;
    padding: 90px 0 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
}

/* Particle Canvas Layer */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Floating Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
    animation: orbFloat 12s ease-in-out infinite;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ff007f, transparent);
    top: -150px;
    left: -100px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #00f0ff, transparent);
    bottom: -100px;
    right: -80px;
    animation-delay: -4s;
}



@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -40px) scale(1.05); }
    66%       { transform: translate(-20px, 20px) scale(0.95); }
}

/* Hero Content */
.hero-content {
    max-width: 860px;
    width: 100%;
    min-width: 0;
    position: relative;
    z-index: 2;
}

/* Animated Badge */
.badge {
    background: rgba(0, 240, 255, 0.08);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid rgba(0, 240, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    animation: badgePulse 3s ease-in-out infinite;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent), 0 0 16px var(--accent);
    animation: dotBlink 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0px rgba(0, 240, 255, 0); }
    50%       { box-shadow: 0 0 20px rgba(0, 240, 255, 0.2); }
}

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

/* Hero Heading */
.hero h1 {
    font-size: 3.8rem;
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

#hero-typing-text {
    white-space: pre-wrap;
    word-break: break-word;
}

/* Typing Cursor Effect */


@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Hero Subtext */
.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 44px;
    line-height: 1.7;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero CTA Buttons */














/* Hero Stats Strip */








@media (max-width: 768px) {
    .hero {
        padding: 60px 0 50px;
        min-height: 70vh;
    }
    .hero h1 {
        font-size: 2.4rem;
    }
    .hero-orb-1 { width: 280px; height: 280px; }
    .hero-orb-2 { width: 220px; height: 220px; }
    
    
}

/* Products Section */
.products-section {
    position: relative;
    z-index: 1;
    background: var(--bg-main);
    padding: 40px 0 20px;
    border-radius: 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
}

/* =============================================
   PRODUCT SEARCH BAR
   ============================================= */

.product-search-bar {
    width: 100%;
    max-width: none !important;
    max-width: 520px;
    margin: 0 auto 32px auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-sort-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-sort-btn,
.product-source-btn,
.otp-filter-btn {
    border: 1px solid var(--card-border);
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}

.product-sort-btn:hover,
.product-source-btn:hover,
.otp-filter-btn:hover {
    color: var(--text-main);
    border-color: rgba(0,240,255,0.35);
}

.product-sort-btn.active,
.product-source-btn.active,
.otp-filter-btn.active {
    background: rgba(0,240,255,0.12);
    border-color: var(--accent);
    color: var(--accent);
}

.product-source-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.psb-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: 14px;
    padding: 0 16px;
    backdrop-filter: blur(14px);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.psb-inner:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 0, 127, 0.15), 0 4px 24px rgba(255, 0, 127, 0.1);
}

.psb-icon {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: color 0.25s;
}

.psb-inner:focus-within .psb-icon {
    color: var(--primary);
}

.psb-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.97rem;
    padding: 14px 0;
    min-width: 0;
}

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

.psb-clear {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.72rem;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.psb-clear:hover {
    background: rgba(255, 0, 127, 0.18);
    color: var(--primary);
    transform: scale(1.1);
}

.psb-result-count {
    text-align: center;
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 500;
    min-height: 18px;
    letter-spacing: 0.01em;
    animation: fadeIn 0.2s ease;
}

/* Highlight từ khóa tìm kiếm */
mark.psb-highlight {
    background: transparent;
    color: var(--accent);
    font-weight: 800;
    position: relative;
}

mark.psb-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    opacity: 0.6;
}

/* Trạng thái không tìm thấy sản phẩm */
.product-empty-search {
    text-align: center;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: fadeIn 0.3s ease;
}

.product-empty-search i {
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.4;
}

.product-empty-search p {
    color: var(--text-muted);
    font-size: 1rem;
}

.product-empty-search span {
    color: var(--text-main);
    font-weight: 700;
}

.product-empty-search .btn-outline {
    margin-top: 6px;
    font-size: 0.9rem;
    padding: 9px 22px;
}

@media (max-width: 600px) {
    .product-search-bar {
        max-width: 100%;
        margin-bottom: 24px;
    }
}

/* =============================================
   PRODUCT GRID — APP STORE MINI CARD
   ============================================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 18px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 240, 255, 0.15);
}

.product-card:active {
    transform: scale(0.97);
}

/* Logo banner area */
.pc-banner {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,0,127,0.12), rgba(0,240,255,0.12));
    position: relative;
    overflow: hidden;
}

.pc-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.05), transparent 70%);
}

.pc-banner img {
    height: 52px;
    width: 52px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.product-card:hover .pc-banner img {
    transform: scale(1.1);
}

.pc-banner-placeholder {
    font-size: 2.8rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

/* Stock badge on top-right */
.pc-stock-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
    z-index: 2;
    letter-spacing: 0.03em;
}

.pc-stock-badge.in-stock {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.pc-stock-badge.out-stock {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

/* Card body */
.pc-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.pc-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.pc-duration {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.pc-duration i {
    color: var(--primary);
    font-size: 0.7rem;
}





.pc-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 24px;
}

.pc-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1;
}

.pc-trust-pill i {
    color: var(--accent);
    font-size: 0.62rem;
}

.pc-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent);
    margin-top: 2px;
}

.pc-price-old {
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: line-through;
    color: var(--text-muted);
    margin-right: 4px;
}

.pc-discount-tag {
    font-size: 0.68rem;
    background: #ff4757;
    color: white;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 700;
    vertical-align: middle;
}

/* Buy button on card */
.pc-btn {
    margin-top: auto;
    width: 100%;
    padding: 9px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}

.pc-btn-buy {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 12px rgba(255, 0, 127, 0.3);
}

.pc-btn-buy:hover {
    box-shadow: 0 6px 20px rgba(255, 0, 127, 0.5);
    transform: translateY(-1px);
}

.pc-btn-sold {
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    cursor: not-allowed;
    border: 1px solid var(--card-border);
}

/* =============================================
   PRODUCT DETAIL MODAL
   ============================================= */

.product-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 18, 0.85);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.product-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.pm-header {
    padding: 28px 28px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, rgba(255,0,127,0.1), rgba(0,240,255,0.08));
    border-bottom: 1px solid var(--card-border);
}

.pm-logo {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    object-fit: contain;
    background: rgba(255,255,255,0.05);
    padding: 6px;
    flex-shrink: 0;
    border: 1px solid var(--card-border);
}

.pm-logo-placeholder {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    flex-shrink: 0;
}

.pm-title-block {
    flex: 1;
    min-width: 0;
}

.pm-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pm-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pm-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    z-index: 10;
}

.pm-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: #ef4444;
}

.pm-body {
    padding: 22px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
    flex: 1;
}

.pm-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    background: rgba(0,0,0,0.2);
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    max-height: 130px;
    overflow-y: auto;
    word-break: break-word;
    white-space: pre-wrap;
}

.pm-desc::-webkit-scrollbar {
    width: 5px;
}

.pm-desc::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
}

.pm-desc::-webkit-scrollbar-thumb {
    background: rgba(0,240,255,0.35);
    border-radius: 10px;
}

.pm-desc::-webkit-scrollbar-thumb:hover {
    background: rgba(0,240,255,0.6);
}

.pm-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    border: 1px solid var(--card-border);
}

.pm-info-row .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 7px;
}

.pm-info-row .value {
    font-weight: 700;
    font-size: 0.95rem;
}

.pm-price-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(0,240,255,0.08), rgba(255,0,127,0.08));
    border: 1px solid rgba(0,240,255,0.2);
    border-radius: 14px;
}

.pm-price-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.pm-price-value {
    font-size: 1.7rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pm-qty-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 8px 14px;
}

.pm-qty-wrap label {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.pm-qty-input {
    width: 64px;
    padding: 6px 10px;
    border-radius: 7px;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--primary);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    outline: none;
}

.pm-footer {
    display: flex;
    gap: 10px;
}

.pm-btn-buy {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 0, 127, 0.35);
}

.pm-btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 0, 127, 0.5);
}

.pm-btn-buy:disabled {
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.pm-btn-deposit {
    padding: 14px 18px;
    border-radius: 12px;
    border: 1.5px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.pm-btn-deposit:hover {
    background: rgba(255, 0, 127, 0.1);
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    .pm-header { padding: 20px 20px 16px; }
    .pm-body { padding: 16px 20px 20px; }
}

/* Specific Icons Colors */












/* Auth Views */
.auth-container {
    max-width: 450px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 20px;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.auth-container h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.form-group label i {
    margin-right: 5px;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
}

.error-msg {
    color: var(--danger);
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-align: center;
    min-height: 20px;
}

.auth-switch {
    text-align: center;
    margin-top: 25px;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--accent);
    font-weight: 600;
}

/* Checkout View */
.checkout-container {
    max-width: 900px;
    margin: 0 auto;
}

.checkout-header {
    margin-bottom: 40px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media(max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

.order-summary,
.payment-info {
    padding: 30px;
    border-radius: 16px;
}

.order-summary h3,
.payment-info h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--card-border);
}

.product-details-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.p-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.p-row .p-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.p-row .p-price {
    color: var(--accent);
    font-weight: bold;
}

.border-glow {
    position: relative;
}

.border-glow::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    z-index: -1;
    border-radius: inherit;
    opacity: 0.5;
}

.bank-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.bank-item {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 15px;
    border-radius: 8px;
}

.bank-item .label {
    width: 120px;
    color: var(--text-muted);
}

.bank-item .value {
    flex-grow: 1;
}

.bank-item.highlight {
    background: rgba(59, 130, 246, 0.15);
    border: 1px dashed var(--primary);
}

.deposit-quick-amounts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.deposit-quick-btn {
    min-height: 38px;
    padding: 8px 6px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.deposit-quick-btn:hover,
.deposit-quick-btn.active {
    background: rgba(0,240,255,0.12);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-rebuy-otp {
    padding: 7px 11px;
    border-color: #10b981;
    color: #10b981;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-rebuy-otp:hover {
    background: rgba(16,185,129,0.12);
}

.btn-cancel-deposit {
    padding: 7px 11px;
    border-color: var(--danger);
    color: var(--danger);
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-cancel-deposit:hover {
    background: rgba(239,68,68,0.12);
}

.deposit-countdown-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    margin-top: 10px;
    border-radius: 12px;
    border: 1px solid rgba(245,158,11,0.35);
    background: rgba(245,158,11,0.12);
    color: var(--warning);
    font-size: 0.9rem;
    font-weight: 700;
}

.deposit-countdown-box span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.deposit-countdown-box strong {
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
}

.deposit-countdown-box.is-expiring {
    border-color: rgba(239,68,68,0.45);
    background: rgba(239,68,68,0.12);
    color: var(--danger);
}

.deposit-expire-note {
    display: inline-block;
    margin-top: 5px;
    color: var(--warning);
    font-weight: 600;
}





/* Dashboard View */
.dashboard-container {
    width: min(100%, 1180px);
    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 30px;
    text-align: center;
}

.dashboard-header h2,
.dashboard-header p {
    margin-left: auto;
    margin-right: auto;
}

.dashboard-content {
    padding: 30px;
    border-radius: 16px;
}

.dashboard-content h3 {
    margin-bottom: 20px;
}

.table-responsive {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}

.orders-table th {
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-completed {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.empty-state {
    text-align: center;
    padding: 50px 0;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* Footer */
footer {
    background: rgba(11, 15, 25, 0.95);
    border-top: 1px solid var(--card-border);
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo p {
    margin-top: 15px;
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

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

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

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-contact i {
    width: 20px;
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media(max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    /* Sửa lỗi che đè Header (Thanh điều hướng) */
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }

    

    /* Sửa lỗi che đè ô thanh toán Checkout */
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .p-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Sửa lỗi che đè thông tin ngân hàng */
    .bank-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .bank-item .label {
        width: auto;
        margin-bottom: 2px;
    }

    /* Bo góc và thu gọn form đăng nhập/đăng ký */
    .auth-container {
        padding: 25px 20px;
    }
}

/* Compact Grid for OTP Apps */
.otp-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.otp-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 2px 14px;
    margin-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.otp-filter-bar::-webkit-scrollbar {
    display: none;
}

.otp-filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.otp-app-card {
    background: rgba(17, 20, 36, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.otp-app-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.2);
}

.otp-app-logo-wrap,
.otp-app-logo-fallback {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 8px 18px rgba(0,0,0,0.22);
    overflow: hidden;
}

.otp-app-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.otp-app-logo-fallback {
    background: linear-gradient(135deg, rgba(255,0,127,0.18), rgba(0,240,255,0.18));
    color: var(--text-main);
    font-weight: 800;
    font-size: 1rem;
}

.otp-app-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.otp-app-price {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 10px;
}

.otp-app-card .btn-primary {
    padding: 6px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.otp-app-card .otp-specific-btn {
    padding: 5px;
    font-size: 0.75rem;
    border-radius: 6px;
    margin-top: 5px;
    border-color: rgba(99,102,241,0.5);
    color: rgba(160,163,255,0.9);
}

.otp-app-card .otp-specific-btn:hover {
    background: rgba(99,102,241,0.12);
    border-color: #6366f1;
    color: #818cf8;
}

/* OTP App Note Indicator */
.otp-app-note-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245,158,11,0.9), rgba(255,120,0,0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: white;
    box-shadow: 0 2px 8px rgba(245,158,11,0.5);
    animation: otpNotePulse 2.5s ease-in-out infinite;
    cursor: pointer;
    z-index: 2;
}

.otp-app-note-badge:hover {
    transform: scale(1.2);
}

@keyframes otpNotePulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(245,158,11,0.5); }
    50% { box-shadow: 0 2px 16px rgba(245,158,11,0.9); }
}

.otp-app-card.has-note {
    position: relative;
}

/* OTP Note Modal */
.otp-note-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease;
}

.otp-note-modal-overlay.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.otp-note-modal {
    background: var(--card-bg);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 18px;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(245, 158, 11, 0.1);
    animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.otp-note-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--card-border);
    background: linear-gradient(135deg, rgba(245,158,11,0.08), transparent);
}

.otp-note-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
}

.otp-note-modal-title i {
    color: var(--warning);
    font-size: 1.2rem;
}

.otp-note-modal-body {
    padding: 22px;
    overflow-y: auto;
    flex: 1;
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--text-main);
}

.otp-note-modal-body .otp-note-content-block {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 16px 18px;
    white-space: pre-wrap;
    word-break: break-word;
}

.otp-note-modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 22px;
    border-top: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.15);
}

/* Admin OTP Notes Summary */
.admin-otp-notes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-otp-note-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    transition: border-color 0.2s;
}

.admin-otp-note-item:hover {
    border-color: rgba(245, 158, 11, 0.4);
}

.admin-otp-note-item .note-app-name {
    font-weight: 600;
    min-width: 120px;
    flex-shrink: 0;
}

.admin-otp-note-item .note-preview {
    flex: 1;
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-otp-note-item .note-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* === Pagination === */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.pagination-bar .pg-info {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-right: 6px;
}
.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.pg-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
    color: var(--primary);
}
.pg-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
    box-shadow: 0 3px 10px rgba(255,0,127,0.35);
}
.pg-btn,
.pg-btn:active,
.pg-btn:focus,
.pg-btn.motion-pressing,
.pg-btn.motion-released,
.pagination-bar button {
    transform: none !important;
    animation: none !important;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.pg-btn > i,
.pg-btn.motion-released > i,
.pg-btn.motion-released i:first-child {
    transform: none !important;
    animation: none !important;
}

/* Toast & Loading */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(17, 20, 36, 0.95);
    backdrop-filter: blur(12px);
    color: #f8fafc;
    padding: 14px 22px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    font-weight: 500;
    font-size: 0.95rem;
    animation: slideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 4px solid var(--success);
    max-width: 360px;
    min-width: 220px;
}

.toast.toast-success { border-left-color: var(--success); }
.toast.toast-success i { color: var(--success); }

.toast.toast-error { border-left-color: var(--danger); }
.toast.toast-error i { color: var(--danger); }

.toast.toast-warning { border-left-color: var(--warning); }
.toast.toast-warning i { color: var(--warning); }

.toast.toast-info { border-left-color: var(--accent); }
.toast.toast-info i { color: var(--accent); }

.toast i {
    font-size: 1.25rem;
    flex-shrink: 0;
    color: var(--success);
}

@keyframes slideIn {
    from {
        transform: translateX(120%) scale(0.92);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* === Admin Stats Cards === */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
@media (max-width: 900px) { .admin-stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .admin-stats-grid { grid-template-columns: 1fr; } }

.admin-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(10px);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.admin-stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(255,255,255,0.03));
    pointer-events: none;
}
.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.admin-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.admin-stat-icon.blue { background: rgba(59,130,246,0.2); color: #60a5fa; }
.admin-stat-icon.green { background: rgba(16,185,129,0.2); color: #34d399; }
.admin-stat-icon.orange { background: rgba(245,158,11,0.2); color: #fbbf24; }
.admin-stat-icon.pink { background: rgba(255,0,127,0.2); color: #ff007f; }

.admin-stat-info { min-width: 0; }
.admin-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 3px;
}

/* === Admin Tabs === */
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}
.admin-tab-btn {
    padding: 9px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}
.admin-tab-btn:hover {
    background: rgba(255,255,255,0.07);
    color: var(--text-main);
}
.admin-tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255,0,127,0.3);
}
.admin-tab-btn .tab-badge {
    background: rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 1px 7px;
    font-size: 0.75rem;
    font-weight: 700;
}
.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; }

.admin-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: rgba(0,0,0,0.18);
}

.admin-filter-input-wrap {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 9px;
    padding: 0 12px;
}

.admin-filter-input-wrap i {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.admin-filter-input-wrap input,
.admin-filter-bar select {
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.88rem;
}

.admin-filter-input-wrap input {
    flex: 1;
    min-width: 0;
    background: transparent;
    padding: 11px 0;
}

.admin-filter-bar select {
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 9px;
    padding: 10px 12px;
}

/* === Dashboard Sidebar Nav === */
.dashboard-layout {
    display: grid;
    grid-template-columns: 226px minmax(0, 900px);
    gap: 28px;
    align-items: start;
    justify-content: center;
    width: 100%;
}
.dashboard-sidebar {
    position: sticky;
    top: 90px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 12px 8px;
    backdrop-filter: blur(10px);
}

.dashboard-layout > div:last-child {
    min-width: 0;
}

.dashboard-content {
    width: 100%;
}
.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}
.dash-nav-item:hover { background: rgba(255,255,255,0.07); color: var(--text-main); }
.dash-nav-item.active { background: rgba(255,0,127,0.15); color: var(--primary); font-weight: 600; }
.dash-nav-item i { width: 16px; text-align: center; }

@media (max-width: 768px) {
    .dashboard-container {
        width: 100%;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
        justify-content: stretch;
        gap: 16px;
    }
    .dashboard-sidebar {
        position: static;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        padding: 8px;
    }
    .dash-nav-item { flex: 1; min-width: 130px; justify-content: center; font-size: 0.82rem; }
}

@media (min-width: 1200px) {
    #view-dashboard .dashboard-content {
        max-width: 900px;
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

/* Chat Widget (Customer) */
.chat-widget {
    position: fixed;
    bottom: 52px;
    right: 30px;
    z-index: 1500;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 0, 127, 0.4);
    transition: transform 0.3s;
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-main);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.chat-msg {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-break: break-word;
}

.msg-admin {
    align-self: flex-start;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-bottom-left-radius: 4px;
}

.msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    display: flex;
    padding: 10px;
    background: var(--bg-main);
    border-top: 1px solid var(--card-border);
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 10px 15px;
    border-radius: 20px;
    color: white;
    outline: none;
}

.chat-input-area input:focus {
    border-color: var(--accent);
}

.chat-input-area button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Admin Chat UI */
.admin-chat-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    height: 580px;
    max-height: 580px;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    overflow: hidden;
}

/* Sidebar */
.admin-chat-sidebar {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.25);
    border-right: 1px solid var(--card-border);
    overflow: hidden;
}

/* Search */
.admin-chat-search-wrap {
    position: relative;
    padding: 12px 12px 8px;
    flex-shrink: 0;
}

.admin-chat-search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
    pointer-events: none;
}

.admin-chat-search-input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 9px 12px 9px 32px;
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.admin-chat-search-input:focus {
    border-color: var(--accent);
}

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

/* Mode Toggle Buttons */
.admin-chat-mode-btns {
    display: flex;
    gap: 6px;
    padding: 0 12px 10px;
    flex-shrink: 0;
}

.admin-chat-mode-btn {
    flex: 1;
    padding: 7px 10px;
    border-radius: 7px;
    border: 1px solid var(--card-border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: inherit;
    white-space: nowrap;
}

.admin-chat-mode-btn:hover {
    background: rgba(255,255,255,0.07);
    color: var(--text-main);
}

.admin-chat-mode-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(255,0,127,0.25);
}

/* User List */
.admin-chat-users {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.admin-chat-user-item {
    padding: 11px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: pointer;
    transition: background 0.15s, border-left 0.15s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid transparent;
}

.admin-chat-user-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: rgba(255,255,255,0.2);
}

.admin-chat-user-item.active {
    background: rgba(255, 0, 127, 0.1);
    border-left-color: var(--primary);
}

.admin-chat-user-item.unread {
    background: rgba(0,240,255,0.05);
    border-left-color: var(--accent);
}

/* Item Content */
.acu-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.acu-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.acu-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.acu-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acu-last-msg {
    font-size: 0.75rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}

.acu-badge-new {
    font-size: 0.68rem;
    font-weight: 700;
    background: var(--accent);
    color: #000;
    padding: 2px 7px;
    border-radius: 20px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Empty hint */
.admin-chat-empty-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px 15px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

.admin-chat-empty-hint i {
    font-size: 1.8rem;
    opacity: 0.4;
}

/* Chat Box */
.admin-chat-box {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.1);
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.admin-chat-header {
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--card-border);
    font-weight: 700;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    min-height: 50px;
}

.admin-chat-messages {
    flex: 1;
    min-height: 0;
    padding: 16px 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

/* Message timestamp */
.chat-msg-time {
    display: block;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.45);
    margin-top: 4px;
    text-align: right;
}

.msg-admin .chat-msg-time {
    text-align: left;
    color: rgba(255,255,255,0.3);
}

.admin-chat-input {
    display: flex;
    padding: 12px 14px;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--card-border);
    flex-shrink: 0;
    align-items: center;
}

.admin-chat-input input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    outline: none;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.admin-chat-input input:focus {
    border-color: var(--accent);
}

@media(max-width: 768px) {
    .admin-chat-container {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
        flex-direction: column;
        display: flex;
    }

    .admin-chat-sidebar {
        max-height: 220px;
        border-right: none;
        border-bottom: 1px solid var(--card-border);
    }

    .admin-chat-box {
        min-height: 300px;
        height: 300px;
    }
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

/* =============================================
   MOBILE POLISH OVERRIDES
   ============================================= */
@media (max-width: 768px) {
    body {
        background-image: none;
    }

    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    main {
        padding: 22px 14px 34px;
    }

    .glass-header {
        position: sticky;
    }

    .header-container {
        flex-direction: row;
        min-height: 58px;
        padding: 8px 14px;
    }

    .logo {
        max-width: calc(100vw - 78px);
        overflow: hidden;
        font-size: 1.12rem;
    }

    .site-img-logo {
        height: 42px;
        width: min(144px, 40vw);
        border-radius: 12px;
        clip-path: inset(0 round 12px);
    }

    

    

    

    

    .hero {
        min-height: auto;
        padding: 44px 0 36px;
    }

    .hero-content {
        padding: 0 2px;
    }

    .hero h1 {
        font-size: clamp(2rem, 9vw, 2.55rem);
        line-height: 1.12;
        margin-bottom: 16px;
    }

    .hero p {
        font-size: 0.98rem;
        line-height: 1.65;
        margin-bottom: 24px;
    }

    

    

    

    

    

    

    .section-header {
        margin-bottom: 26px;
    }
    .section-header h2,
    .checkout-header h2,
    .dashboard-header h2 {
        font-size: clamp(1.55rem, 7vw, 2rem);
        line-height: 1.2;
    }

    .section-header p,
    .checkout-header p,
    .dashboard-header p {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .products-section {
        padding-top: 28px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-sort-controls {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .product-sort-controls::-webkit-scrollbar {
        display: none;
    }

    .product-sort-btn,
    .product-source-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .product-card {
        border-radius: 14px;
    }

    .pc-banner {
        height: 74px;
    }

    .pc-banner img {
        width: 46px;
        height: 46px;
    }

    .pc-body {
        padding: 12px;
    }

    .pc-name{
        font-size: 0.9rem;
        min-height: 2.5em;
    }

    

    .auth-container,
    .order-summary,
    .payment-info,
    .dashboard-content {
        padding: 20px !important;
        border-radius: 14px;
    }

    .checkout-header,
    .dashboard-header {
        margin-bottom: 24px;
    }

    .checkout-grid {
        gap: 18px;
    }

    .bank-item,
    #deposit-input-group,
    #deposit-memo-group,
    #deposit-amount-display-group {
        padding: 13px !important;
        min-width: 0;
    }

    .bank-item .value,
    #deposit-content,
    #deposit-amount-display {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    #deposit-content,
    #deposit-amount-display {
        font-size: 1.08rem !important;
        letter-spacing: 0 !important;
    }

    .deposit-quick-amounts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #deposit-qr-container > div:first-child {
        max-width: min(100%, 300px) !important;
        padding: 12px !important;
    }

    #qr-empty-state {
        padding: 24px 8px !important;
    }

    #otp-network-select {
        width: 100%;
        max-width: 320px;
        margin-top: 8px;
    }

    #otp-active-request {
        padding: 20px !important;
    }

    .otp-compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .otp-app-card {
        min-height: 150px;
        padding: 12px 8px;
    }

    .dashboard-sidebar {
        overflow-x: auto;
        flex-wrap: nowrap;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .dashboard-sidebar::-webkit-scrollbar {
        display: none;
    }

    .dash-nav-item {
        flex: 0 0 auto;
        min-width: 132px;
        scroll-snap-align: start;
        white-space: nowrap;
    }

    .table-responsive {
        margin-left: -20px;
        margin-right: -20px;
        padding: 0 20px;
        -webkit-overflow-scrolling: touch;
    }

    .orders-table {
        min-width: 620px;
    }

    .orders-table th,
    .orders-table td {
        padding: 12px 10px;
        font-size: 0.84rem;
    }
    .admin-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .admin-tabs::-webkit-scrollbar {
        display: none;
    }
    .admin-tab-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .admin-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .admin-stat-card {
        padding: 14px;
        gap: 10px;
    }

    .admin-stat-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .admin-stat-value {
        font-size: 1.05rem;
    }

    .admin-filter-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }

    .admin-filter-input-wrap {
        min-width: 0;
        width: 100%;
    }

    .admin-filter-bar select {
        width: 100%;
    }

    .chat-widget {
        right: 14px;
        bottom: 48px;
    }

    .chat-toggle {
        width: 54px;
        height: 54px;
        font-size: 1.45rem;
    }

    .chat-window {
        width: calc(100vw - 28px);
        right: 0;
        bottom: 66px;
        max-height: min(70vh, 520px);
    }

    .chat-messages {
        max-height: calc(70vh - 150px);
    }

    .toast {
        left: 14px;
        right: 14px;
        bottom: 18px;
        max-width: none;
        min-width: 0;
    }
}

@media (max-width: 360px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    main {
        padding-left: 12px;
        padding-right: 12px;
    }

    .product-grid,
    .otp-compact-grid,
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    
    
    
}

/* Inventory operations center */
.admin-inventory-center {
    display: grid;
    gap: 20px;
}

.inventory-center-heading,
.inventory-center-toolbar,
.inventory-history-heading,
.delivered-account-heading,
.account-delivery-header,
.account-delivery-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.inventory-center-heading h3 {
    margin: 0 0 5px;
    font-size: 21px;
}

.inventory-center-heading h3 i {
    color: #18a999;
}

.inventory-center-heading p,
.inventory-history-heading span {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.inventory-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 10px;
}

.inventory-summary-item {
    min-width: 0;
    min-height: 82px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.2);
}

.inventory-summary-item > i {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: #6f7cff;
    background: rgba(78, 91, 255, 0.12);
}

.inventory-summary-item span {
    min-width: 0;
    display: grid;
}

.inventory-summary-item strong {
    font-size: 20px;
    line-height: 1.1;
}

.inventory-summary-item small {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 11px;
}

.inventory-summary-item.is-warning > i {
    color: #d97706;
    background: rgba(245, 158, 11, 0.14);
}

.inventory-summary-item.is-danger > i {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.14);
}

.inventory-center-toolbar {
    align-items: stretch;
}

.inventory-center-toolbar .admin-filter-input-wrap {
    width: min(440px, 100%);
}

.inventory-low-stock-note {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #d97706;
    font-size: 12px;
    font-weight: 700;
}

.inventory-product-list,
.inventory-history-list {
    display: grid;
    gap: 8px;
}

.inventory-product-row {
    min-width: 0;
    min-height: 72px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: minmax(210px, 1.6fr) repeat(3, minmax(74px, .55fr)) 86px 110px;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--card-border);
    border-left: 3px solid #19a974;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.16);
}

.inventory-product-row.is-low {
    border-left-color: #f59e0b;
}

.inventory-product-row.is-empty {
    border-left-color: #ef4444;
}

.inventory-product-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.inventory-product-identity img {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    object-fit: contain;
    border-radius: 7px;
    background: #fff;
}

.inventory-product-identity span,
.inventory-product-metric {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.inventory-product-identity strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inventory-product-identity small,
.inventory-product-metric small {
    color: var(--text-muted);
    font-size: 11px;
}

.inventory-product-metric strong {
    font-size: 17px;
}

.inventory-product-metric.has-duplicate strong {
    color: #ef4444;
}

.inventory-stock-state {
    padding: 6px 8px;
    border-radius: 6px;
    color: #0f8f61;
    background: rgba(16, 185, 129, 0.12);
    text-align: center;
    font-size: 11px;
    font-weight: 800;
}

.inventory-stock-state.is-low {
    color: #b76a00;
    background: rgba(245, 158, 11, 0.13);
}

.inventory-stock-state.is-empty {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.12);
}

.inventory-import-history {
    padding-top: 4px;
}

.inventory-history-heading {
    margin-bottom: 10px;
}

.inventory-history-heading h4 {
    margin: 0;
}

.inventory-history-item {
    min-width: 0;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 34px minmax(160px, 1fr) 70px 150px;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--card-border);
}

.inventory-history-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: #12834d;
    background: rgba(16, 185, 129, 0.12);
}

.inventory-history-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.inventory-history-copy strong,
.inventory-history-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inventory-history-copy small,
.inventory-history-item time {
    color: var(--text-muted);
    font-size: 11px;
}

.inventory-history-count {
    color: #0f9f6e;
    font-weight: 800;
}

.inventory-empty-state {
    min-height: 120px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: var(--text-muted);
    text-align: center;
}

.inventory-empty-state.compact {
    min-height: 70px;
}

body.light-theme .inventory-summary-item,
body.light-theme .inventory-product-row {
    background: #ffffff;
}

/* Order progress and structured account delivery */
.order-account-action {
    min-height: 38px;
    padding: 8px 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--card-border);
    border-radius: 7px;
    color: var(--text-color);
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.order-account-action.has-account {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #3154ff, #ad2fe2);
}

.order-timeline-track {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.order-timeline-step {
    min-width: 0;
    position: relative;
    display: grid;
    justify-items: center;
    gap: 7px;
    color: var(--text-muted);
    text-align: center;
}

.order-timeline-step:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 16px;
    left: calc(50% + 17px);
    width: calc(100% - 34px);
    height: 2px;
    background: var(--card-border);
}

.order-timeline-dot {
    width: 34px;
    height: 34px;
    z-index: 1;
    display: grid;
    place-items: center;
    border: 2px solid var(--card-border);
    border-radius: 50%;
    color: var(--text-muted);
    background: var(--card-bg);
}

.order-timeline-label {
    font-size: 11px;
    font-weight: 800;
}

.order-timeline-step.complete {
    color: #10916b;
}

.order-timeline-step.complete .order-timeline-dot {
    color: #fff;
    border-color: #10916b;
    background: #10916b;
}

.order-timeline-step.complete::after {
    background: #10916b;
}

.order-timeline-step.active {
    color: #3659f7;
}

.order-timeline-step.active .order-timeline-dot {
    color: #3659f7;
    border-color: #6075ff;
    box-shadow: 0 0 0 5px rgba(74, 96, 255, 0.11);
}

.order-timeline-step.cancelled {
    color: #dc2626;
}

.order-timeline-step.cancelled .order-timeline-dot {
    color: #dc2626;
    border-color: #dc2626;
}

.order-timeline-step.disabled {
    opacity: .52;
}

.order-timeline-track.is-compact {
    min-width: 250px;
    margin-top: 10px;
}

.order-timeline-track.is-compact .order-timeline-dot {
    width: 20px;
    height: 20px;
    border-width: 1px;
    font-size: 8px;
}

.order-timeline-track.is-compact .order-timeline-step:not(:last-child)::after {
    top: 9px;
    left: calc(50% + 10px);
    width: calc(100% - 20px);
    height: 1px;
}

.order-timeline-track.is-compact .order-timeline-label {
    font-size: 8px;
}

.account-delivery-overlay {
    position: fixed;
    inset: 0;
    z-index: 3100;
    padding: 24px;
    display: grid;
    place-items: center;
    background: rgba(2, 8, 23, 0.72);
    backdrop-filter: blur(10px);
}

.account-delivery-overlay.hidden {
    display: none !important;
}

body.delivery-modal-open {
    overflow: hidden;
}

.account-delivery-modal {
    width: min(780px, 100%);
    max-height: min(820px, calc(100vh - 48px));
    padding: 22px;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 20px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-color);
    background: var(--card-bg);
    box-shadow: 0 26px 80px rgba(0, 0, 0, .34);
}

.account-delivery-kicker {
    color: #18a999;
    font-size: 10px;
    font-weight: 900;
}

.account-delivery-header h3 {
    margin: 4px 0;
    font-size: 22px;
}

.account-delivery-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
}

.account-delivery-content {
    min-height: 0;
    padding-right: 3px;
    display: grid;
    align-content: start;
    gap: 12px;
    overflow-y: auto;
}

.delivered-account-card {
    padding: 14px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: rgba(15, 23, 42, .16);
}

.delivered-account-heading {
    margin-bottom: 12px;
}

.delivery-copy-account {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 11px;
}

.delivered-account-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.delivered-account-field {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.delivered-account-field > span {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
}

.delivery-input-wrap {
    min-width: 0;
    height: 44px;
    display: flex;
    align-items: center;
    border: 1px solid var(--card-border);
    border-radius: 7px;
    background: rgba(3, 9, 20, .22);
    overflow: hidden;
}

.delivery-input-wrap input {
    min-width: 0;
    height: 100%;
    flex: 1;
    padding: 0 10px;
    border: 0;
    outline: 0;
    color: var(--text-color);
    background: transparent;
    font-family: Consolas, monospace;
    font-size: 13px;
}

.delivery-input-wrap .btn-icon {
    width: 38px;
    min-width: 38px;
    height: 38px;
    border: 0;
}

.delivery-source-note {
    margin-top: 12px;
    padding: 11px;
    display: grid;
    gap: 8px;
    border: 1px solid var(--card-border);
    border-radius: 7px;
    background: rgba(89, 112, 255, .055);
}

.delivery-source-note-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.delivery-source-note-heading > span {
    color: var(--text-color);
    font-size: 11px;
    font-weight: 900;
}

.delivery-source-note-heading > span i {
    margin-right: 5px;
    color: #7284ff;
}

.delivery-source-note-heading .btn-outline {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 10px;
}

.delivery-detail-text {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    color: var(--text-color);
    background: rgba(3, 9, 20, .2);
    font-family: inherit;
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    user-select: all;
}

.delivery-source-note small {
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.45;
}

.account-delivery-empty {
    min-height: 150px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: var(--text-muted);
    text-align: center;
}

.account-delivery-empty i {
    color: #5970ff;
    font-size: 25px;
}

.account-delivery-footer {
    justify-content: flex-end;
}

body.light-theme .account-delivery-modal,
body.light-theme .order-timeline-dot {
    background: #fff;
}

body.light-theme .delivered-account-card {
    background: #f8fafc;
}

body.light-theme .delivery-input-wrap {
    background: #fff;
}

body.light-theme .delivery-detail-text {
    background: #fff;
}

/* One-hand mobile navigation */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 700px) {
    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
    }

    .mobile-bottom-nav {
        position: fixed;
        z-index: 2400;
        left: 8px;
        right: 8px;
        bottom: max(8px, env(safe-area-inset-bottom));
        height: 60px;
        padding: 5px;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 2px;
        border: 1px solid rgba(148, 163, 184, .24);
        border-radius: 8px;
        background: rgba(9, 17, 31, .92);
        box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
        backdrop-filter: blur(18px);
    }

    .mobile-bottom-nav button {
        min-width: 0;
        height: 50px;
        padding: 4px 2px;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 4px;
        border: 0;
        border-radius: 6px;
        color: #94a3b8;
        background: transparent;
        font: inherit;
        cursor: pointer;
    }

    .mobile-bottom-nav button i {
        font-size: 16px;
    }

    .mobile-bottom-nav button span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 9px;
        font-weight: 800;
    }

    .mobile-bottom-nav button.active {
        color: #fff;
        background: linear-gradient(135deg, rgba(49, 84, 255, .95), rgba(13, 168, 172, .88));
    }

    body.light-theme .mobile-bottom-nav {
        border-color: rgba(148, 163, 184, .32);
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
    }

    body.light-theme .mobile-bottom-nav button {
        color: #64748b;
    }

    body.light-theme .mobile-bottom-nav button.active {
        color: #fff;
    }

    body[data-active-view="admin"],
    body[data-active-view="login"],
    body[data-active-view="register"],
    body[data-active-view="forgot"],
    body[data-active-view="checkout"],
    body[data-active-view="deposit"],
    body[data-active-view="maintenance"] {
        padding-bottom: 0 !important;
    }

    body[data-active-view="admin"] .mobile-bottom-nav,
    body[data-active-view="login"] .mobile-bottom-nav,
    body[data-active-view="register"] .mobile-bottom-nav,
    body[data-active-view="forgot"] .mobile-bottom-nav,
    body[data-active-view="checkout"] .mobile-bottom-nav,
    body[data-active-view="deposit"] .mobile-bottom-nav,
    body[data-active-view="maintenance"] .mobile-bottom-nav {
        display: none;
    }

    .site-warning-ticker {
        bottom: calc(72px + env(safe-area-inset-bottom)) !important;
    }

    .site-warning-ticker.is-collapsed {
        bottom: calc(76px + env(safe-area-inset-bottom)) !important;
    }

    .chat-widget,
    body.warning-collapsed .chat-widget {
        bottom: calc(82px + env(safe-area-inset-bottom)) !important;
    }

    body:not(.warning-collapsed) .chat-widget {
        bottom: calc(112px + env(safe-area-inset-bottom)) !important;
    }

    body[data-active-view="admin"] .site-warning-ticker,
    body[data-active-view="login"] .site-warning-ticker,
    body[data-active-view="register"] .site-warning-ticker,
    body[data-active-view="forgot"] .site-warning-ticker,
    body[data-active-view="checkout"] .site-warning-ticker,
    body[data-active-view="deposit"] .site-warning-ticker,
    body[data-active-view="maintenance"] .site-warning-ticker {
        bottom: 0 !important;
    }

    .account-delivery-overlay {
        padding: 8px;
        align-items: end;
    }

    .account-delivery-modal {
        width: 100%;
        max-height: calc(100dvh - 16px);
        padding: 16px 12px;
        gap: 16px;
    }

    .account-delivery-header h3 {
        font-size: 18px;
    }

    .delivered-account-fields {
        grid-template-columns: 1fr;
    }

    .delivery-source-note-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-delivery-footer > button {
        min-height: 44px;
        flex: 1;
    }

    .order-timeline-label {
        font-size: 9px;
    }

    .inventory-center-heading,
    .inventory-center-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .inventory-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inventory-summary-item:last-child {
        grid-column: 1 / -1;
    }

    .inventory-product-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .inventory-product-identity {
        grid-column: 1 / -1;
    }

    .inventory-product-row > .inventory-stock-state {
        grid-column: 1 / 2;
    }

    .inventory-product-row > button {
        grid-column: 2 / -1;
        min-height: 40px;
    }

    .inventory-history-item {
        grid-template-columns: 34px minmax(0, 1fr) 52px;
    }

    .inventory-history-item time {
        grid-column: 2 / -1;
    }
}

@media (max-width: 390px) {
    .mobile-bottom-nav {
        left: 4px;
        right: 4px;
        bottom: max(4px, env(safe-area-inset-bottom));
    }

    .inventory-summary-item {
        min-height: 74px;
        padding: 10px;
    }

    .inventory-summary-item > i {
        display: none;
    }

    .order-timeline-dot {
        width: 30px;
        height: 30px;
    }

    .order-timeline-step:not(:last-child)::after {
        top: 14px;
        left: calc(50% + 15px);
        width: calc(100% - 30px);
    }
}

.admin-user-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-user-actions button {
    min-height: 36px;
    padding: 5px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
}

.admin-kick-btn {
    color: #ff6f7d !important;
    border-color: rgba(239, 68, 68, 0.55) !important;
    background: rgba(239, 68, 68, 0.08) !important;
}

.admin-kick-btn:hover {
    color: #ffffff !important;
    border-color: #ef4444 !important;
    background: #dc3545 !important;
}

body.light-theme .admin-kick-btn {
    color: #c42d3b !important;
    border-color: #ef9aa3 !important;
    background: #fff1f2 !important;
}

@media (max-width: 600px) {
    .admin-user-actions {
        min-width: 210px;
        align-items: stretch;
        flex-direction: column;
    }

    .admin-user-actions button {
        width: 100%;
        min-height: 40px;
        justify-content: center;
    }
}

.mobile-utility-toggle,
.admin-mobile-tab-select,
.site-warning-toggle {
    display: none;
}

@media (max-width: 600px) {
    .glass-header {
        position: sticky;
        top: 0;
        z-index: 2000;
    }

    .header-container {
        position: relative !important;
        min-height: 58px !important;
        padding: 6px 10px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 42px !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .header-container .logo,
    .header-container .site-img-logo {
        width: 154px !important;
        height: 46px !important;
    }

    .mobile-utility-toggle {
        width: 42px;
        height: 42px;
        grid-column: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #dfe5ee;
        border-radius: 8px;
        color: #243044;
        background: #f5f7fb;
        font-size: 16px;
    }

    body:not(.light-theme) .mobile-utility-toggle {
        color: #edf2ff;
        border-color: #29384c;
        background: #141d2a;
    }

    .mobile-utility-toggle.active {
        color: #ffffff;
        border-color: #5f6fff;
        background: #3154ff;
    }

    .header-actions,
    body:not(.light-theme) .header-actions {
        position: absolute !important;
        z-index: 20;
        top: calc(100% + 6px);
        left: 0 !important;
        right: 0;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 8px !important;
        display: none !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px !important;
        overflow: visible !important;
        border: 1px solid #dfe5ee;
        border-radius: 8px;
        background: rgba(248, 250, 252, 0.97);
        box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    body:not(.light-theme) .header-actions {
        border-color: #2a394e;
        background: rgba(15, 24, 38, 0.97);
        box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
    }

    .header-actions.mobile-open,
    body:not(.light-theme) .header-actions.mobile-open {
        display: grid !important;
    }

    .header-actions #nav-notifications:not(.hidden),
    .header-actions #nav-user-1:not(.hidden),
    .header-actions #nav-otp:not(.hidden),
    .header-actions #nav-deposit:not(.hidden),
    .header-actions #nav-admin:not(.hidden),
    .header-actions #nav-user-2:not(.hidden),
    .header-actions #theme-toggle-btn,
    .header-actions .header-cart-btn {
        width: 100% !important;
        min-width: 0 !important;
        height: 58px !important;
        min-height: 58px !important;
        padding: 7px 4px !important;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 1px solid #e1e7ef !important;
        border-radius: 7px !important;
        color: #334155;
        background: #ffffff;
        font-size: 0 !important;
    }

    body:not(.light-theme) .header-actions #nav-notifications:not(.hidden),
    body:not(.light-theme) .header-actions #nav-user-1:not(.hidden),
    body:not(.light-theme) .header-actions #nav-otp:not(.hidden),
    body:not(.light-theme) .header-actions #nav-deposit:not(.hidden),
    body:not(.light-theme) .header-actions #nav-admin:not(.hidden),
    body:not(.light-theme) .header-actions #nav-user-2:not(.hidden),
    body:not(.light-theme) .header-actions #theme-toggle-btn,
    body:not(.light-theme) .header-actions .header-cart-btn {
        color: #e8eef8;
        border-color: #2b394d !important;
        background: #141f2e;
    }

    .header-actions #nav-deposit:not(.hidden) {
        color: #4d5fff;
        border-color: rgba(95, 111, 255, 0.3) !important;
        background: rgba(95, 111, 255, 0.09);
        font-size: 9px !important;
    }

    .header-actions #nav-deposit i {
        margin: 0;
        font-size: 13px;
    }

    .header-actions #nav-notifications i,
    .header-actions #nav-user-1 i,
    .header-actions #nav-otp i,
    .header-actions #nav-admin i,
    .header-actions #theme-toggle-btn i,
    .header-actions .header-cart-btn i {
        margin: 0 !important;
        font-size: 14px !important;
    }

    .header-actions #nav-user-2::before {
        font-size: 14px !important;
    }

    .header-actions #nav-notifications::after,
    .header-actions #nav-user-1::after,
    .header-actions #nav-otp::after,
    .header-actions #nav-admin::after,
    .header-actions #nav-user-2::after,
    .header-actions #theme-toggle-btn::after,
    .header-actions .header-cart-btn::after {
        color: currentColor;
        font-family: Inter, sans-serif;
        font-size: 7px;
        font-weight: 700;
        line-height: 1;
    }

    .header-actions #nav-notifications::after { content: "Thông báo"; }
    .header-actions #nav-user-1::after { content: "Tài khoản"; }
    .header-actions #nav-otp::after { content: "Thuê OTP"; }
    .header-actions #nav-admin::after { content: "Quản trị"; }
    .header-actions #nav-user-2::after { content: "Đăng xuất"; }
    .header-actions #theme-toggle-btn::after { content: "Giao diện"; }
    .header-actions .header-cart-btn::after { content: "Sản phẩm"; }

    #hero-typing-text.hero-feature-title,
    body.light-theme #hero-typing-text.hero-feature-title {
        min-height: 50px !important;
        font-size: 22px !important;
    }

    .hero-visual {
        height: 210px !important;
    }

    .hero-visual::before {
        width: 205px !important;
        height: 188px !important;
    }

    .hero-bag-image {
        width: 170px !important;
        height: 170px !important;
    }

    .app-bubble.hero-brand-bubble {
        width: 32px !important;
        height: 32px !important;
        padding: 4px;
    }

    .admin-mobile-tab-select {
        width: 100%;
        min-height: 68px;
        margin-bottom: 12px;
        padding: 9px 10px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        border: 1px solid #2b394d;
        border-radius: 8px;
        color: var(--text-muted);
        background: #111b2a;
        font-size: 9px;
        font-weight: 700;
    }

    body.light-theme .admin-mobile-tab-select {
        border-color: #dce3ed;
        background: #f7f9fc;
    }

    .admin-mobile-tab-select span {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .admin-mobile-tab-select select {
        width: 100%;
        height: 36px;
        padding: 0 10px;
        border: 1px solid #33445c;
        border-radius: 7px;
        outline: none;
        color: #edf2ff;
        background: #0b1421;
        font: 700 11px/1 Inter, sans-serif;
    }

    body.light-theme .admin-mobile-tab-select select {
        color: #182235;
        border-color: #d7dfeb;
        background: #ffffff;
    }

    .admin-tabs {
        display: none !important;
    }

    .site-warning-toggle {
        position: relative;
        z-index: 2;
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-left: 1px solid rgba(148, 163, 184, 0.24);
        color: inherit;
        background: rgba(15, 23, 42, 0.18);
        font-size: 11px;
    }

    .site-warning-ticker .site-warning-track {
        min-width: 0;
        flex: 1 0 auto;
    }

    .site-warning-ticker.is-collapsed {
        left: 8px;
        right: auto;
        bottom: 8px;
        width: 40px;
        height: 40px;
        border: 1px solid rgba(148, 163, 184, 0.3);
        border-radius: 8px;
        overflow: hidden;
    }

    .site-warning-ticker.is-collapsed .site-warning-track {
        display: none;
    }

    .site-warning-ticker.is-collapsed .site-warning-toggle {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border: 0;
        color: #ffbd3f;
        background: rgba(10, 17, 29, 0.82);
        font-size: 14px;
    }

    body.warning-collapsed {
        padding-bottom: 0 !important;
    }
}

/* Admin settings: keep every control readable in light mode. */
body.light-theme #admin-tab-settings {
    --admin-settings-ink: #172033;
    --admin-settings-muted: #5f6b7c;
    --admin-settings-field: #f4f7fb;
    --admin-settings-panel: #f8fafc;
    --admin-settings-border: #cfd9e7;
    color: var(--admin-settings-ink);
}

body.light-theme #admin-tab-settings .dashboard-content {
    background: #ffffff;
    color: var(--admin-settings-ink);
}

body.light-theme #admin-tab-settings h3,
body.light-theme #admin-tab-settings h4,
body.light-theme #admin-tab-settings label,
body.light-theme #admin-tab-settings li,
body.light-theme #admin-tab-settings .form-group label {
    color: var(--admin-settings-ink);
}

body.light-theme #admin-tab-settings p,
body.light-theme #admin-tab-settings [style*="color:var(--text-muted)"],
body.light-theme #admin-tab-settings [style*="color: var(--text-muted)"],
body.light-theme #admin-tab-settings [style*="color:var(--text-secondary)"],
body.light-theme #admin-tab-settings [style*="color: var(--text-secondary)"] {
    color: var(--admin-settings-muted) !important;
}

body.light-theme #admin-tab-settings [style*="color:white"],
body.light-theme #admin-tab-settings [style*="color: white"] {
    color: var(--admin-settings-ink) !important;
}

body.light-theme #admin-tab-settings input:not([type="checkbox"]):not([type="radio"]),
body.light-theme #admin-tab-settings textarea,
body.light-theme #admin-tab-settings select {
    color: var(--admin-settings-ink) !important;
    background: var(--admin-settings-field) !important;
    border-color: var(--admin-settings-border) !important;
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.03);
    color-scheme: light;
}

body.light-theme #admin-tab-settings input::placeholder,
body.light-theme #admin-tab-settings textarea::placeholder {
    color: #7a8799 !important;
    opacity: 1;
}

body.light-theme #admin-tab-settings select option {
    color: var(--admin-settings-ink);
    background: #ffffff;
}

body.light-theme #admin-tab-settings [style*="background:rgba(0,0,0"],
body.light-theme #admin-tab-settings [style*="background: rgba(0,0,0"],
body.light-theme #admin-tab-settings [style*="background:rgba(0, 0, 0"],
body.light-theme #admin-tab-settings [style*="background: rgba(0, 0, 0"] {
    background: var(--admin-settings-panel) !important;
}

body.light-theme #admin-tab-settings code {
    color: #274060;
    background: #e8eef7;
    border: 1px solid #d5deeb;
    border-radius: 4px;
    padding: 1px 5px;
}

body.light-theme #admin-tab-settings .btn-outline {
    background: #ffffff;
}

body.light-theme #admin-tab-settings .btn-outline:hover {
    background: #f4f7fb;
}

/* Product inventory editor */
.inventory-config-section {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgba(49, 84, 255, 0.28);
    border-radius: 8px;
    background: rgba(49, 84, 255, 0.06);
}

.inventory-status-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 7px;
    background: rgba(8, 15, 27, 0.36);
    font-size: 0.82rem;
}

.inventory-status-row strong {
    color: #31d3a3;
}

.inventory-help {
    margin: 10px 0 12px;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.inventory-import-grid {
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.75fr);
    gap: 8px;
}

#product-inventory-file {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.inventory-file-button {
    min-height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(49, 84, 255, 0.5);
    border-radius: 7px;
    color: #78a7ff;
    background: rgba(49, 84, 255, 0.1);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

.inventory-file-button:hover {
    border-color: #31d3a3;
    color: #31d3a3;
}

#product-inventory-mode,
#product-inventory-text {
    width: 100%;
}

#product-inventory-text {
    min-height: 128px;
    resize: vertical;
    font-family: Consolas, "Courier New", monospace;
    line-height: 1.5;
}

#product-quantity[readonly] {
    color: #31d3a3;
    border-color: rgba(49, 211, 163, 0.38);
    background: rgba(49, 211, 163, 0.08);
    cursor: not-allowed;
}

.inventory-preview {
    margin-top: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: 1px dashed rgba(148, 163, 184, 0.26);
    border-radius: 7px;
    color: var(--text-muted);
    background: rgba(8, 15, 27, 0.24);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.76rem;
}

.inventory-preview span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inventory-preview small {
    margin-top: 3px;
    color: #31d3a3;
}

body.light-theme .inventory-config-section {
    border-color: #cbd8ff;
    background: #f5f7ff;
}

body.light-theme .inventory-status-row,
body.light-theme .inventory-preview {
    color: #4f5e73;
    border-color: #d8e0ec;
    background: #ffffff;
}

body.light-theme .inventory-file-button {
    color: #3154ff;
    border-color: #aabaff;
    background: #eef2ff;
}

body.light-theme #product-quantity[readonly] {
    color: #087a5b;
    border-color: #9fdec9;
    background: #eefbf6;
}

/* Final mobile usability pass */
@media (max-width: 600px) {
    .product-card,
    .product-card:nth-child(n+6),
    .product-card .pc-banner,
    .product-card .pc-body {
        height: 164px !important;
        min-height: 164px !important;
    }

    .pc-price {
        bottom: 17px !important;
    }

    .pc-btn {
        right: 8px !important;
        bottom: 8px !important;
        width: 96px !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 9px !important;
        font-size: 9px !important;
    }

    .pc-btn i {
        font-size: 9px !important;
    }

    .chat-widget {
        right: 8px !important;
        bottom: 44px !important;
    }

    body.warning-collapsed .chat-widget {
        bottom: 10px !important;
    }

    .chat-toggle {
        width: 44px !important;
        height: 44px !important;
        font-size: 1rem !important;
        opacity: 0.94;
    }

    #view-admin .dashboard-header {
        margin-bottom: 12px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 44px;
        align-items: center !important;
        gap: 8px !important;
    }

    #view-admin .dashboard-header h2 {
        font-size: 22px !important;
        line-height: 1.15;
    }

    #view-admin .dashboard-header p {
        margin-top: 4px;
        font-size: 12px;
    }

    #view-admin .dashboard-header > button {
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0 !important;
        font-size: 0 !important;
    }

    #view-admin .dashboard-header > button i {
        margin: 0 !important;
        font-size: 15px !important;
    }

    #view-admin .admin-stat-card {
        min-height: 78px;
        padding: 10px !important;
    }

    #admin-tab-overview .dashboard-content > div {
        height: 220px !important;
    }

    .inventory-import-grid {
        grid-template-columns: 1fr;
    }

    .inventory-status-row {
        align-items: flex-start;
        flex-direction: column;
    }

    #product-modal > .glass-card {
        width: calc(100% - 16px) !important;
        max-height: calc(100vh - 16px) !important;
        padding: 18px !important;
    }
}

@media (max-width: 360px) {
    .pc-btn {
        width: 90px !important;
        height: 42px !important;
        font-size: 8px !important;
    }
}

/* =============================================
   HERO 3D FIRE TITLE
   ============================================= */
.hero h1 {
    position: relative;
    color: #fff;
    text-shadow: none;
    transform: none;
}

.hero h1::after {
    content: none;
}

#hero-typing-text {
    position: relative;
    display: inline-block;
    padding: 0 0.06em;
    font-family: Impact, Haettenschweiler, 'Arial Black', 'Inter', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1;
    background:
        linear-gradient(180deg,
            #ffffff 0%,
            #fff36b 18%,
            #ffcf24 38%,
            #ff7a18 68%,
            #ff2d8f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
    animation: none;
    transform: perspective(900px) rotateX(3deg);
    text-shadow:
        0 1px 0 rgba(255,122,24,0.95),
        0 2px 0 rgba(225,29,72,0.72),
        0 3px 0 rgba(126,34,206,0.45),
        0 8px 14px rgba(0,0,0,0.32);
}

#hero-typing-text::before,
#hero-typing-text::after {
    content: none;
}



@keyframes fireGlow {
    0%, 100% {
        opacity: 0.7;
        transform: translateX(-50%) scaleX(0.96);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1.06);
    }
}


/* =============================================
   MOTION POLISH
   ============================================= */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    transition:
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.btn-primary,
.btn-large,
.pc-btn-buy,
.pm-btn-buy{
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-large::before,
.pc-btn-buy::before,
.pm-btn-buy::before{
    content: '';
    position: absolute;
    inset: -40% auto -40% -60%;
    width: 44%;
    transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    opacity: 0;
    pointer-events: none;
}

.btn-primary:hover::before,
.btn-large:hover::before,
.pc-btn-buy:hover::before,
.pm-btn-buy:hover::before{
    animation: sheenSweep 0.85s ease;
}

@keyframes sheenSweep {
    0% { left: -60%; opacity: 0; }
    18% { opacity: 1; }
    100% { left: 130%; opacity: 0; }
}

.product-card,
.otp-app-card,
.admin-stat-card,
.dashboard-content {
    will-change: transform;
}

.product-card,
.otp-app-card,
.qr-tilt-card {
    transform-style: preserve-3d;
}

.product-card .pc-banner img,
.product-card .pc-banner-placeholder,
.otp-app-logo-wrap,
.otp-app-logo-fallback {
    transform: translateZ(18px);
}

.product-card .pc-body,
.otp-app-card .otp-card-actions {
    transform: translateZ(10px);
}

.qr-tilt-card {
    transform-style: preserve-3d;
    transition: box-shadow 0.3s ease;
}

.qr-tilt-card:hover {
    box-shadow: 0 18px 42px rgba(0,0,0,0.28) !important;
}

.js-tilt-glare {
    border-radius: inherit;
    pointer-events: none;
}

.product-card:hover .pc-trust-pill,
.otp-app-card:hover .otp-app-logo-wrap,
.otp-app-card:hover .otp-app-logo-fallback {
    animation: softPop 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes softPop {
    0% { transform: scale(1); }
    45% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

.pc-banner img,
.pc-banner-placeholder,
.otp-app-logo-wrap,
.otp-app-logo-fallback{
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}



.deposit-countdown-box.is-expiring strong {
    animation: urgencyPulse 1s ease-in-out infinite;
}

@keyframes urgencyPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.06); filter: brightness(1.25); }
}

.status-badge.status-pending,
.pc-stock-badge.in-stock {
    animation: statusGlow 2.6s ease-in-out infinite;
}

@keyframes statusGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(16,185,129,0); }
    50% { box-shadow: 0 0 18px rgba(16,185,129,0.18); }
}

.product-modal {
    animation: modalDrop 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalDrop {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* =============================================
   FULL UI POLISH PASS
   ============================================= */
.glass-header {
    background: rgba(10, 14, 23, 0.86);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

body.light-theme .glass-header {
    background: rgba(255,255,255,0.88);
}

















.product-card-skeleton {
    pointer-events: none;
}

.product-card-skeleton .pc-banner,
.sk-line {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.07);
}

.product-card-skeleton .pc-banner::after,
.sk-line::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
    animation: shimmer 1.35s infinite;
}

.sk-line {
    height: 12px;
    border-radius: 999px;
}

.sk-title { width: 78%; height: 16px; }
.sk-short { width: 48%; }
.sk-pills { width: 70%; }
.sk-price { width: 44%; height: 20px; }
.sk-btn { width: 100%; height: 40px; border-radius: 12px; margin-top: auto; }

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

.product-modal {
    max-width: 560px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025)),
        var(--bg-secondary);
    box-shadow: 0 28px 80px rgba(0,0,0,0.45);
}

.pm-header {
    padding: 30px;
    background:
        radial-gradient(circle at 20% 10%, rgba(0,240,255,0.16), transparent 36%),
        linear-gradient(135deg, rgba(255,0,127,0.12), rgba(0,240,255,0.08));
}

.pm-logo,
.pm-logo-placeholder {
    width: 82px;
    height: 82px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(0,0,0,0.28);
}

.pm-logo-placeholder {
    color: var(--primary);
}

.pm-title {
    font-size: 1.45rem;
    white-space: normal;
    line-height: 1.25;
}

.pm-subtitle span {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.08);
}

.pm-checklist {
    display: grid;
    gap: 8px;
}

.pm-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.07);
    color: var(--text-muted);
    font-size: 0.88rem;
}

.pm-check i {
    color: var(--accent);
}

.checkout-container .payment-info,
.checkout-container .order-summary {
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025)),
        var(--card-bg);
    box-shadow: 0 16px 42px rgba(0,0,0,0.22);
}

#deposit-qr-container > div:first-child {
    border: 8px solid #fff;
    border-radius: 24px !important;
}

.deposit-quick-btn {
    min-height: 42px;
    border-radius: 12px;
}

#otp-active-request {
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
}

.otp-pending-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.otp-pending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    flex-wrap: wrap;
    transition: background 0.3s, border-color 0.3s;
}

.otp-pending-item.is-success {
    border-color: rgba(46,204,113,0.45);
    background: rgba(46,204,113,0.08);
}

.otp-pending-item.is-cancelled {
    border-color: rgba(231,76,60,0.4);
    background: rgba(231,76,60,0.07);
}

.otp-pending-app {
    font-weight: 600;
    color: var(--primary);
    flex-shrink: 0;
    min-width: 70px;
}

.otp-pending-phone {
    font-weight: bold;
    letter-spacing: 1px;
    color: white;
    flex-shrink: 0;
}

.otp-pending-code {
    color: #2ecc71;
    font-weight: bold;
    letter-spacing: 4px;
    font-size: 1.2rem;
}

.otp-pending-status {
    margin-left: auto;
}

.otp-pending-header {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 768px) {
    .orders-table {
        min-width: 0;
    }

    .dashboard-content .table-responsive {
        overflow: visible;
        margin: 0;
        padding: 0;
    }

    .dashboard-content .orders-table thead {
        display: none;
    }

    .dashboard-content .orders-table,
    .dashboard-content .orders-table tbody,
    .dashboard-content .orders-table tr,
    .dashboard-content .orders-table td {
        display: block;
        width: 100%;
    }

    .dashboard-content .orders-table tr {
        margin-bottom: 12px;
        padding: 12px;
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 14px;
        background: rgba(255,255,255,0.045);
    }

    .dashboard-content .orders-table td {
        padding: 8px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        overflow-wrap: anywhere;
    }

    .dashboard-content .orders-table td:last-child {
        border-bottom: 0;
    }
}

#view-admin .dashboard-content {
    border-radius: 18px;
}

#view-admin .orders-table {
    border-collapse: separate;
    border-spacing: 0 8px;
}

#view-admin .orders-table th {
    border-bottom: 0;
    padding-top: 8px;
    padding-bottom: 8px;
}

#view-admin .orders-table td {
    background: rgba(255,255,255,0.035);
    border-bottom: 0;
}

#view-admin .orders-table tr td:first-child {
    border-radius: 12px 0 0 12px;
}

#view-admin .orders-table tr td:last-child {
    border-radius: 0 12px 12px 0;
}

@media (max-width: 768px) {
    

    .pm-header {
        padding: 24px 20px 18px;
    }

    .pm-logo,
    .pm-logo-placeholder {
        width: 68px;
        height: 68px;
        border-radius: 18px;
    }

    #view-admin .orders-table {
        border-spacing: 0;
    }
}

/* =============================================
   VISUAL REFRESH - PRODUCT CARDS & OTP LAUNCHER
   ============================================= */
.product-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}

.product-card {
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)),
        rgba(12, 16, 28, 0.82);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 14px 34px rgba(0,0,0,0.28);
    overflow: hidden;
    min-height: 306px;
    transform: translateZ(0);
}

body.light-theme .product-card {
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15,23,42,0.08);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0,240,255,0.36);
    box-shadow: 0 18px 42px rgba(0,0,0,0.36), 0 0 0 1px rgba(0,240,255,0.08);
}

.pc-banner {
    height: 118px;
    background:
        radial-gradient(circle at 28% 18%, rgba(0,240,255,0.18), transparent 34%),
        radial-gradient(circle at 80% 10%, rgba(255,0,127,0.16), transparent 30%),
        linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}

.pc-banner::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 55%);
}

.pc-banner img,
.pc-banner-placeholder {
    width: 66px;
    height: 66px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 12px 28px rgba(0,0,0,0.28);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-banner img {
    object-fit: contain;
    filter: none;
}

.pc-banner-placeholder {
    color: var(--primary);
    font-size: 1.7rem;
}

.product-card:hover .pc-banner img,
.product-card:hover .pc-banner-placeholder {
    transform: translateY(-2px) scale(1.04);
}

.pc-stock-badge {
    top: 10px;
    right: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.pc-stock-badge.in-stock {
    background: rgba(16,185,129,0.15);
    color: #34d399;
}

.pc-body {
    padding: 15px 16px 16px;
    gap: 8px;
}

.pc-name {
    font-size: 1rem;
    line-height: 1.35;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.7em;
}

.pc-duration {
    font-size: 0.78rem;
}



.pc-trust-row {
    min-height: 25px;
    overflow: hidden;
}

.pc-trust-pill {
    padding: 4px 8px;
    background: rgba(0,240,255,0.07);
    border-color: rgba(0,240,255,0.12);
    font-size: 0.68rem;
}

.pc-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
    color: #67e8f9;
    font-size: 1.22rem;
    letter-spacing: 0;
}

body.light-theme .pc-price {
    color: #0284c7;
}

.pc-btn {
    min-height: 42px;
    border-radius: 12px;
    font-size: 0.86rem;
    letter-spacing: 0;
}

.pc-btn-buy {
    background: linear-gradient(135deg, #ff2d8f, #ff9b2f);
    box-shadow: 0 10px 20px rgba(255,45,143,0.22);
}

.pc-btn-buy:hover {
    box-shadow: 0 14px 28px rgba(255,45,143,0.32);
}

.otp-compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 14px;
}

.otp-app-card {
    min-height: 156px;
    padding: 14px 10px 10px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)),
        rgba(12,16,28,0.76);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
    cursor: default;
}

body.light-theme .otp-app-card {
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}

.otp-app-card:hover {
    border-color: rgba(0,240,255,0.4);
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0,0,0,0.32);
}

.otp-app-logo-wrap,
.otp-app-logo-fallback {
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
    border-radius: 17px;
    background: #fff;
    border: 1px solid rgba(255,255,255,0.28);
    box-shadow: 0 12px 24px rgba(0,0,0,0.24);
}

.otp-app-logo {
    width: 38px;
    height: 38px;
}

.otp-app-logo-fallback {
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.25), transparent 30%),
        linear-gradient(135deg, rgba(255,0,127,0.75), rgba(0,240,255,0.7));
    color: white;
    font-size: 1.2rem;
}

.otp-app-name {
    font-size: 0.86rem;
    line-height: 1.25;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.2em;
}

.otp-app-price {
    font-size: 0.88rem;
    margin: 7px 0 9px;
}

.otp-app-card .btn-primary {
    min-height: 34px;
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 0.78rem;
    box-shadow: none;
}

.otp-app-card .otp-specific-btn {
    min-height: 30px;
    border-radius: 10px;
    padding: 5px 10px;
    font-size: 0.75rem;
}

.otp-card-actions {
    position: relative;
    z-index: 3;
    width: 100%;
    pointer-events: auto;
}

.otp-card-actions button {
    position: relative;
    z-index: 1;
    width: 100%;
    cursor: pointer;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-card {
        min-height: 286px;
        border-radius: 14px;
    }

    .pc-banner {
        height: 94px;
    }

    .pc-banner img,
    .pc-banner-placeholder {
        width: 56px;
        height: 56px;
        border-radius: 15px;
    }

    .pc-body {
        padding: 12px;
    }

    .pc-name {
        font-size: 0.92rem;
    }

    .pc-price {
        font-size: 1.05rem;
    }

    .otp-compact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .otp-app-card {
        min-height: 142px;
        border-radius: 15px;
        padding: 12px 8px 8px;
    }

    .otp-app-logo-wrap,
    .otp-app-logo-fallback {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .otp-app-logo {
        width: 32px;
        height: 32px;
    }

    .otp-app-name {
        font-size: 0.78rem;
    }

    .otp-app-price {
        font-size: 0.78rem;
    }
}

@media (max-width: 430px) {
    .otp-compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 360px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .otp-compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ===== MAINTENANCE PAGE ===== */
.maintenance-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.maintenance-card {
    max-width: 560px;
    width: 100%;
    text-align: center;
    padding: 48px 40px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.maintenance-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.maintenance-icon-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.08);
    border: 2px solid rgba(239, 68, 68, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: maint-pulse 2.5s ease-in-out infinite;
}

@keyframes maint-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.18); }
    50% { box-shadow: 0 0 0 18px rgba(239, 68, 68, 0); }
}

.maintenance-icon {
    font-size: 2.2rem;
    color: #ef4444;
    animation: maint-spin 4s linear infinite;
}

@keyframes maint-spin {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(-20deg); }
    30% { transform: rotate(20deg); }
    45% { transform: rotate(-10deg); }
    60% { transform: rotate(10deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

.maintenance-title {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.2;
}

.maintenance-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.maintenance-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 32px;
}

.maintenance-progress-bar {
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, #ef4444, var(--primary));
    border-radius: 99px;
    animation: maint-progress 3s ease-in-out infinite;
}

@keyframes maint-progress {
    0% { width: 15%; margin-left: 0; }
    50% { width: 45%; margin-left: 30%; }
    100% { width: 15%; margin-left: 85%; }
}

.maintenance-contact {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 24px;
}

.maintenance-contact-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

.maintenance-contact-label i {
    color: var(--warning);
    margin-right: 4px;
}

.maintenance-contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.maint-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--contact-color, var(--primary));
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.maint-contact-btn:hover {
    background: color-mix(in srgb, var(--contact-color, var(--primary)) 12%, transparent);
    border-color: var(--contact-color, var(--primary));
    transform: translateY(-2px);
}

.maint-mode-btn {
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s, border-color 0.18s;
    cursor: pointer !important;
}
.active-maint-btn {
    font-weight: 700 !important;
}

@media (max-width: 600px) {
    .maintenance-card {
        padding: 36px 20px;
    }
    .maintenance-title {
        font-size: 1.5rem;
    }
}


.order-duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    color: var(--accent);
    font-weight: 700;
}

.order-duration i {
    font-size: 0.85em;
    color: var(--primary);
}


.order-price {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    color: var(--success);
    font-weight: 800;
}


.site-warning-ticker {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34px;
    z-index: 10050;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(239,68,68,0.95), rgba(245,158,11,0.95));
    color: #fff;
    border-top: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.28);
}

.site-warning-track {
    display: flex;
    align-items: center;
    width: max-content;
    min-width: 200%;
    animation: siteWarningTicker 22s linear infinite;
}

.site-warning-track span {
    flex: 0 0 auto;
    padding: 0 42px;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    white-space: nowrap;
    text-transform: uppercase;
}

@keyframes siteWarningTicker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

body {
    padding-bottom: 34px;
}

@media (max-width: 600px) {
    .site-warning-ticker { height: 32px; }
    .site-warning-track span { font-size: 0.78rem; padding: 0 28px; }
    body { padding-bottom: 32px; }
}


/* Light theme contrast pass */
body.light-theme {
    --bg-main: #eef5fb;
    --bg-secondary: #ffffff;
    --accent: #0369a1;
    --text-main: #0f172a;
    --text-muted: #475569;
    --card-bg: rgba(255, 255, 255, 0.94);
    --card-border: rgba(15, 23, 42, 0.12);
    background-color: #eef5fb;
    background-image:
        radial-gradient(circle at 18% 18%, rgba(255, 0, 127, 0.10), transparent 24%),
        radial-gradient(circle at 82% 70%, rgba(2, 132, 199, 0.13), transparent 28%);
}

body.light-theme .hero {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(238, 245, 251, 0.68)),
        radial-gradient(circle at 28% 18%, rgba(255, 0, 127, 0.12), transparent 28%),
        radial-gradient(circle at 75% 72%, rgba(0, 185, 255, 0.14), transparent 30%);
}

body.light-theme #hero-canvas {
    opacity: 0.42;
}

body.light-theme .hero-orb {
    opacity: 0.11;
    filter: blur(90px);
}

body.light-theme .hero h1 {
    color: #0f172a;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.75), 0 16px 40px rgba(15, 23, 42, 0.10);
}

body.light-theme .hero p {
    color: #334155;
}

body.light-theme .text-gradient,
body.light-theme #hero-typing-text{
    background: linear-gradient(135deg, #e11d48, #f97316 48%, #0369a1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .badge {
    background: rgba(255, 255, 255, 0.76);
    color: #0369a1;
    border-color: rgba(2, 132, 199, 0.28);
    box-shadow: 0 10px 28px rgba(2, 132, 199, 0.10);
}























body.light-theme .glass-card,
body.light-theme .dashboard-content,
body.light-theme .product-modal {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(15, 23, 42, 0.10);
    color: #0f172a;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.10);
}

body.light-theme .site-warning-ticker {
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.18);
}

/* =============================================
   SHOP UI REDESIGN - LIGHT MARKETPLACE LAYOUT
   ============================================= */
body.light-theme {
    --bg-main: #f7f9fc;
    --bg-secondary: #ffffff;
    --primary: #3657ff;
    --primary-glow: rgba(54, 87, 255, 0.22);
    --secondary: #ee19c7;
    --accent: #6d44ff;
    --text-main: #070b24;
    --text-muted: #667085;
    --card-bg: #ffffff;
    --card-border: rgba(12, 18, 38, 0.1);
    background:
        radial-gradient(circle at 18% 8%, rgba(54, 87, 255, 0.08), transparent 24%),
        radial-gradient(circle at 92% 22%, rgba(238, 25, 199, 0.08), transparent 22%),
        linear-gradient(180deg, #fbfcff 0%, #f5f7fb 42%, #ffffff 100%);
    color: var(--text-main);
}

body.light-theme .container {
    max-width: 1480px;
}

body.light-theme main.container {
    padding-top: 24px;
    padding-bottom: 24px;
}

body.light-theme .glass-header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(12, 18, 38, 0.08);
    box-shadow: 0 10px 30px rgba(12, 18, 38, 0.06);
}

.header-container {
    gap: 18px;
}

body.light-theme .site-img-logo {
    border-color: rgba(12, 18, 38, 0.08);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(54, 87, 255, 0.12);
}













.header-search {
    flex: 0 1 340px;
    min-width: 230px;
    height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border: 1px solid rgba(12, 18, 38, 0.08);
    border-radius: 8px;
    background: #f3f6fb;
    color: #667085;
}

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-main);
    font: inherit;
    font-size: 0.9rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-login,
.header-register,
.header-balance,
.header-icon-btn,
.header-cart-btn {
    min-height: 44px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
    font-size: 0.88rem;
    font-weight: 800;
}

.header-login {
    min-width: 92px;
    padding: 0 16px;
    color: #111827;
    border: 1px solid rgba(12, 18, 38, 0.08);
    background: #ffffff;
}

.header-register {
    min-width: 90px;
    padding: 0 16px;
    background: linear-gradient(135deg, #3657ff, #ee19c7);
    box-shadow: 0 12px 22px rgba(54, 87, 255, 0.16);
}

.header-balance {
    padding: 0 14px;
    border-color: rgba(54, 87, 255, 0.24) !important;
    color: var(--primary) !important;
    background: rgba(54, 87, 255, 0.06);
}

.header-icon-btn,
.header-cart-btn {
    width: 44px;
    padding: 0;
    color: #111827;
    border: 1px solid rgba(12, 18, 38, 0.08);
    background: #ffffff;
    position: relative;
}

.header-cart-btn span,
#nav-notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    min-width: 18px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ee19c7;
    color: #fff;
    font-size: 0.65rem;
    line-height: 1;
    margin: 0;
    border: 2px solid #fff;
    animation: none;
    letter-spacing: 0;
    text-transform: none;
}

#nav-notification-badge::before {
    display: none;
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.85fr);
    gap: 30px;
    align-items: start;
}

.hero {
    min-height: 0;
    padding: 42px 0 34px;
    justify-content: space-between;
    text-align: left;
    gap: 28px;
    background: transparent !important;
}

.hero-content {
    max-width: 540px;
}

.badge {
    margin-bottom: 18px;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 0.8rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--primary);
    background: rgba(54, 87, 255, 0.08);
    border-color: rgba(54, 87, 255, 0.16);
    box-shadow: none;
}

.badge::before {
    background: var(--secondary);
    box-shadow: 0 0 10px rgba(238, 25, 199, 0.45);
}

.hero h1 {
    max-width: 100%;
    color: #080b24;
    font-size: clamp(3rem, 5.2vw, 4.8rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: 0;
    margin-bottom: 22px;
}

.text-gradient,
#hero-typing-text {
    background: linear-gradient(135deg, #ee19c7 0%, #3657ff 52%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    max-width: 560px;
    margin: 0 0 28px;
    color: #5f6b7a;
    font-size: 1rem;
    line-height: 1.75;
}





















.hero-visual {
    position: relative;
    width: min(42vw, 430px);
    min-width: 310px;
    height: 360px;
    flex: 1 0 330px;
    display: grid;
    place-items: center;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(54, 87, 255, 0.12);
    border-radius: 47% 53% 42% 58%;
    transform: rotate(-18deg);
}

.hero-bag {
    width: 210px;
    height: 215px;
    border-radius: 24px 24px 42px 42px;
    position: relative;
    z-index: 2;
    background:
        radial-gradient(circle at 76% 25%, #0b1028 0 10px, transparent 11px),
        radial-gradient(circle at 18% 88%, rgba(255,255,255,0.26), transparent 36%),
        linear-gradient(135deg, #3657ff 0%, #17c7e8 32%, #ee19c7 68%, #ffae31 100%);
    box-shadow: 0 28px 46px rgba(54, 87, 255, 0.18), 0 12px 28px rgba(238, 25, 199, 0.16);
    transform: rotate(4deg);
}







.app-bubble {
    position: absolute;
    z-index: 3;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #111827;
    font-weight: 900;
    box-shadow: 0 16px 28px rgba(12, 18, 38, 0.12);
    border: 1px solid rgba(12, 18, 38, 0.08);
}

.bubble-netflix { top: 54px; left: 36px; color: #e50914; background: #080808; font-size: 1.45rem; }
.bubble-spotify { top: 24px; right: 84px; color: #1ed760; background: #07130c; font-size: 1.65rem; }
.bubble-youtube { left: 0; top: 145px; color: #ff0000; font-size: 1.55rem; }
.bubble-canva { left: 28px; bottom: 64px; color: #ffffff; background: linear-gradient(135deg, #00c4cc, #7d2ae8); font-size: 0.72rem; }
.bubble-ai { right: 18px; bottom: 62px; color: #10a37f; font-size: 1.4rem; }
.bubble-office { right: 0; top: 134px; color: #f25022; font-size: 1.3rem; }

#hero-canvas {
    opacity: 0.26;
}

.home-sidebar {
    display: grid;
    gap: 18px;
}


.popular-services-card,
.products-section {
    border: 1px solid rgba(12, 18, 38, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(12, 18, 38, 0.06);
}









.popular-services-card {
    padding: 20px;
}

.home-card-title,
.home-section-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 16px;
}

.home-card-title h2,
.home-section-bar h2 {
    font-size: 1.08rem;
    line-height: 1.25;
    margin: 0;
    color: #080b24;
}

.home-section-bar h2 {
    font-size: 1.16rem;
}

.home-section-bar p {
    margin-top: 6px;
    color: #667085;
    font-size: 0.9rem;
}

.home-card-title button,
.home-section-bar button {
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 0;
}

.home-popular-list {
    display: grid;
    gap: 4px;
}

.home-popular-item {
    width: 100%;
    min-height: 58px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 8px;
    padding: 8px;
    background: transparent;
    color: #111827;
    text-align: left;
}

.home-popular-item:hover {
    background: #f7f8fc;
}

.home-popular-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5fb;
    overflow: hidden;
    color: var(--primary);
}

.home-popular-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-popular-meta {
    min-width: 0;
}

.home-popular-meta strong,
.home-popular-meta small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-popular-meta strong {
    font-size: 0.86rem;
}

.home-popular-meta small {
    color: #667085;
    font-size: 0.74rem;
}

.home-popular-price {
    color: #080b24;
    font-size: 0.82rem;
    font-weight: 900;
}

.home-popular-action {
    border-radius: 8px;
    padding: 7px 12px;
    color: #d4149e;
    background: rgba(238, 25, 199, 0.08);
    font-size: 0.74rem;
    font-weight: 900;
}

.home-popular-skeleton span {
    background: #eef2f7;
    min-height: 12px;
    border-radius: 999px;
}













.promo-banners-container {
    display: none;
    width: 100%;
    margin: 18px auto;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    max-width: 100%;
}

.products-section {
    margin-top: 18px;
    padding: 20px;
}

.product-search-bar {
    margin-bottom: 18px;
}

.psb-inner {
    border-radius: 8px;
    background: #f5f7fb;
    border-color: rgba(12, 18, 38, 0.08);
}

.product-sort-controls {
    gap: 8px;
}

.product-source-btn,
.product-sort-btn {
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(12, 18, 38, 0.08);
    color: #344054;
}

.product-source-btn.active,
.product-sort-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, #3657ff, #ee19c7);
    border-color: transparent;
}

.product-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
}

.product-card {
    border-radius: 8px;
    background: #ffffff;
    border-color: rgba(12, 18, 38, 0.08);
    box-shadow: 0 10px 26px rgba(12, 18, 38, 0.07);
    min-height: 288px;
}

.product-card:hover {
    border-color: rgba(54, 87, 255, 0.24);
    box-shadow: 0 16px 34px rgba(54, 87, 255, 0.12);
}

.pc-banner {
    height: 106px;
    background:
        radial-gradient(circle at 18% 20%, rgba(54, 87, 255, 0.16), transparent 34%),
        radial-gradient(circle at 84% 12%, rgba(238, 25, 199, 0.14), transparent 32%),
        linear-gradient(135deg, #f8fbff, #eef3fb);
}

.pc-banner img,
.pc-banner-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(12, 18, 38, 0.12);
}

.pc-stock-badge {
    border-radius: 8px;
}

.pc-body {
    padding: 13px 14px 14px;
}

.pc-name {
    color: #080b24;
}

.pc-duration,
.pc-trust-pill {
    color: #667085;
}

.pc-price {
    color: #080b24;
}

.pc-btn {
    border-radius: 8px;
}













.otp-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.otp-hero-header {
    padding: 28px 0 18px;
}

.otp-hero-header .badge {
    margin-bottom: 12px;
}

.otp-hero-header h2 {
    color: #080b24;
}

.otp-hero-header p {
    color: #667085;
}

.otp-toolbar,
.otp-search-box,
#otp-active-request {
    border: 1px solid rgba(12, 18, 38, 0.08);
    border-radius: 8px;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 12px 28px rgba(12, 18, 38, 0.06);
}

.otp-toolbar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px;
    margin-bottom: 18px;
}

.otp-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.otp-field label {
    color: #344054;
    font-weight: 800;
    white-space: nowrap;
}

.otp-field select,
.otp-field input {
    min-height: 42px;
    border-radius: 8px;
    border: 1px solid rgba(12, 18, 38, 0.12);
    background: #f8fafc;
    color: #111827;
    outline: 0;
    padding: 0 14px;
    font: inherit;
}

.otp-field select {
    min-width: 150px;
}

.otp-field input {
    width: 132px;
}

#otp-active-request {
    margin-bottom: 18px !important;
}

.otp-search-box {
    max-width: 430px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
}

.otp-search-box i {
    color: #667085;
}

.otp-search-box input {
    min-height: 46px;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111827;
    font: inherit;
}

.otp-filter-bar {
    margin: 0 auto 12px;
    justify-content: center;
}

.otp-filter-btn {
    border-radius: 8px;
    background: #ffffff;
    color: #344054;
    border: 1px solid rgba(12, 18, 38, 0.08);
}

.otp-filter-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, #3657ff, #ee19c7);
    border-color: transparent;
}

.otp-compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 14px;
}

.otp-app-card {
    border-radius: 8px;
    background: #ffffff;
    border-color: rgba(12, 18, 38, 0.08);
    box-shadow: 0 10px 24px rgba(12, 18, 38, 0.07);
}

.otp-app-card:hover {
    border-color: rgba(54, 87, 255, 0.24);
    box-shadow: 0 16px 34px rgba(54, 87, 255, 0.12);
}

.otp-app-name {
    color: #111827;
}

.otp-app-price {
    color: var(--primary);
}

.otp-app-card .btn-primary,
.otp-app-card .otp-specific-btn {
    border-radius: 8px;
}

footer {
    background: #ffffff;
    border-top: 1px solid rgba(12, 18, 38, 0.08);
    color: #111827;
    padding: 26px 0 18px;
    margin-top: 22px;
}

.footer-content {
    grid-template-columns: 1.6fr 0.85fr 0.9fr 0.9fr 1.4fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 18px;
}

.footer-logo p {
    color: #667085;
    max-width: 330px;
}







.footer-links h4,
.footer-contact h4{
    margin-bottom: 12px;
    font-size: 0.96rem;
    color: #111827;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links a,
.footer-contact p {
    color: #667085;
    font-size: 0.88rem;
}



.footer-bottom {
    color: #667085;
    border-top-color: rgba(12, 18, 38, 0.08);
}

@media (max-width: 1180px) {
    .home-layout {
        grid-template-columns: 1fr;
    }

    .home-sidebar {
        grid-template-columns: 1fr;
    }

    .hero {
        align-items: center;
    }

    

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 980px) {
    

    .header-search {
        flex-basis: 260px;
    }

    
}

@media (max-width: 768px) {
    body.light-theme main.container {
        padding: 18px 14px 24px;
    }

    .header-container {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 14px;
    }

    

    

    .header-search {
        order: 5;
        flex: 1 0 100%;
        max-width: none;
        min-width: 0;
        height: 42px;
    }

    .header-actions {
        margin-left: auto;
        gap: 6px;
    }

    .header-login,
    .header-register,
    .header-balance {
        min-width: 0;
        min-height: 38px;
        padding: 0 10px;
        font-size: 0.78rem;
    }

    .header-icon-btn,
    .header-cart-btn {
        width: 38px;
        min-height: 38px;
    }

    .hero {
        flex-direction: column;
        padding: 24px 0 18px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(2.35rem, 11vw, 3.4rem);
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    

    

    

    .hero-visual {
        width: 100%;
        min-width: 0;
        height: 290px;
        flex-basis: auto;
    }

    .hero-bag {
        width: 170px;
        height: 178px;
    }

    

    

    .app-bubble {
        width: 42px;
        height: 42px;
    }

    .home-popular-item {
        grid-template-columns: 38px minmax(0, 1fr) auto;
    }

    .home-popular-action {
        display: none;
    }

    

    

    .otp-toolbar {
        align-items: stretch;
    }

    .otp-field {
        width: 100%;
        justify-content: space-between;
    }

    .otp-field select,
    .otp-field input {
        flex: 1;
        min-width: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

@media (max-width: 520px) {
    .header-search {
        display: none;
    }

    .header-cart-btn,
    #theme-toggle-btn {
        display: none;
    }

    .header-register {
        min-width: 74px;
    }

    #nav-user-2,
    #nav-otp,
    #nav-deposit,
    #nav-notifications,
    #nav-admin {
        display: none !important;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-card {
        min-height: 270px;
    }

    .pc-banner {
        height: 92px;
    }

    .pc-banner img,
    .pc-banner-placeholder {
        width: 54px;
        height: 54px;
    }

    .otp-compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    

    
}

/* Screenshot-matched storefront layout */
body.light-theme {
    --primary: #3154ff;
    --accent: #e51cc7;
    --text-main: #080b24;
    --text-muted: #667085;
    background: #ffffff;
    color: var(--text-main);
}

body.light-theme::before,
body.light-theme::after,
.site-warning-ticker,
.chat-widget {
    display: none !important;
}

#app {
    padding-bottom: 0 !important;
}

.glass-header {
    height: 78px;
    min-height: 78px;
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid #e9edf4 !important;
    box-shadow: none !important;
    backdrop-filter: blur(18px);
}

.header-container {
    width: 100%;
    max-width: none !important;
    height: 78px;
    padding: 0 22px !important;
    display: grid !important;
    grid-template-columns: 220px minmax(260px, 1fr) auto;
    gap: 24px;
    align-items: center;
}

.logo {
    width: 188px;
    height: 52px;
    overflow: hidden;
    border-radius: 8px;
}

.site-img-logo {
    width: 188px !important;
    height: 52px !important;
    display: block;
    object-fit: contain;
    border-radius: 8px;
}

body.light-theme .site-img-logo {
    filter: none !important;
}











.header-search {
    justify-self: start;
    width: min(100%, 420px);
    max-width: 420px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: #f2f5f9;
    box-shadow: none;
}

.header-search i {
    color: #718096;
    font-size: 13px;
}

.header-search input {
    font-size: 11px;
    color: #344054;
}

.header-actions {
    justify-self: end;
    gap: 8px;
}

.header-login,
.header-register {
    height: 38px;
    min-height: 38px;
    min-width: 90px;
    padding: 0 15px !important;
    border-radius: 7px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.header-login {
    color: #111827 !important;
    border: 1px solid #e4e9f1;
    background: #ffffff;
}

.header-register {
    min-width: 74px;
    color: #ffffff !important;
    border: 0 !important;
    background: linear-gradient(135deg, #3154ff 10%, #a935f2 64%, #e51cc7) !important;
    box-shadow: 0 7px 16px rgba(94, 61, 238, 0.18);
}

.header-icon-btn,
.header-cart-btn {
    width: 38px;
    height: 38px;
    min-height: 38px;
    border: 1px solid #e8ecf2 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #111827 !important;
    box-shadow: none !important;
}

#theme-toggle-btn {
    display: none !important;
}

.header-cart-btn span {
    top: -4px;
    right: -3px;
    width: 14px;
    height: 14px;
    min-width: 14px;
    font-size: 8px;
    background: #e51ca5;
}

body.light-theme main.container {
    width: 100%;
    max-width: none !important;
    padding: 24px 36px 16px !important;
}

#view-home.active {
    display: grid !important;
    grid-template-columns: minmax(0, 1.34fr) minmax(0, 1fr);
    grid-template-rows: 365px 176px 187px;
    column-gap: 52px;
    row-gap: 16px;
    align-items: stretch;
}

.home-layout {
    display: contents;
}

.hero {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    height: 365px;
    padding: 35px 0 0 22px;
    display: grid;
    grid-template-columns: minmax(360px, 1.06fr) minmax(320px, 0.94fr);
    align-items: start;
    overflow: visible;
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

#hero-canvas,
.hero-orb {
    display: none !important;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 410px;
    padding: 0;
}

.hero h1 {
    margin: 0;
    color: #080b24;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.26;
    letter-spacing: 0;
    white-space: nowrap;
}

body.light-theme .hero h1 {
    color: #080b24 !important;
    text-shadow: none !important;
}

body.light-theme #hero-typing-text {
    min-width: 118px;
    display: inline-block;
    color: transparent !important;
    background: linear-gradient(90deg, #b72bdc 0%, #3154ff 84%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-transform: none !important;
    font-weight: 800 !important;
}



.hero p {
    max-width: 405px;
    margin: 17px 0 0;
    color: #5f6b7c;
    font-size: 13px;
    line-height: 1.65;
}



















.hero-visual {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 330px;
    align-self: start;
    overflow: visible;
}

.hero-visual::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 51%;
    width: 318px;
    height: 286px;
    border: 1px solid rgba(79, 93, 238, 0.15);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 54%, rgba(82, 126, 255, 0.08), transparent 54%),
        linear-gradient(135deg, transparent 49.7%, rgba(96, 108, 238, 0.1) 50%, transparent 50.3%),
        linear-gradient(45deg, transparent 49.7%, rgba(96, 108, 238, 0.08) 50%, transparent 50.3%);
    transform: translate(-50%, -50%);
}

.hero-bag{
    display: none !important;
}

.hero-bag-image {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 52%;
    width: 278px;
    height: 278px;
    object-fit: contain;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 18px 16px rgba(83, 68, 226, 0.18));
}

.app-bubble {
    z-index: 4;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid rgba(12, 18, 38, 0.06);
    box-shadow: 0 8px 18px rgba(12, 18, 38, 0.1);
    font-size: 17px;
}

.bubble-netflix {
    left: 10%;
    top: 24%;
}

.bubble-spotify {
    right: 13%;
    top: 18%;
}

.bubble-youtube {
    left: 1%;
    top: 45%;
}

.bubble-canva {
    left: 0;
    bottom: 13%;
    font-size: 10px;
}

.bubble-ai {
    right: 1%;
    bottom: 13%;
}

.bubble-office {
    right: 0;
    top: 45%;
}

.home-sidebar {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    height: 365px;
    display: grid;
    grid-template-rows: 82px 267px;
    gap: 16px;
}


.popular-services-card,
.products-section {
    border: 1px solid #e7ebf1 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 3px 10px rgba(14, 24, 46, 0.035) !important;
}









.popular-services-card {
    height: 267px;
    padding: 12px 20px 10px;
    overflow: hidden;
}

.home-card-title {
    height: 25px;
    margin: 0;
    align-items: flex-start;
}

.home-card-title h2 {
    color: #080b24;
    font-size: 13px;
    font-weight: 700;
}

.home-card-title button {
    color: #3154ff;
    font-size: 9px;
    font-weight: 700;
}

.home-popular-list {
    display: grid;
    gap: 0;
}

.home-popular-item {
    min-height: 44px;
    height: 44px;
    grid-template-columns: 28px minmax(0, 1fr) 72px 67px;
    gap: 9px;
    padding: 3px 0;
    border-bottom: 1px solid #edf0f4;
    border-radius: 0;
}

.home-popular-item:last-child {
    border-bottom: 0;
}

.home-popular-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #f2f4f8;
}

.home-popular-meta strong {
    color: #111827;
    font-size: 10px;
    line-height: 1.3;
}

.home-popular-meta small {
    color: #667085;
    font-size: 8px;
}

.home-popular-price {
    text-align: right;
    color: #080b24;
    font-size: 10px;
    font-weight: 700;
}

.home-popular-action {
    padding: 7px 8px;
    border-radius: 6px;
    color: #da20a1;
    background: #fff1fb;
    font-size: 8px;
    text-align: center;
}



































.promo-banners-container {
    display: none !important;
}

.products-section {
    grid-column: 1;
    grid-row: 3;
    height: 187px;
    margin: 0;
    padding: 13px 23px 15px;
    overflow: hidden;
}

.home-section-bar {
    height: 25px;
    margin: 0 0 7px;
    align-items: flex-start;
}

.home-section-bar h2 {
    color: #080b24;
    font-size: 12px;
    font-weight: 700;
}

.home-section-bar p,
.product-search-bar {
    display: none !important;
}

.home-section-bar button {
    color: #3154ff;
    font-size: 9px;
    font-weight: 700;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.product-card {
    position: relative;
    min-width: 0;
    min-height: 0 !important;
    height: 131px;
    overflow: hidden;
    border: 1px solid #e8ecf2 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    transform: none !important;
}

.product-card:nth-child(n+6) {
    display: none;
}

.pc-banner {
    height: 64px !important;
    padding: 0;
    overflow: hidden;
    background: #11141b !important;
}

.pc-banner img,
.pc-banner-placeholder {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    object-fit: cover !important;
    box-shadow: none !important;
}

.pc-banner-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #131722, #253254);
}

.pc-stock-badge,
.pc-trust-row {
    display: none !important;
}

.pc-body {
    position: relative;
    height: 67px;
    padding: 5px 7px 6px !important;
}

.pc-name {
    max-width: calc(100% - 4px);
    color: #111827 !important;
    font-size: 8px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-duration{
    display: inline;
    margin: 0 !important;
    color: #667085 !important;
    font-size: 7px !important;
    line-height: 1.2 !important;
}

.pc-duration i{
    display: none;
}

.pc-duration::after {
    content: " · ";
}

.pc-price {
    position: absolute;
    left: 7px;
    bottom: 7px;
    color: #080b24 !important;
    font-size: 9px !important;
    font-weight: 800 !important;
}

.pc-price-old,
.pc-discount-tag {
    display: none !important;
}

.pc-btn {
    position: absolute;
    right: 6px;
    bottom: 5px;
    width: 24px;
    height: 24px;
    min-height: 24px;
    padding: 0 !important;
    border: 1px solid #e5e9f0 !important;
    border-radius: 5px !important;
    color: #1c2a42 !important;
    background: #ffffff !important;
    font-size: 0 !important;
    box-shadow: none !important;
}

.pc-btn i {
    margin: 0 !important;
    font-size: 10px;
}

















footer {
    min-height: 146px;
    margin-top: 0 !important;
    padding: 14px 0 8px !important;
    border-top: 1px solid #e8ecf2 !important;
    background: #ffffff !important;
    color: #111827 !important;
}

footer .container {
    width: calc(100% - 70px);
    max-width: 1400px !important;
}

.footer-content {
    grid-template-columns: 1.45fr 0.8fr 0.8fr 0.9fr;
    gap: 34px;
    margin-bottom: 4px;
}

.footer-logo .logo {
    width: 170px;
    height: 42px;
}

.footer-logo .site-img-logo {
    width: 170px !important;
    height: 42px !important;
}

.footer-logo p {
    max-width: 285px;
    margin-top: 6px;
    color: #667085;
    font-size: 8px;
    line-height: 1.5;
}





.footer-links h4,
.footer-contact h4{
    margin: 4px 0 7px;
    color: #111827;
    font-size: 10px;
}

.footer-links ul li {
    margin-bottom: 4px;
    font-size: 8px;
    line-height: 1.35;
}

.footer-links a,
.footer-contact p {
    color: #667085;
    font-size: 8px;
    line-height: 1.35;
}





.footer-bottom {
    padding-top: 2px;
    border-top: 0;
    color: #667085;
    font-size: 7px;
}

@media (max-width: 1280px) {
    .header-container {
        grid-template-columns: 190px 390px minmax(220px, 1fr) auto;
        gap: 20px;
    }

    

    .header-search {
        width: 260px;
    }

    #view-home.active {
        column-gap: 30px;
    }

    .hero {
        grid-template-columns: minmax(330px, 1fr) minmax(285px, 0.9fr);
    }

    .hero h1 {
        font-size: 38px;
    }

    
}

@media (max-width: 1100px) {
    .header-container {
        display: flex !important;
        gap: 14px;
    }

    

    

    .header-search {
        width: 240px;
        flex: 0 0 240px;
    }

    #view-home.active {
        display: block !important;
    }

    .home-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hero {
        grid-column: auto;
        grid-row: auto;
        height: 390px;
    }

    .home-sidebar {
        grid-column: auto;
        grid-row: auto;
        height: auto;
        grid-template-rows: auto;
    }

    
    .products-section{
        width: 100%;
        height: auto;
        margin-top: 18px;
    }

    
}

@media (max-width: 768px) {
    .glass-header,
    .header-container {
        height: auto;
        min-height: 68px;
    }

    .header-container {
        padding: 8px 14px !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: wrap;
    }

    .logo,
    .site-img-logo {
        width: 110px !important;
        height: 38px !important;
    }

    

    .header-actions {
        order: 3;
        margin-left: auto;
    }

    .header-search {
        order: 4;
        flex: 1 0 100%;
        width: 100%;
        max-width: none;
    }

    body.light-theme main.container {
        padding: 18px 14px 24px !important;
    }

    

    

    .hero {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        height: auto;
        min-height: 0;
        padding: 28px 8px 14px;
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(34px, 10vw, 43px);
        white-space: normal;
    }

    body.light-theme #hero-typing-text {
        min-width: 0;
    }

    .hero p{
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        height: 300px;
    }

    .hero-bag-image {
        width: 245px;
        height: 245px;
    }

    

    

    

    

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-card:nth-child(n+6) {
        display: block;
    }

    .products-section {
        overflow: visible;
        padding-bottom: 18px;
    }

    

    
}

@media (max-width: 520px) {
    .header-search,
    .header-cart-btn {
        display: none !important;
    }

    .header-login,
    .header-register {
        min-width: 72px;
        padding: 0 10px !important;
    }

    

    

    

    

    

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Full product catalog and practical filtering */
@media (min-width: 1101px) {
    #view-home.active {
        grid-template-rows: 365px 176px auto;
    }

    .products-section {
        grid-column: 1 / -1;
        grid-row: 3;
    }

}











.products-section {
    height: auto;
    min-height: 340px;
    padding: 24px;
    overflow: visible;
}

.home-section-bar {
    height: auto;
    margin: 0 0 18px;
    align-items: center;
}

.home-section-bar h2 {
    font-size: 18px;
}

.home-section-bar p {
    display: block;
    margin-top: 5px;
    color: #667085;
    font-size: 11px;
}

.home-section-bar button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #e3e8f0;
    border-radius: 7px;
    color: #344054;
    background: #ffffff;
    font-size: 10px;
}

.home-section-bar button:hover {
    color: #3154ff;
    border-color: rgba(49, 84, 255, 0.32);
    background: #f7f8ff;
}

.product-search-bar {
    margin: 0 0 22px;
    padding: 16px 0 18px;
    display: grid !important;
    grid-template-columns: minmax(280px, 420px) minmax(120px, 1fr);
    gap: 12px 18px;
    align-items: center;
    border-top: 1px solid #edf0f5;
    border-bottom: 1px solid #edf0f5;
}

.psb-inner {
    width: 100%;
    height: 44px;
    min-height: 44px;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    background: #f8fafc;
    box-shadow: none;
}

.psb-input {
    font-size: 12px;
}

.psb-result-count {
    justify-self: end;
    color: #667085;
    font-size: 11px;
    font-weight: 600;
}

.product-sort-controls {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none !important;
    margin: 2px 0 0;
}

.product-filter-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.product-category-tabs,
.product-utility-controls,
.product-source-segment {
    display: flex;
    align-items: center;
}

.product-category-tabs {
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 7px;
}

.product-category-btn {
    min-height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #e3e8f0;
    border-radius: 7px;
    color: #475467;
    background: #ffffff;
    font-size: 10px;
    font-weight: 700;
}

.product-category-btn span {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #667085;
    background: #f1f3f6;
    font-size: 8px;
}

.product-category-btn:hover {
    color: #3154ff;
    border-color: rgba(49, 84, 255, 0.32);
}

.product-category-btn.active {
    color: #ffffff;
    border-color: #3154ff;
    background: #3154ff;
}

.product-category-btn.active span {
    color: #3154ff;
    background: #ffffff;
}

.product-utility-controls {
    flex: 0 0 auto;
    gap: 10px;
}

.product-source-segment {
    height: 36px;
    padding: 3px;
    gap: 2px;
    border: 1px solid #e3e8f0;
    border-radius: 8px;
    background: #f5f7fa;
}

.product-source-btn {
    min-height: 28px;
    padding: 0 9px;
    border: 0 !important;
    border-radius: 6px !important;
    color: #667085 !important;
    background: transparent !important;
    font-size: 9px;
    font-weight: 700;
}

.product-source-btn.active {
    color: #111827 !important;
    background: #ffffff !important;
    box-shadow: 0 1px 4px rgba(16, 24, 40, 0.08);
}

.product-sort-select {
    position: relative;
    height: 36px;
    min-width: 154px;
    padding: 0 9px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e3e8f0;
    border-radius: 8px;
    color: #667085;
    background: #ffffff;
}

.product-sort-select i {
    font-size: 10px;
}

.product-sort-select select {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: #344054;
    background: transparent;
    font: 700 10px/1 Inter, sans-serif;
    cursor: pointer;
}

.product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.product-card,
.product-card:nth-child(n+6) {
    display: block;
    min-height: 0 !important;
    height: 260px;
    overflow: hidden;
    border-radius: 8px !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.055) !important;
}

.product-card:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(49, 84, 255, 0.3) !important;
    box-shadow: 0 13px 28px rgba(49, 84, 255, 0.11) !important;
}

.pc-banner {
    height: 108px !important;
    padding: 0;
    background: #f5f7fa !important;
}

.pc-banner img {
    padding: 10px;
    object-fit: contain !important;
    background: #f8fafc;
}

.pc-banner-placeholder {
    color: #ffffff;
}

.pc-stock-badge {
    top: 9px;
    right: 9px;
    display: inline-flex !important;
    padding: 5px 7px;
    border-radius: 6px;
    font-size: 8px;
}

.pc-body {
    height: 152px;
    padding: 12px 12px 10px !important;
}

.pc-name {
    max-width: 100%;
    min-height: 17px;
    color: #111827 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.pc-duration{
    margin-top: 5px !important;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #667085 !important;
    font-size: 9px !important;
    line-height: 1.3 !important;
}

.pc-duration i{
    width: 11px;
    display: inline-block;
    color: #7b8798;
    font-size: 8px;
}

.pc-duration::after {
    display: none;
}

.pc-trust-row {
    margin-top: 7px;
    display: flex !important;
    gap: 4px;
    overflow: hidden;
}

.pc-trust-pill {
    padding: 3px 5px;
    border-radius: 5px;
    color: #3154ff;
    background: #f1f3ff;
    font-size: 7px;
    white-space: nowrap;
}

.pc-trust-pill:nth-child(n+3) {
    display: none;
}

.pc-price {
    left: 12px;
    bottom: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #080b24 !important;
    font-size: 13px !important;
}

.pc-price-old {
    display: inline !important;
    color: #98a2b3;
    font-size: 8px;
}

.pc-discount-tag {
    display: inline-flex !important;
    padding: 2px 4px;
    border-radius: 4px;
    color: #d92d20;
    background: #fff0ee;
    font-size: 7px;
}

.pc-btn {
    right: 10px;
    bottom: 9px;
    width: 82px;
    height: 32px;
    min-height: 32px;
    padding: 0 9px !important;
    border: 0 !important;
    border-radius: 7px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #3154ff, #9b36ed) !important;
    font-size: 9px !important;
}

.pc-btn i {
    margin-right: 4px !important;
    font-size: 8px;
}

.pc-btn:disabled,
.pc-btn-sold {
    color: #98a2b3 !important;
    background: #eef1f5 !important;
}

.product-empty-search {
    min-height: 220px;
    grid-column: 1 / -1;
    padding: 42px 20px;
    text-align: center;
}





footer {
    margin-top: 18px !important;
}

@media (max-width: 1350px) {
    .product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .product-filter-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-utility-controls {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 1100px) {
    .products-section {
        margin-top: 18px;
    }

    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    
}

@media (max-width: 820px) {
    .product-search-bar {
        grid-template-columns: 1fr;
    }

    .psb-result-count {
        justify-self: start;
    }

    .product-filter-row,
    .product-utility-controls {
        align-items: stretch;
    }

    .product-utility-controls {
        flex-direction: column;
    }

    .product-source-segment,
    .product-sort-select {
        width: 100%;
    }

    .product-source-btn {
        flex: 1;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    

    
}

@media (max-width: 520px) {
    .products-section {
        padding: 18px 14px;
    }

    .product-category-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-category-btn {
        justify-content: space-between;
    }

    .product-grid {
        gap: 10px;
    }

    .product-card,
    .product-card:nth-child(n+6) {
        height: 248px;
    }

    .pc-banner {
        height: 96px !important;
    }

    .pc-body {
        height: 152px;
        padding: 10px !important;
    }

    .pc-trust-row {
        display: none !important;
    }

    .pc-price {
        left: 10px;
        font-size: 11px !important;
    }

    .pc-btn {
        right: 8px;
        width: 32px;
        padding: 0 !important;
        font-size: 0 !important;
    }

    .pc-btn i {
        margin: 0 !important;
        font-size: 10px;
    }
}

/* Separate OTP from account categories */
body.light-theme #hero-typing-text {
    text-shadow: none !important;
}

.service-discovery-row {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    height: 176px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 218px;
    gap: 14px;
}

.otp-spotlight {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    height: 176px;
    padding: 17px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #1649d8 0%, #087fd9 54%, #0ba68f 100%);
    box-shadow: 0 12px 26px rgba(22, 73, 216, 0.2);
}

.otp-spotlight-heading {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.otp-spotlight-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #123c99;
    background: #ffffff;
    font-size: 14px;
}

.otp-spotlight-badge {
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.12);
    font-size: 7px;
    font-weight: 800;
}

.otp-spotlight > strong {
    margin-top: 11px;
    font-size: 16px;
    line-height: 1.2;
}

.otp-spotlight > small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 9px;
}

.otp-spotlight > button {
    width: 100%;
    min-height: 30px;
    margin-top: auto;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 6px;
    color: #123c99;
    background: #ffffff;
    font-size: 9px;
    font-weight: 800;
    box-shadow: none;
}

.otp-spotlight > button:hover {
    color: #087c73;
    background: #f3fffc;
    transform: translateY(-1px);
}

@media (max-width: 1100px) {
    .service-discovery-row {
        width: 100%;
        height: auto;
        margin-top: 18px;
        grid-template-columns: minmax(0, 1fr) 218px;
    }

}

@media (max-width: 768px) {
    .service-discovery-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .otp-spotlight {
        grid-column: 1;
        grid-row: 2;
        height: 144px;
    }
}

/* Animated hero artwork */
.hero-visual {
    perspective: 900px;
}

.hero-visual::before {
    transform-origin: center;
    animation: heroOrbitDrift 18s linear infinite;
    will-change: transform;
}

.hero-bag-image {
    animation: heroBagFloat 5.2s ease-in-out infinite;
    transform-origin: center;
    will-change: transform, filter;
}

.app-bubble {
    --bubble-x: 5px;
    --bubble-y: -9px;
    --bubble-turn: 2deg;
    animation: heroBubbleFloat 4.2s ease-in-out infinite;
    will-change: transform;
}

.bubble-netflix {
    --bubble-x: -5px;
    --bubble-y: -8px;
    --bubble-turn: -3deg;
    animation-delay: -0.8s;
    animation-duration: 4.8s;
}

.bubble-spotify {
    --bubble-x: 4px;
    --bubble-y: -11px;
    --bubble-turn: 3deg;
    animation-delay: -2.2s;
    animation-duration: 5.1s;
}

.bubble-youtube {
    --bubble-x: 7px;
    --bubble-y: -7px;
    --bubble-turn: -2deg;
    animation-delay: -1.5s;
    animation-duration: 4.4s;
}

.bubble-canva {
    --bubble-x: -4px;
    --bubble-y: -10px;
    --bubble-turn: 3deg;
    animation-delay: -3s;
    animation-duration: 5.4s;
}

.bubble-ai {
    --bubble-x: 5px;
    --bubble-y: -8px;
    --bubble-turn: -3deg;
    animation-delay: -1.1s;
    animation-duration: 4.7s;
}

.bubble-office {
    --bubble-x: -6px;
    --bubble-y: -11px;
    --bubble-turn: 2deg;
    animation-delay: -2.6s;
    animation-duration: 5.2s;
}

@keyframes heroBagFloat {
    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0) rotate(-0.7deg);
        filter: drop-shadow(0 18px 16px rgba(83, 68, 226, 0.18));
    }

    50% {
        transform: translate(-50%, -50%) translateY(-10px) rotate(1.2deg);
        filter: drop-shadow(0 26px 20px rgba(83, 68, 226, 0.24));
    }
}

@keyframes heroOrbitDrift {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) rotate(180deg) scale(1.025);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(1);
    }
}

@keyframes heroBubbleFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0);
    }

    50% {
        transform: translate3d(var(--bubble-x), var(--bubble-y), 0) rotate(var(--bubble-turn));
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-visual::before,
    .hero-bag-image,
    .app-bubble {
        animation: none !important;
        transform: none;
    }

    .hero-visual::before,
    .hero-bag-image {
        transform: translate(-50%, -50%);
    }
}

/* Clean transparent treatment for the animated SVG logo */
.site-img-logo,
body.light-theme .site-img-logo,
.footer-logo .site-img-logo {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    clip-path: none !important;
}

.site-img-logo-dark {
    display: none !important;
}

body:not(.light-theme) .site-img-logo-light {
    display: none !important;
}

body:not(.light-theme) .site-img-logo-dark {
    display: block !important;
}

/* Hero title: dimensional type with a per-letter typing bounce */
.hero-heading-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 390px;
    max-width: 100%;
    margin-bottom: 0;
    color: #596579;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-content h1 {
    width: 390px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.hero-content h1 > br {
    display: none;
}

.hero-heading-kicker::before,
.hero-heading-kicker::after {
    content: "";
    width: 34px;
    height: 2px;
    flex: 0 0 34px;
    border-radius: 2px;
    background: linear-gradient(90deg, #5965f2 0 68%, #dc2aa6 68% 100%);
}

.hero-heading-kicker::after {
    background: linear-gradient(90deg, #dc2aa6 0 32%, #5965f2 32% 100%);
}

#hero-typing-text.hero-feature-title,
body.light-theme #hero-typing-text.hero-feature-title {
    position: relative;
    display: inline-flex !important;
    width: 390px;
    max-width: 100%;
    min-width: 0;
    min-height: 86px;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: baseline;
    justify-content: center;
    color: #182036 !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: currentColor !important;
    font-family: 'Be Vietnam Pro', 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 900 !important;
    line-height: 1.14;
    letter-spacing: 0;
    text-transform: uppercase !important;
    text-shadow: none !important;
    white-space: nowrap;
    transform: perspective(700px) rotateX(2deg);
    transform-origin: left center;
}

.hero-type-break {
    width: 0;
    height: 0;
    flex-basis: 100%;
}

.hero-type-char {
    display: inline-block;
    color: #182036;
    -webkit-text-fill-color: currentColor;
    text-shadow:
        0 1px 0 #dce2ff,
        0 2px 0 #c7d0fa,
        0 7px 14px rgba(24, 32, 54, 0.16);
    transform-origin: center bottom;
}

.hero-type-char.is-ampersand {
    color: #dc2aa6;
    text-shadow:
        0 1px 0 #b91e8b,
        0 2px 0 #8f176c,
        0 7px 14px rgba(185, 30, 139, 0.2);
}

.hero-type-char.is-second-line {
    color: #5a4cf1;
    text-shadow:
        0 1px 0 #493bd0,
        0 2px 0 #392fa5,
        0 7px 14px rgba(73, 59, 208, 0.2);
}

.hero-type-char.is-otp {
    color: #079987;
    text-shadow:
        0 1px 0 #087b6e,
        0 2px 0 #086257,
        0 7px 14px rgba(8, 123, 110, 0.2);
}

.hero-type-char.is-entering {
    animation: heroTypeJump 380ms cubic-bezier(0.22, 1.2, 0.42, 1) both;
}

#hero-typing-text.hero-feature-title::after,
body.light-theme #hero-typing-text.hero-feature-title::after {
    content: "" !important;
    width: 3px;
    height: 34px;
    margin-left: 5px;
    border-radius: 2px;
    background: #5a4cf1;
    box-shadow: 0 0 10px rgba(90, 76, 241, 0.42);
    animation: heroTitleCursor 820ms step-end infinite;
}

@keyframes heroTypeJump {
    0% {
        opacity: 0;
        transform: translateY(10px) rotateX(-55deg) scale(0.9);
    }

    62% {
        opacity: 1;
        transform: translateY(-3px) rotateX(8deg) scale(1.03);
    }

    82% {
        transform: translateY(1px) rotateX(-2deg) scale(0.99);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0) scale(1);
    }
}

@keyframes heroTitleCursor {
    0%,
    48% {
        opacity: 1;
    }

    49%,
    100% {
        opacity: 0;
    }
}

@media (max-width: 1280px) {
    .hero-heading-kicker {
        width: 350px;
        font-size: 12px;
    }

    #hero-typing-text.hero-feature-title,
    body.light-theme #hero-typing-text.hero-feature-title {
        width: 350px;
        min-height: 78px;
        font-size: 32px;
    }

    .hero-content h1 {
        width: 350px;
    }
}

@media (min-width: 1101px) {
    .hero-content {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .hero-heading-kicker {
        width: 390px;
        max-width: 100%;
        justify-content: center;
        font-size: 13px;
    }

    .hero-content h1 {
        width: 390px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    #hero-typing-text.hero-feature-title,
    body.light-theme #hero-typing-text.hero-feature-title {
        width: 390px;
        max-width: 100%;
        min-height: 78px;
        justify-content: center;
        font-size: 32px;
        transform-origin: center;
    }
}

@media (max-width: 520px) {
    .hero-heading-kicker {
        font-size: 12px;
    }

    #hero-typing-text.hero-feature-title,
    body.light-theme #hero-typing-text.hero-feature-title {
        min-height: 68px;
        font-size: 27px;
    }

    #hero-typing-text.hero-feature-title::after,
    body.light-theme #hero-typing-text.hero-feature-title::after {
        height: 29px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-type-char.is-entering,
    #hero-typing-text.hero-feature-title::after {
        animation: none !important;
    }
}

/* Keep the signed-in utility bar visible when browser zoom reduces the CSS viewport. */
@media (min-width: 1101px) and (max-width: 1700px) {
    .header-container {
        grid-template-columns: 190px minmax(180px, 1fr) auto;
        gap: 14px;
        padding: 0 16px !important;
    }

    

    .header-search {
        width: min(100%, 420px);
        max-width: 420px;
        min-width: 0;
    }

    .header-actions {
        min-width: 0;
        gap: 6px;
    }

    .header-login,
    .header-register {
        min-width: 84px;
        padding: 0 12px !important;
    }

    .header-balance {
        padding: 0 10px;
    }
}

@media (min-width: 1101px) and (max-width: 1450px) {
    .header-container {
        grid-template-columns: 180px minmax(150px, 1fr) auto;
        gap: 10px;
        padding: 0 14px !important;
    }

    .logo,
    .site-img-logo {
        width: 168px !important;
        height: 48px !important;
    }

    

    .header-login,
    .header-register {
        min-width: 76px;
        padding: 0 10px !important;
    }

    .header-icon-btn,
    .header-cart-btn {
        width: 36px;
        height: 36px;
        min-height: 36px;
    }
}

@media (min-width: 1101px) and (max-width: 1250px) {
    .header-container {
        grid-template-columns: 168px minmax(120px, 1fr) auto;
        gap: 8px;
        padding: 0 12px !important;
    }

    

    #nav-user-1,
    #nav-otp {
        width: 40px;
        min-width: 40px;
        padding: 0 !important;
        font-size: 0 !important;
    }

    #nav-user-1 i,
    #nav-otp i {
        margin: 0;
        font-size: 13px;
    }

    #nav-user-2 {
        min-width: 70px;
        padding: 0 8px !important;
        font-size: 10px !important;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .header-container {
        flex-wrap: nowrap !important;
        gap: 8px;
        padding: 0 14px !important;
    }

    .logo,
    .site-img-logo {
        width: 150px !important;
        height: 44px !important;
        flex: 0 0 150px;
    }

    .header-search {
        display: flex;
        flex: 0 1 420px;
        width: min(100%, 420px);
        min-width: 120px;
        max-width: 420px;
    }

    .header-actions {
        flex: 0 0 auto;
        gap: 5px;
    }

    #nav-user-1,
    #nav-otp {
        width: 40px;
        min-width: 40px;
        padding: 0 !important;
        font-size: 0 !important;
    }

    #nav-user-1 i,
    #nav-otp i {
        margin: 0;
        font-size: 13px;
    }

    #nav-user-2 {
        min-width: 70px;
        padding: 0 8px !important;
        font-size: 10px !important;
    }

    .header-balance {
        padding: 0 9px;
    }

    .header-icon-btn,
    .header-cart-btn {
        width: 36px;
        height: 36px;
        min-height: 36px;
    }
}

/* Compact standalone OTP entry after removing the large category shortcut panel. */
.service-discovery-row {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: stretch;
}

.otp-spotlight {
    width: 100%;
    max-width: none;
    height: 60px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 96px;
    grid-template-rows: 1fr 1fr;
    column-gap: 9px;
    row-gap: 2px;
    align-items: center;
}

.otp-spotlight-heading {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: auto;
    justify-content: flex-start;
    gap: 10px;
}

.otp-spotlight-icon {
    width: 34px;
    height: 34px;
    font-size: 13px;
}

.otp-spotlight-badge {
    display: none;
}

.otp-spotlight > strong {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0;
    font-size: 14px;
}

.otp-spotlight > small {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin: 0;
    font-size: 8px;
}

.otp-spotlight > button {
    grid-column: 3;
    grid-row: 1 / span 2;
    width: 96px;
    min-height: 32px;
    margin: 0;
    align-self: center;
}

@media (min-width: 1101px) {
    #view-home.active {
        grid-template-rows: 365px 66px auto;
    }
}

@media (max-width: 1100px) {
    .service-discovery-row {
        height: auto;
        margin-top: 18px;
    }
}

@media (max-width: 768px) {
    .otp-spotlight {
        height: auto;
        min-height: 108px;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        padding: 14px;
    }

    .otp-spotlight-heading {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .otp-spotlight > strong,
    .otp-spotlight > small {
        grid-column: 2;
    }

    .otp-spotlight > button {
        grid-column: 1 / -1;
        grid-row: 3;
        width: 100%;
        margin-top: 8px;
    }
}

/* Structured card footer: trust badges never collide with price or purchase action. */
.pc-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto minmax(4px, 1fr) 32px;
    column-gap: 8px;
}

.pc-name {
    grid-column: 1 / -1;
    grid-row: 1;
}

.pc-duration {
    grid-column: 1 / -1;
    grid-row: 2;
}

.pc-trust-row {
    grid-column: 1 / -1;
    grid-row: 3;
    min-width: 0;
}

.pc-price {
    position: static !important;
    grid-column: 1;
    grid-row: 5;
    min-width: 0;
    max-width: 100%;
    align-self: end;
    overflow: hidden;
    white-space: nowrap;
}

.pc-btn {
    position: static !important;
    grid-column: 2;
    grid-row: 5;
    align-self: end;
}

.product-card,
.product-card:nth-child(n+6) {
    display: grid !important;
    grid-template-rows: 108px minmax(167px, 1fr);
    height: auto !important;
    min-height: 275px !important;
}

.product-card .pc-banner {
    height: auto !important;
}

.product-card .pc-body {
    width: 100%;
    height: auto;
    min-height: 167px;
}

@media (max-width: 520px) {
    .product-card,
    .product-card:nth-child(n+6) {
        grid-template-rows: 96px minmax(160px, 1fr);
        height: auto !important;
        min-height: 256px !important;
    }

    .product-card .pc-body {
        min-height: 160px;
    }
}

/* Complete dark storefront theme without changing layout or visibility. */
#theme-toggle-btn {
    display: inline-flex !important;
}

body:not(.light-theme) {
    --bg-main: #090e17;
    --bg-secondary: #111925;
    --primary: #7968ff;
    --primary-glow: rgba(121, 104, 255, 0.28);
    --secondary: #e348b6;
    --accent: #25c7b7;
    --text-main: #eef3ff;
    --text-muted: #96a3b7;
    --card-bg: #121a27;
    --card-border: #273346;
    color-scheme: dark;
    background: #090e17 !important;
    background-image:
        radial-gradient(circle at 16% 12%, rgba(121, 104, 255, 0.12), transparent 25%),
        radial-gradient(circle at 88% 22%, rgba(37, 199, 183, 0.08), transparent 24%) !important;
    color: var(--text-main);
}

body:not(.light-theme) main.container {
    width: 100%;
    max-width: none !important;
    padding: 24px 36px 16px !important;
}

body:not(.light-theme) .glass-header {
    background: rgba(10, 16, 27, 0.96) !important;
    border-bottom-color: #222d3e !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.24) !important;
}

body:not(.light-theme) .header-search {
    color: #aab5c8;
    background: #151e2c;
    border: 1px solid #28364a;
}

body:not(.light-theme) .header-search input {
    color: #edf2ff;
}

body:not(.light-theme) .header-search input::placeholder {
    color: #8491a6;
}

body:not(.light-theme) .header-login,
body:not(.light-theme) .header-icon-btn,
body:not(.light-theme) .header-cart-btn {
    color: #edf2ff !important;
    border-color: #2b394d !important;
    background: #141d2a !important;
}

body:not(.light-theme) .header-login:hover,
body:not(.light-theme) .header-icon-btn:hover,
body:not(.light-theme) .header-cart-btn:hover {
    border-color: #5f5be0 !important;
    background: #1a2535 !important;
}

body:not(.light-theme) .header-balance {
    color: #aeb8ff !important;
    border-color: rgba(121, 104, 255, 0.48) !important;
    background: rgba(121, 104, 255, 0.12) !important;
}

body:not(.light-theme) #theme-toggle-btn {
    color: #ffd166 !important;
}

body:not(.light-theme) .hero {
    background: transparent !important;
}

body:not(.light-theme) .hero-visual::before {
    border-color: rgba(126, 139, 255, 0.2);
    background:
        radial-gradient(circle at 50% 54%, rgba(85, 109, 255, 0.1), transparent 54%),
        linear-gradient(135deg, transparent 49.7%, rgba(125, 139, 255, 0.12) 50%, transparent 50.3%),
        linear-gradient(45deg, transparent 49.7%, rgba(38, 203, 187, 0.08) 50%, transparent 50.3%);
}

body:not(.light-theme) .hero-heading-kicker {
    color: #aab5c8;
}

body:not(.light-theme) .hero-type-char {
    color: #f2f5ff;
    text-shadow:
        0 1px 0 #7d8baa,
        0 2px 0 #44516a,
        0 8px 18px rgba(0, 0, 0, 0.38);
}

body:not(.light-theme) .hero-type-char.is-ampersand {
    color: #f04bbb;
    text-shadow:
        0 1px 0 #b82b88,
        0 2px 0 #7d205f,
        0 8px 18px rgba(240, 75, 187, 0.22);
}

body:not(.light-theme) .hero-type-char.is-second-line {
    color: #8b7cff;
    text-shadow:
        0 1px 0 #6556d6,
        0 2px 0 #463b9f,
        0 8px 18px rgba(112, 94, 232, 0.28);
}

body:not(.light-theme) .hero-type-char.is-otp {
    color: #27c9b8;
    text-shadow:
        0 1px 0 #169887,
        0 2px 0 #0d6a60,
        0 8px 18px rgba(39, 201, 184, 0.24);
}


body:not(.light-theme) .popular-services-card,
body:not(.light-theme) .products-section {
    color: #edf2ff !important;
    border-color: #273346 !important;
    background: #111925 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2) !important;
}




body:not(.light-theme) .home-card-title button,
body:not(.light-theme) .home-section-bar p,
body:not(.light-theme) .psb-result-count {
    color: #96a3b7;
}

body:not(.light-theme) .home-card-title h2,
body:not(.light-theme) .home-section-bar h2 {
    color: #f2f5ff;
}

body:not(.light-theme) .home-popular-item {
    color: #edf2ff;
    border-bottom-color: #243043;
}

body:not(.light-theme) .home-popular-item:hover {
    background: #172232;
}

body:not(.light-theme) .home-popular-logo {
    background: #1b2636;
}

body:not(.light-theme) .home-popular-meta small {
    color: #8f9cb0;
}

body:not(.light-theme) .home-popular-price {
    color: #f2f5ff;
}

body:not(.light-theme) .home-popular-action {
    color: #ff78cf;
    background: rgba(227, 72, 182, 0.12);
}

body:not(.light-theme) .product-search-bar {
    border-color: #273346;
}

body:not(.light-theme) .psb-inner,
body:not(.light-theme) .product-source-segment,
body:not(.light-theme) .product-sort-select {
    color: #dbe2f1;
    border-color: #2b394d;
    background: #151f2d;
}

body:not(.light-theme) .psb-input,
body:not(.light-theme) .product-sort-select select {
    color: #edf2ff;
}

body:not(.light-theme) .psb-input::placeholder {
    color: #8491a6;
}

body:not(.light-theme) .home-section-bar button,
body:not(.light-theme) .product-category-btn,
body:not(.light-theme) .product-source-btn,
body:not(.light-theme) .product-sort-btn,
body:not(.light-theme) .otp-filter-btn {
    color: #bac4d6 !important;
    border-color: #2b394d !important;
    background: #151f2d !important;
}

body:not(.light-theme) .product-category-btn span {
    color: #aeb8cb;
    background: #222d3d;
}

body:not(.light-theme) .product-category-btn.active,
body:not(.light-theme) .product-source-btn.active,
body:not(.light-theme) .product-sort-btn.active,
body:not(.light-theme) .otp-filter-btn.active {
    color: #ffffff !important;
    border-color: #6e62ed !important;
    background: #6659e8 !important;
}

body:not(.light-theme) .product-category-btn.active span {
    color: #5e52d5;
    background: #ffffff;
}

body:not(.light-theme) .product-card {
    color: #edf2ff;
    border-color: #273346 !important;
    background: #121a27 !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22) !important;
}

body:not(.light-theme) .product-card:hover {
    border-color: rgba(121, 104, 255, 0.62) !important;
    box-shadow: 0 14px 30px rgba(34, 25, 90, 0.28) !important;
}

body:not(.light-theme) .pc-banner {
    background:
        radial-gradient(circle at 18% 20%, rgba(121, 104, 255, 0.13), transparent 34%),
        radial-gradient(circle at 84% 12%, rgba(37, 199, 183, 0.1), transparent 32%),
        #0e1622 !important;
}

body:not(.light-theme) .pc-banner img {
    background: #f6f8fb;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

body:not(.light-theme) .pc-name {
    color: #f2f5ff !important;
}

body:not(.light-theme) .pc-duration {
    color: #99a6ba !important;
}

body:not(.light-theme) .pc-trust-pill {
    color: #a9b4ff;
    border-color: rgba(121, 104, 255, 0.28);
    background: rgba(121, 104, 255, 0.12);
}

body:not(.light-theme) .pc-price {
    color: #ffffff !important;
}

body:not(.light-theme) .pc-price-old {
    color: #7f8ba0;
}

body:not(.light-theme) .otp-toolbar,
body:not(.light-theme) .otp-search-box,
body:not(.light-theme) #otp-active-request,
body:not(.light-theme) .otp-app-card {
    color: #edf2ff;
    border-color: #273346;
    background: #121a27;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

body:not(.light-theme) .otp-hero-header h2,
body:not(.light-theme) .otp-app-name {
    color: #f2f5ff;
}

body:not(.light-theme) .otp-hero-header p,
body:not(.light-theme) .otp-search-box i {
    color: #96a3b7;
}

body:not(.light-theme) .otp-field label {
    color: #c7d0df;
}

body:not(.light-theme) .otp-field select,
body:not(.light-theme) .otp-field input,
body:not(.light-theme) .otp-search-box input {
    color: #edf2ff;
    border-color: #2b394d;
    background: #151f2d;
}

body:not(.light-theme) .glass-card,
body:not(.light-theme) .dashboard-content,
body:not(.light-theme) .payment-info,
body:not(.light-theme) .order-summary,
body:not(.light-theme) .product-modal,
body:not(.light-theme) .admin-stat-card {
    color: #edf2ff !important;
    border-color: #273346 !important;
    background: #121a27 !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24) !important;
}

body:not(.light-theme) input,
body:not(.light-theme) select,
body:not(.light-theme) textarea {
    color: #edf2ff;
    border-color: #2b394d;
}

body:not(.light-theme) table,
body:not(.light-theme) th,
body:not(.light-theme) td {
    color: #dce3f1;
    border-color: #2a374a;
}

body:not(.light-theme) footer {
    color: #edf2ff !important;
    border-top-color: #222d3e !important;
    background: #0d1420 !important;
}

body:not(.light-theme) .footer-logo p,
body:not(.light-theme) .footer-links a,
body:not(.light-theme) .footer-contact p,
body:not(.light-theme) .footer-bottom {
    color: #8f9cb0;
}

body:not(.light-theme) .footer-links h4,
body:not(.light-theme) .footer-contact h4{
    color: #edf2ff;
}

body,
.glass-header,
.header-search,
.header-login,
.header-icon-btn,
.header-cart-btn,
.hero,
.popular-services-card,
.products-section,
.product-card,
footer {
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

@media (max-width: 768px) {
    body:not(.light-theme) main.container {
        padding: 18px 14px 24px !important;
    }
}

/* Zoom-safe layout: cap wide canvases and reflow before fixed tracks can collide. */
.header-container,
main.container {
    max-width: 1920px !important;
    margin-left: auto;
    margin-right: auto;
}

body.light-theme main.container,
body:not(.light-theme) main.container {
    max-width: 1920px !important;
    margin-left: auto;
    margin-right: auto;
}

#view-home,
.home-layout,
.hero,
.hero-content,
.hero-visual,
.home-sidebar,
.service-discovery-row,
.products-section,
.product-grid,
.product-card,
.pc-body {
    min-width: 0;
}

.product-filter-row,
.product-utility-controls {
    min-width: 0;
    flex-wrap: wrap;
}

.product-sort-select {
    max-width: 100%;
}

@media (min-width: 1101px) and (max-width: 1450px) {
    body.light-theme main.container,
    body:not(.light-theme) main.container {
        padding-left: 28px !important;
        padding-right: 28px !important;
    }

    #view-home.active {
        grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
        column-gap: 24px;
    }

    .hero {
        padding-left: 10px;
        grid-template-columns: minmax(280px, 0.96fr) minmax(240px, 1.04fr);
    }

    .hero-content,
    .hero-content h1,
    .hero-heading-kicker,
    #hero-typing-text.hero-feature-title,
    body.light-theme #hero-typing-text.hero-feature-title {
        width: 100%;
        max-width: 350px;
    }

    #hero-typing-text.hero-feature-title,
    body.light-theme #hero-typing-text.hero-feature-title {
        min-height: 76px;
        font-size: 31px;
    }

    .hero-visual {
        height: 320px;
    }

    .hero-bag-image {
        width: 258px;
        height: 258px;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    body.light-theme main.container,
    body:not(.light-theme) main.container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .hero {
        grid-template-columns: minmax(280px, 1fr) minmax(240px, 0.9fr);
        gap: 14px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-content h1,
    .hero-heading-kicker,
    #hero-typing-text.hero-feature-title,
    body.light-theme #hero-typing-text.hero-feature-title {
        width: 100%;
        max-width: 350px;
    }

    .hero-visual {
        min-width: 0;
        height: 330px;
    }

    .hero-bag-image {
        width: 250px;
        height: 250px;
    }

    .home-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-container {
        overflow: visible;
    }

    .header-actions {
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .hero-content h1,
    .hero-heading-kicker,
    #hero-typing-text.hero-feature-title,
    body.light-theme #hero-typing-text.hero-feature-title {
        width: 100%;
        max-width: 390px;
    }

    .product-filter-row,
    .product-utility-controls {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .header-actions {
        gap: 5px;
    }

    .hero {
        overflow: hidden;
    }

    .hero-visual {
        max-width: 100%;
    }
}

/* Align the account utility bar with the popular-services column. */
@media (min-width: 1451px) {
    .header-container {
        grid-template-columns: minmax(0, 1.34fr) minmax(620px, 1fr) !important;
        column-gap: 52px !important;
        padding-left: 36px !important;
        padding-right: 36px !important;
    }

    .header-actions {
        grid-column: 2;
        width: 100%;
        min-width: 0;
        justify-self: stretch;
        justify-content: space-between;
    }
}

@media (min-width: 1101px) and (max-width: 1450px) {
    .header-container {
        grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr) !important;
        column-gap: 24px !important;
        padding-left: 28px !important;
        padding-right: 28px !important;
    }

    .header-actions {
        grid-column: 2;
        width: 100%;
        min-width: 0;
        justify-self: stretch;
        justify-content: space-between;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .header-container {
        display: flex !important;
    }

    .header-actions {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-end;
    }
}

/* Center the desktop utility bar while preserving the sidebar-sized width. */
@media (min-width: 1451px) {
    .header-container {
        position: relative;
    }

    .header-actions {
        position: absolute;
        grid-column: 1 / -1;
        left: 50%;
        width: calc(42.735% - 22px);
        transform: translateX(-50%);
    }
}

@media (min-width: 1101px) and (max-width: 1450px) {
    .header-container {
        position: relative;
    }

    .header-actions {
        position: absolute;
        grid-column: 1 / -1;
        left: 50%;
        width: calc(42.5% - 10px);
        transform: translateX(-50%);
    }
}

/* Balanced header: primary account actions in the middle, utilities on the right. */
.header-container {
    position: relative !important;
    grid-template-columns: 220px minmax(0, 1fr) auto !important;
    column-gap: 22px !important;
}

.header-actions {
    position: static !important;
    grid-column: 2 / -1 !important;
    left: auto !important;
    width: auto !important;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    transform: none !important;
    justify-self: stretch;
}

























@media (min-width: 1101px) and (max-width: 1450px) {
    .header-container {
        grid-template-columns: 180px minmax(0, 1fr) auto !important;
        padding-left: 28px !important;
        padding-right: 28px !important;
        column-gap: 14px !important;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .header-container {
        display: grid !important;
        grid-template-columns: 150px minmax(0, 1fr) !important;
        column-gap: 8px !important;
    }

    .header-actions {
        grid-column: 2 !important;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 7px;
    }

    

    #nav-user-1 span,
    #nav-otp span,
    #nav-user-2 span {
        display: none;
    }

    
}

@media (max-width: 768px) {
    .glass-header,
    .header-container {
        height: auto;
        min-height: 68px;
    }

    .header-container {
        display: grid !important;
        grid-template-columns: minmax(110px, auto) minmax(0, 1fr) !important;
        grid-template-rows: auto auto;
        gap: 7px 10px !important;
        padding: 8px 14px !important;
    }

    .header-actions {
        grid-column: 1 / -1 !important;
        grid-row: 2;
        width: 100% !important;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    

    

    

    #nav-user-1 span,
    #nav-otp span,
    #nav-user-2 span {
        display: none;
    }
}

@media (max-width: 520px) {
    

    

    .header-cart-btn {
        display: inline-flex !important;
    }
}

/* Unified utility dock: one compact surface instead of two disconnected groups. */
.header-container {
    position: relative !important;
    grid-template-columns: 220px minmax(0, 1fr) !important;
}

.header-actions {
    position: absolute !important;
    z-index: 2;
    grid-column: 1 / -1 !important;
    top: 50%;
    left: 50% !important;
    width: max-content !important;
    max-width: calc(100% - 440px);
    min-height: 46px;
    padding: 4px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 3px;
    overflow-x: auto;
    border: 1px solid #e3e8f0;
    border-radius: 8px;
    background: #f5f7fb;
    scrollbar-width: none;
    transform: translate(-50%, -50%) !important;
}

.header-actions::-webkit-scrollbar {
    display: none;
}





body:not(.light-theme) .header-actions {
    border-color: #28364a;
    background: #111925;
}





@media (min-width: 769px) and (max-width: 1100px) {
    .header-container {
        grid-template-columns: 150px minmax(0, 1fr) !important;
    }

    .header-actions {
        max-width: calc(100% - 190px);
    }
}

@media (max-width: 768px) {
    .header-actions {
        position: static !important;
        grid-column: 1 / -1 !important;
        grid-row: 2;
        width: max-content !important;
        max-width: 100%;
        min-height: 42px;
        margin: 0 auto;
        padding: 2px;
        transform: none !important;
    }

    
}

/* Restored header layout: utilities align with the popular-services column. */
.header-actions,
body:not(.light-theme) .header-actions {
    position: static !important;
    z-index: auto;
    top: auto;
    left: auto !important;
    min-height: 0;
    padding: 0;
    display: flex !important;
    align-items: center;
    gap: 8px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    transform: none !important;
}

@media (min-width: 1451px) {
    .header-container {
        position: static !important;
        grid-template-columns: minmax(0, 1.34fr) minmax(620px, 1fr) !important;
        column-gap: 52px !important;
        padding-left: 36px !important;
        padding-right: 36px !important;
    }

    .header-actions {
        grid-column: 2 !important;
        width: 100% !important;
        max-width: none;
        justify-self: stretch;
        justify-content: space-between;
    }
}

@media (min-width: 1101px) and (max-width: 1450px) {
    .header-container {
        position: static !important;
        grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr) !important;
        column-gap: 24px !important;
        padding-left: 28px !important;
        padding-right: 28px !important;
    }

    .header-actions {
        grid-column: 2 !important;
        width: 100% !important;
        max-width: none;
        justify-self: stretch;
        justify-content: space-between;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .header-container {
        position: static !important;
        display: flex !important;
        gap: 8px !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .header-actions {
        flex: 1 1 auto;
        width: auto !important;
        max-width: none;
        min-width: 0;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .header-container {
        position: static !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        align-items: center !important;
        gap: 8px !important;
        padding: 8px 14px !important;
    }

    .header-actions {
        order: 3;
        flex: 1 0 100%;
        width: 100% !important;
        max-width: 100%;
        margin: 0;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* Product brands orbiting the hero bag. */
.app-bubble.hero-brand-bubble {
    padding: 6px;
    overflow: hidden;
    color: inherit;
    background: #ffffff !important;
}

.hero-brand-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 6px;
}

.bubble-office .hero-brand-logo {
    width: 88%;
    height: 88%;
}

/* Persistent anti-fraud warning at the lower edge of the viewport. */
.site-warning-ticker {
    display: flex !important;
    color: #f8fafc;
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(10, 17, 29, 0.68);
    box-shadow:
        0 -8px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px) saturate(145%);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
}

.site-warning-track {
    will-change: transform;
}

body.light-theme .site-warning-ticker {
    color: #9f231b;
    border-top-color: rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.72);
    box-shadow:
        0 -8px 24px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

/* Restored customer and admin support chat. */
.chat-widget {
    display: block !important;
    right: 22px;
    bottom: 52px;
    z-index: 1500;
}

.chat-toggle {
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: linear-gradient(135deg, #3154ff, #0aa9c2);
    color: #ffffff;
    font-size: 1.25rem;
    box-shadow: 0 12px 28px rgba(16, 69, 196, 0.28);
}

.chat-toggle:hover {
    transform: translateY(-2px);
}

.chat-badge {
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-color: #0a111d;
    background: #e51ca5;
}

.chat-window {
    bottom: 64px;
    width: 370px;
    max-width: calc(100vw - 28px);
    height: min(500px, calc(100vh - 150px));
    border: 1px solid #2a374a;
    border-radius: 8px;
    background: rgba(12, 20, 33, 0.94);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.chat-header {
    min-height: 62px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #244ae8, #0899ad);
}

.chat-header-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-agent-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
}

.chat-header h4 {
    color: #ffffff;
    font-size: 0.94rem;
    line-height: 1.2;
}

.chat-agent-status {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.7rem;
}

.chat-agent-status i {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    background: #45e0a8;
    box-shadow: 0 0 0 3px rgba(69, 224, 168, 0.16);
}

.chat-header > .btn-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 7px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.chat-messages {
    padding: 14px;
    gap: 9px;
    background: rgba(7, 13, 23, 0.62);
}

.chat-msg {
    max-width: 82%;
    padding: 9px 11px;
    border-radius: 8px;
    font-size: 0.84rem;
    line-height: 1.5;
}

.chat-msg.msg-admin {
    color: #e9eef8;
    border-color: #2b394d;
    border-bottom-left-radius: 3px;
    background: #172131;
}

.chat-msg.msg-user {
    border-bottom-right-radius: 3px;
    background: linear-gradient(135deg, #3154ff, #7760e8);
}

.chat-input-area {
    min-width: 0;
    padding: 10px;
    gap: 7px;
    border-top-color: #29374a;
    background: #101927;
}

.chat-input-area input {
    min-width: 0;
    height: 40px;
    padding: 0 11px;
    border-color: #2b394d;
    border-radius: 7px;
    background: #0b1320;
    color: #edf2ff;
    font-size: 0.78rem;
}

.chat-input-area input::placeholder {
    color: #77859a;
}

.chat-input-area button,
.chat-input-area .btn-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    padding: 0;
    border-radius: 7px;
}

.chat-input-area .chat-image-btn {
    color: #8da3ff;
    border: 1px solid #2b394d;
    background: #162133;
}

.chat-input-area .chat-send-btn {
    color: #ffffff;
    background: #3154ff;
}

body.light-theme .chat-window {
    border-color: #dce3ed;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.16);
}

body.light-theme .chat-messages {
    background: rgba(242, 246, 251, 0.82);
}

body.light-theme .chat-msg.msg-admin {
    color: #182235;
    border-color: #dfe5ee;
    background: #ffffff;
}

body.light-theme .chat-input-area {
    border-top-color: #dfe5ee;
    background: #ffffff;
}

body.light-theme .chat-input-area input {
    color: #182235;
    border-color: #dfe5ee;
    background: #f6f8fb;
}

body.light-theme .chat-input-area .chat-image-btn {
    color: #3154ff;
    border-color: #dfe5ee;
    background: #f1f4fa;
}

.admin-chat-container {
    border-color: #2b394d;
    border-radius: 8px;
    background: #0d1624;
}

.admin-chat-sidebar {
    border-right-color: #2b394d;
    background: #111b2a;
}

.admin-chat-box {
    background: #0b1421;
}

.admin-chat-header,
.admin-chat-input {
    border-color: #2b394d;
    background: #111b2a;
}

.admin-chat-input input {
    color: #edf2ff;
    border-color: #2b394d;
    background: #0b1421;
}

body.light-theme .admin-chat-container {
    border-color: #dfe5ee;
    background: #ffffff;
}

body.light-theme .admin-chat-sidebar {
    border-right-color: #dfe5ee;
    background: #f5f7fb;
}

body.light-theme .admin-chat-box,
body.light-theme .admin-chat-header,
body.light-theme .admin-chat-input {
    border-color: #dfe5ee;
    background: #ffffff;
}

body.light-theme .admin-chat-input input {
    color: #182235;
    border-color: #dfe5ee;
    background: #f6f8fb;
}

body:has(#view-admin.active) .chat-widget {
    display: none !important;
}

@media (max-width: 520px) {
    .chat-widget {
        right: 14px;
        bottom: 46px;
    }

    .chat-toggle {
        width: 48px;
        height: 48px;
    }

    .chat-window {
        bottom: 58px;
        width: calc(100vw - 48px);
        max-width: calc(100vw - 48px);
        height: min(500px, calc(100vh - 128px));
    }
}

@keyframes siteWarningTicker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-33.3333%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-warning-track {
        animation: none;
        transform: none;
    }
}

/* Admin-managed product groups */
.admin-products-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.admin-category-manager {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid #2a374a;
    border-radius: 8px;
    background: rgba(11, 20, 33, 0.68);
}

.admin-category-manager-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.admin-category-manager h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--text-main);
    font-size: 0.96rem;
}

.admin-category-manager h4 i {
    color: #6f7cff;
}

.admin-category-manager p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.admin-category-create {
    width: min(100%, 390px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-category-create input {
    min-width: 0;
    flex: 1;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #304057;
    border-radius: 7px;
    outline: none;
    color: var(--text-main);
    background: #0b1421;
    font: inherit;
    font-size: 0.82rem;
}

.admin-category-create input:focus {
    border-color: #5f6fff;
    box-shadow: 0 0 0 3px rgba(95, 111, 255, 0.14);
}

.admin-category-create .btn-primary {
    min-height: 40px;
    white-space: nowrap;
    border-radius: 7px;
}

.admin-category-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px;
}

.admin-category-item {
    min-width: 0;
    min-height: 58px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 8px 9px;
    border: 1px solid #29384c;
    border-radius: 7px;
    background: rgba(21, 32, 49, 0.88);
}

.admin-category-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #8da3ff;
    background: rgba(80, 99, 255, 0.14);
}

.admin-category-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-category-copy strong {
    overflow: hidden;
    color: var(--text-main);
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-category-copy small {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.admin-category-actions {
    display: flex;
    gap: 4px;
}

.admin-category-actions .btn-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    color: #9aacbf;
    background: rgba(255, 255, 255, 0.045);
}

.admin-category-actions .btn-icon:hover {
    color: #ffffff;
    background: rgba(95, 111, 255, 0.2);
}

.admin-category-actions .btn-icon.danger:hover {
    color: #ff8f9b;
    background: rgba(239, 68, 68, 0.14);
}

.admin-product-category-select,
#product-category {
    width: 100%;
    min-width: 128px;
    min-height: 38px;
    padding: 8px 30px 8px 10px;
    border: 1px solid #304057;
    border-radius: 7px;
    outline: none;
    color: var(--text-main);
    background: #111c2b;
    font: inherit;
    font-size: 0.78rem;
}

.admin-product-category-select:focus,
#product-category:focus {
    border-color: #5f6fff;
    box-shadow: 0 0 0 3px rgba(95, 111, 255, 0.12);
}

.product-category-help {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.74rem;
}

.product-category-tabs {
    max-width: 100%;
    flex-wrap: wrap;
}

body.light-theme .admin-category-manager {
    border-color: #dce3ed;
    background: #f8fafe;
}

body.light-theme .admin-category-create input,
body.light-theme .admin-product-category-select,
body.light-theme #product-category {
    color: #182235;
    border-color: #d7dfeb;
    background: #ffffff;
}

body.light-theme .admin-category-item {
    border-color: #dfe5ee;
    background: #ffffff;
}

body.light-theme .admin-category-actions .btn-icon {
    color: #68778b;
    background: #f1f4f9;
}

@media (max-width: 780px) {
    .admin-products-heading,
    .admin-category-manager-head {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-products-heading .btn-primary,
    .admin-category-create {
        width: 100%;
    }

    .admin-category-list {
        grid-template-columns: 1fr;
    }

    .admin-product-category-select {
        max-width: 100%;
    }
}

@media (max-width: 420px) {
    .admin-category-create {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-category-create .btn-primary {
        width: 100%;
    }
}

/* Mobile layout pass: compact, readable and free of clipped actions. */
@media (max-width: 600px) {
    .glass-header {
        min-height: 0 !important;
    }

    .header-container {
        width: 100% !important;
        min-height: 0 !important;
        padding: 7px 12px 8px !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }

    .header-container .logo,
    .header-container .site-img-logo {
        width: 156px !important;
        height: 46px !important;
        max-width: 156px !important;
        flex: 0 0 156px;
    }

    .header-actions,
    body:not(.light-theme) .header-actions {
        order: 2;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        padding: 3px !important;
        display: flex !important;
        align-items: center;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        gap: 5px !important;
        overflow-x: auto !important;
        overscroll-behavior-x: contain;
        border: 1px solid #dfe5ee;
        border-radius: 8px;
        background: #f5f7fb;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    body:not(.light-theme) .header-actions {
        border-color: #28364a;
        background: #111925;
    }

    .header-actions::-webkit-scrollbar {
        display: none;
    }

    .header-actions > a,
    .header-actions > button {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .header-actions #nav-notifications:not(.hidden),
    .header-actions #nav-user-1:not(.hidden),
    .header-actions #nav-otp:not(.hidden),
    .header-actions #nav-deposit:not(.hidden),
    .header-actions #nav-admin:not(.hidden),
    .header-actions #nav-user-2:not(.hidden),
    .header-actions #theme-toggle-btn,
    .header-actions .header-cart-btn {
        display: inline-flex !important;
    }

    #nav-notifications,
    #nav-user-1,
    #nav-otp,
    #nav-admin,
    #nav-user-2,
    #theme-toggle-btn,
    .header-cart-btn {
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 !important;
        justify-content: center;
        border-radius: 7px !important;
        font-size: 0 !important;
    }

    #nav-user-1 i,
    #nav-otp i,
    #nav-user-2::before {
        margin: 0 !important;
        font-size: 12px !important;
    }

    #nav-user-2::before {
        content: "\f2f5";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
    }

    #nav-deposit {
        min-width: 104px !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 10px !important;
        justify-content: center;
        border-radius: 7px !important;
        font-size: 11px !important;
        white-space: nowrap;
    }

    #nav-deposit i {
        margin-right: 6px;
        font-size: 11px;
    }

    body.light-theme main.container,
    body:not(.light-theme) main.container {
        padding: 12px 10px 22px !important;
    }

    #view-home.active {
        display: block !important;
    }

    .home-layout {
        display: block;
    }

    .hero {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 14px 0 4px !important;
        display: flex !important;
        flex-direction: column;
        gap: 0;
        overflow: hidden !important;
    }

    .hero-content {
        width: 100%;
        max-width: none;
        text-align: center;
    }

    .hero-heading-kicker {
        font-size: 10px !important;
    }

    .hero-content h1,
    .hero-heading-kicker,
    #hero-typing-text.hero-feature-title,
    body.light-theme #hero-typing-text.hero-feature-title {
        width: 100% !important;
        max-width: 100% !important;
    }

    #hero-typing-text.hero-feature-title,
    body.light-theme #hero-typing-text.hero-feature-title {
        min-height: 56px !important;
        font-size: 24px !important;
        line-height: 1.22 !important;
    }

    #hero-typing-text.hero-feature-title::after,
    body.light-theme #hero-typing-text.hero-feature-title::after {
        height: 25px !important;
    }

    .hero-visual {
        width: min(100%, 330px) !important;
        height: 252px !important;
        margin: 0 auto;
        overflow: visible;
    }

    .hero-visual::before {
        width: 244px !important;
        height: 224px !important;
    }

    .hero-bag-image {
        width: 205px !important;
        height: 205px !important;
    }

    .app-bubble.hero-brand-bubble {
        width: 36px !important;
        height: 36px !important;
        padding: 5px;
        border-radius: 7px;
    }

    .bubble-netflix {
        left: 9%;
        top: 22%;
    }

    .bubble-spotify {
        right: 10%;
        top: 18%;
    }

    .bubble-youtube {
        left: 2%;
        top: 44%;
    }

    .bubble-canva {
        left: 4%;
        bottom: 10%;
    }

    .bubble-ai {
        right: 4%;
        bottom: 10%;
    }

    .bubble-office {
        right: 2%;
        top: 44%;
    }

    .home-sidebar {
        width: 100%;
        height: auto !important;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    

    

    

    

    

    

    .popular-services-card {
        width: 100%;
        height: auto !important;
        min-height: 0;
        padding: 13px !important;
    }

    .home-popular-item {
        min-height: 47px;
        grid-template-columns: 34px minmax(0, 1fr) auto;
        gap: 8px;
    }

    .home-popular-item img {
        width: 31px;
        height: 31px;
    }

    

    
    .home-popular-price {
        font-size: 8px;
    }

    .service-discovery-row {
        height: auto !important;
        margin-top: 10px;
        display: block !important;
    }

    .otp-spotlight {
        min-height: 102px;
    }

    .products-section {
        margin-top: 12px !important;
        padding: 15px 12px !important;
        border-radius: 8px !important;
    }

    .home-section-bar {
        align-items: center;
        gap: 8px;
    }

    .home-section-bar h2 {
        font-size: 17px;
    }

    .home-section-bar p {
        display: none;
    }

    .home-section-bar > button {
        min-height: 36px;
        padding: 0 10px;
        font-size: 9px;
    }

    .product-search-bar {
        gap: 10px;
        padding: 12px 0 !important;
    }

    .product-category-tabs {
        gap: 6px;
    }

    .product-category-btn {
        min-height: 36px;
        padding: 0 9px;
        font-size: 9px;
    }

    .product-utility-controls {
        gap: 8px;
    }

    .product-grid {
        grid-template-columns: 1fr !important;
        gap: 9px !important;
    }

    .product-card,
    .product-card:nth-child(n+6) {
        width: 100%;
        height: 154px !important;
        min-height: 154px !important;
        display: grid !important;
        grid-template-columns: 108px minmax(0, 1fr);
        overflow: hidden;
    }

    .product-card .pc-banner {
        width: 108px;
        height: 154px !important;
        min-height: 154px;
        grid-column: 1;
        grid-row: 1;
        border-right: 1px solid rgba(148, 163, 184, 0.16);
    }

    .product-card .pc-banner img,
    .product-card .pc-banner-placeholder {
        width: 82px !important;
        height: 82px !important;
        padding: 7px;
        border-radius: 12px;
    }

    .pc-stock-badge {
        top: 7px;
        right: 7px;
        padding: 4px 6px;
        font-size: 7px;
    }

    .product-card .pc-body {
        width: 100%;
        height: 154px !important;
        min-width: 0;
        grid-column: 2;
        grid-row: 1;
        padding: 11px 10px !important;
    }

    .pc-name {
        min-height: 0;
        max-height: 35px;
        display: -webkit-box;
        overflow: hidden;
        font-size: 12px !important;
        line-height: 1.4 !important;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .pc-duration {
        margin-top: 6px !important;
        font-size: 8px !important;
    }

    .pc-trust-row {
        margin-top: 6px;
        display: flex !important;
    }

    .pc-trust-pill {
        font-size: 6px;
    }

    .pc-trust-pill:nth-child(n+2) {
        display: none;
    }

    .pc-price {
        left: 10px !important;
        bottom: 13px !important;
        font-size: 12px !important;
    }

    .pc-btn {
        right: 9px !important;
        bottom: 9px !important;
        width: 84px !important;
        height: 34px !important;
        min-height: 34px !important;
        padding: 0 8px !important;
        gap: 4px;
        font-size: 8px !important;
    }

    .pc-btn i {
        margin: 0 !important;
        font-size: 8px !important;
    }

    .admin-tabs {
        width: 100%;
        margin-bottom: 14px;
        padding: 7px !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        border-radius: 8px !important;
        -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
        mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
    }

    .admin-tabs::-webkit-scrollbar {
        display: none;
    }

    .admin-tab-btn {
        min-width: 98px !important;
        min-height: 40px;
        padding: 0 10px !important;
        justify-content: center;
        scroll-snap-align: start;
        border-radius: 7px !important;
        font-size: 10px;
    }

    #view-admin .dashboard-content {
        padding: 14px !important;
        border-radius: 8px !important;
    }

    .admin-category-manager {
        padding: 12px;
    }

    .admin-category-manager-head {
        gap: 12px;
        margin-bottom: 11px;
    }

    .admin-category-create {
        width: 100%;
    }

    .admin-category-list {
        width: 100%;
        padding-bottom: 4px;
        display: flex;
        gap: 7px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .admin-category-list::-webkit-scrollbar {
        display: none;
    }

    .admin-category-item {
        min-width: 226px;
        flex: 0 0 226px;
        scroll-snap-align: start;
    }

    #admin-products-filter {
        padding: 9px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    #admin-products-filter .admin-filter-input-wrap {
        width: 100%;
        min-width: 0;
        grid-column: 1 / -1;
    }

    #admin-products-filter select {
        width: 100%;
        min-width: 0;
        padding: 9px 7px;
        font-size: 10px;
    }

    #admin-products-list {
        display: grid !important;
        gap: 9px;
    }

    #view-admin #admin-products-list tr {
        width: 100%;
        margin: 0;
        padding: 11px;
        display: grid !important;
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 6px 10px;
        border-radius: 8px;
    }

    #view-admin #admin-products-list td {
        width: auto !important;
        min-width: 0;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    #view-admin #admin-products-list td:nth-child(1) {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    #view-admin #admin-products-list td:nth-child(1) img {
        width: 54px !important;
        height: 54px !important;
        border-radius: 8px !important;
    }

    #view-admin #admin-products-list td:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        font-size: 13px;
    }

    #view-admin #admin-products-list td:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }

    #view-admin #admin-products-list td:nth-child(4),
    #view-admin #admin-products-list td:nth-child(5) {
        grid-column: 1 / -1;
        color: var(--text-muted);
        font-size: 10px;
    }

    #view-admin #admin-products-list td:nth-child(4)::before {
        content: "Thời hạn: ";
        font-weight: 700;
    }

    #view-admin #admin-products-list td:nth-child(5)::before {
        content: "Bảo hành: ";
        font-weight: 700;
    }

    #view-admin #admin-products-list td:nth-child(6),
    #view-admin #admin-products-list td:nth-child(7) {
        grid-row: 5;
        padding-top: 7px !important;
        border-top: 1px solid rgba(148, 163, 184, 0.14) !important;
        font-size: 12px;
    }

    #view-admin #admin-products-list td:nth-child(6) {
        grid-column: 1 / -1;
        overflow-wrap: normal;
        white-space: nowrap;
    }

    #view-admin #admin-products-list td:nth-child(7) {
        grid-column: 2;
        justify-self: end;
        text-align: right;
    }

    #view-admin #admin-products-list td:nth-child(7)::before {
        content: "Kho: ";
        color: var(--text-muted);
        font-weight: 500;
    }

    #view-admin #admin-products-list td:nth-child(8) {
        display: none;
    }

    #view-admin #admin-products-list td:nth-child(9) {
        grid-column: 1 / -1;
        grid-row: 6;
        padding-top: 5px !important;
        display: flex;
        gap: 7px;
    }

    #view-admin #admin-products-list td:nth-child(9) button {
        min-height: 36px;
        margin: 0 !important;
        flex: 1;
        justify-content: center;
        border-radius: 7px !important;
    }

    .admin-product-category-select {
        width: 100%;
        min-width: 0;
        height: 34px;
        min-height: 34px;
        padding: 6px 28px 6px 9px;
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .header-container .logo,
    .header-container .site-img-logo {
        width: 142px !important;
        height: 43px !important;
    }

    .product-card,
    .product-card:nth-child(n+6) {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .product-card .pc-banner {
        width: 96px;
    }

    .product-card .pc-banner img,
    .product-card .pc-banner-placeholder {
        width: 72px !important;
        height: 72px !important;
    }

    .pc-btn {
        width: 78px !important;
        font-size: 7px !important;
    }
}

/* Final mobile navigation priority */
@media (max-width: 600px) {
    .glass-header {
        position: sticky !important;
        top: 0;
        z-index: 2000;
        min-height: 0 !important;
    }

    .header-container {
        position: relative !important;
        min-height: 58px !important;
        padding: 6px 10px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 42px !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .header-container .logo,
    .header-container .site-img-logo {
        width: 154px !important;
        height: 46px !important;
    }

    .mobile-utility-toggle {
        grid-column: 2;
        display: inline-flex !important;
    }

    .header-actions,
    body:not(.light-theme) .header-actions {
        position: absolute !important;
        z-index: 20;
        top: calc(100% + 6px) !important;
        left: 0 !important;
        right: 0 !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 8px !important;
        display: none !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 6px !important;
        overflow: visible !important;
        transform: none !important;
    }

    .header-actions.mobile-open,
    body:not(.light-theme) .header-actions.mobile-open {
        display: grid !important;
    }

    .header-actions #nav-notifications:not(.hidden),
    .header-actions #nav-user-1:not(.hidden),
    .header-actions #nav-otp:not(.hidden),
    .header-actions #nav-deposit:not(.hidden),
    .header-actions #nav-admin:not(.hidden),
    .header-actions #nav-user-2:not(.hidden),
    .header-actions #theme-toggle-btn,
    .header-actions .header-cart-btn {
        width: 100% !important;
        min-width: 0 !important;
        height: 58px !important;
        min-height: 58px !important;
        padding: 7px 4px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
        font-size: 0 !important;
    }

    .header-actions #nav-deposit:not(.hidden) {
        font-size: 9px !important;
    }

    #hero-typing-text.hero-feature-title,
    body.light-theme #hero-typing-text.hero-feature-title {
        min-height: 50px !important;
        font-size: 22px !important;
    }

    .hero-visual {
        height: 210px !important;
    }

    .hero-visual::before {
        width: 205px !important;
        height: 188px !important;
    }

    .hero-bag-image {
        width: 170px !important;
        height: 170px !important;
    }

    .app-bubble.hero-brand-bubble {
        width: 32px !important;
        height: 32px !important;
        padding: 4px !important;
    }

    .admin-mobile-tab-select {
        display: flex !important;
    }

    .admin-tabs {
        display: none !important;
    }

    .site-warning-toggle {
        position: absolute !important;
        top: 0;
        right: 0;
        display: inline-flex !important;
    }

    .site-warning-ticker.is-collapsed {
        left: 8px !important;
        right: auto !important;
        bottom: 8px !important;
        width: 40px !important;
        height: 40px !important;
        border: 1px solid rgba(148, 163, 184, 0.3) !important;
        border-radius: 8px !important;
    }

    .site-warning-ticker.is-collapsed .site-warning-track {
        display: none !important;
    }

    .site-warning-ticker.is-collapsed .site-warning-toggle {
        position: static !important;
        width: 40px !important;
        height: 40px !important;
        flex: 0 0 40px !important;
        border: 0 !important;
    }

    body.warning-collapsed {
        padding-bottom: 0 !important;
    }
}

/* Final responsive guard: keep mobile actions readable and prevent late-rule collisions. */
@media (max-width: 600px) {
    .header-actions #nav-guest-1:not(.hidden),
    .header-actions #nav-guest-2:not(.hidden) {
        width: 100% !important;
        min-width: 0 !important;
        height: 58px !important;
        min-height: 58px !important;
        padding: 0 4px !important;
        display: inline-flex !important;
        font-size: 10px !important;
    }

    .product-card,
    .product-card:nth-child(n+6),
    .product-card .pc-banner,
    .product-card .pc-body {
        height: 164px !important;
        min-height: 164px !important;
    }

    .pc-price {
        bottom: 17px !important;
    }

    .pc-btn {
        right: 8px !important;
        bottom: 8px !important;
        width: 94px !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 8px !important;
        font-size: 9px !important;
    }

    .pc-btn i {
        margin: 0 !important;
        font-size: 9px !important;
    }

    .chat-widget {
        right: 8px !important;
        bottom: 44px !important;
    }

    body.warning-collapsed .chat-widget {
        bottom: 10px !important;
    }

    .chat-toggle {
        width: 44px !important;
        height: 44px !important;
        font-size: 1rem !important;
    }

    #view-admin .dashboard-header {
        margin-bottom: 12px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 44px !important;
        align-items: center !important;
        gap: 8px !important;
    }

    #view-admin .dashboard-header h2 {
        font-size: 21px !important;
        line-height: 1.2;
    }

    #view-admin .dashboard-header p {
        margin-top: 4px;
        font-size: 11px;
    }

    #view-admin .dashboard-header > button {
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0 !important;
        font-size: 0 !important;
    }

    #view-admin .dashboard-header > button i {
        margin: 0 !important;
        font-size: 15px !important;
    }

    #view-admin .admin-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    #view-admin .admin-stat-card {
        min-width: 0;
        min-height: 78px;
        padding: 10px !important;
    }

    #view-admin .admin-stat-value {
        overflow-wrap: anywhere;
        font-size: 15px !important;
    }

    #view-admin .admin-stat-label {
        font-size: 9px !important;
        line-height: 1.3;
    }

    #admin-tab-overview .dashboard-content > div {
        height: 220px !important;
    }

    #view-admin #admin-products-list td:nth-child(6) {
        grid-column: 1 !important;
    }

    #view-admin #admin-products-list td:nth-child(7) {
        grid-column: 2 !important;
    }

    .inventory-import-grid {
        grid-template-columns: 1fr !important;
    }

    .inventory-status-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .inventory-file-button,
    #product-inventory-mode {
        min-height: 44px;
    }

    #product-inventory-text {
        min-height: 140px;
    }

    #product-modal > .glass-card {
        width: calc(100% - 16px) !important;
        max-height: calc(100vh - 16px) !important;
        padding: 18px !important;
    }

    #product-modal-title {
        padding-right: 44px;
        font-size: 20px;
    }

    #product-modal input,
    #product-modal select,
    #product-modal textarea {
        font-size: 16px !important;
    }
}

@media (max-width: 360px) {
    .pc-btn {
        width: 86px !important;
        height: 42px !important;
        font-size: 8px !important;
    }

    .pc-price {
        font-size: 11px !important;
    }
}

/* Final spacing guard for fixed mobile utilities. */
@media (max-width: 700px) {
    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
    }

    .site-warning-ticker {
        bottom: calc(72px + env(safe-area-inset-bottom)) !important;
    }

    .site-warning-ticker.is-collapsed {
        bottom: calc(76px + env(safe-area-inset-bottom)) !important;
    }

    .chat-widget,
    body.warning-collapsed .chat-widget {
        bottom: calc(82px + env(safe-area-inset-bottom)) !important;
    }

    body:not(.warning-collapsed) .chat-widget {
        bottom: calc(112px + env(safe-area-inset-bottom)) !important;
    }

    body[data-active-view="admin"],
    body[data-active-view="login"],
    body[data-active-view="register"],
    body[data-active-view="forgot"],
    body[data-active-view="checkout"],
    body[data-active-view="deposit"],
    body[data-active-view="maintenance"] {
        padding-bottom: 0 !important;
    }

    body[data-active-view="admin"] .site-warning-ticker,
    body[data-active-view="login"] .site-warning-ticker,
    body[data-active-view="register"] .site-warning-ticker,
    body[data-active-view="forgot"] .site-warning-ticker,
    body[data-active-view="checkout"] .site-warning-ticker,
    body[data-active-view="deposit"] .site-warning-ticker,
    body[data-active-view="maintenance"] .site-warning-ticker {
        bottom: 0 !important;
    }
}

/* Admin customer login history */
.login-history-overlay {
    position: fixed;
    inset: 0;
    z-index: 3200;
    padding: 24px;
    display: grid;
    place-items: center;
    background: rgba(2, 8, 23, .74);
    backdrop-filter: blur(10px);
}

.login-history-overlay.hidden {
    display: none !important;
}

body.login-history-open {
    overflow: hidden;
}

.login-history-modal {
    width: min(920px, 100%);
    max-height: min(850px, calc(100vh - 48px));
    padding: 22px;
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    gap: 14px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-color);
    background: var(--card-bg);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .38);
}

.login-history-header,
.login-history-footer,
.login-history-item-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.login-history-kicker {
    color: #16a394;
    font-size: 10px;
    font-weight: 900;
}

.login-history-header h3 {
    margin: 4px 0;
    font-size: 23px;
}

.login-history-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
}

.login-history-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.login-summary-item {
    min-width: 0;
    min-height: 68px;
    padding: 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: rgba(15, 23, 42, .18);
}

.login-summary-item > i {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: #5370ff;
    background: rgba(83, 112, 255, .13);
}

.login-summary-item:nth-child(2) > i {
    color: #0f9f6e;
    background: rgba(15, 159, 110, .13);
}

.login-summary-item:nth-child(3) > i {
    color: #d97706;
    background: rgba(217, 119, 6, .13);
}

.login-summary-item:nth-child(4) > i {
    color: #c026d3;
    background: rgba(192, 38, 211, .11);
}

.login-summary-item span {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.login-summary-item strong {
    font-size: 19px;
}

.login-summary-item small {
    color: var(--text-muted);
    font-size: 10px;
}

.login-summary-latest {
    grid-column: 1 / -1;
    color: var(--text-muted);
    font-size: 11px;
}

.login-history-note {
    padding: 9px 11px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(245, 158, 11, .24);
    border-radius: 7px;
    color: #d28a16;
    background: rgba(245, 158, 11, .08);
    font-size: 11px;
    line-height: 1.45;
}

.login-history-list {
    min-height: 0;
    padding-right: 3px;
    display: grid;
    align-content: start;
    gap: 8px;
    overflow-y: auto;
}

.login-history-item {
    min-width: 0;
    padding: 12px;
    display: grid;
    grid-template-columns: 42px minmax(220px, 1fr) minmax(155px, .55fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--card-border);
    border-left: 3px solid transparent;
    border-radius: 8px;
    background: rgba(15, 23, 42, .16);
}

.login-history-item.is-latest {
    border-left-color: #18a999;
}

.login-history-item-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #5f75ff;
    background: rgba(83, 112, 255, .13);
}

.login-history-main {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.login-history-item-heading {
    justify-content: flex-start;
}

.login-history-item-heading strong {
    font-size: 13px;
}

.login-latest-badge,
.login-local-badge,
.login-source-badge {
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
}

.login-latest-badge {
    color: #0f8f68;
    background: rgba(16, 185, 129, .13);
}

.login-local-badge {
    color: #b76a00;
    background: rgba(245, 158, 11, .13);
}

.login-source-badge {
    color: #5367f0;
    background: rgba(83, 103, 240, .12);
}

.login-device,
.login-location {
    min-width: 0;
    overflow: hidden;
    color: var(--text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}

.login-location {
    display: flex;
    align-items: center;
    gap: 5px;
}

.login-location > i {
    color: #e34b70;
}

.login-location small {
    margin-left: 4px;
    color: var(--text-muted);
    opacity: .8;
}

.login-history-ip {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: center;
    gap: 3px 6px;
}

.login-history-ip small {
    grid-column: 1 / -1;
    color: var(--text-muted);
    font-size: 9px;
}

.login-history-ip code {
    overflow: hidden;
    color: var(--text-color);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}

.login-history-ip .btn-icon {
    width: 32px;
    min-width: 32px;
    height: 32px;
}

.login-history-loading,
.login-history-empty {
    min-height: 190px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: var(--text-muted);
    text-align: center;
}

.login-history-empty > i {
    color: #6075ff;
    font-size: 26px;
}

.login-history-footer {
    justify-content: flex-end;
}

.admin-login-history-btn {
    border-color: rgba(80, 105, 245, .42);
    color: #7182ff;
}

body.light-theme .login-history-modal {
    background: #fff;
}

body.light-theme .login-summary-item,
body.light-theme .login-history-item {
    background: #f8fafc;
}

@media (max-width: 700px) {
    .login-history-overlay {
        padding: 8px;
        align-items: end;
    }

    .login-history-modal {
        width: 100%;
        max-height: calc(100dvh - 16px);
        padding: 16px 12px;
    }

    .login-history-header h3 {
        font-size: 19px;
    }

    .login-history-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .login-summary-latest {
        font-size: 10px;
    }

    .login-history-item {
        grid-template-columns: 38px minmax(0, 1fr) auto;
        gap: 9px;
    }

    .login-history-item-icon {
        width: 36px;
        height: 36px;
    }

    .login-history-main {
        grid-column: 2 / -1;
    }

    .login-history-ip {
        grid-column: 1 / 3;
    }

    .login-source-badge {
        grid-column: 3;
        justify-self: end;
    }

    .login-location {
        align-items: flex-start;
        flex-wrap: wrap;
        white-space: normal;
    }

    .login-history-footer > button {
        width: 100%;
        min-height: 44px;
    }
}

/* Ambient digital network and pointer-aware product edges */
#ambient-network-canvas {
    position: fixed;
    z-index: 0;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    opacity: .88;
}

#app {
    position: relative;
    z-index: 1;
}

body.light-theme #ambient-network-canvas {
    opacity: .72;
}

.product-card:not(.product-card-skeleton) {
    --edge-x: 50%;
    --edge-y: 0px;
    position: relative;
    isolation: isolate;
}

.product-card:not(.product-card-skeleton)::after {
    content: "";
    position: absolute;
    z-index: 8;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(
        115px circle at var(--edge-x) var(--edge-y),
        rgba(39, 224, 209, .95),
        rgba(82, 103, 255, .55) 38%,
        transparent 72%
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: opacity 180ms ease;
}

.product-card:not(.product-card-skeleton).is-edge-active::after {
    opacity: 1;
}

body.light-theme .product-card:not(.product-card-skeleton)::after {
    background: radial-gradient(
        115px circle at var(--edge-x) var(--edge-y),
        rgba(7, 148, 160, .88),
        rgba(49, 84, 255, .48) 38%,
        transparent 72%
    );
}

@media (max-width: 700px), (pointer: coarse) {
    #ambient-network-canvas {
        opacity: .48;
    }

    body.light-theme #ambient-network-canvas {
        opacity: .38;
    }

    .product-card:not(.product-card-skeleton)::after {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #ambient-network-canvas {
        opacity: .34;
    }

    .product-card:not(.product-card-skeleton)::after {
        display: none;
    }
}

/* Responsive brand motion */
.logo {
    --logo-rotate-x: 0deg;
    --logo-rotate-y: 0deg;
    --logo-glint-x: 74%;
    position: relative;
    overflow: visible !important;
    perspective: 720px;
}

.logo .site-img-logo {
    transform: rotateX(var(--logo-rotate-x)) rotateY(var(--logo-rotate-y)) translateZ(0);
    transform-origin: center;
    transition: transform 180ms cubic-bezier(.2, .8, .2, 1), filter 220ms ease;
    will-change: transform;
}

.logo.is-logo-active .site-img-logo {
    filter: drop-shadow(0 7px 12px rgba(34, 211, 238, .16));
}

.logo::after {
    content: "";
    position: absolute;
    z-index: 3;
    top: 8px;
    left: var(--logo-glint-x);
    width: 5px;
    height: 5px;
    border-radius: 1px;
    pointer-events: none;
    opacity: 0;
    background: #40d9d2;
    box-shadow:
        0 -7px 0 -2px rgba(64, 217, 210, .75),
        0 7px 0 -2px rgba(64, 217, 210, .75),
        -7px 0 0 -2px rgba(99, 102, 241, .72),
        7px 0 0 -2px rgba(99, 102, 241, .72);
    transform: translateX(-50%) rotate(45deg) scale(.2);
    animation: logoGlint 5.6s ease-in-out infinite;
}

.logo.is-logo-active::after {
    animation-duration: 2.8s;
}

@keyframes logoGlint {
    0%, 78%, 100% {
        opacity: 0;
        transform: translateX(-50%) rotate(45deg) scale(.2);
    }
    84% {
        opacity: .9;
        transform: translateX(-50%) rotate(45deg) scale(1);
    }
    90% {
        opacity: 0;
        transform: translateX(-50%) rotate(45deg) scale(1.5);
    }
}

/* Physical feedback for actionable controls */
button.motion-pressing,
.btn-primary.motion-pressing,
.btn-outline.motion-pressing,
.btn-large.motion-pressing,
.order-account-action.motion-pressing {
    transform: translateY(2px) scale(.965) !important;
    filter: brightness(.94);
    transition-duration: 70ms !important;
}

button.motion-released,
.btn-primary.motion-released,
.btn-outline.motion-released,
.btn-large.motion-released,
.order-account-action.motion-released {
    animation: buttonRelease 250ms cubic-bezier(.2, .8, .2, 1);
}

.motion-released > i,
.motion-released i:first-child {
    animation: buttonIconPop 250ms cubic-bezier(.2, .8, .2, 1);
}

button.copy-confirmed {
    color: #fff !important;
    border-color: #10a775 !important;
    background: #10a775 !important;
    box-shadow: 0 6px 18px rgba(16, 167, 117, .25) !important;
}

@keyframes buttonRelease {
    0% { transform: translateY(2px) scale(.965); }
    60% { transform: translateY(-1px) scale(1.018); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes buttonIconPop {
    0% { transform: scale(.76); }
    65% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Delivered order progression */
.order-timeline.is-delivered .order-timeline-step.complete .order-timeline-dot {
    animation: timelineStepUnlock 520ms cubic-bezier(.2, .8, .2, 1) both;
}

.order-timeline.is-delivered .order-timeline-step.complete:nth-child(1) .order-timeline-dot {
    animation-delay: 80ms;
}

.order-timeline.is-delivered .order-timeline-step.complete:nth-child(2) .order-timeline-dot {
    animation-delay: 210ms;
}

.order-timeline.is-delivered .order-timeline-step.complete:nth-child(3) .order-timeline-dot {
    animation-delay: 340ms;
}

.order-timeline.is-delivered .order-timeline-step.complete:not(:last-child)::after {
    transform-origin: left center;
    animation: timelineConnectorFill 500ms ease-out both;
}

.order-timeline.is-delivered .order-timeline-step.complete:nth-child(2)::after {
    animation-delay: 180ms;
}

.account-delivery-overlay.has-delivered-accounts .delivered-account-card {
    animation: accountUnlockIn 440ms cubic-bezier(.2, .75, .2, 1) both;
}

.account-delivery-overlay.has-delivered-accounts .delivered-account-card:nth-child(2) {
    animation-delay: 70ms;
}

.account-delivery-overlay.has-delivered-accounts .delivered-account-card:nth-child(3) {
    animation-delay: 140ms;
}

.order-account-action.has-account {
    animation: accountReadyPulse 650ms cubic-bezier(.2, .75, .2, 1) both;
}

.order-account-action.has-account > i {
    animation: accountKeyUnlock 620ms cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes timelineStepUnlock {
    0% {
        transform: scale(.72);
        box-shadow: 0 0 0 0 rgba(16, 145, 107, .28);
    }
    65% {
        transform: scale(1.12);
        box-shadow: 0 0 0 7px rgba(16, 145, 107, .08);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 145, 107, 0);
    }
}

@keyframes timelineConnectorFill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes accountUnlockIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes accountReadyPulse {
    0% { box-shadow: 0 0 0 0 rgba(86, 88, 255, 0); }
    45% { box-shadow: 0 0 0 6px rgba(86, 88, 255, .12); }
    100% { box-shadow: 0 0 0 0 rgba(86, 88, 255, 0); }
}

@keyframes accountKeyUnlock {
    0% { transform: rotate(-18deg) scale(.8); }
    55% { transform: rotate(10deg) scale(1.16); }
    100% { transform: rotate(0) scale(1); }
}

@media (max-width: 700px) {
    .logo::after {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo::after,
    .logo .site-img-logo,
    button.motion-released,
    .motion-released > i,
    .motion-released i:first-child,
    .order-timeline.is-delivered .order-timeline-step.complete .order-timeline-dot,
    .order-timeline.is-delivered .order-timeline-step.complete::after,
    .account-delivery-overlay.has-delivered-accounts .delivered-account-card,
    .order-account-action.has-account,
    .order-account-action.has-account > i {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        filter: none !important;
    }
}

/* Keep mobile order controls clear of the anti-fraud ticker. */
body.delivery-modal-open .site-warning-ticker,
body.login-history-open .site-warning-ticker {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.account-delivery-overlay {
    z-index: 11000;
}

.login-history-overlay {
    z-index: 11010;
}

@media (max-width: 700px) {
    body[data-active-view="home"]:not(.warning-collapsed),
    body[data-active-view="dashboard"]:not(.warning-collapsed),
    body[data-active-view="otp"]:not(.warning-collapsed),
    body[data-active-view="notifications"]:not(.warning-collapsed) {
        padding-bottom: calc(112px + env(safe-area-inset-bottom)) !important;
    }

    body[data-active-view="home"].warning-collapsed,
    body[data-active-view="dashboard"].warning-collapsed,
    body[data-active-view="otp"].warning-collapsed,
    body[data-active-view="notifications"].warning-collapsed {
        padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
    }

    .account-delivery-overlay {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }

    .account-delivery-modal {
        max-height: calc(100dvh - 16px - env(safe-area-inset-bottom));
    }
}

/* Compact desktop utility menu with the signed-in email kept readable. */
@media (min-width: 769px) {
    .header-actions,
    body:not(.light-theme) .header-actions {
        justify-content: flex-end !important;
        gap: 5px !important;
        overflow: visible !important;
        scrollbar-width: none;
    }

    .header-actions > a,
    .header-actions > button {
        flex: 0 0 auto;
    }

    #nav-user-1 {
        width: auto !important;
        min-width: 0 !important;
        max-width: 150px;
        padding-right: 12px !important;
        padding-left: 12px !important;
        font-size: 11px !important;
    }

    #nav-user-email {
        display: block !important;
        min-width: 0;
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (min-width: 769px) and (max-width: 1450px) {
    .header-actions,
    body:not(.light-theme) .header-actions {
        gap: 4px !important;
    }

    #nav-user-1 {
        max-width: 132px;
        padding-right: 9px !important;
        padding-left: 9px !important;
    }

    #nav-user-email {
        max-width: 92px;
    }
}

/* Notification surfaces */
.notification-card {
    padding: 15px;
    border: 1px solid var(--card-border);
    border-left-width: 4px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
}

.notification-card-info {
    border-left-color: #38bdf8;
}

.notification-card-success {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.notification-card-warning {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.notification-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.notification-card-title {
    color: var(--text-main);
    font-size: 1.02rem;
    line-height: 1.35;
}

.notification-card-date {
    margin-left: auto;
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.notification-card-content {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.55;
}

.admin-notification-row {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
}

.admin-notification-title {
    color: var(--text-main);
}

.admin-notification-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Light theme contrast for notifications and every admin workspace. */
body.light-theme #view-notifications .notification-card {
    color: #172033;
    border-color: #d8e1ee;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

body.light-theme #view-notifications .notification-card-info {
    border-left-color: #0284c7;
    background: #f7fbff;
}

body.light-theme #view-notifications .notification-card-success {
    border-left-color: #059669;
    background: #f2fbf7;
}

body.light-theme #view-notifications .notification-card-warning {
    border-left-color: #d97706;
    background: #fff9ed;
}

body.light-theme #view-notifications .notification-card-title,
body.light-theme #view-notifications .notification-card-content {
    color: #172033;
}

body.light-theme #view-notifications .notification-card-date {
    color: #64748b;
}

body.light-theme #view-admin .admin-tabs,
body.light-theme #view-admin .admin-stat-card,
body.light-theme #view-admin .dashboard-content {
    color: #172033;
    border-color: #d8e1ee;
    background: #ffffff;
}

body.light-theme #view-admin .admin-filter-bar,
body.light-theme #view-admin [style*="background:rgba(0,0,0"],
body.light-theme #view-admin [style*="background: rgba(0,0,0"] {
    border-color: #d8e1ee !important;
    background: #f6f8fb !important;
}

body.light-theme #view-admin .admin-filter-input-wrap,
body.light-theme #view-admin .admin-filter-bar select,
body.light-theme #view-admin input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.light-theme #view-admin textarea,
body.light-theme #view-admin select {
    color: #172033 !important;
    border-color: #cbd6e4 !important;
    background: #ffffff !important;
    color-scheme: light;
}

body.light-theme #view-admin input::placeholder,
body.light-theme #view-admin textarea::placeholder {
    color: #718096 !important;
    opacity: 1;
}

body.light-theme #view-admin select option {
    color: #172033;
    background: #ffffff;
}

body.light-theme #view-admin input:disabled,
body.light-theme #view-admin textarea:disabled,
body.light-theme #view-admin select:disabled {
    color: #64748b !important;
    background: #eef2f7 !important;
    opacity: 1;
}

body.light-theme #view-admin [style*="color:white"]:not(.btn-primary),
body.light-theme #view-admin [style*="color: white"]:not(.btn-primary) {
    color: #172033 !important;
}

body.light-theme #view-admin .admin-filter-input-wrap i,
body.light-theme #view-admin th,
body.light-theme #view-admin .admin-tab-btn:not(.active) {
    color: #526176;
}

body.light-theme #view-admin td {
    color: #172033;
}

body.light-theme #view-admin .admin-notification-row {
    border-color: #d8e1ee;
    background: #f8fafc;
}

@media (max-width: 600px) {
    .notification-card-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .notification-card-date {
        width: 100%;
        margin-left: 30px;
    }

    #hero-typing-text.hero-feature-title,
    body.light-theme #hero-typing-text.hero-feature-title {
        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;
        align-content: center !important;
    }

    #hero-typing-text.hero-feature-title.is-static-title::after,
    body.light-theme #hero-typing-text.hero-feature-title.is-static-title::after {
        content: none !important;
        display: none !important;
    }
}

/* Mobile warning stays visible without covering navigation, chat, or modal actions. */
@media (max-width: 700px) {
    .site-warning-toggle {
        display: none !important;
    }

    .site-warning-ticker,
    .site-warning-ticker.is-collapsed {
        left: 0 !important;
        right: 0 !important;
        bottom: calc(72px + env(safe-area-inset-bottom)) !important;
        width: auto !important;
        height: 32px !important;
        padding: 0 !important;
        border-radius: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: none !important;
    }

    .site-warning-ticker .site-warning-track,
    .site-warning-ticker.is-collapsed .site-warning-track {
        display: flex !important;
        min-width: 300% !important;
        animation: siteWarningTicker 22s linear infinite !important;
    }

    body[data-active-view="home"],
    body[data-active-view="dashboard"],
    body[data-active-view="otp"],
    body[data-active-view="notifications"] {
        padding-bottom: calc(112px + env(safe-area-inset-bottom)) !important;
    }

    body[data-active-view="home"] .chat-widget,
    body[data-active-view="dashboard"] .chat-widget,
    body[data-active-view="otp"] .chat-widget,
    body[data-active-view="notifications"] .chat-widget {
        bottom: calc(112px + env(safe-area-inset-bottom)) !important;
    }

    body[data-active-view="admin"],
    body[data-active-view="login"],
    body[data-active-view="register"],
    body[data-active-view="forgot"],
    body[data-active-view="checkout"],
    body[data-active-view="deposit"],
    body[data-active-view="maintenance"] {
        padding-bottom: calc(40px + env(safe-area-inset-bottom)) !important;
    }

    body[data-active-view="admin"] .site-warning-ticker,
    body[data-active-view="login"] .site-warning-ticker,
    body[data-active-view="register"] .site-warning-ticker,
    body[data-active-view="forgot"] .site-warning-ticker,
    body[data-active-view="checkout"] .site-warning-ticker,
    body[data-active-view="deposit"] .site-warning-ticker,
    body[data-active-view="maintenance"] .site-warning-ticker,
    body.delivery-modal-open .site-warning-ticker,
    body.login-history-open .site-warning-ticker {
        bottom: 0 !important;
        height: calc(32px + env(safe-area-inset-bottom)) !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
    }

    body[data-active-view="login"] .chat-widget,
    body[data-active-view="register"] .chat-widget,
    body[data-active-view="forgot"] .chat-widget,
    body[data-active-view="checkout"] .chat-widget,
    body[data-active-view="deposit"] .chat-widget,
    body[data-active-view="maintenance"] .chat-widget {
        bottom: calc(42px + env(safe-area-inset-bottom)) !important;
    }

    body.delivery-modal-open .site-warning-ticker,
    body.login-history-open .site-warning-ticker {
        z-index: 11120 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: none !important;
    }

    body.delivery-modal-open .account-delivery-overlay,
    body.login-history-open .login-history-overlay {
        padding-bottom: calc(40px + env(safe-area-inset-bottom)) !important;
    }

    body.delivery-modal-open .account-delivery-modal,
    body.login-history-open .login-history-modal {
        max-height: calc(100dvh - 48px - env(safe-area-inset-bottom)) !important;
    }
}

/* OTP catalog: render theo từng đợt để danh sách lớn vẫn cuộn và tìm kiếm mượt. */
.admin-otp-catalog-search {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    padding: 0 11px;
    border: 1px solid var(--card-border);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
}

.admin-otp-catalog-search input {
    flex: 1;
    min-height: 40px;
    border: 0;
    outline: 0;
    color: var(--text-main);
    background: transparent;
}

#admin-otp-app-match-count {
    margin-bottom: 7px;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.admin-otp-app-checkbox-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 6px;
    max-height: 380px;
    overflow-y: auto;
    padding: 2px;
}

.admin-otp-app-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.admin-otp-app-option:hover {
    border-color: rgba(99, 102, 241, 0.34);
    background: rgba(99, 102, 241, 0.1);
}

.admin-otp-app-option input {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    cursor: pointer;
}

.admin-otp-app-option span {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: var(--text-main);
    font-size: 0.83rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-otp-app-option small {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: 0.7rem;
}

#admin-otp-app-load-more {
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

#admin-otp-app-load-more:empty {
    display: none;
}

.otp-list-footer {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 4px 2px;
    color: var(--text-muted);
    font-size: 0.84rem;
    text-align: center;
}

.otp-list-footer .btn-outline {
    width: auto;
    min-width: 150px;
    padding: 8px 14px;
}

.otp-list-footer.is-empty {
    flex-direction: column;
    gap: 5px;
    min-height: 150px;
    border: 1px dashed var(--card-border);
    border-radius: 12px;
}

.otp-list-footer.is-empty i {
    margin-bottom: 4px;
    font-size: 1.5rem;
    color: var(--primary);
}

.otp-list-footer.is-empty strong {
    color: var(--text-main);
}

@media (max-width: 560px) {
    .otp-list-footer:not(.is-empty) {
        flex-direction: column;
    }
}

/* ===== Admin provider API vault ===== */
.provider-vault-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(16, 185, 129, 0.28);
}

.provider-vault-shell::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #10b981, var(--accent), var(--primary));
}

.provider-vault-heading,
.provider-form-heading,
.provider-form-footer,
.provider-list-heading,
.provider-session-bar,
.provider-source-main,
.provider-source-title,
.provider-source-meta,
.provider-source-actions,
.provider-products-title {
    display: flex;
    align-items: center;
}

.provider-vault-heading {
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.provider-vault-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: #34d399;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.provider-vault-heading h3 {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.provider-vault-heading p,
.provider-form-heading p,
.provider-list-heading p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.provider-vault-status {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid var(--card-border);
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.08);
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 750;
}

.provider-vault-status.is-unlocked {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}

.provider-vault-status.is-setup,
.provider-vault-status.is-locked {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

.provider-vault-status.is-unavailable {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.provider-security-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.provider-security-strip span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.06);
    color: var(--text-muted);
    font-size: 0.78rem;
    text-align: center;
}

.provider-security-strip i {
    color: #34d399;
}

.provider-vault-notice,
.provider-vault-auth,
.provider-source-form {
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.42);
}

.provider-vault-notice {
    display: flex;
    gap: 15px;
    padding: 18px;
    border-color: rgba(245, 158, 11, 0.32);
}

.provider-notice-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.14);
    color: #fbbf24;
}

.provider-vault-notice h4,
.provider-source-form h4,
.provider-list-heading h4 {
    margin: 0;
    color: var(--text-main);
}

.provider-vault-notice p {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.provider-vault-notice code {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    font-size: 0.8rem;
}

.provider-vault-notice .provider-notice-small {
    font-size: 0.78rem;
}

.provider-key-generator {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    margin-top: 13px;
}

.provider-key-generator > .btn-outline {
    width: auto;
    border-color: rgba(245, 158, 11, 0.34);
    color: #fbbf24;
}

.provider-generated-key {
    display: grid;
    width: min(100%, 620px);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.provider-generated-key input {
    min-width: 0;
    padding: 9px 11px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-main);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.provider-vault-auth {
    padding: 20px;
}

.provider-auth-copy {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.provider-auth-copy > i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent);
}

.provider-auth-copy div {
    display: flex;
    flex-direction: column;
}

.provider-auth-copy span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.provider-auth-controls {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 10px;
}

.provider-auth-controls input,
.provider-form-grid input,
.provider-form-grid select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    outline: none;
    background: rgba(0, 0, 0, 0.24);
    color: var(--text-main);
    font: inherit;
    font-size: 0.86rem;
}

.provider-auth-controls input:focus,
.provider-form-grid input:focus,
.provider-form-grid select:focus {
    border-color: rgba(0, 240, 255, 0.62);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.08);
}

.provider-form-error {
    min-height: 20px;
    margin: 7px 0 0;
    color: #f87171;
    font-size: 0.8rem;
}

.provider-vault-manager {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.provider-session-bar {
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px 10px 14px;
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.07);
    color: #34d399;
    font-size: 0.8rem;
    font-weight: 700;
}

.provider-session-bar span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.provider-session-bar .btn-outline {
    width: auto;
    padding: 7px 11px;
}

.provider-source-form {
    padding: 18px;
}

.provider-form-heading,
.provider-form-footer,
.provider-list-heading {
    justify-content: space-between;
    gap: 15px;
}

.provider-form-heading .btn-outline,
.provider-list-heading .btn-outline {
    width: auto;
}

.provider-form-grid {
    display: grid;
    grid-template-columns: minmax(180px, 0.9fr) minmax(200px, 1fr) minmax(260px, 1.4fr);
    gap: 12px;
    margin: 18px 0;
}

.provider-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.provider-form-grid label > span {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 750;
}

.provider-key-field input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.provider-form-footer > span {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.provider-form-footer > span i {
    color: var(--accent);
}

.provider-list-heading {
    margin-top: 2px;
}

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

.provider-source-card {
    padding: 16px;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.34);
}

.provider-source-card:hover {
    border-color: rgba(0, 240, 255, 0.28);
}

.provider-source-main {
    gap: 13px;
}

.provider-source-icon {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.17), rgba(0, 240, 255, 0.1));
    color: #34d399;
}

.provider-source-copy {
    min-width: 0;
    flex: 1;
}

.provider-source-title {
    flex-wrap: wrap;
    gap: 8px;
}

.provider-source-title h4 {
    margin: 0;
    overflow-wrap: anywhere;
}

.provider-source-copy > p {
    margin: 3px 0 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.provider-connection {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    font-size: 0.68rem;
    font-weight: 750;
}

.provider-connection.is-ok {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.provider-source-meta {
    flex-wrap: wrap;
    gap: 7px 14px;
    color: var(--text-muted);
    font-size: 0.74rem;
}

.provider-source-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.provider-source-meta i {
    color: var(--accent);
}

.provider-source-actions {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--card-border);
}

.provider-source-actions .btn-outline {
    width: auto;
    padding: 7px 10px;
    font-size: 0.76rem;
}

.provider-source-actions .btn-outline.is-danger {
    margin-left: auto;
    border-color: rgba(239, 68, 68, 0.34);
    color: #f87171;
}

.provider-products-panel {
    max-height: 480px;
    overflow: auto;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(0, 240, 255, 0.18);
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.3);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.provider-products-panel.is-error {
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.provider-products-title {
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 700;
}

.provider-products-title small {
    color: var(--text-muted);
    font-weight: 400;
}

.provider-product-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    padding: 9px 2px;
    border-top: 1px solid var(--card-border);
}

.provider-product-row > span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.provider-product-row > span:last-child {
    align-items: flex-end;
    color: #34d399;
    font-weight: 700;
}

.provider-product-row strong {
    overflow: hidden;
    color: var(--text-main);
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.provider-product-row small {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 400;
}

.provider-empty-state {
    display: grid;
    min-height: 150px;
    padding: 24px;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 1px dashed var(--card-border);
    border-radius: 14px;
    color: var(--text-muted);
    text-align: center;
}

.provider-empty-state i {
    color: var(--accent);
    font-size: 1.5rem;
}

.provider-empty-state p {
    margin: 0;
}

body.light-theme .provider-vault-notice,
body.light-theme .provider-vault-auth,
body.light-theme .provider-source-form,
body.light-theme .provider-source-card,
body.light-theme .provider-products-panel {
    background: rgba(255, 255, 255, 0.72);
}

body.light-theme .provider-auth-controls input,
body.light-theme .provider-form-grid input,
body.light-theme .provider-form-grid select {
    background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 850px) {
    .provider-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .provider-key-field {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .provider-vault-heading,
    .provider-form-heading,
    .provider-form-footer,
    .provider-list-heading,
    .provider-session-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .provider-vault-status {
        align-self: flex-start;
    }

    .provider-security-strip,
    .provider-form-grid,
    .provider-auth-controls,
    .provider-generated-key {
        grid-template-columns: 1fr;
    }

    .provider-key-field {
        grid-column: auto;
    }

    .provider-source-main {
        align-items: flex-start;
    }

    .provider-source-actions .btn-outline {
        flex: 1 1 calc(50% - 8px);
    }

    .provider-source-actions .btn-outline.is-danger {
        flex: 0 0 42px;
        margin-left: 0;
    }
}

/* Product source picker: manual / local inventory / provider API */
.product-source-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.provider-product-config-section {
    padding: 15px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.07);
}

.provider-product-picker-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.provider-product-picker-heading > span {
    color: #a78bfa;
    font-weight: 800;
}

.provider-product-picker-heading .btn-outline {
    padding: 7px 11px;
    font-size: 0.78rem;
}

.provider-product-picker-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
    gap: 12px;
    margin-top: 12px;
}

.provider-product-picker-grid label {
    display: grid;
    gap: 7px;
}

.provider-product-picker-grid label > span {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.provider-product-picker-grid select {
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--card-border);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.28);
    color: var(--text-main);
}

.provider-product-picker-grid select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14);
}

.provider-product-picker-grid select:disabled {
    cursor: wait;
    opacity: 0.65;
}

.product-provider-status {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.product-provider-status.is-ready {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.product-provider-status.is-error {
    background: rgba(239, 68, 68, 0.1);
    color: #fb7185;
}

body.light-theme .provider-product-config-section {
    background: rgba(139, 92, 246, 0.055);
}

body.light-theme .provider-product-picker-grid select {
    background: rgba(255, 255, 255, 0.88);
    color: var(--text-main);
}

@media (max-width: 680px) {
    .product-source-options,
    .provider-product-picker-grid {
        grid-template-columns: 1fr;
    }
}

/* Homepage layout after removing the popular-services sidebar and hero artwork. */
.mobile-menu-heading,
.mobile-menu-backdrop,
.mobile-header-action,
.mobile-drawer-link,
.mobile-menu-label {
    display: none;
}

@media (min-width: 1101px) {
    #view-home.active {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 220px 66px auto;
        column-gap: 0;
    }

    #view-home.active .hero {
        grid-column: 1 / -1;
        grid-row: 1;
        height: 220px;
        padding: 28px 36px;
        grid-template-columns: minmax(0, 1fr);
        place-items: center;
        text-align: center;
    }

    #view-home.active .hero-content {
        width: 100%;
        max-width: none;
        text-align: center;
    }

    #view-home.active .service-discovery-row {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-end;
    }

    #view-home.active .otp-spotlight {
        width: min(100%, 520px);
    }

    #view-home.active .products-section {
        grid-column: 1 / -1;
        grid-row: 3;
    }
}

/* Clean, one-hand mobile homepage inspired by the supplied reference layout. */
@media (max-width: 700px) {
    body,
    body[data-active-view="home"],
    body[data-active-view="dashboard"],
    body[data-active-view="otp"],
    body[data-active-view="notifications"] {
        padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important;
    }

    body.mobile-menu-open {
        overflow: hidden !important;
    }

    #ambient-network-canvas {
        display: none !important;
    }

    .glass-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 2800 !important;
        min-height: 68px !important;
        height: 68px !important;
        border: 0 !important;
        background: linear-gradient(135deg, #3154ff 0%, #168eea 100%) !important;
        box-shadow: 0 6px 20px rgba(24, 74, 190, 0.22) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .header-container {
        position: relative !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 68px !important;
        height: 68px !important;
        padding: 7px 10px !important;
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) 42px 42px !important;
        grid-template-rows: 54px !important;
        align-items: center !important;
        gap: 2px !important;
    }

    .mobile-utility-toggle {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 42px !important;
        height: 42px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 0 !important;
        border-radius: 10px !important;
        color: #ffffff !important;
        background: transparent !important;
        font-size: 22px !important;
        box-shadow: none !important;
    }

    .mobile-utility-toggle.active {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.14) !important;
    }

    .header-container .logo {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: center !important;
        width: min(42vw, 162px) !important;
        height: 50px !important;
        margin: 0 !important;
    }

    .header-container .site-img-logo {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    .glass-header .site-img-logo-light {
        display: none !important;
    }

    .glass-header .site-img-logo-dark {
        display: block !important;
    }

    .mobile-header-action {
        width: 42px !important;
        height: 42px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 0 !important;
        border-radius: 10px !important;
        color: #ffffff !important;
        background: transparent !important;
        font-size: 19px !important;
        box-shadow: none !important;
    }

    .mobile-header-action:active {
        background: rgba(255, 255, 255, 0.14) !important;
    }

    .mobile-header-search {
        grid-column: 3 !important;
        grid-row: 1 !important;
    }

    .mobile-header-products {
        grid-column: 4 !important;
        grid-row: 1 !important;
    }

    .header-actions,
    body:not(.light-theme) .header-actions {
        position: fixed !important;
        z-index: 3100 !important;
        inset: 0 auto 0 0 !important;
        order: initial !important;
        width: min(84vw, 340px) !important;
        max-width: none !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        margin: 0 !important;
        padding: 0 18px 24px !important;
        display: flex !important;
        flex: none !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #101927 !important;
        box-shadow: 24px 0 60px rgba(0, 0, 0, 0.32) !important;
        transform: translateX(-105%) !important;
        transition: transform 0.24s ease !important;
    }

    body.light-theme .header-actions {
        color: #172033 !important;
        background: #ffffff !important;
    }

    .header-actions.mobile-open,
    body:not(.light-theme) .header-actions.mobile-open {
        transform: translateX(0) !important;
    }

    .mobile-menu-heading {
        min-height: 88px !important;
        margin: 0 -18px 12px !important;
        padding: max(14px, env(safe-area-inset-top)) 20px 14px !important;
        display: flex !important;
        flex: 0 0 auto !important;
        align-items: flex-end !important;
        justify-content: space-between !important;
        color: #ffffff !important;
        background: linear-gradient(135deg, #3154ff, #5aa9ff) !important;
    }

    .mobile-menu-heading strong {
        font-size: 22px !important;
        line-height: 42px !important;
    }

    .mobile-menu-heading button {
        width: 42px !important;
        height: 42px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 0 !important;
        border-radius: 10px !important;
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.18) !important;
        font-size: 20px !important;
    }

    .header-actions > .mobile-drawer-link,
    .header-actions > a:not(.hidden),
    .header-actions > button:not(.hidden):not(.mobile-drawer-link) {
        position: relative !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 52px !important;
        margin: 0 !important;
        padding: 0 12px !important;
        display: flex !important;
        flex: 0 0 auto !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 14px !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(148, 163, 184, 0.16) !important;
        border-radius: 0 !important;
        color: #dbe6f6 !important;
        background: transparent !important;
        box-shadow: none !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        text-align: left !important;
    }

    body.light-theme .header-actions > .mobile-drawer-link,
    body.light-theme .header-actions > a:not(.hidden),
    body.light-theme .header-actions > button:not(.hidden):not(.mobile-drawer-link) {
        color: #253147 !important;
        border-bottom-color: #edf0f5 !important;
    }

    .header-actions > .mobile-drawer-link:first-of-type {
        color: #66a0ff !important;
    }

    .header-actions > .mobile-drawer-link i,
    .header-actions > a:not(.hidden) i,
    .header-actions > button:not(.hidden) i {
        width: 22px !important;
        margin: 0 !important;
        flex: 0 0 22px !important;
        color: currentColor !important;
        font-size: 17px !important;
        text-align: center !important;
    }

    .header-actions #nav-guest-1:not(.hidden),
    .header-actions #nav-guest-2:not(.hidden) {
        width: 100% !important;
        min-height: 48px !important;
        display: inline-flex !important;
        float: left !important;
        justify-content: center !important;
        border-bottom: 0 !important;
        border-radius: 9px !important;
        text-align: center !important;
    }

    .header-actions #nav-guest-1:not(.hidden) {
        margin-top: 14px !important;
        color: #ffffff !important;
        background: #3154ff !important;
    }

    .header-actions #nav-guest-2:not(.hidden) {
        width: 100% !important;
        margin-top: 8px !important;
        color: #172033 !important;
        background: #ffffff !important;
    }

    body.light-theme .header-actions #nav-guest-2:not(.hidden) {
        color: #3154ff !important;
        border: 1px solid #dce5ff !important;
        background: #f4f7ff !important;
    }

    .header-actions .mobile-menu-label {
        display: inline !important;
    }

    .header-actions #nav-user-1 span:not(.badge),
    .header-actions #nav-otp span:not(.badge),
    .header-actions #nav-user-2 span:not(.badge) {
        display: inline !important;
    }

    .header-actions .header-cart-btn {
        display: none !important;
    }

    .mobile-menu-backdrop {
        position: fixed !important;
        z-index: 3000 !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
        display: block !important;
        border: 0 !important;
        background: rgba(2, 8, 23, 0.58) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity 0.22s ease, visibility 0.22s ease !important;
    }

    body.mobile-menu-open .mobile-menu-backdrop {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    main.container {
        width: 100% !important;
        max-width: none !important;
        padding: 14px 12px 24px !important;
    }

    #view-home.active {
        width: 100% !important;
        display: block !important;
    }

    #view-home.active .home-layout,
    #view-home.active .service-discovery-row,
    #view-home.active .products-section {
        width: 100% !important;
    }

    #view-home.active .home-layout {
        display: block !important;
    }

    #view-home.active .hero {
        width: 100% !important;
        height: auto !important;
        min-height: 124px !important;
        margin: 0 !important;
        padding: 22px 16px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        place-items: center !important;
        overflow: hidden !important;
        border: 1px solid rgba(90, 117, 255, 0.24) !important;
        border-radius: 16px !important;
        background: linear-gradient(145deg, rgba(49, 84, 255, 0.16), rgba(13, 168, 172, 0.1)) !important;
        box-shadow: none !important;
        text-align: center !important;
    }

    #view-home.active .hero-content {
        position: relative !important;
        z-index: 2 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        text-align: center !important;
    }

    #view-home.active .hero h1 {
        margin: 0 !important;
        line-height: 1.2 !important;
    }

    #view-home.active .hero-heading-kicker {
        margin-bottom: 7px !important;
        display: inline-flex !important;
        justify-content: center !important;
        color: #7fa8ff !important;
        font-size: 10px !important;
        letter-spacing: 0.18em !important;
    }

    #view-home.active #hero-typing-text.hero-feature-title,
    body.light-theme #view-home.active #hero-typing-text.hero-feature-title {
        width: 100% !important;
        height: auto !important;
        min-height: 40px !important;
        max-height: none !important;
        margin: 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-content: center !important;
        justify-content: center !important;
        white-space: normal !important;
        font-size: clamp(22px, 6.7vw, 30px) !important;
        line-height: 1.22 !important;
        text-align: center !important;
    }

    #view-home.active .hero-type-char {
        min-height: 0 !important;
    }

    #view-home.active .service-discovery-row {
        height: auto !important;
        margin: 12px 0 0 !important;
        display: block !important;
    }

    #view-home.active .otp-spotlight {
        width: 100% !important;
        min-height: 150px !important;
        margin: 0 !important;
        padding: 16px !important;
        display: grid !important;
        grid-template-columns: 54px minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto !important;
        align-items: center !important;
        gap: 1px 12px !important;
        border: 1px solid rgba(255, 255, 255, 0.24) !important;
        border-radius: 16px !important;
        background: linear-gradient(135deg, #2862ef 0%, #079eaa 100%) !important;
        box-shadow: none !important;
    }

    #view-home.active .otp-spotlight-heading {
        grid-column: 1 !important;
        grid-row: 1 / 3 !important;
        width: 54px !important;
        height: 54px !important;
        margin: 0 !important;
        display: grid !important;
        place-items: center !important;
    }

    #view-home.active .otp-spotlight-icon {
        width: 52px !important;
        height: 52px !important;
        border-radius: 12px !important;
        color: #3154ff !important;
        background: #ffffff !important;
        font-size: 18px !important;
    }

    #view-home.active .otp-spotlight-badge {
        display: none !important;
    }

    #view-home.active .otp-spotlight > strong {
        grid-column: 2 !important;
        grid-row: 1 !important;
        margin: 0 !important;
        align-self: end !important;
        color: #ffffff !important;
        font-size: 19px !important;
        line-height: 1.25 !important;
    }

    #view-home.active .otp-spotlight > small {
        grid-column: 2 !important;
        grid-row: 2 !important;
        margin: 2px 0 0 !important;
        align-self: start !important;
        color: rgba(255, 255, 255, 0.8) !important;
        font-size: 11px !important;
    }

    #view-home.active .otp-spotlight > button {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
        width: 100% !important;
        height: 44px !important;
        min-height: 44px !important;
        margin: 13px 0 0 !important;
        padding: 0 15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        border: 0 !important;
        border-radius: 11px !important;
        color: #174197 !important;
        background: #ffffff !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        box-shadow: none !important;
    }

    #view-home.active .promo-banners-container:empty {
        display: none !important;
    }

    #view-home.active .products-section {
        min-height: 0 !important;
        margin: 14px 0 0 !important;
        padding: 18px 14px !important;
        overflow: hidden !important;
        border: 1px solid #28364a !important;
        border-radius: 16px !important;
        background: #101927 !important;
        box-shadow: none !important;
    }

    body.light-theme #view-home.active .hero,
    body.light-theme #view-home.active .products-section {
        border-color: #e0e7f1 !important;
        background: #ffffff !important;
    }

    #view-home.active .home-section-bar {
        min-height: 44px !important;
        margin: 0 0 15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }

    #view-home.active .home-section-bar h2 {
        color: #f8fafc !important;
        font-size: 22px !important;
        line-height: 1.15 !important;
    }

    body.light-theme #view-home.active .home-section-bar h2 {
        color: #172033 !important;
    }

    #view-home.active .home-section-bar p {
        display: none !important;
    }

    #view-home.active .home-section-bar button {
        min-width: 100px !important;
        min-height: 38px !important;
        padding: 0 10px !important;
        color: #cbd5e1 !important;
        border: 1px solid #33445c !important;
        border-radius: 9px !important;
        background: transparent !important;
        font-size: 9px !important;
    }

    body.light-theme #view-home.active .home-section-bar button {
        color: #475467 !important;
        border-color: #dfe5ee !important;
    }

    #view-home.active .product-search-bar {
        width: 100% !important;
        margin: 0 0 14px !important;
        padding: 13px 0 14px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 9px !important;
        border-top: 1px solid #28364a !important;
        border-bottom: 1px solid #28364a !important;
    }

    body.light-theme #view-home.active .product-search-bar {
        border-color: #edf0f5 !important;
    }

    #view-home.active .psb-inner {
        width: 100% !important;
        height: 48px !important;
        min-height: 48px !important;
        border: 1px solid #33445c !important;
        border-radius: 12px !important;
        background: #121d2d !important;
        box-shadow: none !important;
    }

    body.light-theme #view-home.active .psb-inner {
        border-color: #dfe5ee !important;
        background: #f8fafc !important;
    }

    #view-home.active .psb-input {
        color: #eef4ff !important;
        font-size: 13px !important;
    }

    body.light-theme #view-home.active .psb-input {
        color: #172033 !important;
    }

    #view-home.active .psb-result-count {
        justify-self: start !important;
        color: #94a3b8 !important;
        font-size: 10px !important;
    }

    #view-home.active .product-sort-controls {
        width: 100% !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    #view-home.active .product-filter-row {
        width: 100% !important;
        display: block !important;
    }

    #view-home.active .product-category-tabs {
        width: 100% !important;
        margin: 0 0 10px !important;
        padding: 0 0 3px !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 7px !important;
        overflow-x: auto !important;
        overscroll-behavior-inline: contain !important;
        scrollbar-width: none !important;
    }

    #view-home.active .product-category-tabs::-webkit-scrollbar {
        display: none !important;
    }

    #view-home.active .product-category-btn {
        min-height: 38px !important;
        padding: 0 10px !important;
        display: inline-flex !important;
        flex: 0 0 auto !important;
        border-color: #33445c !important;
        border-radius: 9px !important;
        color: #cbd5e1 !important;
        background: #121d2d !important;
        font-size: 9px !important;
        scroll-snap-align: start !important;
    }

    body.light-theme #view-home.active .product-category-btn {
        color: #475467 !important;
        border-color: #dfe5ee !important;
        background: #ffffff !important;
    }

    #view-home.active .product-category-btn.active,
    body.light-theme #view-home.active .product-category-btn.active {
        color: #ffffff !important;
        border-color: #5b56e8 !important;
        background: linear-gradient(135deg, #6558df, #745ee8) !important;
    }

    #view-home.active .product-utility-controls {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 116px !important;
        align-items: center !important;
        gap: 8px !important;
    }

    #view-home.active .product-source-segment {
        width: 100% !important;
        height: 40px !important;
        padding: 3px !important;
        border-color: #33445c !important;
        background: #121d2d !important;
    }

    body.light-theme #view-home.active .product-source-segment {
        border-color: #dfe5ee !important;
        background: #f5f7fa !important;
    }

    #view-home.active .product-source-btn {
        min-width: 0 !important;
        min-height: 32px !important;
        padding: 0 5px !important;
        flex: 1 1 0 !important;
        font-size: 8px !important;
    }

    #view-home.active .product-sort-select {
        width: 116px !important;
        min-width: 0 !important;
        height: 40px !important;
        padding: 0 7px !important;
        border-color: #33445c !important;
        background: #121d2d !important;
    }

    #view-home.active .product-sort-select select {
        width: 100% !important;
        color: #cbd5e1 !important;
        font-size: 8px !important;
    }

    body.light-theme #view-home.active .product-sort-select {
        border-color: #dfe5ee !important;
        background: #ffffff !important;
    }

    body.light-theme #view-home.active .product-sort-select select {
        color: #344054 !important;
    }

    #view-home.active .product-grid {
        width: 100% !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    #view-home.active .product-card,
    #view-home.active .product-card:nth-child(n+6) {
        width: 100% !important;
        min-width: 0 !important;
        height: 268px !important;
        min-height: 268px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        border: 1px solid #28364a !important;
        border-radius: 14px !important;
        background: #121d2d !important;
        box-shadow: none !important;
        transform: none !important;
    }

    body.light-theme #view-home.active .product-card,
    body.light-theme #view-home.active .product-card:nth-child(n+6) {
        border-color: #e5eaf2 !important;
        background: #ffffff !important;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06) !important;
    }

    #view-home.active .product-card .pc-banner {
        width: 100% !important;
        height: 116px !important;
        min-height: 116px !important;
        flex: 0 0 116px !important;
        border: 0 !important;
        border-bottom: 1px solid #28364a !important;
        background: #0e1724 !important;
    }

    body.light-theme #view-home.active .product-card .pc-banner {
        border-bottom-color: #edf0f5 !important;
        background: #f8fafc !important;
    }

    #view-home.active .product-card .pc-banner img,
    #view-home.active .product-card .pc-banner-placeholder {
        width: 100% !important;
        height: 100% !important;
        padding: 8px !important;
        object-fit: contain !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    #view-home.active .product-card .pc-body {
        position: relative !important;
        width: 100% !important;
        height: 152px !important;
        min-height: 152px !important;
        flex: 0 0 152px !important;
        padding: 10px !important;
    }

    #view-home.active .product-card .pc-name {
        min-height: 33px !important;
        max-height: 33px !important;
        display: -webkit-box !important;
        overflow: hidden !important;
        color: #f1f5f9 !important;
        font-size: 11px !important;
        line-height: 1.45 !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }

    body.light-theme #view-home.active .product-card .pc-name {
        color: #172033 !important;
    }

    #view-home.active .product-card .pc-duration {
        margin-top: 3px !important;
        color: #94a3b8 !important;
        font-size: 8px !important;
    }

    #view-home.active .product-card .pc-trust-row {
        display: none !important;
    }

    #view-home.active .product-card .pc-price {
        left: 10px !important;
        right: 10px !important;
        bottom: 51px !important;
        max-width: calc(100% - 20px) !important;
        overflow: hidden !important;
        color: #ffffff !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    body.light-theme #view-home.active .product-card .pc-price {
        color: #080b24 !important;
    }

    #view-home.active .product-card .pc-btn {
        left: 10px !important;
        right: 10px !important;
        bottom: 9px !important;
        width: auto !important;
        height: 34px !important;
        min-height: 34px !important;
        padding: 0 7px !important;
        border-radius: 8px !important;
        font-size: 8px !important;
    }

    .mobile-bottom-nav {
        z-index: 2700 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: calc(66px + env(safe-area-inset-bottom)) !important;
        padding: 5px 8px env(safe-area-inset-bottom) !important;
        gap: 2px !important;
        border: 0 !important;
        border-top: 1px solid rgba(148, 163, 184, 0.22) !important;
        border-radius: 0 !important;
        background: rgba(9, 17, 31, 0.97) !important;
        box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.22) !important;
    }

    body.light-theme .mobile-bottom-nav {
        background: rgba(255, 255, 255, 0.98) !important;
    }

    .mobile-bottom-nav button {
        height: 56px !important;
        border-radius: 10px !important;
    }

    .mobile-bottom-nav button i {
        font-size: 17px !important;
    }

    .mobile-bottom-nav button span {
        font-size: 9px !important;
    }

    .site-warning-toggle {
        display: inline-flex !important;
    }

    .site-warning-ticker.is-collapsed {
        left: 10px !important;
        right: auto !important;
        bottom: calc(74px + env(safe-area-inset-bottom)) !important;
        width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        border-radius: 50% !important;
        overflow: hidden !important;
        pointer-events: auto !important;
    }

    .site-warning-ticker.is-collapsed .site-warning-track {
        display: none !important;
    }

    .site-warning-ticker.is-collapsed .site-warning-toggle {
        position: static !important;
        width: 38px !important;
        height: 38px !important;
        flex: 0 0 38px !important;
        border: 0 !important;
        border-radius: 50% !important;
        color: #ffd166 !important;
        background: #101927 !important;
    }

    .site-warning-ticker:not(.is-collapsed) {
        left: 0 !important;
        right: 0 !important;
        bottom: calc(66px + env(safe-area-inset-bottom)) !important;
        width: auto !important;
        height: 32px !important;
        pointer-events: auto !important;
    }

    .site-warning-ticker:not(.is-collapsed) .site-warning-toggle {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        width: 32px !important;
        height: 32px !important;
        border: 0 !important;
        background: rgba(15, 23, 42, 0.34) !important;
    }

    .chat-widget,
    body.warning-collapsed .chat-widget,
    body[data-active-view="home"] .chat-widget,
    body[data-active-view="dashboard"] .chat-widget,
    body[data-active-view="otp"] .chat-widget,
    body[data-active-view="notifications"] .chat-widget {
        right: 10px !important;
        bottom: calc(74px + env(safe-area-inset-bottom)) !important;
    }

    body:not(.warning-collapsed) .chat-widget {
        bottom: calc(104px + env(safe-area-inset-bottom)) !important;
    }

    .chat-toggle {
        width: 46px !important;
        height: 46px !important;
        border-radius: 14px !important;
    }
}

@media (max-width: 360px) {
    .header-container {
        grid-template-columns: 42px minmax(0, 1fr) 38px 38px !important;
    }

    .mobile-header-action {
        width: 38px !important;
        height: 38px !important;
    }

    #view-home.active .product-utility-controls {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    #view-home.active .product-sort-select {
        width: 100% !important;
    }

    #view-home.active .product-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    #view-home.active .product-card,
    #view-home.active .product-card:nth-child(n+6) {
        height: 154px !important;
        min-height: 154px !important;
        display: grid !important;
        grid-template-columns: 104px minmax(0, 1fr) !important;
        grid-template-rows: 154px !important;
    }

    #view-home.active .product-card .pc-banner {
        width: 104px !important;
        height: 154px !important;
        min-height: 154px !important;
        border-right: 1px solid #28364a !important;
        border-bottom: 0 !important;
    }

    #view-home.active .product-card .pc-body {
        height: 154px !important;
        min-height: 154px !important;
    }
}
