/* ============================================
   PROSTO API/STEAM - PREMIUM DESIGN V2.1
   Comfortable Dark & Light themes
   ============================================ */

/* CSS Variables for Theme Switching */
:root {
    /* Primary Colors */
    --primary: #5d91a5;
    --primary-dark: #47788b;
    --primary-light: #8bb7c5;
    --secondary: #527f78;
    --accent: #9bbbab;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #5d91a5 0%, #527f78 100%);
    --gradient-secondary: linear-gradient(135deg, #527f78 0%, #78a394 100%);
    --gradient-success: linear-gradient(135deg, #528d75 0%, #72a58a 100%);
    
    /* Background Colors - Dark Theme (DEFAULT) */
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #242424;
    --bg-card: rgba(30, 30, 30, 0.7);
    --bg-hover: rgba(102, 126, 234, 0.08);
    
    /* Text Colors - Dark Theme */
    --text-primary: #ffffff;
    --text-secondary: #b4b4b4;
    --text-muted: #888888;
    
    /* Border & Shadow */
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
    
    /* Status Colors */
    --success: #48bb78;
    --warning: #f6ad55;
    --danger: #fc8181;
    --info: #4299e1;
}

/* Light Theme Variables */
[data-theme="light"] {
    /* Background Colors - Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-hover: rgba(102, 126, 234, 0.05);
    
    /* Text Colors - Light Theme */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6b6b6b;
    
    /* Border & Shadow */
    --border: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
}

/* Color Utility Classes for Icons and Text */
.text-accent { color: var(--primary, #38bdf8) !important; }
.text-warning { color: #f59e0b !important; }
.text-info { color: #00f2fe !important; }
.text-purple { color: #a855f7 !important; }
.text-amber { color: #f59e0b !important; }
.text-success { color: #10b981 !important; }

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background 0.3s ease, color 0.3s ease;
}

html {
    background: var(--bg-primary);
    overflow-x: hidden;
    max-width: 100%;
}

/* Slow, low-contrast motion; theme colors switch with the root tokens. */
.ambient-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: var(--bg-primary);
    background-image:
        linear-gradient(118deg, transparent 0 28%, var(--ambient-band-one) 48%, transparent 68%),
        linear-gradient(302deg, transparent 0 38%, var(--ambient-band-two) 55%, transparent 72%);
    background-size: 180% 180%, 160% 160%;
    background-position: 0% 50%, 100% 50%;
    animation: ambient-drift 34s ease-in-out infinite alternate;
    transition: background-color 350ms ease;
}

.navbar { z-index: 1000; }
section, .admin-container, .profile-container, .form-container, .footer {
    position: relative;
    z-index: 1;
}

:root {
    color-scheme: dark;
    --ambient-band-one: rgba(105, 125, 164, 0.075);
    --ambient-band-two: rgba(104, 137, 130, 0.045);
}

[data-theme="light"] {
    color-scheme: light;
    --ambient-band-one: rgba(105, 125, 164, 0.10);
    --ambient-band-two: rgba(104, 137, 130, 0.075);
}

@keyframes ambient-drift {
    from { background-position: 0% 45%, 100% 55%; }
    to { background-position: 100% 55%, 0% 45%; }
}

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

/* Animated Background - SUBTLE for dark theme */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-primary);
}

/* Subtle gradient overlay - barely visible */
.animated-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.06) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
    opacity: 0.4;
}

[data-theme="light"] .animated-bg::before {
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.03) 0%, transparent 50%);
    opacity: 0.3;
}

.animated-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.03) 0%, transparent 30%),
        radial-gradient(circle at 40% 80%, rgba(118, 75, 162, 0.02) 0%, transparent 30%);
    animation: float 20s ease-in-out infinite;
}

[data-theme="light"] .animated-bg::after {
    background: 
        radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.04) 0%, transparent 30%),
        radial-gradient(circle at 40% 80%, rgba(118, 75, 162, 0.03) 0%, transparent 30%);
}

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

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

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.3;
    animation: rise linear infinite;
}

@keyframes rise {
    0% {
        bottom: -50px;
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        bottom: 100%;
        opacity: 0;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glass Card Effect - Subtle */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-light);
}

/* Navbar - Clean Dark/Light Design */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow);
}

/* Navbar Container (3-column CSS Grid layout for perfect optical & mathematical centering) */
.navbar .container,
.navbar-container {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 2rem !important;
    box-sizing: border-box;
    position: relative;
    min-height: 52px;
}

/* Zone 1: Logo & Brand (left column) */
.nav-brand {
    justify-self: start !important;
    display: flex;
    align-items: center;
    z-index: 5;
    flex-shrink: 0;
}

/* Logo with Animation */
.nav-brand a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-brand a:hover {
    transform: scale(1.05);
}

.brand-logo-img {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    flex-shrink: 0;
}

.nav-brand i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.nav-brand a:hover { transform: none; }

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

/* Zone 2: Strictly Centered Categories (center column) */
.nav-categories {
    justify-self: center !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    z-index: 5;
}

.nav-categories li {
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-categories li a,
.nav-menu li a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    white-space: nowrap !important;
    padding: 0.52rem 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.2;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.nav-categories li a:hover,
.nav-menu li a:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

.nav-categories li .dropdown-toggle:hover,
.nav-categories li .dropdown-toggle:focus,
.nav-item-dropdown:hover .dropdown-toggle,
.nav-item-dropdown.active .dropdown-toggle {
    transform: none !important;
}

.nav-categories li a.active,
.nav-menu li a.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* ============================================
   NAVBAR DROPDOWN (Steam Menu)
   ============================================ */
.nav-item-dropdown {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
}

.nav-item-dropdown .dropdown-toggle {
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
}

.nav-caret {
    font-size: 0.72rem;
    margin-left: 0.25rem;
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.75;
    will-change: transform;
    backface-visibility: hidden;
}

.nav-item-dropdown:hover .nav-caret,
.nav-item-dropdown:focus-within .nav-caret,
.nav-item-dropdown.active .nav-caret {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-item-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 14px;
    background: transparent;
    pointer-events: auto;
}

.nav-dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 300px;
    padding: 0.65rem;
    background: rgba(18, 24, 38, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 242, 254, 0.18);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 242, 254, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

[data-theme="light"] .nav-dropdown-content {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(0, 150, 200, 0.22);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15), 0 0 20px rgba(0, 150, 200, 0.08);
}

.nav-item-dropdown:hover .nav-dropdown-content,
.nav-item-dropdown:focus-within .nav-dropdown-content,
.nav-item-dropdown.is-open .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.85rem !important;
    padding: 0.65rem 0.85rem !important;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
    background: transparent;
    border: 1px solid transparent;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.dropdown-item:hover {
    background: rgba(0, 242, 254, 0.08) !important;
    border-color: rgba(0, 242, 254, 0.2) !important;
    transform: translateX(4px) translateZ(0) !important;
}

[data-theme="light"] .dropdown-item:hover {
    background: rgba(0, 150, 200, 0.08) !important;
    border-color: rgba(0, 150, 200, 0.2) !important;
}

.dropdown-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(0, 242, 254, 0.12);
    color: #00f2fe;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.dropdown-item-icon i {
    display: inline-block;
    line-height: 1;
    font-size: 1.05rem;
}

.dropdown-item:hover .dropdown-item-icon {
    background: rgba(0, 242, 254, 0.24);
    box-shadow: 0 0 14px rgba(0, 242, 254, 0.4);
    transform: scale(1.05) translateZ(0);
}

.dropdown-item-title {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
    line-height: 1.25;
}

.dropdown-item-desc {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.25;
    margin-top: 2px;
}

/* Zone 3: User Actions (right column) */
.nav-actions {
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    z-index: 5;
}

.nav-action-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    white-space: nowrap !important;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.2;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.nav-action-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

.nav-action-link.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    font-weight: 600;
}

