/* CyberKey CSS Stylesheet - Premium Dark Theme & Glassmorphism */

/* Custom Variables & Theme System */
:root {
    --bg-main: #0a0c10;
    --bg-card: rgba(20, 24, 33, 0.65);
    --bg-card-hover: rgba(28, 33, 46, 0.85);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(0, 240, 255, 0.3);
    
    /* Neon Palettes */
    --accent: #00f0ff;
    --accent-glow: rgba(0, 240, 255, 0.45);
    --accent-rgb: 0, 240, 255;
    
    --secondary: #8b5cf6;
    --secondary-glow: rgba(139, 92, 246, 0.4);
    
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.3);
    
    --warning: #f59e0b;
    
    --danger: #ef4444;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    /* Admin Red/Crimson theme */
    --admin-accent: #ff2a5f;
    --admin-accent-glow: rgba(255, 42, 95, 0.45);
    --admin-secondary: #f97316;
}

/* Base resets & styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Outfit', 'Inter', sans-serif;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background Animated Blobs */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
    animation: floatGlow 25s infinite alternate ease-in-out;
}

.bg-glow-1 {
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: -10%;
    right: -10%;
}

.bg-glow-2 {
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: 10%;
    left: -10%;
    animation-delay: -5s;
}

.bg-glow-3 {
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    top: 45%;
    right: 25%;
    width: 400px;
    height: 400px;
    animation-delay: -12s;
}

/* Admin specific background glows */
.admin-body {
    --border-hover: rgba(255, 42, 95, 0.35);
}

.bg-glow-admin-1 {
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.15;
    background: radial-gradient(circle, var(--admin-accent) 0%, transparent 70%);
    top: -15%;
    left: -10%;
    animation: floatGlow 20s infinite alternate ease-in-out;
}

.bg-glow-admin-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.12;
    background: radial-gradient(circle, var(--admin-secondary) 0%, transparent 70%);
    bottom: 5%;
    right: -5%;
    animation: floatGlow 28s infinite alternate ease-in-out;
    animation-delay: -7s;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(80px, 50px) scale(1.1);
    }
    100% {
        transform: translate(-40px, -80px) scale(0.9);
    }
}

