/* FastBot - Premium Game Store Theme */
/* Inspired by Smile One / Game Top-Up Platforms */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-card-hover: #22223a;
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.3);
    --green: #00d68f;
    --green-glow: rgba(0, 214, 143, 0.2);
    --orange: #ff9f43;
    --red: #ff6b6b;
    --text-primary: #ffffff;
    --text-secondary: #8b8b9e;
    --text-muted: #5a5a6e;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --glass: rgba(255, 255, 255, 0.04);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(108, 92, 231, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#app {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-primary);
    min-height: 100vh;
    position: relative;
    padding-bottom: 90px;
}

/* ===== HEADER ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
}

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

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    box-shadow: 0 2px 12px rgba(108, 92, 231, 0.4);
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text .accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.balance-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 7px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    color: var(--green);
    transition: all 0.3s ease;
}

.balance-badge i {
    font-size: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #e040fb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.user-avatar:hover {
    border-color: var(--accent-light);
    transform: scale(1.05);
}

/* ===== USER ACCOUNT CARD ===== */
.user-account-section {
    padding: 16px;
}

.user-balance-card-premium {
    background: linear-gradient(135deg, #4834d4, #686de0);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(72, 52, 212, 0.3);
    position: relative;
    overflow: hidden;
}

.user-balance-card-premium::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.ubcp-header {
    margin-bottom: 24px;
}

.ubcp-balance {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ubcp-balance span {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg);
}

.ubcp-username {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-top: 4px;
}

.ubcp-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ubcp-action {
    background: #fff;
    border-radius: 12px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ubcp-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ubcp-icon {
    width: 32px;
    height: 32px;
    color: #4834d4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.ubcp-action span {
    font-size: 10px;
    font-weight: 700;
    color: #4834d4;
    text-align: center;
    line-height: 1.2;
}

/* ===== CATEGORIES ===== */
.categories-section {
    padding: 8px 0 4px;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.categories-scroll {
    display: flex;
    gap: 8px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.category-chip i {
    font-size: 12px;
}

.category-chip:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
}

.category-chip.active {
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 12px rgba(108, 92, 231, 0.3);
}

/* ===== SEARCH ===== */
.search-section {
    padding: 12px 16px;
}

.search-box {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    background: var(--glass-hover);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.search-box i {
    color: var(--text-muted);
    font-size: 14px;
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    font-family: inherit;
}

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

.search-clear {
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

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

/* ===== GAMES SECTION ===== */
.games-section {
    padding: 8px 16px 16px;
}

.game-count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    background: var(--glass);
    padding: 4px 10px;
    border-radius: 8px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* ===== GAME CARD ===== */
.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.game-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow), var(--shadow-glow);
}

.game-card:active {
    transform: translateY(-2px) scale(0.98);
}

.game-image {
    width: 100%;
    height: 90px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.08);
}

.game-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
}

.game-image-placeholder i {
    font-size: 40px;
    color: var(--text-muted);
    opacity: 0.4;
}

.game-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--green);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-info {
    padding: 8px;
}