.nav-action-link.admin-link {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.nav-action-link.admin-link:hover {
    background: rgba(245, 158, 11, 0.22);
    border-color: rgba(245, 158, 11, 0.45);
    color: #fbbf24;
}

.nav-action-link.nav-logout-btn {
    color: var(--text-muted);
}

.nav-action-link.nav-logout-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.btn-primary-nav {
    color: #fff !important;
    background: var(--gradient-primary);
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    white-space: nowrap !important;
    padding: 0.5rem 0.95rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-primary-nav:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* Legacy nav-menu support */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.35rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-menu li {
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-menu li a.btn-primary-nav {
    color: #fff;
    background: var(--gradient-primary);
}

.nav-menu li a.btn-primary-nav:hover {
    color: #fff;
    filter: brightness(1.06);
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 0 0 0.25rem;
    color: var(--text-primary);
}

.theme-toggle:hover {
    transform: rotate(180deg) scale(1.1);
    border-color: var(--primary);
}

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--primary);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 38px;
    height: 38px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   MOBILE NAVIGATION DRAWER & BACKDROP
   ============================================ */
.mobile-nav-drawer {
    display: none;
}

.mobile-nav-backdrop {
    display: none;
}

/* Intermediate screen responsiveness (1025px - 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
    .navbar {
        z-index: 10000 !important;
    }

    .navbar .container,
    .navbar-container {
        padding: 0 1.25rem !important;
    }
    .nav-categories {
        gap: 0.3rem !important;
    }
    .nav-categories li a {
        padding: 0.45rem 0.65rem !important;
        font-size: 0.88rem !important;
    }
    .nav-actions {
        gap: 0.45rem !important;
    }
    .nav-actions .nav-action-link span,
    .nav-actions .admin-link span,
    .nav-actions .nav-logout-btn span {
        display: none;
    }
    .nav-actions .nav-action-link {
        padding: 0.45rem 0.6rem !important;
    }
}

/* ============================================
   NAVBAR BREAKPOINT (<= 1024px & Mobile 360px):
   - Categories hidden, desktop actions hidden except compact balance
   - Hamburger toggle visible and always in view
   - Fullscreen Mobile Drawer with dedicated topbar & close button
   ============================================ */
@media (max-width: 1024px) {
    .navbar {
        height: 56px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        z-index: 10000 !important;
    }

    .navbar .container,
    .navbar-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
        grid-template-columns: none !important;
        min-height: 56px !important;
    }

    .nav-brand {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        max-width: 130px !important;
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        justify-self: auto !important;
    }

    .nav-brand a {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 1.15rem !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-decoration: none !important;
    }

    .nav-brand a span {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        display: block !important;
    }

    /* .nav-categories hidden on mobile */
    .nav-categories {
        display: none !important;
    }

    /* .nav-actions shows only compact balance */
    .nav-actions {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        margin: 0 0 0 auto !important;
        padding: 0 !important;
        justify-self: auto !important;
    }

    .nav-actions .nav-action-link,
    .nav-actions .btn-primary-nav,
    .nav-actions .theme-toggle {
        display: none !important;
    }

    .nav-actions .nav-balance-pill {
        display: inline-flex !important;
        margin: 0 !important;
    }

    /* .nav-toggle visible */
    .nav-toggle {
        display: flex !important;
        flex-shrink: 0 !important;
        width: 38px !important;
        height: 38px !important;
        margin-left: 6px !important;
        z-index: 10001 !important;
    }

    /* Fullscreen Mobile Drawer */
    .mobile-nav-drawer,
    #navMenu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: var(--bg-primary, #0f0f0f) !important;
        z-index: 100000 !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        padding: 1rem 1.25rem 2.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        box-sizing: border-box !important;
        transform: translateY(-8px) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s !important;
    }

    .mobile-nav-drawer::-webkit-scrollbar,
    #navMenu::-webkit-scrollbar,
    .mobile-drawer-inner::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .mobile-nav-drawer.active,
    #navMenu.active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: all !important;
        transform: translateY(0) !important;
    }

    .mobile-drawer-inner {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    /* Mobile Drawer Top Bar & Dedicated Close Button */
    .mobile-drawer-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--border);
        margin-bottom: 0.25rem;
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-drawer-topbar-brand {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--text-primary);
        text-decoration: none;
        max-width: 130px;
        overflow: hidden;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .mobile-drawer-topbar-brand span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-drawer-close {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid var(--border);
        color: #fff;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
        line-height: 1;
        padding: 0;
        flex-shrink: 0;
    }

    .mobile-drawer-close:hover {
        background: rgba(255, 255, 255, 0.16);
        border-color: #38bdf8;
    }

    [data-theme="light"] .mobile-nav-drawer,
    [data-theme="light"] #navMenu {
        background: #ffffff !important;
    }

    [data-theme="light"] .mobile-drawer-close {
        background: rgba(0, 0, 0, 0.05);
        border-color: rgba(0, 0, 0, 0.1);
        color: #111827;
    }

    .mobile-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.85rem 1rem;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border-light);
        border-radius: 14px;
        margin-bottom: 0.25rem;
        transition: all 0.2s ease;
    }
    .mobile-drawer-header:hover,
    .mobile-drawer-header:active {
        background: rgba(255, 255, 255, 0.06);
        border-color: var(--primary);
    }
    [data-theme="light"] .mobile-drawer-header {
        background: rgba(0, 0, 0, 0.02);
        border-color: rgba(0, 0, 0, 0.08);
    }
    [data-theme="light"] .mobile-drawer-header:hover,
    [data-theme="light"] .mobile-drawer-header:active {
        background: rgba(0, 0, 0, 0.05);
        border-color: var(--primary);
    }

    .mobile-user-info {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        text-decoration: none;
        color: inherit;
        cursor: pointer;
    }

    .mobile-user-arrow {
        margin-left: auto;
        color: var(--text-muted);
        font-size: 0.85rem;
        transition: transform 0.2s ease, color 0.2s ease;
    }
    .mobile-drawer-header:hover .mobile-user-arrow,
    .mobile-user-info:hover .mobile-user-arrow {
        color: var(--primary);
        transform: translateX(3px);
    }

    .mobile-user-avatar {
        font-size: 2rem;
        color: var(--primary);
        display: flex;
        align-items: center;
    }

    .mobile-user-details {
        display: flex;
        flex-direction: column;
    }

    .mobile-user-name {
        font-weight: 700;
        font-size: 1.05rem;
        color: var(--text-primary);
    }

    .mobile-badge-admin {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.75rem;
        color: #f59e0b;
        font-weight: 600;
    }

    .mobile-balance-pill {
        margin: 0;
    }

    .mobile-nav-divider {
        height: 1px;
        background: var(--border);
        margin: 0.25rem 0;
    }

    .mobile-nav-section {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
    }

    .mobile-nav-section-title {
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--text-muted);
        padding: 0 0.5rem;
        margin-bottom: 0.2rem;
    }

    .mobile-nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
    }

    .mobile-nav-list li a {
        display: flex !important;
        align-items: center !important;
        gap: 0.85rem !important;
        padding: 0.85rem 1rem !important;
        color: var(--text-primary);
        text-decoration: none;
        border-radius: 12px !important;
        font-weight: 600;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--border-light);
        transition: all 0.2s ease;
        box-sizing: border-box;
    }

    .mobile-nav-list li a i {
        width: 24px;
        text-align: center;
        font-size: 1.15rem;
        color: var(--primary);
        flex-shrink: 0;
    }

    .mobile-nav-list li a:hover {
        background: var(--bg-hover);
        border-color: var(--primary);
        transform: translateX(4px);
    }

    .mobile-nav-list li a.active {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(139, 92, 246, 0.16));
        border-color: var(--primary);
        color: #fff;
    }

    .mobile-nav-list li a.mobile-nav-logout {
        color: #ef4444;
        border-color: rgba(239, 68, 68, 0.25);
    }

    .mobile-nav-list li a.mobile-nav-logout i {
        color: #ef4444;
    }

    .mobile-nav-list li a.mobile-nav-register {
        background: var(--gradient-primary) !important;
        border: none !important;
        color: #fff !important;
        box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
        justify-content: center;
    }

    .mobile-nav-list li a.mobile-nav-register i {
        color: #fff !important;
    }

    .mobile-nav-theme-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border-light);
    }

    .mobile-theme-text {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--text-primary);
    }

    .mobile-theme-text i {
        color: var(--primary);
    }

    /* Backdrop */
    .mobile-nav-backdrop {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 60px);
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 9998;
    }

    .mobile-nav-backdrop.active {
        display: block;
        opacity: 1;
        pointer-events: all;
    }
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Primary Button */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-danger {
    background: #b94343;
    color: #fff;
    box-shadow: 0 3px 10px rgba(185, 67, 67, 0.18);
}

.btn-danger:hover {
    background: #a63838;
    transform: translateY(-1px);
}

.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-outline {
    min-height: 44px;
    border-radius: 9px;
    box-shadow: none;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-success:hover,
.btn-danger:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

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

/* Secondary Button */
.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.6);
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Success Button */
.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.6);
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1.125rem 2.25rem;
    font-size: 1.125rem;
}

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

/* Hero Section with Gradient Text */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

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

/* Section Styling */
section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Feature Cards with 3D Effect */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.feature-card:hover::before {
    opacity: 0.1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg) scale(1.1);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.feature-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.feature-link:hover {
    gap: 0.75rem;
    color: var(--primary-light);
}

.feature-link::after {
    content: '→';
    font-size: 1.25rem;
}