/* Typography Helpers */
.text-accent {
    color: var(--accent);
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--accent) 30%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-admin {
    background: linear-gradient(135deg, var(--admin-accent) 30%, var(--admin-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.text-sm {
    font-size: 0.875rem;
}

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

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

.font-large {
    font-size: 1.5rem;
}

/* Navigation Bar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 12, 16, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.nav-top-row {
    display: contents;
}

.nav-menu-panel {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: flex-end;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.logo-icon.admin-icon {
    color: var(--admin-accent);
    filter: drop-shadow(0 0 8px var(--admin-accent-glow));
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 1.5px;
    color: #ffffff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
}

.nav-links a:hover, .nav-links a.active {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 2px solid var(--accent);
    border-radius: 6px 6px 0 0;
}

.admin-badge-btn {
    border: 1px solid rgba(255, 42, 95, 0.3) !important;
    background: rgba(255, 42, 95, 0.05);
    color: var(--admin-accent) !important;
}

.admin-badge-btn:hover {
    background: rgba(255, 42, 95, 0.15) !important;
    box-shadow: 0 0 15px rgba(255, 42, 95, 0.2);
}

.nav-auth-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
}

/* User Info Badge */
.user-info-pill {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    gap: 0.6rem;
}

.user-name-label {
    font-weight: 500;
    color: #ffffff;
}

.user-balance-pill {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

/* Main Layout Setup */
.main-content {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1.25rem;
    box-sizing: border-box;
}

/* Sections management */
.hidden-section {
    display: none !important;
}

.active-section {
    display: block !important;
}

main > section {
    width: 100%;
    max-width: 100%;
}

/* Transitions */
.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

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

/* Hero Section */
.hero-section {
    text-align: center;
    margin: 3rem 0;
    position: relative;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(0, 240, 255, 0.15);
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 350;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Filter Bar & Search */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
    min-width: 280px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
}

.category-tab {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.category-tab.active {
    background: rgba(0, 240, 255, 0.08);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

/* Product Cards Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Product Cards specifics */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-free-fire {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.25);
}

.badge-pubg {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.25);
}

.badge-others {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.product-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-features-preview {
    margin: 1.2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.preview-tag {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: var(--text-secondary);
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 1.5rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.2rem;
    margin-top: auto;
}

.price-start-box {
    display: flex;
    flex-direction: column;
}

.price-start-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.price-start-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

/* Loading States */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 0;
}

.spinner {
    width: 45px;
    height: 45px;
    border: 3px solid rgba(0, 240, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s infinite linear;
}

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

/* Custom Buttons */
.btn {
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1.3rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    color: #000000;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.45);
}

.btn-accent {
    background: var(--accent);
    color: #000000;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ffffff;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-large {
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
}

.glow-effect:hover {
    filter: brightness(1.1);
}

/* Modals System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: rgba(14, 18, 27, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2.5rem;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 42, 95, 0.15);
    border-color: rgba(255, 42, 95, 0.3);
    color: #ff2a5f;
}

/* Auth Modal specifics */
.auth-modal-card {
    max-width: 420px;
    padding: 2rem;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.8rem;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: var(--accent);
    border-color: var(--accent);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Product Details Modal Grid */
.product-modal-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
}

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

.modal-subtitle-top {
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
}

.modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

/* Video Wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    background: #000000;
}

.video-player-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Placeholder for demo video */
.video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #131720 0%, #1f2635 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: var(--text-secondary);
}

.video-placeholder i {
    font-size: 3rem;
    color: var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px var(--accent-glow)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 12px var(--accent-glow)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 2px var(--accent-glow)); }
}

.modal-desc-box h4, .features-badge-list h4, .price-duration-box h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 0.8rem;
    border-left: 2px solid var(--accent);
    padding-left: 0.5rem;
}

.modal-desc-box p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.features-ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.features-ul li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.features-ul li i {
    color: var(--success);
}

/* Duration Selector Cards */
.duration-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.duration-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    color: var(--text-primary);
}

.duration-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.duration-card.active {
    background: rgba(0, 240, 255, 0.05);
    border-color: var(--accent);
    box-shadow: inset 0 0 8px rgba(0, 240, 255, 0.05);
}

.dur-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.dur-price {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.1rem;
}

.dur-stock {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.duration-card.active .dur-stock {
    color: var(--accent);
}

.wallet-balance-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Form layouts */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #ffffff;
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row.col-3 .form-group {
    flex: 1;
}

.input-icon-wrapper {
    position: relative;
    width: 100%;
}

.input-icon-wrapper .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-icon-wrapper input {
    padding-left: 2.5rem;
}

.form-error {
    color: var(--danger);
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 1.2rem;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* User Dashboard / profile page */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: start;
}

.dashboard-grid.col-3-2 {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    transition: all 0.3s ease;
}

.dashboard-grid.col-3-2.show-payment-details {
    grid-template-columns: 1.3fr 1fr;
    max-width: 1200px;
}

@media (max-width: 768px) {
    .dashboard-grid, .dashboard-grid.col-3-2, .dashboard-grid.col-3-2.show-payment-details {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

.profile-card {
    text-align: center;
    padding: 2rem;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.user-role-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.detail-value {
    color: #ffffff;
    font-weight: 500;
}

/* My Keys & Inventory Lists */
.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.keys-count-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Custom Table Layouts */
.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.custom-table th, .custom-table td {
    padding: 1rem 1.2rem;
}

.custom-table th {
    background: rgba(255, 255, 255, 0.02);
    color: #ffffff;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.custom-table td {
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.custom-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

/* Copy Key Buttons inside tables */
.btn-copy-table {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--accent);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy-table:hover {
    background: var(--accent);
    color: #000000;
}

/* Deposit UI elements */
.balance-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.amount-preset {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.6rem 0.5rem;
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.amount-preset:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.amount-preset.active {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pay-method-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pay-method-card input[type="radio"] {
    display: none;
}

.pay-method-card i {
    font-size: 1.8rem;
    color: var(--text-muted);
}

.pay-method-card span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.pay-method-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.pay-method-card.active {
    background: rgba(0, 240, 255, 0.05);
    border-color: var(--accent);
}

.pay-method-card.active i {
    color: var(--accent);
}

.pay-method-card.active span {
    color: #ffffff;
}

.flex-center-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

/* Beautiful QR Code Mockup */
.qr-container {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.qr-code-box {
    position: relative;
    width: 170px;
    height: 170px;
    padding: 10px;
    background: #0b0e14;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--accent);
}

.qr-tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.qr-tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.qr-bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.qr-br { bottom: 0; right: 0; border-left: none; border-top: none; }

.qr-svg {
    width: 100%;
    height: 100%;
}

.qr-logo {
    position: absolute;
    width: 32px;
    height: 32px;
    background: #00f0ff;
    border: 4px solid #0b0e14;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-size: 0.9rem;
}

.upi-id-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

.upi-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.upi-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.btn-copy-upi {
    background: transparent;
    border: none;
    color: var(--accent);
    cursor: pointer;
    padding: 0.2rem;
    transition: all 0.2s;
}

.btn-copy-upi:hover {
    color: #ffffff;
}

.amount-badge {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
}

/* Success Modal Details */
.success-modal-card {
    max-width: 440px;
    padding: 2.5rem 2rem;
}

.success-icon-badge {
    width: 65px;
    height: 65px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.license-display-box {
    background: rgba(0, 240, 255, 0.05);
    border: 1px dashed rgba(0, 240, 255, 0.3);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.license-key {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.5px;
    word-break: break-all;
}

.btn-copy-license {
    background: var(--accent);
    border: none;
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.btn-copy-license:hover {
    filter: brightness(1.1);
}

/* Global Toasts Styling */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: rgba(15, 20, 29, 0.95);
    border-left: 4px solid var(--accent);
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    min-width: 280px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    animation: toastSlideIn 0.3s ease-out forwards;
    backdrop-filter: blur(10px);
}

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

.toast-success i { color: var(--success); }
.toast-error i { color: var(--danger); }
.toast-warning i { color: var(--warning); }

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

.toast.toast-fade-out {
    animation: toastFadeOut 0.3s ease-in forwards;
}

@keyframes toastFadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
}

/* ======================================================== */
/* ==================== ADMIN SPECIFIC ==================== */
/* ======================================================== */

.admin-body {
    background-color: #07080b;
}

.navbar-admin {
    background: rgba(7, 8, 11, 0.85);
    border-bottom: 1px solid rgba(255, 42, 95, 0.15);
}

.admin-info-badge {
    background: rgba(255, 42, 95, 0.1);
    border: 1px solid rgba(255, 42, 95, 0.25);
    color: var(--admin-accent);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background: var(--admin-accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--admin-accent);
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.4; }
    100% { transform: scale(1); opacity: 1; }
}

/* Admin Authentication Barrier */
.admin-barrier-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 6, 8, 0.96);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-card {
    max-width: 380px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 42, 95, 0.15);
    box-shadow: 0 10px 40px rgba(255, 42, 95, 0.05);
}

.admin-lock-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 42, 95, 0.08);
    color: var(--admin-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 15px rgba(255, 42, 95, 0.15);
}

.default-creds-hint {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.01);
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px dashed rgba(255, 255, 255, 0.05);
}

/* Admin Stats Counters Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 992px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

.admin-stat-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    border-color: rgba(255, 255, 255, 0.04);
}

.admin-stat-card:hover {
    border-color: rgba(255, 42, 95, 0.25);
}

.stat-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.stat-icon-wrapper.red-glow {
    color: var(--admin-accent);
    background: rgba(255, 42, 95, 0.06);
    border-color: rgba(255, 42, 95, 0.2);
    box-shadow: 0 0 10px rgba(255, 42, 95, 0.05);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    margin-top: 0.1rem;
}

/* Sidebar Layout */
.admin-layout-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 992px) {
    .admin-layout-container {
        grid-template-columns: 1fr;
    }
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(14, 18, 27, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem;
}

.admin-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.25s ease;
}

.admin-tab-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
}

.admin-tab-btn.active {
    background: rgba(255, 42, 95, 0.08);
    border: 1px solid rgba(255, 42, 95, 0.2);
    color: var(--admin-accent);
}

.admin-tab-panel {
    display: none;
}

.admin-tab-panel.active-panel {
    display: block;
}

.panel-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.panel-header-row h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}

/* Admin Form Actions */
.btn-admin-primary {
    background: linear-gradient(135deg, var(--admin-accent) 0%, var(--admin-secondary) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 42, 95, 0.2);
    font-weight: 600;
    border: none;
}

.btn-admin-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 42, 95, 0.4);
}