.game-name {
    font-weight: 700;
    font-size: 11px;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-price {
    font-size: 10px;
}

.game-price i {
    font-size: 10px;
}

/* ===== LOADING ===== */
.loading {
    text-align: center;
    padding: 50px 20px;
    display: none;
}

.loader {
    position: relative;
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-ring:nth-child(2) {
    inset: 6px;
    border-top-color: var(--accent-light);
    animation-delay: 0.15s;
    animation-direction: reverse;
}

.loader-ring:nth-child(3) {
    inset: 12px;
    border-top-color: var(--green);
    animation-delay: 0.3s;
}

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

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

.loading p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* ===== ERROR STATE ===== */
.error-state {
    text-align: center;
    padding: 60px 20px;
}

.error-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.error-icon i {
    font-size: 32px;
    color: var(--red);
}

.error-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 700;
}

.error-state p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.btn-retry {
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

/* ===== PROFILE SIDEBAR ===== */
.profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.profile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.profile-section {
    position: fixed;
    top: 0;
    right: -360px;
    width: 340px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 999;
    padding: 20px;
    overflow-y: auto;
}

.profile-section.active {
    right: 0;
}

.profile-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.profile-close:hover {
    background: rgba(255, 107, 107, 0.15);
    color: var(--red);
}

.profile-header {
    text-align: center;
    padding-top: 10px;
    margin-bottom: 20px;
}

.profile-avatar-large {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #e040fb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 28px;
    margin: 0 auto 12px;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-id {
    font-size: 12px;
    color: var(--text-muted);
}

.profile-balance-card {
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.profile-balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.pbc-label {
    font-size: 12px;
    opacity: 0.8;
    font-weight: 500;
    margin-bottom: 4px;
}

.pbc-amount {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.pbc-topup {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.pbc-topup:hover {
    background: rgba(255, 255, 255, 0.3);
}

.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.ps-item {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 8px;
    text-align: center;
}

.ps-value {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.ps-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.status-vip {
    color: var(--orange) !important;
}

.profile-menu {
    list-style: none;
}

.profile-menu li {
    margin-bottom: 6px;
}

.profile-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.profile-menu a:hover {
    background: var(--glass-hover);
    border-color: var(--border-hover);
}

.profile-menu a i:first-child {
    color: var(--accent-light);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.profile-menu a span {
    flex: 1;
}

.menu-arrow {
    color: var(--text-muted) !important;
    font-size: 12px !important;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 6px 0 max(env(safe-area-inset-bottom, 8px), 8px);
    z-index: 500;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
}

.nav-icon-wrap {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-item i {
    font-size: 18px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.nav-item span {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-item.active .nav-icon-wrap {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(108, 92, 231, 0.05));
}

.nav-item.active i {
    color: var(--accent-light);
}

.nav-item.active span {
    color: var(--accent-light);
}

.nav-item:hover i {
    color: var(--accent-light);
}

.nav-item:hover span {
    color: var(--accent-light);
}

/* ===== SUPPORT FAB ===== */
.support-fab {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), #00b894);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 400;
    box-shadow: 0 4px 15px rgba(0, 214, 143, 0.3);
    transition: all 0.3s ease;
    animation: fabPulse 2s ease-in-out infinite;
}

.support-fab:hover {
    transform: scale(1.1);
}

@keyframes fabPulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(0, 214, 143, 0.3);
    }

    50% {
        box-shadow: 0 4px 25px rgba(0, 214, 143, 0.5);
    }
}

/* ===== NOTIFICATION ===== */
.notification {
    position: fixed;
    top: 16px;
    right: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2000;
    max-width: 320px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow);
    animation: notifSlideIn 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(20px);
}

.notification.success {
    border-left: 3px solid var(--green);
}

.notification.success i {
    color: var(--green);
}

.notification.info {
    border-left: 3px solid var(--accent);
}

.notification.info i {
    color: var(--accent-light);
}

@keyframes notifSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

@keyframes notifSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ===== PREMIUM GAME MODAL ===== */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    /* Mobile first: slide from bottom */
    justify-content: center;
}

.modal-content-premium {
    width: 100%;
    max-width: 500px;
    background: var(--bg-primary);
    border-radius: 0;
    /* Full screen feel */
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Take full height */
    max-height: 100%;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    border-top: 1px solid var(--border);
    animation: slideUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding-top: env(safe-area-inset-top, 0);
    /* Safety for notch */
}

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

    to {
        transform: translateY(0);
    }
}

/* ===== CUSTOM CONFIRM MODAL ===== */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.confirm-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 28px;
    width: 100%;
    max-width: 320px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.confirm-header {
    margin-bottom: 16px;
}

.confirm-header i {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 12px;
}

.confirm-header h3 {
    font-size: 20px;
    font-weight: 800;
}

.confirm-body {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.confirm-footer {
    display: flex;
    gap: 12px;
}

.btn-cancel,
.btn-confirm {
    flex: 1;
    height: 48px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-cancel {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

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

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animated.zoomIn {
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Player ID Input Group */
.player-id-group {
    padding: 0 0 20px;
    width: 100%;
}

.pig-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
    text-align: left;
}

.pig-input-wrap {
    position: relative;
    width: 100%;
}

.pig-input-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 16px;
}

.pig-input-wrap input {
    width: 100%;
    height: 54px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0 16px 0 48px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.3s;
}

.pig-input-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    outline: none;
}

.modal-footer.with-input {
    flex-direction: column;
    align-items: stretch;
}

.modal-footer.with-input .selected-item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mh-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mh-thumb {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mh-name {
    font-size: 18px;
    font-weight: 800;
}

.mh-tag {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
}

.modal-body-scrollable {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

/* Category Tabs */
.cat-tabs {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: #111122;
    /* Use solid dark background for sticky header */
    position: sticky;
    top: -1px;
    /* Slightly negative to overlap border properly */
    z-index: 100;
    /* Higher z-index to stay above items */
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
}

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

.cat-tab {
    padding: 10px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s;
    color: var(--text-secondary);
    cursor: pointer;
}

.cat-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px;
}

.item-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
    cursor: pointer;
}

.item-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.item-card.active {
    background: rgba(108, 92, 231, 0.05);
    border-color: var(--accent);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.2);
}

.ic-image {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ic-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ic-name {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
}

.ic-price {
    font-size: 13px;
    color: var(--accent);
    font-weight: 700;
}

.ic-check {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--accent);
    font-size: 18px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s;
}

.item-card.active .ic-check {
    opacity: 1;
    transform: scale(1);
}

/* Modal Footer */
.modal-footer {
    padding: 24px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--border);
}

.selected-item-info {
    flex: 1;
}

.sii-name {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.sii-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--text-primary);
}

.btn-purchase {
    flex: 1.2;
    height: 54px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 25px var(--accent-glow);
    cursor: pointer;
}

.items-loading,
.no-items {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.items-loading i {
    font-size: 30px;
    margin-bottom: 12px;
}

@media (min-width: 500px) {
    .game-modal {
        align-items: center;
    }

    .modal-content-premium {
        border-radius: 32px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

/* ===== NO GAMES ===== */
.no-games {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
}

.no-games i {
    font-size: 48px;
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 16px;
}

.no-games h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.no-games p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .hero-slider {
        height: 180px;
        margin: 8px 12px;
    }

    .slide-title {
        font-size: 18px;
    }

    .quick-stats {
        margin: 0 12px 8px;
        padding: 12px;
    }

    .qs-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .qs-title {
        font-size: 11px;
    }

    .qs-sub {
        font-size: 9px;
    }

    .categories-scroll {
        padding: 0 12px;
    }

    .search-section {
        padding: 12px;
    }

    .games-section {
        padding: 8px 12px 16px;
    }

    .game-image {
        height: 110px;
    }

    .profile-section {
        width: 100%;
        right: -100%;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ===== DEPOSIT SECTION ===== */
.deposit-view {
    padding: 20px 16px;
    animation: fadeInUp 0.4s ease;
}

.btn-guide {
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.method-card {
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.method-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.method-card.active {
    background: rgba(108, 92, 231, 0.1);
    border-color: var(--accent);
}

.method-logo {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 8px;
}

.method-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.method-card span {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.method-card.active span {
    color: var(--accent-light);
}

.deposit-stats {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--glass);
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.ds-item {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

.btn-primary-large {
    width: 100%;
    margin-top: 24px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    padding: 18px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.btn-primary-large:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-card);
    box-shadow: none;
}

.amount-input-box {
    margin-top: 24px;
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 12px 20px;
}

.amount-input-box input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
}

.amount-input-box .currency {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--text-muted);
}

/* Confirmation View */
.alert-box {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.alert-box.warning {
    background: rgba(255, 159, 67, 0.1);
    border: 1px solid rgba(255, 159, 67, 0.2);
    color: var(--orange);
}

.alert-box i {
    font-size: 20px;
    margin-top: 4px;
}

.alert-title {
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 4px;
}

.alert-desc {
    font-size: 12px;
    opacity: 0.8;
}

.timer-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.timer-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.timer-value {
    font-weight: 800;
    font-size: 20px;
    color: var(--red);
    display: flex;
    align-items: center;
    gap: 8px;
}

.confirm-cards-slider {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 16px;
}

.confirm-cards-slider::-webkit-scrollbar {
    display: none;
}

.payment-details-card {
    min-width: 85%;
    flex-shrink: 0;
    scroll-snap-align: center;
    background: linear-gradient(135deg, var(--accent), #4facfe);
    padding: 24px;
    border-radius: var(--radius-xl);
    position: relative;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
}

.confirm-slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
}

.confirm-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s ease;
}

.confirm-dot.active {
    width: 14px;
    border-radius: 4px;
    background: var(--accent);
}

.card-brand {
    font-weight: 900;
    font-size: 20px;
    margin-bottom: 20px;
}

.card-number {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.card-holder {
    font-weight: 500;
    font-size: 14px;
    opacity: 0.9;
}

.copy-btn {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.amount-card {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius-lg);
    position: relative;
    margin-bottom: 20px;
}

.ac-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.ac-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--green);
}

.instructions-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.inst-title {
    font-weight: 700;
    margin-bottom: 16px;
}

.inst-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.inst-item i {
    font-size: 18px;
    margin-top: 2px;
}

.inst-item.success {
    color: var(--green);
}

.inst-item.danger {
    color: var(--red);
}

.inst-text {
    display: flex;
    flex-direction: column;
}

.inst-text strong {
    font-size: 13px;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ===== LOADING OVERLAY (PREMIUM) ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: relative;
    animation: fadeInScale 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    width: 100%;
    transform: translateY(12vh);
}

.loader-logo-wrap {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    box-shadow: 0 0 50px var(--accent-glow);
    z-index: 2;
    animation: neonPulse 2s infinite alternate;
}

.loader-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent);
    transform: translate(-50%, -50%);
}

.ring:nth-child(1) {
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    opacity: 0.8;
}

.ring:nth-child(2) {
    width: 150px;
    height: 150px;
    animation: spin 3s linear infinite reverse;
    opacity: 0.4;
}

.ring:nth-child(3) {
    width: 180px;
    height: 180px;
    animation: spin 4s linear infinite;
    opacity: 0.2;
}

.loader-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.loader-text .brand {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(to right, #fff, var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== BOTTOM SHEET GAME MODAL ===== */
.game-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.game-modal {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.modal-content-premium {
    background: var(--bg-card);
    width: 100%;
    border-radius: 30px 30px 0 0;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    padding-bottom: env(safe-area-inset-bottom);
}

.modal-content-premium::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
}

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

.mh-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mh-thumb {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
}

.mh-name {
    font-size: 18px;
    font-weight: 800;
}

.mh-tag {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass);
    border: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}



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

.cat-tab {
    padding: 10px 20px;
    background: var(--glass);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cat-tab.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.item-card {
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.item-card:hover {
    transform: translateY(-3px);
}

.item-card.active {
    border-color: var(--accent);
    background: rgba(108, 92, 231, 0.05);
}

.ic-image img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.ic-name {
    font-size: 14px;
    font-weight: 800;
}

.ic-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-light);
}

.ic-check {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    color: var(--accent);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.item-card.active .ic-check {
    opacity: 1;
    transform: scale(1);
}

.modal-footer {
    padding: 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.player-id-group {
    margin-bottom: 5px;
}

.pig-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

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

.pig-input-wrap i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
}

.pig-input-wrap input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 14px 14px 44px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.pig-input-wrap input:focus {
    border-color: var(--accent);
}

.btn-purchase {
    width: 100%;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

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

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

.sii-name {
    font-weight: 700;
    font-size: 14px;
}

.sii-price {
    font-weight: 800;
    font-size: 16px;
    color: var(--green);
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.slideInUp {
    animation: slideInUp 0.3s ease forwards;
}

.slideOutDown {
    animation: slideOutDown 0.3s ease forwards;
}

.loader-text .status {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: blink 1.5s infinite;
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes neonPulse {
    from {
        box-shadow: 0 0 20px rgba(108, 92, 231, 0.4);
        transform: scale(1);
    }

    to {
        box-shadow: 0 0 50px rgba(108, 92, 231, 0.8);
        transform: scale(1.05);
    }
}

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

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* ===== HISTORY SECTION ===== */
#historySection {
    padding: 20px 16px;
    animation: fadeInUp 0.4s ease;
}

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

.history-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
}

.history-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.hi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.hi-icon.deposit {
    background: rgba(0, 214, 143, 0.1);
    color: var(--green);
}

.hi-icon.purchase {
    background: rgba(108, 92, 231, 0.1);
    color: var(--accent);
}

.hi-content {
    flex: 1;
}

.hi-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}

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

.hi-right {
    text-align: right;
}

.hi-amount {
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 4px;
}

.hi-amount.plus {
    color: var(--green);
}

.hi-amount.minus {
    color: var(--text-primary);
}

.hi-status {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--glass);
}

.hi-status.pending {
    color: var(--orange);
}

.hi-status.completed {
    color: var(--green);
}

.hi-status.cancelled {
    color: var(--red);
}

.no-history {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-history i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.loader-text .brand {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(to right, #fff, var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-check-submit {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-check-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.btn-check-submit {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    margin-top: 15px;
}

.btn-check-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.btn-check-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #666;
}

/* Settings Modal */
.settings-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.settings-modal {
    background: var(--bg-card, #1a1a2e);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

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

.settings-header h3 {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-body {
    padding: 20px;
}

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

.settings-label {
    font-size: 13px;
    color: var(--text-secondary, #aaa);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-options {
    display: flex;
    gap: 10px;
}

.lang-btn {
    flex: 1;
    padding: 14px 16px;
    background: var(--bg-secondary, #16213e);
    border: 2px solid transparent;
    border-radius: 14px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.lang-btn:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.lang-btn.active {
    border-color: var(--accent, #8b5cf6);
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.lang-flag {
    font-size: 22px;
}