/* Product Cards - Premium Style */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.product-card:hover::after {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    border-color: var(--primary);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.9rem;
    background: var(--gradient-success);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

.product-badge.api-badge {
    background: var(--gradient-secondary);
}

.product-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.price {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Stats Section */
.stats-section {
    background: var(--bg-secondary);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 500;
}

/* Forms - Modern Glass Style */
.form-container {
    max-width: 480px;
    margin: 120px auto 60px;
    padding: 3rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.form-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-link a:hover {
    color: var(--primary-light);
}

/* Alert Messages */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    animation: slideInDown 0.4s ease;
}

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

.alert-success {
    background: rgba(72, 187, 120, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(252, 129, 129, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.alert-info {
    background: rgba(66, 153, 225, 0.1);
    border-color: var(--info);
    color: var(--info);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p,
.footer-section ul {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section a i {
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.footer-section a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.payment-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s ease;
    cursor: default;
}

.payment-badge-pill:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.payment-badge-pill .payment-icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.payment-badge-pill i {
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.payment-badge-label {
    white-space: nowrap;
}

[data-theme="light"] .payment-badge-pill {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .payment-badge-pill:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 56px;
    }
    
    .hero {
        padding: 24px 0 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .cards-grid,
    .services-showcase-grid,
    .how-steps-grid {
        grid-template-columns: 1fr !important;
    }
    
    .form-container {
        margin: 20px auto 40px;
        padding: 1.5rem;
    }
}

/* Consistent, restrained product and admin surfaces */
.product-card,
.feature-card,
.stat-card,
.admin-stat-card,
.form-container,
.admin-header,
.profile-header {
    border-radius: 12px;
}

.product-card:hover,
.feature-card:hover,
.stat-card:hover,
.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.table-container { overflow-x: auto; }
.table { min-width: 620px; }
.table th {
    white-space: nowrap;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}
.table td { vertical-align: middle; }

.admin-container > h2 {
    margin: 2rem 0 1rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.btn:focus-visible,
.theme-toggle:focus-visible,
.nav-menu a:focus-visible,
.form-control:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* Smooth Page Transitions */
.page-transition {
    animation: fadeIn 0.5s ease;
}

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

/* Navbar Smooth Slide */
.navbar {
    transition: transform 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

/* Admin Tables - Premium Style */
.table-container {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.table thead {
    background: rgba(102, 126, 234, 0.1);
}

.table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: var(--bg-hover);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(72, 187, 120, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.status-expired,
.status-inactive {
    background: rgba(252, 129, 129, 0.2);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.status-pending {
    background: rgba(246, 173, 85, 0.2);
    color: var(--warning);
    border: 1px solid var(--warning);
}

/* Profile Container */
.profile-container {
    max-width: 1200px;
    margin: 120px auto 60px;
}

.profile-header {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    box-shadow: var(--shadow);
}

.profile-balance {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-button {
    padding: 0.875rem 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.tab-button.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* Admin Dashboard Cards */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.admin-stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.admin-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.admin-stat-card h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Selection */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: var(--text-primary);
}

/* ============================================
   ADMIN PANEL & INTERNAL PAGES STYLES
   ============================================ */

/* Admin Container */
.admin-container {
    max-width: 1400px;
    margin: 120px auto 60px;
    padding: 0 24px;
}

/* Admin Header */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.admin-container > h2 {
    margin: 2rem 0 1rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

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

.table {
    min-width: 620px;
}

.table th {
    white-space: nowrap;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.table td {
    vertical-align: middle;
}

.btn:focus-visible,
.theme-toggle:focus-visible,
.nav-menu a:focus-visible,
.form-control:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
}

/* Admin Actions Grid */
.admin-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-actions .btn {
    justify-content: center;
}

.admin-actions {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.admin-action-link {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 0.85rem;
    min-height: 76px;
    padding: 0.9rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.admin-action-link:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.admin-action-link > span:nth-child(2) {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.admin-action-link strong { font-size: 0.92rem; }
.admin-action-link small { color: var(--text-muted); font-size: 0.78rem; }

.admin-action-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 9px;
    background: var(--bg-tertiary);
    color: var(--primary-light);
}

.admin-action-arrow { color: var(--text-muted); font-size: 0.8rem; }

.admin-stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.admin-stat-card {
    min-height: 128px;
    padding: 1.25rem 1.4rem;
    background: var(--bg-secondary);
}
.admin-stat-card h3 {
    font-size: 0.76rem;
    letter-spacing: 0.025em;
    text-transform: none;
}
.admin-stat-card .value {
    margin-top: 1rem;
    font-size: 1.85rem;
}

.admin-container > h1 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.65rem;
}

.admin-header {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 0 0 1.25rem;
}
.admin-header h1 {
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: currentColor;
    font-size: 1.65rem;
}

.table-container {
    background: var(--bg-secondary);
    border-radius: 10px;
}

.table thead { background: var(--bg-tertiary); }
.table th { font-size: 0.72rem; }
.table td { color: var(--text-primary); }
.table tbody tr:hover { background: var(--bg-hover); }

.admin-container > .btn-outline,
.admin-container > div > .btn-outline {
    border-width: 1px;
    border-color: var(--border-light);
    color: var(--text-secondary);
}

/* Homepage content density and catalog previews */
.home-page section { padding: 68px 0; }
.home-hero {
    position: relative;
    overflow: hidden;
    padding: 120px 0 60px !important;
    text-align: center;
}
.home-hero::after {
    display: none !important;
}
.home-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.8fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
}
.home-hero-copy { max-width: 690px; }
.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #56a77a;
    box-shadow: 0 0 0 4px rgba(86, 167, 122, 0.12);
}
.home-hero .hero-title {
    margin-bottom: 1.1rem;
    max-width: 760px;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    animation: none;
}
.home-hero .hero-title span { color: var(--primary-light); }
.home-hero .hero-subtitle {
    max-width: 560px;
    margin-bottom: 1.8rem;
    font-size: 1.08rem;
    line-height: 1.7;
    animation: none;
}
.home-hero .hero-buttons { justify-content: flex-start; animation: none; }
.home-hero .btn-outline { color: var(--text-primary); border-color: var(--border-light); }
.home-overview {
    padding: 1.1rem 1.2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}
.overview-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0.35rem 0.85rem;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}
.overview-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 0.35rem;
    color: var(--text-primary);
    text-decoration: none;
    border-top: 1px solid var(--border);
}
.overview-row > span:nth-child(2) { display: grid; gap: 0.18rem; }
.overview-row strong { font-size: 0.88rem; }
.overview-row small { color: var(--text-muted); font-size: 0.74rem; }
.overview-row > b { color: var(--text-secondary); font-size: 0.84rem; }
.overview-row:hover strong { color: var(--primary-light); }
.overview-icon, .inventory-symbol {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: var(--bg-tertiary);
    color: var(--primary-light);
}
.api-icon { color: #7cae8a; }
.shop-icon { color: #d1a65e; }
.overview-note {
    margin: 0.55rem 0 0;
    padding: 0.75rem 0.35rem 0.15rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.73rem;
}
.home-services { background: var(--bg-secondary); }
.section-intro {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
    margin-bottom: 1.75rem;
}
.section-intro .eyebrow, .section-header .eyebrow, .how-heading .eyebrow { margin-bottom: 0.45rem; }
.section-intro > p { max-width: 390px; margin: 0 0 0.4rem; color: var(--text-secondary); line-height: 1.6; }
.home-page .section-title {
    margin: 0;
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: currentColor;
    font-size: 1.75rem;
    text-align: left;
}
.home-services .features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.home-services .service-card {
    display: block;
    padding: 1.35rem;
    color: inherit;
    text-align: left;
    text-decoration: none;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 160ms ease, transform 160ms ease;
}
.home-services .service-card::before { display: none; }
.home-services .service-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: none; }
.home-services .service-steam { border-top: 2px solid #6c9bd2; }
.home-services .service-api { border-top: 2px solid #7cae8a; }
.home-services .service-shop { border-top: 2px solid #d1a65e; }
.service-card-top { display: flex; align-items: center; justify-content: space-between; }
.home-services .feature-icon {
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 9px;
    background: var(--bg-tertiary);
    color: var(--primary-light);
    box-shadow: none;
    font-size: 1.15rem;
}
.home-services .service-api .feature-icon { color: #7cae8a; }
.home-services .service-shop .feature-icon { color: #d1a65e; }
.home-services .service-card:hover .feature-icon { transform: none; box-shadow: none; }
.service-count { color: var(--text-muted); font-size: 0.72rem; }
.home-services .service-card h3 { margin: 1.15rem 0 0.45rem; font-size: 1rem; }
.home-services .service-card p { min-height: 3.2em; margin-bottom: 1rem; font-size: 0.85rem; line-height: 1.55; }
.home-services .feature-link { color: var(--primary-light); font-size: 0.8rem; }
.home-services .feature-link::after { content: '\2192'; font-size: 1rem; }
.home-inventory .section-header { align-items: end; margin-bottom: 1.25rem; }
.home-inventory .section-header .section-title { margin: 0; }
.section-more { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--primary-light); font-size: 0.84rem; font-weight: 600; text-decoration: none; }
.home-inventory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.inventory-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    padding: 1rem 0.8rem;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}
.inventory-item:nth-child(odd) { padding-left: 0; padding-right: 1.2rem; }
.inventory-item:nth-child(even) { padding-right: 0; padding-left: 1.2rem; border-left: 1px solid var(--border); }
.inventory-item:hover .inventory-copy strong { color: var(--primary-light); }
.inventory-symbol { width: 42px; height: 42px; }
.inventory-copy { display: grid; gap: 0.22rem; min-width: 0; }
.inventory-copy small { overflow: hidden; color: var(--text-muted); font-size: 0.65rem; text-overflow: ellipsis; white-space: nowrap; }
.inventory-copy strong { overflow: hidden; font-size: 0.84rem; text-overflow: ellipsis; white-space: nowrap; }
.inventory-copy em { color: var(--text-secondary); font-size: 0.72rem; font-style: normal; }
.inventory-price { display: grid; justify-items: end; color: var(--text-primary); font-size: 0.85rem; white-space: nowrap; }
.inventory-price small { color: var(--text-muted); font-size: 0.68rem; font-weight: 400; }
.inventory-empty { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; padding: 1.6rem 0; color: var(--text-muted); }
.inventory-empty > i { font-size: 1.3rem; }
.inventory-empty span { display: grid; gap: 0.25rem; }
.inventory-empty strong { color: var(--text-primary); font-size: 0.9rem; }
.inventory-empty small { font-size: 0.78rem; }
.home-how { background: var(--bg-secondary); }
.how-heading { margin-bottom: 1.6rem; }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.how-steps > div { display: flex; gap: 0.9rem; padding: 1.2rem 1rem 0 0; }
.how-steps > div + div { padding-left: 1rem; border-left: 1px solid var(--border); }
.how-steps b { color: var(--primary-light); font-size: 0.76rem; }
.how-steps span { display: grid; gap: 0.3rem; }
.how-steps strong { color: var(--text-primary); font-size: 0.84rem; }
.how-steps small { color: var(--text-muted); font-size: 0.75rem; line-height: 1.5; }

@media (max-width: 800px) {
    .home-hero-layout { grid-template-columns: 1fr; gap: 2rem; }
    .home-overview { max-width: 600px; }
    .home-services .features-grid { grid-template-columns: 1fr; }
    .home-services .service-card { padding: 1.15rem; }
    .home-services .service-card p { min-height: 0; }
}
@media (max-width: 600px) {
    .home-page section { padding: 48px 0; }
    .home-hero { padding: 68px 0 44px !important; }
    .home-hero::after { right: 24px; width: 34%; }
    .home-hero .hero-title { font-size: 2.45rem; }
    .home-hero .hero-buttons { align-items: stretch; flex-direction: column; }
.home-hero .hero-buttons .btn { justify-content: center; }
    .section-intro { display: block; }
    .section-intro > p { margin-top: 0.7rem; font-size: 0.88rem; }
    .home-page .section-title { font-size: 1.5rem; }
    .home-inventory .section-header { align-items: start; flex-direction: column; }
    .home-inventory-grid { grid-template-columns: 1fr; }
    .inventory-item:nth-child(odd), .inventory-item:nth-child(even) { padding: 0.9rem 0; border-left: 0; }
    .how-steps { grid-template-columns: 1fr; }
    .how-steps > div, .how-steps > div + div { padding: 0.9rem 0; border-left: 0; }
}

/* Store catalog */
.shop-header {
    padding: 132px 0 36px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.shop-header .container { max-width: 1180px; }
.shop-header .eyebrow { margin-bottom: 0.55rem; }
.shop-header .hero-title {
    margin: 0 0 0.4rem;
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: currentColor;
    font-size: 2.35rem !important;
    line-height: 1.2;
}
.shop-header .hero-subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem !important;
}
.shop-catalog { padding: 2.25rem 0 5rem; }
.shop-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.15rem; }
.shop-product {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.2rem;
    background: var(--bg-secondary);
    border-radius: 10px;
}
.shop-product-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 7px;
    background: var(--bg-tertiary);
}
.shop-product-icon {
    width: 48px;
    height: 48px;
    margin: 0 0 1rem;
    border-radius: 9px;
    background: var(--bg-tertiary);
    color: var(--primary-light);
    box-shadow: none;
    font-size: 1.25rem;
}
.shop-product .product-badge {
    z-index: 1;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.6rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: none;
    font-size: 0.68rem;
    text-transform: none;
}
.shop-product .product-title { margin: 0 0 0.35rem; font-size: 1rem; }
.shop-product .product-meta { margin: 0 0 0.6rem; font-size: 0.75rem; }
.shop-product .product-meta span { padding: 0 0.2rem; color: var(--text-muted); }
.shop-product .product-description { flex: 1; margin-bottom: 1rem; font-size: 0.83rem; }
.shop-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
}
.shop-product-footer .product-price { margin: 0; }
.shop-product-footer .price {
    display: inline-block;
    font-size: 1.35rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
}
.shop-product-footer .product-price { flex: 0 0 auto; min-width: max-content; }
.shop-buy-button {
    width: auto;
    min-width: 112px;
    min-height: 40px;
    padding: 0.55rem 0.8rem;
    font-size: 0.8rem;
    white-space: nowrap;
}
.shop-buy-button:disabled { color: var(--text-muted); background: var(--bg-tertiary); cursor: not-allowed; }
.shop-purchase-result { margin: 0.8rem 0 0; color: #65b889; font-size: 0.82rem; line-height: 1.5; overflow-wrap: anywhere; }
.shop-purchase-result.is-error { color: #df7777; }
.shop-empty {
    display: grid;
    justify-items: start;
    gap: 0.7rem;
    max-width: 560px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.shop-empty > i { color: var(--primary-light); font-size: 1.5rem; }
.shop-empty h2 { margin: 0; color: var(--text-primary); font-size: 1.1rem; }
.shop-empty p { margin: 0 0 0.4rem; color: var(--text-secondary); font-size: 0.88rem; }

.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.62);
}
.admin-modal {
    width: min(100%, 520px);
    max-height: min(90vh, 820px);
    overflow: auto;
    padding: 1.4rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}
.admin-modal h2 { margin: 0 0 1.2rem; color: var(--text-primary); font-size: 1.2rem; }
.admin-field { display: grid; gap: 0.4rem; margin-bottom: 0.9rem; color: var(--text-secondary); font-size: 0.82rem; }
.admin-field input, .admin-field textarea, .admin-field select, .admin-inline-input {
    width: 100%;
    min-height: 42px;
    padding: 0.65rem 0.75rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 7px;
    font: inherit;
}
.admin-field textarea { resize: vertical; }
.admin-field input:focus, .admin-field textarea:focus, .admin-field select:focus, .admin-inline-input:focus { outline: 2px solid var(--primary-light); outline-offset: 1px; }
.admin-modal-actions { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1rem; }
.admin-form-message { min-height: 1.2rem; margin: 0; color: #65b889; font-size: 0.82rem; }
.admin-form-message.is-error { color: #df7777; }
.admin-inline-input { min-width: 100px; max-width: 140px; }

.service-panel {
    margin: 1.75rem 0;
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}
.service-panel h2, .service-panel h3 { margin-top: 0; color: var(--text-primary); }
.section-toolbar, .action-row, .inline-form { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.action-row { justify-content: flex-start; }
.muted, .empty-message { color: var(--text-muted); }
.table-container { overflow-x: auto; }
.table { width: 100%; min-width: 680px; border-collapse: collapse; }
.table th, .table td { padding: .7rem .6rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
.table th { color: var(--text-secondary); font-size: .75rem; text-transform: uppercase; }
.catalog-thumb { width: 42px; height: 42px; margin-right: .5rem; vertical-align: middle; object-fit: cover; border-radius: 6px; }
.catalog-image { display: block; width: 100%; max-height: 190px; object-fit: cover; border-radius: 6px; }
.rental-image { height: 190px; margin-bottom: 1rem; }
.catalog-image[hidden], .catalog-thumb[hidden], .product-icon[hidden], .shop-product-image[hidden] { display: none; }
.admin-image-preview { display: block; width: 100%; max-height: 220px; margin: .6rem 0; object-fit: contain; background: var(--bg-primary); border: 1px solid var(--border); border-radius: 6px; }
.admin-image-preview[hidden] { display: none; }
.secret-value { display: inline-block; max-width: 100%; padding: .45rem .6rem; overflow-wrap: anywhere; color: var(--text-primary); background: var(--bg-primary); border: 1px solid var(--border); border-radius: 5px; }
.secret-value[hidden], .key-notice[hidden] { display: none !important; }
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; align-items: start; padding-top: 2rem; padding-bottom: 3rem; }
.docs-nav { position: sticky; top: 100px; display: grid; gap: .25rem; max-height: calc(100vh - 120px); overflow-y: auto; }
.docs-nav a { padding: .65rem .8rem; border-radius: 6px; color: var(--text-secondary); text-decoration: none; }
.docs-nav a:hover, .docs-nav a:focus-visible { color: var(--text-primary); background: var(--bg-secondary); }
.docs-content { min-width: 0; color: var(--text-secondary); line-height: 1.7; }
.docs-content .service-panel { margin-top: 0; scroll-margin-top: 100px; }
.docs-content h3 { margin-top: 1.5rem; }
.docs-content p, .docs-content ol, .docs-content dl { margin-bottom: 1rem; }
.docs-content ol { padding-left: 1.5rem; }
.docs-content li + li { margin-top: .55rem; }
.docs-content pre { max-width: 100%; overflow-x: auto; padding: 1rem; color: var(--text-primary); background: var(--bg-primary); border: 1px solid var(--border); border-radius: 6px; font-size: .85rem; line-height: 1.65; tab-size: 4; }
.docs-content pre code { white-space: pre; }
.docs-content .table { min-width: 560px; }
.docs-errors dt { margin-top: 1rem; color: var(--text-primary); font-weight: 600; }
.docs-errors dd { margin: .25rem 0 0; }
@media (max-width: 900px) {
    .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .docs-nav { position: static; display: flex; flex-wrap: wrap; max-height: none; gap: .3rem; }
    .docs-nav a { padding: .5rem .65rem; border: 1px solid var(--border); font-size: .85rem; }
}
@media (max-width: 600px) {
    .docs-layout { padding-top: 1rem; }
    .docs-content pre { padding: .75rem; font-size: .78rem; }
    .docs-content .table { min-width: 460px; }
}
.key-notice { margin: .8rem 0; color: #65b889; }
.balance-amount { display: inline-block; margin-right: .7rem; font-size: 1.35rem; color: var(--text-primary); }
.profile-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; overflow-x: auto; }
.tab-content[hidden], .tab-content:not(.active) { display: none; }
.inline-form label { display: grid; gap: .35rem; color: var(--text-secondary); }
.inline-form input, .price-display select { min-height: 40px; padding: .55rem .7rem; color: var(--text-primary); background: var(--bg-primary); border: 1px solid var(--border-light); border-radius: 6px; }
@media (max-width: 600px) {
    .service-panel { margin: 1rem 0; padding: .9rem; }
    .section-toolbar { align-items: flex-start; }
    .section-toolbar > * { min-width: 0; }
    .inline-form { align-items: stretch; flex-direction: column; }
    .inline-form label, .inline-form button { width: 100%; }
    .balance-amount { font-size: 1.15rem; }
}

@media (max-width: 600px) {
    .shop-header { padding: 106px 0 28px; }
    .shop-header .hero-title { font-size: 2rem !important; }
    .shop-catalog { padding: 1.25rem 0 3rem; }
    .shop-grid { grid-template-columns: 1fr; }
    .shop-product-footer { align-items: center; }
}

/* Page Header for internal pages */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.page-header .hero-title {
    margin-bottom: 1rem;
}

.page-header .hero-subtitle {
    color: var(--text-secondary);
}

/* Value display in stats */
.value,
.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .admin-container {
        margin-top: 20px;
        padding: 0 12px;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-header h1 {
        font-size: 1.5rem;
    }
    
    .admin-actions {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        padding: 24px 0 28px;
    }
}

/* Input Focus Glow */
.form-control:focus {
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15),
                0 0 20px rgba(102, 126, 234, 0.2);
}

/* Card Hover Glow */
.glass-card:hover,
.product-card:hover,
.feature-card:hover {
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.25),
                0 0 0 1px rgba(102, 126, 234, 0.3);
}


/* ============================================
   NAVBAR BALANCE PILL & QUICK TOPUP
   ============================================ */
.nav-balance-item {
    display: flex;
    align-items: center;
}
.nav-balance-pill {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.nav-balance-pill:hover,
.nav-balance-pill:active,
.nav-balance-pill:focus-visible {
    transform: scale(0.98);
    background: rgba(56, 189, 248, 0.18);
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
    outline: none;
}
.nav-balance-icon {
    color: #10b981;
    font-size: 0.95rem;
}
.nav-balance-val {
    font-family: 'JetBrains Mono', monospace, sans-serif;
    letter-spacing: 0.02em;
}
.btn-topup-quick {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: transform 0.2s, background 0.2s;
}
.btn-topup-quick:hover {
    transform: scale(1.15);
    filter: brightness(1.15);
}

/* TOPUP MODAL PRESETS */
.topup-presets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}
.topup-preset-chip {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 0.65rem 0.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}
.topup-preset-chip:hover, .topup-preset-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 145, 165, 0.3);
}
.input-with-currency {
    position: relative;
    display: flex;
    align-items: center;
}
.input-with-currency .form-control {
    padding-right: 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}
.currency-badge {
    position: absolute;
    right: 1rem;
    color: var(--text-muted);
    font-weight: bold;
    pointer-events: none;
}

/* ============================================
   STEAM RENTAL HERO & TIERS
   ============================================ */
.rental-hero-section {
    padding: 130px 0 30px;
    text-align: center;
}
.rental-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(93, 145, 165, 0.15);
    border: 1px solid rgba(93, 145, 165, 0.3);
    color: var(--primary-light);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.rental-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.2;
}
.rental-hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 1.75rem;
}
.rental-features-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.rental-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}
.discount-tiers-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}
.discount-tiers-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
    text-align: left;
}
.discount-tiers-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}
.discount-tier-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: transform 0.2s;
}
.discount-tier-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}
.tier-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.tier-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #10b981;
}
.tier-val.tier-zero {
    color: var(--text-muted);
}
.tier-val.tier-max {
    color: #f59e0b;
}

/* ============================================
   ACTIVE RENTALS SECTION
   ============================================ */
.active-rentals-section {
    padding: 1.5rem 0 2.5rem;
}
.active-rentals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.active-rentals-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}
.active-rentals-header .btn,
.active-rentals-all-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
.active-rentals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}
.active-rental-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.active-rental-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}
.active-rental-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.active-rental-time {
    color: var(--text-muted);
}
.active-rental-game {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.active-rental-creds {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.cred-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}
.cred-label {
    width: 60px;
    color: var(--text-muted);
}
.cred-val {
    flex: 1;
    background: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    user-select: all;
}
.secret-blur {
    filter: blur(5px);
    cursor: pointer;
    transition: filter 0.2s;
}
.secret-blur:hover {
    filter: blur(2px);
}
.btn-copy {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
.btn-copy:hover {
    color: var(--primary-light);
    background: var(--bg-hover);
}
.guard-code-output {
    margin-top: 0.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #10b981;
    min-height: 1.5rem;
}

/* ============================================
   RENTAL CATALOG & CARDS
   ============================================ */
.rental-catalog-section {
    padding: 2rem 0 4rem;
}
.catalog-section-header {
    margin-bottom: 2rem;
}
.catalog-section-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}
.rental-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
}
.rental-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.rental-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}
.rental-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.15);
}
.rental-stock-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: #10b981;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.rental-base-rate {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.rental-base-rate strong {
    color: var(--text-primary);
    font-size: 1rem;
}
.rental-media {
    width: 100%;
    height: 180px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.rental-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.rental-card:hover .rental-card-image {
    transform: scale(1.05);
}
.rental-icon-box {
    font-size: 4rem;
    color: var(--text-muted);
    opacity: 0.5;
}
.rental-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.rental-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.rental-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rental-calc-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}
.calc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}
.calc-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.calc-discount-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}
.hour-presets-bar {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}
.preset-chip {
    flex: 1;
    white-space: nowrap;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.35rem 0.4rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}