.btn-admin-secondary {
    background: #ffffff;
    color: #000000;
    border: none;
}

.btn-admin-secondary:hover {
    transform: translateY(-1px);
    filter: brightness(0.9);
}

.btn-outline-admin {
    background: transparent;
    border: 1px solid rgba(255, 42, 95, 0.25);
    color: var(--admin-accent);
}

.btn-outline-admin:hover {
    background: rgba(255, 42, 95, 0.08);
    border-color: var(--admin-accent);
}

/* Admin specific tables colors */
.admin-table th {
    border-bottom-color: rgba(255, 42, 95, 0.15);
}

/* Manage users balance helper box */
.user-current-balance-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

/* Keys Stock Status UI */
.keys-stock-status-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.keys-stock-item {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stock-item-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stock-prod-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.stock-indicator-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-in-stock {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-low-stock {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-out-stock {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.keys-expanded-box {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.keys-list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.key-badge-inline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: var(--text-secondary);
}

/* Modals sizing for admin panels */
.admin-modal-card {
    max-width: 600px;
}

.price-inputs-container {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1.25rem 0;
}

.price-inputs-container h4 {
    font-size: 0.85rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* Footer layout */
.footer {
    background: rgba(7, 8, 11, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    box-sizing: border-box;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

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

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

@media (max-width: 576px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* UPI spinner animation */
.upi-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 240, 255, 0.1);
    border-left-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0.5rem auto;
}

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

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@media (max-width: 480px) {
    /* Card container adjustments */
    #upi-payment-view {
        max-width: 100% !important;
        border-radius: 12px !important;
        padding: 0.5rem !important;
    }
    /* Amount display */
    #telegram-deposit-amount { font-size: 1.6rem !important; }
    /* QR image size */
    #upi-qr-image { width: 130px !important; height: 130px !important; }
    /* Buttons */
    #btn-confirm-payment, #btn-cancel-order { font-size: 0.78rem !important; padding: 0.6rem 1rem !important; }
    /* Header scaling */
    #upi-payment-view > div:first-child { padding: 1rem 0.8rem !important; }
    /* Timer scaling */
    #timer-container { padding: 0.3rem 0.6rem !important; font-size: 0.7rem !important; }
    #session-countdown { font-size: 1rem !important; }
    #payment-verification-result { font-size: 0.85rem !important; }
}
/* ==================== MOBILE RESPONSIVE STYLES ==================== */

/* Tablet & mobile — hamburger menu */
@media (max-width: 1200px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 1rem;
    }

    .nav-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0.25rem 0;
    }

    .nav-menu-panel {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
        padding: 0.75rem 0 0.5rem;
        border-top: 1px solid var(--border-color);
        margin-top: 0.5rem;
    }

    .navbar.menu-open .nav-menu-panel {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0.25rem;
        align-items: stretch;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        padding: 0.8rem 0.75rem;
        border-radius: 8px;
        border-bottom: none;
        font-size: 1rem;
    }

    .nav-links a.active {
        background: rgba(0, 240, 255, 0.08);
        border-left: 3px solid var(--accent);
        border-radius: 8px;
    }

    .nav-auth-container {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.75rem;
        padding: 0.75rem 0 0.25rem;
        border-top: 1px solid var(--border-color);
        margin-top: 0.5rem;
    }

    .nav-auth-container .user-info-pill {
        width: 100%;
        justify-content: space-between;
        padding: 0.6rem 1rem;
    }

    .nav-auth-container .btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }

    .nav-auth-container .admin-info-badge {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
    }

    .navbar-admin .nav-links a.active {
        border-left-color: var(--admin-accent);
        background: rgba(255, 42, 95, 0.08);
    }

    /* Hero */
    .hero-section {
        margin: 1.5rem 0 2rem;
        width: 100%;
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        letter-spacing: -0.5px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .hero-stats {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        width: 100%;
    }

    .stat-item {
        width: 100%;
        max-width: none;
        justify-content: center;
        font-size: 0.9rem;
        padding: 0.65rem 1rem;
    }

    /* Search & filters */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        margin-bottom: 1.75rem;
        width: 100%;
    }

    .search-box {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .category-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.5rem;
        padding-bottom: 4px;
        width: 100%;
    }

    .category-tabs::-webkit-scrollbar {
        display: none;
    }

    .category-tab {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 0.55rem 1rem;
        font-size: 0.88rem;
    }

    /* Product grid — full width single column */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-bottom: 2.5rem;
        width: 100%;
    }

    .glass-card {
        padding: 1.25rem;
        width: 100%;
        box-sizing: border-box;
    }

    .product-title {
        font-size: 1.25rem;
    }

    /* Dashboard */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        width: 100%;
    }

    .main-content {
        width: 100%;
        max-width: 100%;
        margin: 1.25rem auto;
        padding: 0 1rem;
    }

    .navbar {
        padding: 0.65rem 0;
    }

    .footer-container {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .navbar .logo-text {
        font-size: 1.15rem;
    }

    .navbar .logo-icon {
        font-size: 1.3rem;
    }

    .card-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .balance-amounts {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .payment-methods-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .modal-card {
        width: calc(100% - 1.5rem);
        padding: 1.5rem 1.15rem;
        max-height: 92vh;
    }

    .modal-title {
        font-size: 1.45rem;
    }

    .auth-modal-card {
        padding: 1.5rem 1.15rem;
    }

    .custom-table {
        font-size: 0.85rem;
    }

    .custom-table thead {
        display: none;
    }

    .custom-table tbody tr {
        display: block;
        border: 1px solid var(--border-color);
        margin-bottom: 0.75rem;
        border-radius: 8px;
        background: var(--bg-card);
        padding: 0.5rem;
    }

    .custom-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        padding: 0.45rem 0;
        border-bottom: none;
    }

    .custom-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-secondary);
        flex-shrink: 0;
    }

    .toast-container {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .toast {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }

    .panel-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .panel-header-row .btn {
        width: 100%;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 0.65rem 0.85rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .main-content,
    .nav-container,
    .footer-container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .hero-title {
        font-size: 1.65rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .product-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .product-footer .btn {
        width: 100%;
    }

    .product-desc {
        font-size: 0.85rem;
    }

    .product-features-preview {
        gap: 0.35rem;
    }

    .preview-tag {
        font-size: 0.7rem;
    }

    .license-display-box {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-copy-license {
        width: 100%;
    }

    .amount-preset {
        font-size: 0.85rem;
        padding: 0.55rem 0.35rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    #upi-payment-view {
        max-width: 100% !important;
        border-radius: 12px !important;
    }

    #telegram-deposit-amount {
        font-size: 1.4rem !important;
    }

    #upi-qr-image {
        width: 120px !important;
        height: 120px !important;
    }

    #btn-confirm-payment,
    #btn-cancel-order {
        font-size: 0.72rem !important;
        padding: 0.5rem 0.9rem !important;
    }

    #timer-container {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.65rem !important;
    }

    #session-countdown {
        font-size: 0.9rem !important;
    }

    #payment-verification-result {
        font-size: 0.8rem !important;
    }
}