.preset-chip small {
    display: block;
    font-size: 0.65rem;
    color: #10b981;
}
.preset-chip:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}
.preset-chip.active {
    background: var(--primary);
    border-color: var(--primary-light);
    color: #fff;
}
.preset-chip.active small {
    color: #fff;
}
.calc-inputs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.calc-input-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}
.calc-input-group input.form-control {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}
.qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-tertiary);
}
.btn-qty-step {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: bold;
    width: 32px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.btn-qty-step:hover {
    background: var(--bg-hover);
    color: var(--primary-light);
}
.rental-qty-input {
    flex: 1;
    background: transparent;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    width: 40px;
}
.rental-price-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--border);
    padding-top: 0.75rem;
}
.price-breakdown {
    display: flex;
    flex-direction: column;
}
.price-old {
    font-size: 0.8rem;
    text-decoration: line-through;
    color: var(--text-muted);
}
.price-total-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.price-total-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace, sans-serif;
}
.rental-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}
.btn-rent-instant {
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
}
.btn-rent-cart {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

/* ============================================
   RENTAL CART & SUCCESS MODAL
   ============================================ */
.rental-cart-section {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 420px;
    max-width: calc(100vw - 3rem);
    z-index: 990;
}
.rental-cart-card {
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
}
.rental-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}
.rental-cart-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}
.rental-cart-items-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.rental-cart-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}
.cart-item-title {
    font-weight: 600;
    color: var(--text-primary);
}
.cart-item-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.cart-item-cost {
    font-weight: 700;
    font-family: monospace;
    color: #10b981;
}
.rental-cart-footer {
    border-top: 1px solid var(--border);
    padding-top: 0.85rem;
}
.cart-total-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.cart-balance-check {
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.cart-total-amount {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}
.cart-total-amount span {
    color: #10b981;
}

/* SUCCESS MODAL CREDENTIALS */
.modal-dialog-lg {
    max-width: 600px;
}
.rental-success-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.25rem 0;
}
.rental-success-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.25rem;
}

@media (max-width: 768px) {
    .discount-tiers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .rental-hero-title {
        font-size: 2rem;
    }
    .rental-cart-section {
        left: 1rem;
        right: 1rem;
        width: auto;
    }
}


/* ============================================
   GLOBAL MODAL SYSTEM (HIDDEN BY DEFAULT)
   ============================================ */
.modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200000 !important;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal.active {
    display: flex !important;
    z-index: 200000 !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-dialog {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

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

.modal-dialog-lg {
    max-width: 620px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.15);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.1);
}


/* ============================================
   SERVICES SHOWCASE (HOMEPAGE 3-CARD GRID)
   ============================================ */
.services-showcase-section {
    padding: 2.5rem 0 3.5rem;
}

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

.text-center .muted {
    margin: 0 auto;
}

.services-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-top: 2rem;
}

.showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.25s;
}

.showcase-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.showcase-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.15);
}

.showcase-badge-rate {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.showcase-media {
    width: 100%;
    height: 160px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.showcase-card:hover .showcase-icon-box {
    transform: scale(1.1) rotate(5deg);
}

.steam-accent {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    border: 1px solid rgba(102, 192, 244, 0.3);
    color: #66c0f4;
}

.api-accent {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #fff;
}

.shop-accent {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fff;
}

.showcase-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.showcase-body h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.showcase-body p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.showcase-perks {
    display: flex;
    gap: 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.showcase-body .btn {
    margin-top: auto;
}

/* ============================================
   HOMEPAGE HIGHLIGHTS & STEPS
   ============================================ */
.home-highlights-section {
    padding: 2.5rem 0 3.5rem;
}

.home-how-section {
    padding: 2.5rem 0 4.5rem;
}

.how-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.how-step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.how-step-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.how-step-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-light);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 0.75rem;
    font-family: 'JetBrains Mono', monospace, sans-serif;
}

.how-step-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.how-step-card p {
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 992px) {
    .services-showcase-grid,
    .how-steps-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   STEAM RENTAL COMPACT CATALOG & SEARCH/FILTERS
   ============================================ */
.rental-catalog-toolbar {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rental-search-wrap {
    position: relative;
    width: 100%;
}

.rental-search-wrap .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

.game-search-input {
    width: 100%;
    padding: 0.75rem 2.8rem 0.75rem 2.75rem;
    font-size: 0.95rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.game-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: var(--bg-tertiary);
}

.search-clear-btn {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.35rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.search-clear-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.rental-toolbar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.rental-filter-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-tag-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-tag-btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.filter-tag-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.rental-sort-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sort-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.rental-sort-select {
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
}

.rental-sort-select:focus {
    outline: none;
    border-color: var(--primary);
}

.rental-counter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    border-top: 1px dashed var(--border);
    padding-top: 0.75rem;
}

.rental-counter-text strong {
    color: var(--text-primary);
}

/* Compact Game Cards */
.compact-rental-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.compact-rental-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.25s;
}

.compact-rental-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.compact-card-media {
    position: relative;
    width: 100%;
    height: 160px;
    background: var(--bg-secondary);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compact-card-media .rental-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.compact-rental-card:hover .compact-card-media .rental-card-image {
    transform: scale(1.06);
}

.compact-badge-overlay {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.compact-stock-badge {
    background: rgba(16, 185, 129, 0.95);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.compact-stock-badge.stock-out {
    background: rgba(239, 68, 68, 0.9);
}

.compact-popular-badge-wrap {
    position: absolute;
    bottom: 0.65rem;
    left: 0.75rem;
    z-index: 2;
    pointer-events: none;
}

.compact-popular-badge {
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    backdrop-filter: blur(8px);
}

.rental-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
}

.rental-tag-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    line-height: 1.25;
}

.compact-price-badge {
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.76rem;
    font-weight: 500;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.compact-price-badge strong {
    color: #38bdf8;
    font-size: 0.88rem;
    font-weight: 700;
}

.compact-card-body {
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.compact-card-body .rental-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7em;
}

.compact-card-body .rental-card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.9em;
}

.compact-card-action {
    margin-top: auto;
}

.btn-open-modal {
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Empty State */
.rental-empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 16px;
    margin: 2rem 0;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.4;
    margin-bottom: 1rem;
}

.rental-empty-state h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.rental-empty-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 480px;
    margin: 0 auto 1.25rem auto;
}

/* ============================================
   MODAL: #gameRentalModal
   ============================================ */
.rental-modal-dialog {
    max-width: 640px;
    width: 100%;
}

.rental-modal-title-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.rental-modal-game-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.15));
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #38bdf8;
    flex-shrink: 0;
}

.rental-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.2rem 0;
    color: var(--text-primary);
    line-height: 1.3;
}

.rental-modal-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-rate strong {
    color: #38bdf8;
}

.meta-separator {
    opacity: 0.5;
}

.meta-stock {
    color: #10b981;
    font-weight: 600;
}

.modal-game-info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem;
    margin-bottom: 1.25rem;
}

.modal-game-banner {
    width: 100%;
    max-height: 220px;
    height: auto;
    aspect-ratio: 460 / 215;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 0.65rem;
    display: block;
}

.modal-game-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.45;
}

.modal-discount-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem;
    margin-bottom: 1.25rem;
}

.discount-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.discount-header-left {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
}

.modal-discount-timeline {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem;
}

.timeline-tier {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.35rem 0.15rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.timeline-tier .tier-hours {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.timeline-tier .tier-val {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.timeline-tier.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.timeline-tier.active .tier-val {
    color: #10b981;
    font-weight: 800;
}

.modal-config-group {
    margin-bottom: 1.25rem;
}

.modal-group-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.modal-hour-chips {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.5rem !important;
    margin-bottom: 0.65rem;
}

.modal-exact-hours-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.exact-hours-title {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

.exact-hours-input-box {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.modal-hours-field {
    width: 80px;
    padding: 0.35rem 0.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.hours-unit {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.qty-select-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.qty-limit-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.modal-qty-control-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-stepper {
    width: 140px;
}

.modal-qty-field {
    font-size: 1.05rem;
}

.qty-extra-info {
    font-size: 0.78rem;
    color: var(--text-muted);
    flex: 1;
    min-width: 180px;
    line-height: 1.4;
}

.modal-price-breakdown-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 1.15rem;
    margin-top: 1.25rem;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

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

.breakdown-val {
    font-weight: 600;
    color: var(--text-primary);
}

.breakdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.breakdown-row.total-row {
    margin-bottom: 0;
    margin-top: 0.35rem;
}

.total-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.bonus-minutes-pill {
    font-size: 0.75rem;
    color: #10b981;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.2rem;
    font-weight: 500;
}

.total-values {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.total-final-price {
    font-size: 1.55rem;
    font-weight: 800;
    color: #10b981;
    font-family: 'JetBrains Mono', monospace, sans-serif;
    text-shadow: 0 0 14px rgba(16, 185, 129, 0.45);
    letter-spacing: -0.02em;
}

.modal-actions-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
}

.btn-modal-rent {
    font-size: 0.98rem;
    font-weight: 700;
    padding: 0.75rem 1rem;
}

.btn-modal-cart {
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
}

/* ============================================
   SHOP CATEGORIES & STEAM TRADE STYLES
   ============================================ */
.shop-tabs-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.shop-tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    border-radius: 10px;
    padding: 0.55rem 1.15rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.shop-tab-btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.shop-tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.tag-trade {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.tag-game {
    background: rgba(168, 85, 247, 0.15) !important;
    color: #c084fc !important;
}

.tag-key {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
}

.shop-trade-notice {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(56, 189, 248, 0.08);
    border: 1px dashed rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ============================================
   RESPONSIVE & MOBILE ADAPTATIONS (< 768px, < 540px, < 480px)
   ============================================ */

/* 1. Steam Rental Search & Filters Toolbar */
.rental-search-wrap {
    width: 100%;
}

.game-search-input {
    width: 100%;
}

.rental-catalog-toolbar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.rental-toolbar-row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.rental-filter-tags {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 0.4rem !important;
    box-sizing: border-box !important;
}

.rental-filter-tags::-webkit-scrollbar {
    display: none !important;
}

.filter-tag-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

/* 2. Shop Tabs Horizontal Swipe */
.shop-tabs-bar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 0.4rem !important;
    box-sizing: border-box !important;
}

.shop-tabs-bar::-webkit-scrollbar {
    display: none !important;
}

.shop-tab-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

/* 3. Tables responsive touch-scroll across all pages (/profile, /docs, /ai-api, /admin) */
.table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    max-width: 100% !important;
    scrollbar-width: thin !important;
}

/* 4. Modal #gameRentalModal & .rental-modal-dialog */
#gameRentalModal .modal-dialog,
.rental-modal-dialog {
    width: 95% !important;
    max-width: 520px !important;
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    margin: auto !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    position: relative !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease !important;
}

.bottom-sheet-handle {
    display: none;
}

#gameRentalModal .modal-close {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.6rem !important;
    line-height: 1 !important;
    border-radius: 8px !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    cursor: pointer !important;
}

.modal-hour-chips .preset-chip {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 0.35rem 0.25rem !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    border-radius: 8px !important;
    text-align: center !important;
    transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
}

.modal-hour-chips .preset-chip small {
    display: block !important;
    font-size: 0.68rem !important;
    line-height: 1 !important;
    margin-top: 2px !important;
    font-weight: 700 !important;
    color: #10b981 !important;
}

.modal-hour-chips .preset-chip.active small {
    color: #fff !important;
}

.modal-hour-chips .preset-chip:active {
    transform: scale(0.92) !important;
}

#gameRentalModal .modal-header,
.rental-modal-dialog .modal-header {
    flex-shrink: 0 !important;
    padding: 1rem 1.25rem !important;
}

#gameRentalModal .modal-body,
.rental-modal-dialog .modal-body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex: 1 1 auto !important;
    padding: 1.25rem !important;
}

#gameRentalModal .modal-footer,
.rental-modal-dialog .modal-footer {
    position: sticky !important;
    bottom: 0 !important;
    background: var(--bg-card) !important;
    border-top: 1px solid var(--border) !important;
    z-index: 10 !important;
    flex-shrink: 0 !important;
    padding: 0.85rem 1.25rem !important;
    margin-top: auto !important;
}

/* 5. Breakpoint @media (max-width: 768px) - Mobile Bottom Sheet & UX Polish */
@media (max-width: 768px) {
    /* Zero horizontal scroll and hidden scrollbar on mobile */
    html, body {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    ::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    /* Active rentals header mobile polish */
    .active-rentals-header {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    .active-rentals-header h2 {
        font-size: 1.15rem !important;
        line-height: 1.25 !important;
        margin: 0 0 0.25rem 0 !important;
    }
    .active-rentals-sub {
        font-size: 0.82rem !important;
        line-height: 1.35 !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    .active-rentals-header .btn,
    .active-rentals-all-btn {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        padding: 0.42rem 0.85rem !important;
        font-size: 0.82rem !important;
        display: inline-flex !important;
        align-items: center !important;
        align-self: flex-start !important;
    }

    /* Mobile Navbar & Touch Target */
    .navbar {
        height: 56px !important;
        padding: 0 !important;
    }

    .brand-logo-img {
        width: 26px !important;
        height: 26px !important;
    }

    .nav-toggle {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        margin-left: 6px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid var(--border-light) !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
    }

    /* Catalog Toolbar & Search */
    .rental-toolbar-row {
        width: 100% !important;
        margin-bottom: 0.75rem !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .rental-search-input,
    .game-search-input {
        height: 44px !important;
        font-size: 0.9rem !important;
    }

    .rental-filter-tags {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 0.4rem !important;
        padding: 0.25rem 0 !important;
        width: 100% !important;
    }

    .rental-filter-tags::-webkit-scrollbar {
        display: none !important;
    }

    .rental-filter-tags .filter-tag-btn,
    .filter-tag-btn {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        height: 36px !important;
        padding: 0 0.85rem !important;
        font-size: 0.82rem !important;
    }

    .rental-sort-wrap {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .rental-sort-select {
        flex: 1 !important;
    }

    /* Homepage card grids: 1 column */
    .services-showcase-grid,
    .cards-grid,
    .how-steps-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    /* Shop and generic rental cards grid: 1 column */
    .rental-grid:not(.compact-rental-grid) {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    /* Transform #gameRentalModal on Mobile into a Sleek Bottom Sheet */
    .modal {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    .rental-modal-dialog {
        border-radius: 20px 20px 0 0 !important;
        max-height: 90vh !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6) !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .bottom-sheet-handle {
        display: block !important;
        width: 36px !important;
        height: 4px !important;
        background: rgba(255, 255, 255, 0.2) !important;
        border-radius: 2px !important;
        margin: 8px auto 4px auto !important;
        flex-shrink: 0 !important;
    }

    .rental-modal-dialog .modal-header {
        padding: 0.75rem 1rem !important;
    }

    .rental-modal-dialog .modal-body {
        padding: 0.85rem 1rem !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Game info card on mobile */
    .modal-game-info-card {
        padding: 0.65rem !important;
        margin-bottom: 0.75rem !important;
    }

    .modal-game-banner {
        max-height: 120px !important;
        margin-bottom: 0.5rem !important;
    }

    .modal-game-desc {
        font-size: 0.8rem !important;
        line-height: 1.35 !important;
    }

    /* Discount timeline on mobile */
    .modal-discount-timeline {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 0.35rem !important;
        padding-bottom: 4px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .modal-discount-timeline::-webkit-scrollbar {
        display: none !important;
    }

    .timeline-tier {
        flex: 0 0 auto !important;
        min-width: 58px !important;
        padding: 0.35rem 0.45rem !important;
        font-size: 0.75rem !important;
    }

    /* Hours chips grid on mobile: strictly 4 columns so it's 2 equal rows */
    .modal-hour-chips {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.35rem !important;
    }

    .modal-hour-chips .preset-chip {
        min-height: 40px !important;
        height: auto !important;
        padding: 0.25rem 0.1rem !important;
        font-size: 0.78rem !important;
    }

    .modal-hour-chips .preset-chip small {
        font-size: 0.62rem !important;
    }

    .preset-chip {
        height: 42px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.85rem !important;
        padding: 0.2rem !important;
    }

    /* Sticky Modal Footer on Mobile */
    .rental-modal-dialog .modal-footer {
        padding: 0.75rem 1rem !important;
        background: var(--bg-card) !important;
        border-top: 1px solid var(--border-light) !important;
        position: sticky !important;
        bottom: 0 !important;
        z-index: 10 !important;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3) !important;
        display: flex !important;
        gap: 0.5rem !important;
    }

    .rental-modal-dialog .modal-footer button,
    .rental-modal-dialog .modal-footer .btn {
        flex: 1 !important;
        height: 46px !important;
    }
}

/* 6. Breakpoint @media (max-width: 540px) */
@media (max-width: 540px) {
    /* Compact rental grid: 2 columns on small phones (160px min) */
    .compact-rental-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 0.75rem !important;
    }

    .compact-card-media {
        height: 110px !important;
    }

    .compact-card-body {
        padding: 0.65rem !important;
    }

    .compact-game-title {
        font-size: 0.88rem !important;
        line-height: 1.25 !important;
    }

    .rental-card-tags {
        gap: 0.25rem !important;
        margin-bottom: 0.35rem !important;
    }

    .rental-tag-pill {
        font-size: 0.62rem !important;
        padding: 0.1rem 0.35rem !important;
    }

    .compact-card-footer {
        padding: 0.5rem 0.65rem 0.65rem !important;
    }

    .compact-price-val {
        font-size: 0.95rem !important;
    }

    .btn-rent-compact {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.78rem !important;
    }
}

/* 7. Breakpoint @media (max-width: 480px) */
@media (max-width: 480px) {
    .active-rentals-header h2 {
        font-size: 1.05rem !important;
    }
    .active-rentals-sub {
        font-size: 0.78rem !important;
    }
    .active-rentals-header .btn,
    .active-rentals-all-btn {
        padding: 0.38rem 0.68rem !important;
        font-size: 0.78rem !important;
    }

    .rental-modal-title {
        font-size: 1.05rem !important;
    }

    .rental-modal-game-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.15rem !important;
    }

    .total-final-price {
        font-size: 1.25rem !important;
    }

    .rental-card.shop-product {
        border-radius: 14px !important;
    }

    .rental-card-top {
        padding: 0.75rem !important;
    }

    .rental-card-body {
        padding: 0.75rem !important;
    }

    .rental-card-footer {
        padding: 0.75rem !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .rental-card-footer .btn {
        width: 100% !important;
    }
}



/* ============================================
   PROFILE REDESIGN & STEAM BOOST STYLES
   ============================================ */

.nav-badge-hot {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: #ffffff !important;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.35rem;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Profile Header */
.profile-header-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    box-shadow: var(--shadow);
}

.profile-header-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.profile-avatar-box {
    flex-shrink: 0;
}

.profile-avatar-gradient {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5d91a5 0%, #34d399 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(93, 145, 165, 0.35);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.profile-details-box {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.profile-username {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
}

.user-role-badge {
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-admin {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-user {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.profile-meta-list {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.profile-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.profile-balance-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem 1.75rem;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.balance-card-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.balance-card-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}

/* Trade URL Card */
.trade-url-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.trade-url-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.trade-url-title {
    font-size: 0.95rem;
}

.trade-url-helper {
    font-size: 0.8rem;
    color: var(--primary-light);
    text-decoration: underline;
}

.trade-url-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.trade-url-input-wrap {
    flex: 1;
    min-width: 280px;
}

.trade-url-status {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

/* Profile Stat Widgets Grid */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.profile-stat-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    user-select: none;
}

.profile-stat-widget:hover {
    transform: translateY(-3px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.stat-widget-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.icon-rentals { background: rgba(93, 145, 165, 0.15); color: var(--primary-light); }
.icon-boost { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.icon-shop { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.icon-balance { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.stat-widget-body {
    display: flex;
    flex-direction: column;
}

.stat-widget-val {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

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

/* Steam Boost Pricing Grid */
.boost-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
    margin-top: 1rem;
}

@media (max-width: 1200px) {
    .boost-pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 640px) {
    .boost-pricing-grid {
        grid-template-columns: 1fr;
    }
}

.boost-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.4rem 1.15rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.boost-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.boost-card.popular {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, rgba(93, 145, 165, 0.08) 0%, var(--bg-card) 100%);
}

.boost-card.current-plan {
    border-color: #10b981;
    box-shadow: 0 0 0 1px #10b981;
}

.boost-popular-ribbon {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.boost-card-header {
    margin-bottom: 0.75rem;
}

.boost-tier-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.boost-tier-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.boost-tier-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.boost-tier-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.boost-tier-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    min-height: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.boost-card-features {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0.75rem 0 1.25rem;
    flex: 1;
    font-size: 0.84rem;
}

.boost-feat-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    line-height: 1.35;
    color: var(--text-secondary);
}

.boost-feat-item strong {
    color: var(--text-primary);
}

.boost-feat-item > span:last-child {
    flex: 1;
    min-width: 0;
}

.boost-feat-item i {
    flex-shrink: 0;
    font-size: 0.85rem;
}

.boost-feat-item.disabled {
    color: var(--text-muted);
    opacity: 0.5;
}

.boost-card-action {
    margin-top: auto;
    width: 100%;
}

.boost-card-action .btn {
    width: 100%;
    padding: 0.75rem 0.35rem !important;
    font-size: 0.88rem !important;
    font-weight: 700;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    justify-content: center;
    align-items: center;
    display: inline-flex;
    letter-spacing: -0.01em;
}

/* Boost Status Banner */
.boost-status-banner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem 1.75rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.boost-status-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.boost-status-badge {
    font-size: 1.15rem;
    color: var(--text-primary);
}

.boost-status-specs {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Boost Bot Management Items */
.boost-bot-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    transition: border-color 0.2s;
}

.boost-bot-item:hover {
    border-color: var(--border-light);
}

.boost-bot-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-indicator-running {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    display: inline-block;
    animation: pulseGlow 2s infinite;
}

.status-indicator-stopped {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #6b7280;
    display: inline-block;
}

.status-indicator-error {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    display: inline-block;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.boost-bot-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.boost-bot-login-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.boost-bot-games-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.game-app-chip {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    color: var(--primary-light);
}

.game-pick-chip {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.game-pick-chip:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.game-pick-chip.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    font-weight: 600;
}

.boost-bot-metrics {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.boost-bot-hours {
    text-align: right;
}

.boost-bot-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-danger-outline,
.btn-outline-danger {
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    background: transparent;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    font-weight: 500;
}

.btn-danger-outline:hover,
.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ff6b6b;
}

/* Steam Guard Progress Bar Animation */
@keyframes guardCountdown {
    from { width: 100%; }
    to { width: 0%; }
}

.guard-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.4rem;
}

.guard-progress-bar {
    height: 100%;
    background: #10b981;
    width: 100%;
}

/* ==========================================================================
   STEAM BOOST 2-STEP MODAL & GAME LIBRARY SELECTOR
   ========================================================================== */
.wizard-steps-indicator {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}

.steam-security-banner {
    position: relative;
    overflow: hidden;
}

.steam-security-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #10b981;
}

.game-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.85rem;
}

@media (max-width: 600px) {
    .game-library-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.6rem;
    }
}

.game-library-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all 0.22s ease-out;
    display: flex;
    flex-direction: column;
    user-select: none;
}

.game-library-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.game-library-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary), 0 8px 24px rgba(93, 145, 165, 0.28);
    background: rgba(93, 145, 165, 0.09);
}

.game-card-cover {
    width: 100%;
    height: 105px;
    object-fit: cover;
    background: #0d1117;
    display: block;
    border-bottom: 1px solid var(--border);
}

.game-card-content {
    padding: 0.65rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.game-card-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.game-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.game-card-check {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.8rem;
    z-index: 2;
}

.game-library-card.selected .game-card-check {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.selected-game-chip {
    background: rgba(93, 145, 165, 0.15);
    border: 1px solid var(--primary);
    color: var(--primary-light);
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    animation: fadeInScale 0.18s ease-out;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.selected-game-chip-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.selected-game-chip-remove:hover {
    color: #ef4444;
}

.selected-game-chip-warn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 6px;
    padding: 0.05rem 0.35rem;
}

.selected-game-chip-ok {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    color: #10b981;
}

.selected-game-chip-warn + .selected-game-chip-remove,
.selected-game-chip-ok + .selected-game-chip-remove {
    margin-left: 0.1rem;
}


/* ==========================================================================
   ADMIN EXPANSION & SERVER HEALTH STYLES
   ========================================================================== */
.server-health-banner {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.7) 100%);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.health-banner-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.health-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10b981;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.health-metrics-row {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex-wrap: wrap;
}

.health-metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.health-metric-label {
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.health-metric-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary, #f1f5f9);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ram-progress-track {
    width: 140px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-top: 4px;
}

.ram-progress-bar {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #00f2fe 0%, #4facfe 100%);
    transition: width 0.4s ease;
}

/* Financial Dashboard Cards */
.financial-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.financial-card {
    background: var(--bg-card, rgba(30, 41, 59, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1.4rem;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.financial-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.financial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #00f2fe 0%, #4facfe 100%);
}

.financial-card.total-card::before {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.financial-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.financial-card-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.financial-card-icon {
    font-size: 1.1rem;
    color: #00f2fe;
    opacity: 0.85;
}

.financial-card-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-primary, #ffffff);
    letter-spacing: -0.5px;
}

.financial-sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.financial-source-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.financial-source-label {
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.financial-source-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary, #f1f5f9);
}

/* Quick Actions Toolbar */
.admin-quick-toolbar {
    background: var(--bg-card, rgba(30, 41, 59, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.admin-toolbar-label {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #00f2fe;
    letter-spacing: 0.5px;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Activity Feed Table Styles */
.activity-badge {
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.activity-badge-deposit { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.activity-badge-rental { background: rgba(0, 242, 254, 0.15); color: #00f2fe; border: 1px solid rgba(0, 242, 254, 0.3); }
.activity-badge-smm { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.activity-badge-refund { background: rgba(168, 85, 247, 0.15); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }
.activity-badge-admin { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

/* ==========================================================================
   UPGRADED DEPOSIT MODAL STYLES
   ========================================================================== */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.payment-method-card {
    background: var(--bg-secondary, rgba(20, 26, 38, 0.7));
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.22s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    user-select: none;
}

.payment-method-card:hover {
    border-color: rgba(0, 242, 254, 0.4);
    background: rgba(0, 242, 254, 0.04);
    transform: translateY(-2px);
}

.payment-method-card.active {
    border-color: #00f2fe;
    background: rgba(0, 242, 254, 0.08);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.2);
}

.payment-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-card-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

/* Dynamic theme logo switching */
.logo-light-theme { display: none !important; }
.logo-dark-theme { display: inline-block !important; }

[data-theme="dark"] .logo-light-theme { display: none !important; }
[data-theme="dark"] .logo-dark-theme { display: inline-block !important; }
[data-theme="light"] .logo-dark-theme { display: none !important; }
[data-theme="light"] .logo-light-theme { display: inline-block !important; }

.payment-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    line-height: 1.2;
}

.payment-card-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-0pct {
    background: rgba(16, 185, 129, 0.16);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.45);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}
.badge-ton { background: rgba(0, 152, 234, 0.2); color: #0098ea; border: 1px solid rgba(0, 152, 234, 0.4); }
.badge-usdt { background: rgba(38, 161, 123, 0.2); color: #26a17b; border: 1px solid rgba(38, 161, 123, 0.4); }
.badge-test { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.4); }

.payment-card-desc {
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
    line-height: 1.35;
}

/* Interactive Payment Invoice Step */
.invoice-screen {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.invoice-header-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.invoice-amount-highlight {
    font-size: 1.4rem;
    font-weight: 800;
    color: #00f2fe;
}

.invoice-crypto-sub {
    font-size: 0.9rem;
    color: var(--text-muted, #94a3b8);
}

.invoice-qr-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0f172a;
    border: 2px solid rgba(0, 242, 254, 0.35);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
    width: 220px;
    height: 220px;
    margin: 0 auto;
}

.invoice-qr-wrap svg {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.invoice-field-row {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.invoice-field-label {
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
    font-weight: 600;
    text-transform: uppercase;
}

.invoice-field-val {
    font-family: 'JetBrains Mono Variable', monospace, monospace;
    font-size: 0.88rem;
    color: var(--text-primary, #ffffff);
    word-break: break-all;
    font-weight: 600;
}

.btn-copy-chip {
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: #00f2fe;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-copy-chip:hover {
    background: rgba(0, 242, 254, 0.25);
    border-color: #00f2fe;
}

.btn-copy-chip.copied {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #10b981;
}

.invoice-status-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: var(--text-muted, #94a3b8);
    font-size: 0.88rem;
    padding: 0.5rem;
}

/* ============================================
   SMM PROVIDER FILTERS & BADGES
   ============================================ */
.smm-provider-filters {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.smm-provider-filter {
    padding: 0.48rem 1.1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--bg-card, rgba(255, 255, 255, 0.04));
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.smm-provider-filter:hover {
    color: var(--text-primary);
    border-color: rgba(0, 242, 254, 0.45);
    background: rgba(0, 242, 254, 0.08);
    transform: translateY(-1px);
}

.smm-provider-filter.active {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(79, 70, 229, 0.25));
    border-color: #00f2fe;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 0 14px rgba(0, 242, 254, 0.3);
}

.service-provider-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.service-provider-badge.provider-steamsmm {
    background: rgba(0, 242, 254, 0.14);
    color: #00f2fe;
    border: 1px solid rgba(0, 242, 254, 0.35);
}

.service-provider-badge.provider-bettersmm {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(236, 72, 153, 0.18));
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.45);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
}

/* ==========================================================================
   DEFINITIVE MOBILE BOTTOM-SHEET & MODAL SYSTEM (MOBILE FIRST FOR <= 768px)
   ========================================================================== */
@media (max-width: 768px) {
    #gameRentalModal,
    .modal {
        display: none !important;
        align-items: flex-end !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        overflow: hidden !important;
    }

    #gameRentalModal.active,
    .modal.active {
        display: flex !important;
    }

    #gameRentalModal .modal-dialog,
    .rental-modal-dialog {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        margin: 0 !important;
        border-radius: 20px 20px 0 0 !important;
        max-height: 88vh !important;
        box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.75) !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        bottom: 0 !important;
    }

    .bottom-sheet-handle {
        display: block !important;
        width: 40px !important;
        height: 4px !important;
        background: rgba(255, 255, 255, 0.28) !important;
        border-radius: 9999px !important;
        margin: 8px auto 4px auto !important;
        flex-shrink: 0 !important;
    }

    #gameRentalModal .modal-header,
    .rental-modal-dialog .modal-header {
        padding: 0.65rem 1rem !important;
        flex-shrink: 0 !important;
    }

    #gameRentalModal .modal-body,
    .rental-modal-dialog .modal-body {
        padding: 0.75rem 1rem !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
        flex: 1 1 auto !important;
    }

    #gameRentalModal .modal-footer,
    .rental-modal-dialog .modal-footer {
        padding: 0.65rem 1rem !important;
        position: sticky !important;
        bottom: 0 !important;
        z-index: 20 !important;
        background: var(--bg-card, #121826) !important;
        border-top: 1px solid var(--border-light, rgba(255, 255, 255, 0.08)) !important;
        box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.45) !important;
        flex-shrink: 0 !important;
        display: flex !important;
        gap: 0.5rem !important;
    }

    #gameRentalModal .modal-footer button,
    #gameRentalModal .modal-footer a,
    .rental-modal-dialog .modal-footer button {
        flex: 1 !important;
        height: 46px !important;
        min-height: 46px !important;
        margin: 0 !important;
        font-size: 0.92rem !important;
    }
}



/* ==========================================================================
   PROSTO UI ENHANCEMENTS: SMM Tabs, Toasts, Confirm Modal, Support & Notifications
   ========================================================================== */

/* 1. SMM Category Tabs & Hero Actions */
.smm-category-tabs-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.smm-category-tabs {
    background: rgba(15, 23, 42, 0.7);
    padding: 8px;
    border-radius: 14px;
    border: 1.5px solid rgba(148, 163, 184, 0.25);
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin: 2rem auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.smm-cat-btn {
    background: #1e293b !important;
    color: #ffffff !important;
    border: 2px solid #475569 !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 0.7rem 1.4rem !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    outline: none;
    user-select: none;
}
.smm-cat-btn:hover {
    background: #334155 !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(56, 189, 248, 0.35) !important;
}
.smm-cat-btn.active {
    background: linear-gradient(135deg, #0284c7, #2563eb) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5) !important;
    transform: translateY(-1px);
}
.smm-cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    padding: 0.2rem 0.65rem !important;
    border-radius: 9999px !important;
    font-size: 0.8rem;
    min-width: 22px;
    line-height: 1.2;
    transition: background 0.2s ease, color 0.2s ease;
}
.smm-cat-btn.active .smm-cat-count {
    background: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
}

[data-theme="light"] .smm-category-tabs {
    background: rgba(241, 245, 249, 0.95);
    border-color: #cbd5e1;
}
[data-theme="light"] .smm-cat-btn {
    background: #f8fafc !important;
    color: #0f172a !important;
    border: 2px solid #94a3b8 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}
[data-theme="light"] .smm-cat-btn:hover {
    background: #e2e8f0 !important;
    border-color: #0284c7 !important;
    color: #0f172a !important;
}
[data-theme="light"] .smm-cat-btn.active {
    background: linear-gradient(135deg, #0284c7, #2563eb) !important;
    color: #ffffff !important;
    border-color: #38bdf8 !important;
}
[data-theme="light"] .smm-cat-count {
    background: rgba(15, 23, 42, 0.12) !important;
    color: #0f172a !important;
}
[data-theme="light"] .smm-cat-btn.active .smm-cat-count {
    background: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
}

.smm-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.smm-hero-btn {
    min-width: 240px;
    justify-content: center;
    text-align: center;
    height: 50px;
    display: inline-flex;
    align-items: center;
}

/* 2. In-App Toast Container & Toasts */
#toastContainer {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    width: calc(100vw - 32px);
    pointer-events: none;
}

.toast-message {
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    padding-right: 16px;
    box-sizing: border-box;
    border-radius: 14px;
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 1px rgba(255, 255, 255, 0.2);
    transform: translateX(110%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.toast-message.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-message.hide {
    transform: translateX(110%);
    opacity: 0;
}

.toast-icon {
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 3px;
    line-height: 1.3;
}

.toast-text {
    font-size: 0.88rem;
    line-height: 1.45;
    color: #e2e8f0;
    word-break: break-word;
}

.toast-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    width: 26px;
    height: 26px;
    min-width: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-radius: 6px;
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s ease, background 0.15s ease;
}
.toast-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: left;
    transition: transform linear;
}

/* Toast Color Schemes */
.toast-success {
    background: linear-gradient(145deg, #064e3b, #0f2e24) !important;
    border-color: rgba(52, 211, 153, 0.4) !important;
}
.toast-success .toast-icon { color: #34d399; }
.toast-success .toast-progress { background: #34d399; }

.toast-error {
    background: linear-gradient(145deg, #4c0519, #2b0c16) !important;
    border-color: rgba(244, 63, 94, 0.45) !important;
}
.toast-error .toast-icon { color: #fb7185; }
.toast-error .toast-progress { background: #fb7185; }

.toast-warning {
    background: linear-gradient(145deg, #451a03, #261307) !important;
    border-color: rgba(251, 191, 36, 0.45) !important;
}
.toast-warning .toast-icon { color: #fbbf24; }
.toast-warning .toast-progress { background: #fbbf24; }

.toast-info {
    background: linear-gradient(145deg, #0c4a6e, #082f49) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
}
.toast-info .toast-icon { color: #38bdf8; }
.toast-info .toast-progress { background: #38bdf8; }

[data-theme="light"] .toast-message {
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .toast-text {
    color: #334155;
}
[data-theme="light"] .toast-success {
    background: #ecfdf5 !important;
    border-color: #6ee7b7 !important;
}
[data-theme="light"] .toast-success .toast-text { color: #065f46; }
[data-theme="light"] .toast-error {
    background: #fff1f2 !important;
    border-color: #fca5a5 !important;
}
[data-theme="light"] .toast-error .toast-text { color: #9f1239; }
[data-theme="light"] .toast-warning {
    background: #fffbeb !important;
    border-color: #fde68a !important;
}
[data-theme="light"] .toast-warning .toast-text { color: #92400e; }
[data-theme="light"] .toast-info {
    background: #f0f9ff !important;
    border-color: #bae6fd !important;
}
[data-theme="light"] .toast-info .toast-text { color: #075985; }

/* 3. In-App Confirm Modal */
.app-confirm-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.app-confirm-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}
.app-confirm-modal {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    max-width: 460px;
    width: 100%;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.app-confirm-backdrop.active .app-confirm-modal {
    transform: scale(1);
}
.app-confirm-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.app-confirm-header i {
    font-size: 1.5rem;
    color: #f59e0b;
}
.app-confirm-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}
.app-confirm-body {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 22px;
    white-space: pre-line;
}
.app-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}
[data-theme="light"] .app-confirm-modal {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .app-confirm-title {
    color: #0f172a;
}
[data-theme="light"] .app-confirm-body {
    color: #475569;
}

/* 4. Floating Telegram Support Button */
.floating-support-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99990;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.25);
}
.floating-support-btn:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.65);
    color: #ffffff !important;
}
.floating-support-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* 5. Notification Bell & Dropdown in Navbar */
.nav-notification-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-notification-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary, #94a3b8);
    font-size: 1.15rem;
    cursor: pointer;
    position: relative;
    padding: 8px 10px;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nav-notification-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .nav-notification-btn:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.05);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.notification-badge.mobile-menu-badge {
    position: static !important;
    margin-left: auto !important;
}

.notifications-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 380px;
    max-width: min(380px, calc(100vw - 24px));
    box-sizing: border-box;
    background: var(--bg-card, #1a1a1a) !important;
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.12)) !important;
    border-radius: 16px;
    box-shadow: var(--shadow-lg, 0 16px 36px rgba(0, 0, 0, 0.5)) !important;
    color: var(--text-primary, #ffffff) !important;
    display: none;
    flex-direction: column;
    z-index: 100000;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: fadeInDown 0.2s ease;
}
.notifications-dropdown.show {
    display: flex;
}

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

.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 10px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    background: var(--bg-card, rgba(255, 255, 255, 0.02));
}
.notifications-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notifications-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.btn-text-action {
    background: transparent;
    border: none;
    color: var(--primary, #38bdf8);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    padding: 3px 7px;
    border-radius: 6px;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.btn-text-action:hover {
    background: var(--bg-hover, rgba(56, 189, 248, 0.12));
    color: var(--primary-light, #38bdf8);
}
.notifications-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted, #888888);
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.15s ease;
}
.notifications-close-btn:hover {
    color: var(--text-primary, #ffffff);
    background: var(--bg-hover, rgba(255, 255, 255, 0.08));
}

.notifications-list {
    max-height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.05));
    transition: background 0.15s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.notification-item:hover {
    background: var(--bg-hover, rgba(255, 255, 255, 0.04));
}
.notification-item.unread {
    background: rgba(56, 189, 248, 0.08);
}
.notification-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary, #38bdf8);
}
.notification-item-icon.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success, #10b981);
}
.notification-item-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning, #f59e0b);
}
.notification-item-icon.error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger, #ef4444);
}
.notification-item-body {
    flex: 1;
    min-width: 0;
}
.notification-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    line-height: 1.3;
    margin-bottom: 3px;
}
.notification-item-text {
    font-size: 0.8rem;
    color: var(--text-secondary, #b4b4b4);
    line-height: 1.4;
    word-break: break-word;
}
.notification-item-time {
    font-size: 0.72rem;
    color: var(--text-muted, #888888);
    margin-top: 4px;
}

.notifications-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-muted, #888888);
    font-size: 0.88rem;
}
.notifications-empty i {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--text-muted, #888888);
    opacity: 0.6;
    display: block;
}

/* Light Theme overrides */
[data-theme="light"] .notifications-dropdown {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15) !important;
    color: #1e293b !important;
}
[data-theme="light"] .notifications-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: #f8f9fa !important;
}
[data-theme="light"] .notifications-header h4 {
    color: #1e293b !important;
}
[data-theme="light"] .notifications-close-btn {
    color: #64748b !important;
}
[data-theme="light"] .notifications-close-btn:hover {
    color: #0f172a !important;
    background: rgba(0, 0, 0, 0.05) !important;
}
[data-theme="light"] .notification-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: #1e293b !important;
}
[data-theme="light"] .notification-item:hover {
    background: rgba(0, 0, 0, 0.03) !important;
}
[data-theme="light"] .notification-item.unread {
    background: rgba(56, 189, 248, 0.1) !important;
}
[data-theme="light"] .notification-item-title {
    color: #1e293b !important;
}
[data-theme="light"] .notification-item-text {
    color: #475569 !important;
}
[data-theme="light"] .notification-item-time {
    color: #94a3b8 !important;
}
[data-theme="light"] .notifications-empty {
    color: #64748b !important;
}
[data-theme="light"] .notifications-empty i {
    color: #94a3b8 !important;
}

/* Mobile Responsiveness for Notifications */
@media (max-width: 768px) {
    .notifications-dropdown {
        position: fixed !important;
        top: 62px !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: calc(100vw - 24px) !important;
        max-height: 80vh !important;
        z-index: 1000002 !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
    }

    .notifications-dropdown .notifications-list {
        max-height: calc(80vh - 65px) !important;
    }
}


/* Add Boost Bot Modal Spacing, Centering & Mobile Scrolling */
#addBoostBotModal {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
}

#addBoostBotModal .modal-dialog,
.add-boost-bot-dialog {
    width: 100% !important;
    max-width: 520px !important;
    max-height: 90dvh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    margin: auto !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65) !important;
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.12)) !important;
    background: var(--bg-card, #121826) !important;
}

#addBoostBotModal form#addBoostBotForm {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

#addBoostBotModal .modal-body {
    padding: 1.25rem 1.5rem 1rem !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
}

#addBoostBotModal .modal-footer {
    padding: 1rem 1.5rem !important;
    flex-shrink: 0 !important;
}

@media (max-width: 540px) {
    #addBoostBotModal {
        padding: 0.5rem !important;
        align-items: center !important;
    }
    #addBoostBotModal .modal-dialog,
    .add-boost-bot-dialog {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 94dvh !important;
        margin: 10px auto !important;
        border-radius: 16px !important;
    }
    #addBoostBotModal .modal-body {
        padding: 1rem 1.15rem !important;
    }
    #addBoostBotModal .modal-footer {
        padding: 0.85rem 1.15rem !important;
    }
}

/* Buy Extra Boost Slots Modal & Stepper Controls */
#buyBoostSlotsModal {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
}

#buyBoostSlotsModal .modal-dialog {
    width: 100% !important;
    max-width: 490px !important;
    max-height: 90dvh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    margin: auto !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65) !important;
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.12)) !important;
    background: var(--bg-card, #121826) !important;
}

#buyBoostSlotsModal .modal-body {
    padding: 1.25rem 1.5rem 1rem !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

#buyBoostSlotsModal .modal-footer {
    padding: 1rem 1.5rem !important;
    flex-shrink: 0 !important;
}

.slots-quantity-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.stepper-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.stepper-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: #10b981;
    color: #10b981;
    transform: translateY(-1px);
}

.stepper-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.stepper-input {
    width: 90px;
    height: 46px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.stepper-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.slots-chips-grid {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.slots-chip-btn {
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slots-chip-btn:hover:not(:disabled) {
    border-color: #10b981;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
}

.slots-chip-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.slots-pricing-summary {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

@media (max-width: 540px) {
    #buyBoostSlotsModal {
        padding: 0.5rem !important;
        align-items: center !important;
    }
    #buyBoostSlotsModal .modal-dialog {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 94dvh !important;
        margin: 10px auto !important;
        border-radius: 16px !important;
    }
}

/* =========================================================
   Mobile Top Spacing & Layout Polish (< 768px)
   ========================================================= */
@media (max-width: 768px) {
    body {
        padding-top: 56px !important;
    }
    .rental-hero-section {
        padding: 18px 0 16px !important;
    }
    .profile-container {
        margin: 16px auto 40px !important;
    }
    .form-container {
        margin: 20px auto 40px !important;
        padding: 1.5rem !important;
    }
    .admin-container {
        margin: 20px auto 40px !important;
        padding: 0 12px !important;
    }
    .home-hero {
        padding: 24px 0 28px !important;
    }
    .hero,
    .page-header,
    .shop-header {
        padding: 24px 0 28px !important;
    }

    /* Profile Tabs 2x3 Grid on Mobile */
    .profile-tabs {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 1.5rem !important;
        overflow-x: visible !important;
    }

    /* Active Rentals Header & Button on Mobile */
    .active-rentals-header {
        align-items: center !important;
        gap: 0.75rem !important;
    }
    .active-rentals-header h2 {
        font-size: 1.15rem !important;
    }
    .active-rentals-header .btn,
    .active-rentals-all-btn {
        padding: 0.35rem 0.75rem !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        line-height: 1.3 !important;
    }
    .profile-tabs .tab-button {
        width: 100% !important;
        padding: 0.75rem 0.5rem !important;
        font-size: 0.82rem !important;
        text-align: center !important;
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* Custom In-App Input Validation Pulse */
.input-invalid-shake {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
    animation: shakeInput 0.35s ease-in-out !important;
}

@keyframes shakeInput {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

/* ========================================================
   PROSTO PASS COMBO SUBSCRIPTION STYLES
   ======================================================== */
.prosto-pass-widget {
    background: linear-gradient(135deg, rgba(22, 28, 45, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-radius: 18px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.prosto-pass-widget::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.16) 0%, rgba(56, 189, 248, 0.08) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.prosto-pass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.prosto-pass-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.prosto-pass-icon-badge {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(56, 189, 248, 0.2) 100%);
    border: 1px solid rgba(168, 85, 247, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #fbbf24;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.25);
    flex-shrink: 0;
}

.prosto-pass-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.prosto-pass-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    color: var(--text-primary);
}

.prosto-pass-meta {
    font-size: 0.86rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.prosto-pass-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.prosto-pass-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
    position: relative;
    z-index: 1;
}

.prosto-metric-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.prosto-metric-card:hover {
    border-color: rgba(168, 85, 247, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.prosto-metric-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    gap: 0.5rem;
}

.prosto-metric-head-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.prosto-metric-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.prosto-progress-bar {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    margin-top: 0.2rem;
}

.prosto-progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Feature tags in Pricing cards - sleek compact icon badges */
.feat-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 7px;
    font-size: 0.78rem;
    flex-shrink: 0;
    line-height: 1;
    margin: 1px 0 0 0;
    padding: 0;
    transition: transform 0.2s ease;
}
.feat-tag:hover {
    transform: scale(1.08);
}
.feat-tag-boost {
    background: rgba(56, 189, 248, 0.16);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.28);
}
.feat-tag-rental {
    background: rgba(16, 185, 129, 0.16);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.28);
}
.feat-tag-ai {
    background: rgba(168, 85, 247, 0.16);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.28);
}
.feat-tag-smm {
    background: rgba(236, 72, 153, 0.16);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.28);
}
.feat-tag-shop {
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.28);
}
.feat-tag-shield {
    background: rgba(16, 185, 129, 0.16);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.28);
}
.feat-tag-status {
    background: rgba(14, 165, 233, 0.16);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.28);
}
.feat-tag-net {
    background: rgba(99, 102, 241, 0.16);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.28);
}
.feat-tag-vip {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.35);
}
.feat-tag-plus {
    background: rgba(56, 189, 248, 0.16);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.28);
}
.feat-tag-disabled {
    background: rgba(100, 116, 139, 0.14);
    color: #64748b;
    border: 1px solid rgba(100, 116, 139, 0.22);
}

@media (max-width: 768px) {
    .prosto-pass-widget {
        padding: 1.25rem 1rem;
    }
    .prosto-pass-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .prosto-pass-actions {
        width: 100%;
    }
    .prosto-pass-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .prosto-pass-metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* AI Model Telemetry & SLA Indicators */
.ai-telemetry-bar {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border-radius: 14px;
    padding: 1.1rem 1.4rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    backdrop-filter: blur(12px);
}

.ai-telemetry-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.telemetry-pulse-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.telemetry-pulse-badge.status-online {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.telemetry-pulse-badge.status-degraded {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.telemetry-pulse-badge.status-offline {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.telemetry-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

.telemetry-pulse-dot.online {
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseDotOnline 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.telemetry-pulse-dot.degraded {
    background: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    animation: pulseDotDegraded 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.telemetry-pulse-dot.offline {
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulseDotOffline 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulseDotOnline {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulseDotDegraded {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 7px rgba(245, 158, 11, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@keyframes pulseDotOffline {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.ai-telemetry-metrics {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.ai-telemetry-card {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.ai-telemetry-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.ai-telemetry-card-icon {
    font-size: 1.05rem;
}

.ai-telemetry-card-body {
    display: flex;
    flex-direction: column;
}

.ai-telemetry-card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted, #94a3b8);
    font-weight: 600;
}

.ai-telemetry-card-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary, #f1f5f9);
    font-family: monospace;
}

/* AI Models Table & Unified Status / Performance */
#aiModelsTable {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
}

#aiModelsTable th,
#aiModelsTable td {
    padding: 0.75rem 0.65rem;
    vertical-align: middle;
}

#aiModelsTable th {
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-secondary, #94a3b8);
}

.model-status-perf-cell {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
}

.model-status-row {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.model-status-text {
    font-size: 0.82rem;
    font-weight: 600;
}

.model-uptime-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.1rem 0.42rem;
    border-radius: 6px;
    font-family: monospace;
    white-space: nowrap;
}

.model-perf-inline {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.38rem;
    font-size: 0.75rem;
    color: var(--text-secondary, #94a3b8);
    font-family: monospace;
    white-space: nowrap;
}

.model-perf-inline span {
    white-space: nowrap;
}

.model-perf-dot {
    color: var(--text-muted, #64748b);
    font-size: 0.62rem;
    opacity: 0.65;
}

[data-theme="light"] .model-perf-inline {
    color: #475569;
}
[data-theme="light"] .model-perf-dot {
    color: #94a3b8;
}

/* Telemetry Table Cells (legacy fallback) */
.model-telemetry-cell {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.model-telemetry-status-row {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    font-size: 0.82rem;
}

.model-telemetry-uptime-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    font-family: monospace;
}

.model-telemetry-subtext {
    font-size: 0.72rem;
    color: var(--text-muted, #94a3b8);
    display: block;
}

.model-perf-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-width: 250px;
}

.model-perf-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: monospace;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.15s ease;
    cursor: default;
}

.model-perf-badge.perf-tps {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.model-perf-badge.perf-latency {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.model-perf-badge.perf-ttft {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.model-perf-badge.perf-success {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.model-perf-badge:hover {
    filter: brightness(1.15);
    transform: scale(1.02);
}

@media (max-width: 900px) {
    .ai-telemetry-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .ai-telemetry-metrics {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .ai-telemetry-card {
        width: 100%;
    }
}

