/* Embedded admin panel */
.admin-shell {
    --admin-bg-a: rgba(13, 18, 28, 0.92);
    --admin-bg-b: rgba(7, 10, 18, 0.96);
    --admin-panel-a: rgba(255, 255, 255, 0.085);
    --admin-panel-b: rgba(255, 255, 255, 0.028);
    --admin-stroke: rgba(255, 255, 255, 0.13);
    --admin-stroke-strong: rgba(255, 225, 146, 0.22);
    --admin-gold-soft: rgba(255, 215, 0, 0.22);
    --admin-text: #f6f7fb;
    --admin-muted: #a8b1c1;
    --admin-subtle: #7f8aa0;
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 28px;
    border: 1px solid var(--admin-stroke);
    background:
        radial-gradient(920px 380px at 0% -12%, rgba(56, 189, 248, 0.11), transparent 58%),
        radial-gradient(860px 380px at 100% -18%, rgba(250, 204, 21, 0.14), transparent 52%),
        radial-gradient(760px 420px at 50% 120%, rgba(59, 130, 246, 0.08), transparent 62%),
        linear-gradient(150deg, var(--admin-bg-a), var(--admin-bg-b));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.045), transparent 18%, transparent 80%, rgba(255,255,255,0.025));
    pointer-events: none;
}

.admin-shell::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 27px;
    border: 1px solid rgba(255, 255, 255, 0.035);
    pointer-events: none;
}

#tab-admin .hero-section.small h1 {
    letter-spacing: -0.03em;
}

#tab-admin .hero-section.small p {
    max-width: 460px;
    color: #aeb6c7;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 24px rgba(0, 0, 0, 0.18);
}

.admin-status {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.9px;
    color: var(--admin-muted);
    text-transform: uppercase;
}

#admin-status-label {
    color: var(--primary);
    font-weight: 900;
    margin-left: 4px;
}

.admin-top-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-top-actions .btn-secondary,
.admin-top-actions .btn-primary {
    width: auto;
    min-width: 168px;
    min-height: 48px;
    padding-inline: 18px;
}

.admin-mode-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(108px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.admin-mode-btn {
    min-height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
    color: #dbe2ee;
    border-radius: 16px;
    padding: 12px 12px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.02em;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.admin-mode-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.34);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.admin-mode-btn.active {
    border-color: rgba(255, 215, 0, 0.52);
    color: #111;
    background: linear-gradient(140deg, #ffe68a, #ffc95a 52%, #ffae39);
    box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.22), 0 14px 28px rgba(255, 176, 32, 0.28);
}

.admin-locked-note,
.admin-note {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    color: #d4dbe8;
    font-size: 13px;
    line-height: 1.5;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.admin-view {
    margin-top: 10px;
}

.admin-layout {
    display: grid;
    grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
    gap: 16px;
}

.admin-side-list {
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 22px;
    padding: 14px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(0, 0, 0, 0.2));
    max-height: 62vh;
    overflow: auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 36px rgba(0, 0, 0, 0.18);
}

.admin-main-editor {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 18px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.075), rgba(0, 0, 0, 0.18));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 22px 42px rgba(0, 0, 0, 0.16);
}

#tab-admin #admin-user-editor {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-case-item,
.admin-user-item {
    width: 100%;
    text-align: left;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;
    padding: 14px;
    color: var(--admin-text);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    font-size: 13px;
    line-height: 1.45;
}

.admin-case-item:hover,
.admin-user-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.34);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
}

.admin-case-item.active,
.admin-user-item.active {
    border-color: rgba(255, 215, 0, 0.58);
    background: linear-gradient(145deg, rgba(255, 224, 122, 0.22), rgba(255, 189, 68, 0.1));
    box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.2), 0 18px 34px rgba(0, 0, 0, 0.22);
}

.admin-grid-2,
.admin-grid-3,
.admin-grid-4,
.admin-grid-6 {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.admin-actions-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.admin-actions-row .btn-primary,
.admin-actions-row .btn-secondary,
.admin-actions-row .btn-danger-small {
    width: auto;
    min-height: 46px;
}

.admin-actions-row .btn-danger-small {
    padding: 0 16px;
    border-radius: 14px;
    font-size: 12px;
}

.admin-category-picker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.admin-category-picker .btn-secondary {
    width: auto;
    min-width: 148px;
}

.admin-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.admin-category-tag {
    border: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025));
    color: #dbe3ef;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.admin-category-tag:hover {
    transform: translateY(-1px);
    border-color: rgba(255,215,0,0.34);
}

.admin-category-tag.active {
    color: #111;
    border-color: rgba(255,215,0,0.5);
    background: linear-gradient(140deg, #ffe68a, #ffc95a 52%, #ffae39);
}

.admin-items-container,
#admin-promos-container,
#admin-withdraws-container {
    max-height: 50vh;
    overflow: auto;
    padding-right: 4px;
}

.admin-item-row,
.admin-promo-row,
.admin-withdraw-row {
    display: grid;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;
    padding: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.14));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.admin-item-row {
    grid-template-columns: 82px 1.6fr 0.8fr 0.9fr 1.5fr auto;
}

.admin-promo-row {
    grid-template-columns: 1.5fr 0.8fr 0.8fr auto;
}

.admin-withdraw-row {
    grid-template-columns: 1.3fr 1.3fr 1fr 0.9fr auto;
}

.admin-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    font-size: 13px;
    font-weight: 700;
    color: #e3e8f2;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
}

.admin-inline-box {
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.15));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.admin-data-section {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.admin-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-section-head.compact {
    margin-bottom: 4px;
}

.admin-section-title {
    font-size: 15px;
    font-weight: 800;
    color: #f5f7fb;
}

.admin-section-note {
    margin-top: 4px;
    font-size: 12px;
    color: #92a0b8;
    line-height: 1.45;
}

.admin-entity-list {
    display: grid;
    gap: 12px;
}

.admin-entity-empty {
    padding: 16px;
    border-radius: 16px;
    border: 1px dashed rgba(255,255,255,0.12);
    color: #93a0b7;
    text-align: center;
    background: rgba(255,255,255,0.025);
}

.admin-entity-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(0,0,0,0.12));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.admin-entity-card-history {
    grid-template-columns: minmax(0, 1fr);
}

.admin-entity-preview {
    width: 82px;
    height: 82px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.admin-entity-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.admin-entity-fields {
    display: grid;
    gap: 10px;
}

.admin-entity-fields-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-entity-fields-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-entity-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-entity-actions .btn-secondary,
.admin-entity-actions .btn-danger-small {
    width: auto;
    min-height: 42px;
}

.admin-check.compact {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 12px;
    border-radius: 14px;
}

.admin-history-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #dce3ef;
    font-size: 13px;
}

#tab-admin input:not([type="checkbox"]),
#tab-admin select,
#tab-admin textarea,
#modal-admin-login input {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(145deg, rgba(8, 12, 20, 0.96), rgba(14, 18, 28, 0.94));
    border-radius: 16px;
    color: #f5f7fb;
    font-size: 14px;
    line-height: 1.35;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 18px rgba(0, 0, 0, 0.14);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

#tab-admin input:not([type="checkbox"])::placeholder,
#tab-admin textarea::placeholder,
#modal-admin-login input::placeholder {
    color: #7f8ba1;
}

#tab-admin select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
    background-image:
        linear-gradient(45deg, transparent 50%, #d0d7e5 50%),
        linear-gradient(135deg, #d0d7e5 50%, transparent 50%),
        linear-gradient(145deg, rgba(8, 12, 20, 0.96), rgba(14, 18, 28, 0.94));
    background-position:
        calc(100% - 22px) calc(50% - 2px),
        calc(100% - 16px) calc(50% - 2px),
        0 0;
    background-size: 6px 6px, 6px 6px, 100% 100%;
    background-repeat: no-repeat;
}

#tab-admin textarea,
#modal-admin-login textarea {
    min-height: 132px;
    resize: vertical;
}

#admin-broadcast-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}

#tab-admin input:not([type="checkbox"]):focus,
#tab-admin select:focus,
#tab-admin textarea:focus,
#modal-admin-login input:focus {
    border-color: rgba(255, 215, 0, 0.56);
    background: linear-gradient(145deg, rgba(10, 14, 24, 0.98), rgba(18, 22, 34, 0.96));
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.14), 0 14px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.admin-main-editor label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #b8c1d0;
    margin-bottom: 8px;
    display: block;
}

#admin-user-search {
    margin-bottom: 12px;
}

#admin-users-list,
#admin-cases-list {
    display: flex;
    flex-direction: column;
}

#tab-admin hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
    margin: 14px 0;
}

@media (max-width: 1024px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-mode-tabs { grid-template-columns: repeat(3, minmax(80px, 1fr)); }
    .admin-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-item-row { grid-template-columns: 1fr; }
    .admin-promo-row { grid-template-columns: 1fr; }
    .admin-withdraw-row { grid-template-columns: 1fr; }
    .admin-entity-fields-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-shell { padding: 18px; }
    .admin-main-editor { padding: 16px; }
}

@media (max-width: 768px) {
    .admin-shell {
        padding: 14px;
        border-radius: 22px;
    }

    .admin-topbar {
        padding: 14px;
        border-radius: 18px;
    }

    .admin-top-actions {
        width: 100%;
    }

    .admin-top-actions .btn-secondary,
    .admin-top-actions .btn-primary,
    .admin-actions-row .btn-primary,
    .admin-actions-row .btn-secondary,
    .admin-actions-row .btn-danger-small {
        width: 100%;
    }

    .admin-mode-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .admin-grid-6,
    .admin-grid-4,
    .admin-grid-3,
    .admin-grid-2 {
        grid-template-columns: 1fr;
    }

    .admin-category-picker {
        grid-template-columns: 1fr;
    }

    .admin-category-picker .btn-secondary {
        width: 100%;
    }

    .admin-data-section {
        padding: 14px;
    }

    .admin-entity-card {
        grid-template-columns: 1fr;
    }

    .admin-entity-preview {
        width: 72px;
        height: 72px;
    }

    .admin-entity-fields-4,
    .admin-entity-fields-2 {
        grid-template-columns: 1fr;
    }

    .admin-entity-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-history-preview {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-side-list,
    .admin-main-editor {
        border-radius: 18px;
    }
}
:root {
    --bg-dark: #0a0a0e;
    --bg-darker: #060608;
    --primary: #FFD700;
    --primary-glow: rgba(255, 215, 0, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --c-consumer: #B0B0B0; --c-common: #4CAF50; --c-rare: #3b82f6;
    --c-epic: #a855f7; --c-legendary: #eab308; --c-mythical: #ff3333;
    --gradient-gold: linear-gradient(135deg, #FFD700, #FFA500);
    --gradient-purple: linear-gradient(135deg, #a855f7, #7c3aed);
    --gradient-blue: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; outline: none; }
img { pointer-events: none; -webkit-user-drag: none; }
input, textarea, select { -webkit-user-select: text; user-select: text; pointer-events: auto; }
body { 
    margin: 0; 
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%); 
    color: #fff; 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; 
    min-height: 100vh; 
    padding-bottom: 90px; 
    overflow-x: hidden; 
    padding-top: 75px;
}

/* Enhanced Glass Panel with glow */
.glass-panel { 
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    padding: 1px;
}
.glass-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    border-radius: 20px;
    pointer-events: none;
}
.glass-panel:hover {
    border-color: rgba(255,215,0,0.3);
    box-shadow: 0 12px 40px rgba(255,215,0,0.15), 0 8px 32px rgba(31, 38, 135, 0.2);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
}

/* iOS Glass morphism - тонкие рамки */
.glass-frame {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}
.glass-frame:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 25px rgba(255, 255, 255, 0.1);
}

/* Glass Card - для карточек предметов */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}
.glass-card:hover {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 8px 28px rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

/* Glass Button */
.glass-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.glass-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 6px 24px rgba(255, 215, 0, 0.15);
    transform: translateY(-1px);
}
.glass-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Premium Glass Border */
.premium-glass {
    background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(255,255,255,0.05));
    border: 2px solid;
    border-image: linear-gradient(135deg, rgba(255,215,0,0.4), rgba(255,255,255,0.2)) 1;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(255,215,0,0.08), inset 0 0 25px rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}
.premium-glass:hover {
    box-shadow: 0 12px 48px rgba(255,215,0,0.15), inset 0 0 30px rgba(255,255,255,0.1);
    background: linear-gradient(135deg, rgba(255,215,0,0.12), rgba(255,255,255,0.08));
}

/* HERO SECTION - PREMIUM */
.hero-section { 
    text-align: center; 
    margin-bottom: 30px; 
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(168,85,247,0.08));
    border-radius: 24px;
    border: 1px solid rgba(255,215,0,0.1);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,215,0,0.1), transparent);
    border-radius: 50%;
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(168,85,247,0.08), transparent);
    border-radius: 50%;
    pointer-events: none;
}
.hero-section h1 { 
    font-size: 32px; 
    font-weight: 900; 
    margin: 0 0 10px 0; 
    background: var(--gradient-gold);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    text-shadow: 0 0 30px rgba(255,215,0,0.2);
    position: relative;
    z-index: 1;
}
.hero-section p { 
    color: #aaa; 
    font-size: 14px; 
    margin: 5px 0 0 0;
    position: relative;
    z-index: 1;
}
.hero-section.small h1 { font-size: 24px; }

.case-card div:nth-child(2) { 
    font-size: 13px; 
    font-weight: 700; 
    margin-bottom: 4px; 
    color: #fff;
}
.case-card div:last-child { 
    font-size: 12px; 
    color: var(--primary); 
    font-weight: 700;
}

/* Price tag animations */
.price-pill {
    display: inline-block;
    background: rgba(255,215,0,0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    border: 1px solid rgba(255,215,0,0.3);
    transition: all 0.3s ease;
}
.case-card:hover .price-pill {
    background: rgba(255,215,0,0.2);
    border-color: rgba(255,215,0,0.6);
    box-shadow: 0 0 15px rgba(255,215,0,0.2);
}

/* Tab indicator - Animated */
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--gradient-gold);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255,215,0,0.6), 0 0 30px rgba(255,215,0,0.3);
    animation: pulse 1.5s cubic-bezier(0.4,0,0.6,1) infinite;
}

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); box-shadow: 0 0 10px rgba(255,215,0,0.4); }
    50% { transform: translateX(-50%) scale(1.3); box-shadow: 0 0 20px rgba(255,215,0,0.8); }
}

/* Smooth section transitions */
.section {
    animation: fadeInScale 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Games Hub Cards */
.game-hub-card { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    padding: 20px; 
    background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,215,0,0.03));
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 18px; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative; 
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2), inset 0 0 20px rgba(255,255,255,0.04);
}
.game-hub-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.game-hub-card:hover {
    transform: translateY(-6px) scale(1.02);
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,215,0,0.06));
    box-shadow: 0 16px 40px rgba(255,215,0,0.15), inset 0 0 25px rgba(255,255,255,0.06);
    border-color: rgba(255,215,0,0.4);
}
.game-hub-card:hover::before {
    opacity: 1;
}
.gh-icon { 
    font-size: 30px; 
    width: 60px; 
    height: 60px; 
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(168,85,247,0.1));
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 14px;
    border: 1px solid rgba(255,215,0,0.2);
    flex-shrink: 0;
}
.gh-info { flex: 1; }
.gh-info h3 { margin: 0 0 4px 0; font-size: 16px; font-weight: 800; color: #fff; }
.gh-info p { margin: 0; font-size: 12px; color: #aaa; }
.gh-btn { 
    font-size: 11px; 
    font-weight: 800; 
    background: var(--gradient-gold);
    color: #000; 
    padding: 7px 14px; 
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(255,215,0,0.2);
}
.gh-btn:active {
    transform: scale(0.95);
}
.game-hub-card.upgrade { border-left: 3px solid #a855f7; }
.game-hub-card.contract { border-left: 3px solid #3b82f6; }
.game-hub-card.top { border-left: 3px solid var(--primary); }
.game-hub-card.upgrade .gh-icon { background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(168,85,247,0.05)); }
.game-hub-card.contract .gh-icon { background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(59,130,246,0.05)); }
.game-hub-card.top .gh-icon { background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,215,0,0.05)); }

/* Modal entrance effects */
.modal-overlay {
    animation: fadeDown 0.3s ease;
}
.modal-overlay .modal-glass {
    animation: slideUpModal 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.modal-overlay.center-modal .modal-glass {
    animation: popInScale 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.modal-glass {
    background: linear-gradient(135deg, rgba(26,26,26,0.95), rgba(13,13,19,0.95));
    border: 1px solid rgba(255,215,0,0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 50px rgba(255,215,0,0.08), inset 0 0 30px rgba(255,255,255,0.05);
}

@keyframes fadeDown {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes popInScale {
    0% {
        transform: scale(0.8) rotate(-5deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

/* Live item pulse on legendary/mythical */
.live-item.legendary::before,
.live-item.mythical::before {
    animation: pulseBorder 1s ease-in-out infinite;
}
@keyframes pulseBorder {
    0%, 100% {
        box-shadow: 0 0 5px currentColor;
    }
    50% {
        box-shadow: 0 0 15px currentColor;
    }
}

/* Notification toast improvements */
#notify-area { 
    position: fixed; 
    top: 90px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 90%; 
    max-width: 400px; 
    z-index: 9999; 
    pointer-events: none; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
}
.notify-toast { 
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(20,20,28,0.95)); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1); 
    color: #fff; 
    padding: 12px 16px; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(255,215,0,0.05);
    display: flex; 
    align-items: center; 
    gap: 12px; 
    animation: slideDownFade 0.4s ease forwards; 
    pointer-events: auto; 
}
.notify-toast.hiding { 
    animation: slideUpFade 0.4s ease forwards; 
}
.notify-icon { 
    font-size: 18px; 
    font-weight: bold;
} 
.notify-msg { 
    font-size: 13px; 
    font-weight: 500; 
}
.notify-toast.success { 
    border-left: 3px solid #4CAF50;
    border-color: #4CAF50;
} 
.notify-toast.error { 
    border-left: 3px solid #ff4d4d;
    border-color: #ff4d4d;
} 
.notify-toast.info { 
    border-left: 3px solid #2196F3;
    border-color: #2196F3;
}
@keyframes slideDownFade { 
    from { opacity: 0; transform: translateY(-20px); } 
    to { opacity: 1; transform: translateY(0); } 
}
@keyframes slideUpFade { 
    from { opacity: 1; transform: translateY(0); } 
    to { opacity: 0; transform: translateY(-20px); } 
}
.leaderboard-item { display: flex; align-items: center; gap: 15px; padding: 12px 15px; background: rgba(255,255,255,0.02); border-bottom: 1px solid rgba(255,255,255,0.05); border-radius: 12px; margin-bottom: 8px; cursor: pointer; transition: background 0.2s, transform 0.1s; }
.leaderboard-item:last-child { border-bottom: none; margin-bottom: 0; }
.leaderboard-item:active { transform: scale(0.98); background: rgba(255,255,255,0.05); }
.lb-rank { font-size: 16px; font-weight: 900; width: 30px; text-align: center; color: #888; }
.lb-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.1); }
.lb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lb-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.lb-name { font-size: 13px; font-weight: 700; color: #fff; display: flex; align-items: center; }
.lb-spent { font-size: 11px; color: #aaa; margin-top: 2px; }
.lb-spent span { color: var(--primary); font-weight: 600; }
.rank-1 { background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), rgba(0,0,0,0)); border: 1px solid rgba(255, 215, 0, 0.3); } .rank-1 .lb-rank { font-size: 20px; }
.rank-2 { background: linear-gradient(90deg, rgba(192, 192, 192, 0.1), rgba(0,0,0,0)); border: 1px solid rgba(192, 192, 192, 0.3); }
.rank-3 { background: linear-gradient(90deg, rgba(205, 127, 50, 0.1), rgba(0,0,0,0)); border: 1px solid rgba(205, 127, 50, 0.3); }
.insta-verified-badge { display: inline-block; width: 16px; height: 16px; margin-left: 6px; vertical-align: middle; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFD700'%3E%3Cpath d='M23 12l-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.69L1 12l2.44 2.79-.34 3.69 3.61.82 1.89 3.2L12 21.04l3.4 1.46 1.89-3.19 3.61-.82-.34-3.69L23 12zm-12.91 4.72l-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48-7.33 7.35z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: contain; filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3)); }
.insta-verified-badge.large { width: 20px; height: 20px; margin-left: 8px; }

/* === LIVE FEED === */
.live-feed-strip { position: fixed; top: 0; left: 0; right: 0; height: 75px; background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-bottom: 1px solid rgba(255,255,255,0.06); z-index: 200; overflow: hidden; display: flex; align-items: center; box-shadow: 0 5px 20px rgba(0,0,0,0.4); }
.live-feed-track { display: flex; gap: 12px; padding: 0 20px; animation: scrollLeft 35s linear infinite; will-change: transform; white-space: nowrap; align-items: center; }
.live-feed-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 202; background: linear-gradient(to bottom, rgba(255,255,255,0.02), transparent); }
.live-fade-left { position: absolute; left: 0; top: 0; bottom: 0; width: 40px; background: linear-gradient(to right, #09090b, transparent); z-index: 201; }
.live-fade-right { position: absolute; right: 0; top: 0; bottom: 0; width: 40px; background: linear-gradient(to left, #09090b, transparent); z-index: 201; }
.live-item { position: relative; display: flex; align-items: center; gap: 10px; background: rgba(30,30,30,0.6); padding: 6px 14px 6px 8px; border-radius: 40px; border: 1px solid rgba(255,255,255,0.05); height: 48px; flex-shrink: 0; transition: transform 0.2s; overflow: hidden; }
.live-item:hover { transform: scale(1.05); border-color: rgba(255,255,255,0.2); }
.live-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c-common); }
.live-item.consumer::before { background: var(--c-consumer); } .live-item.common::before { background: var(--c-common); } .live-item.rare::before { background: var(--c-rare); } .live-item.epic::before { background: var(--c-epic); } .live-item.legendary::before { background: var(--c-legendary); box-shadow: 0 0 10px var(--c-legendary); } .live-item.mythical::before { background: var(--c-mythical); box-shadow: 0 0 15px var(--c-mythical); }
.live-item.legendary { background: linear-gradient(90deg, rgba(234, 179, 8, 0.15), rgba(0,0,0,0.6)); border-color: rgba(234, 179, 8, 0.3); }
.live-item.mythical { background: linear-gradient(90deg, rgba(255, 51, 51, 0.2), rgba(0,0,0,0.6)); border-color: rgba(255, 51, 51, 0.3); }
.live-user-avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); background: #111; flex-shrink: 0; }
.live-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.live-info { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; }
.u-name { font-size: 9px; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 4px; }
.i-name { font-size: 11px; color: #fff; font-weight: 700; white-space: nowrap; }
.live-item-img { width: 42px; height: 32px; object-fit: contain; margin-left: 5px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.live-item-placeholder { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #666; width: 100%; justify-content: center; padding: 0 20px; letter-spacing: 1px; font-weight: 600; }
.loader-dot { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; animation: pulse 1s infinite; }

/* GLOW & BG */
.bg-glow { position: fixed; width: 300px; height: 300px; border-radius: 50%; filter: blur(80px); opacity: 0.15; z-index: -1; }
.bg-glow-1 { top: -50px; left: -50px; background: var(--primary); }
.bg-glow-2 { bottom: 100px; right: -50px; background: #9C27B0; }
#blur-container { transition: 0.3s; }

/* HEADER - Premium Style */
header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 20px; 
    position: sticky; 
    top: 75px; 
    z-index: 50;
    background: rgba(10, 10, 14, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,215,0,0.05);
}
.brand-box { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}
.brand-logo-img { 
    width: 45px; 
    height: 45px; 
    object-fit: contain; 
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}
.brand-info { 
    display: flex; 
    flex-direction: column; 
    line-height: 1; 
}
.brand-main { 
    font-weight: 900; 
    font-size: 14px; 
    color: #fff; 
    letter-spacing: 0.5px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.brand-sub { 
    font-weight: 700; 
    font-size: 10px; 
    color: var(--primary); 
    letter-spacing: 2px; 
    margin-top: 2px; 
}
.header-right { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

/* Balance Display */
.balance-glass {
    background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,215,0,0.05));
    border: 1px solid rgba(255,215,0,0.25);
    padding: 10px 18px;
    border-radius: 16px;
    color: var(--primary);
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 20px rgba(255,215,0,0.15), inset 0 0 15px rgba(255,255,255,0.05);
}
.balance-glass:hover {
    box-shadow: 0 12px 28px rgba(255,215,0,0.25), inset 0 0 20px rgba(255,255,255,0.08);
    border-color: rgba(255,215,0,0.45);
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,215,0,0.08));
}
.btn-add-balance {
    font-size: 16px;
    font-weight: 900;
    opacity: 0.7;
}

.profile-btn { 
    width: 38px; 
    height: 38px; 
    border-radius: 50%; 
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(168,85,247,0.1));
    border: 2px solid var(--glass-border); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    overflow: hidden; 
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 10px rgba(255,215,0,0.05);
}
.profile-btn:hover {
    border-color: rgba(255,215,0,0.3);
    box-shadow: 0 0 15px rgba(255,215,0,0.1);
}
.profile-btn:active { 
    transform: scale(0.95); 
}
.profile-btn img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

/* NOTIFICATIONS */
#notify-area { 
    position: fixed; 
    top: 90px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 90%; 
    max-width: 400px; 
    z-index: 9999; 
    pointer-events: none; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
}

.notify-toast { 
    background: linear-gradient(135deg, rgba(26, 26, 30, 0.96), rgba(20, 20, 26, 0.96));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 215, 0, 0.15);
    color: #fff; 
    padding: 14px 18px; 
    border-radius: 14px; 
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.08);
    display: flex; 
    align-items: center; 
    gap: 14px; 
    animation: slideDownFade 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.notify-toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), rgba(255, 215, 0, 0.3));
}

.notify-toast.success {
    border-left-color: #4CAF50;
}
.notify-toast.success::before {
    background: linear-gradient(180deg, #4CAF50, rgba(76, 175, 80, 0.3));
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.2);
}

.notify-toast.error {
    border-left-color: #ff3333;
}
.notify-toast.error::before {
    background: linear-gradient(180deg, #ff3333, rgba(255, 51, 51, 0.3));
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.2);
}

.notify-toast.info {
    border-left-color: #2196F3;
}
.notify-toast.info::before {
    background: linear-gradient(180deg, #2196F3, rgba(33, 150, 243, 0.3));
    box-shadow: 0 0 15px rgba(33, 150, 243, 0.2);
}

.notify-toast.hiding { 
    animation: slideUpFade 0.3s cubic-bezier(0.4, 0, 0.6, 1) forwards; 
}

.notify-icon { 
    font-size: 20px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
} 

.notify-msg { 
    font-size: 13px; 
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes slideDownFade { 
    from { 
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    } 
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    } 
}

@keyframes slideUpFade { 
    from { 
        opacity: 1;
        transform: translateY(0) scale(1);
    } 
    to { 
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    } 
}

/* SECTIONS */
.section { 
    display: none; 
    padding: 20px; 
    animation: slideInUp 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
}
.section.active { 
    display: block; 
    animation: slideInUp 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn { 
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}
.hero-section { text-align: center; margin-bottom: 25px; }
.hero-section h1 { font-size: 28px; font-weight: 900; margin: 0; background: linear-gradient(135deg, #fff 0%, #aaa 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -1px; }
.hero-section p { color: #888; font-size: 13px; margin: 5px 0 0; }
.hero-section.small h1 { font-size: 22px; }
.section-divider { display: flex; align-items: center; gap: 10px; margin: 25px 0 15px; }
.section-divider::before, .section-divider::after { content: ''; flex: 1; height: 1px; background: var(--glass-border); }
.section-divider span { font-size: 11px; font-weight: 700; color: #888; letter-spacing: 1px; }

.activity-case-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(38, 48, 74, 0.92), rgba(20, 26, 40, 0.9));
    border: 1px solid rgba(255, 215, 0, 0.16);
    box-shadow: 0 16px 34px rgba(8, 12, 28, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.activity-case-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.12), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.activity-case-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    margin-bottom: 12px;
}

.activity-case-head > div {
    min-width: 0;
}

.activity-case-kicker {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.activity-case-head h3 {
    margin: 0;
    font-size: clamp(17px, 2.2vw, 20px);
    font-weight: 900;
    line-height: 1.1;
}

.activity-case-head p {
    margin: 6px 0 0;
    color: #aeb7cb;
    font-size: 12px;
    line-height: 1.4;
    max-width: 520px;
}

.activity-case-head .btn-primary {
    width: auto;
    min-width: 156px;
    min-height: 48px;
    padding: 12px 16px;
    flex-shrink: 0;
    align-self: center;
    justify-self: end;
    white-space: nowrap;
}

.activity-case-head .btn-primary:disabled {
    opacity: 0.72;
}

.activity-case-progress {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.activity-case-progress-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28);
}

.activity-case-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffd54f, #ffb300);
    box-shadow: 0 0 18px rgba(255, 213, 79, 0.28);
    transition: width 0.3s ease;
}

.activity-case-progress-text {
    font-size: 12px;
    color: #d3dae8;
    text-align: right;
    font-weight: 700;
}

.activity-case-days {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
}

.activity-case-days::-webkit-scrollbar {
    display: none;
}

.activity-day {
    flex: 0 0 108px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 10px 8px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    text-align: center;
    min-height: 142px;
    scroll-snap-align: start;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.activity-day-label {
    font-size: 11px;
    font-weight: 800;
    color: #9ca7bf;
    text-transform: uppercase;
    line-height: 1;
}

.activity-day-reward {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    line-height: 1.28;
    min-height: 30px;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.activity-day-meta {
    font-size: 11px;
    color: #9ca7bf;
    margin-top: auto;
}

.activity-day-thumb {
    width: 52px;
    height: 52px;
    margin: 0 auto;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.activity-day-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.activity-day.done {
    border-color: rgba(76, 175, 80, 0.36);
    background: linear-gradient(150deg, rgba(76, 175, 80, 0.18), rgba(36, 58, 42, 0.14));
}

.activity-day.current {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.18), 0 10px 20px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
}

.activity-day.locked {
    opacity: 0.72;
}

.activity-day.completed {
    border-color: rgba(255, 215, 0, 0.5);
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.2), rgba(255, 173, 51, 0.16));
}

@media (max-width: 768px) {
    .activity-case-head {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .activity-case-head .btn-primary {
        width: 100%;
        min-width: 0;
        justify-self: stretch;
    }

    .activity-case-days {
        gap: 8px;
    }

    .activity-day {
        flex-basis: 96px;
        min-height: 136px;
    }

    .activity-case-progress-text {
        text-align: left;
    }
}
.back-nav { color: #888; font-size: 12px; font-weight: 600; margin-bottom: 15px; cursor: pointer; display: inline-block; padding: 5px 0; }

.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.case-card {
    /* clean modern glass card */
    position: relative;
    background: rgba(255,255,255,0.015);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 28px;
    padding: 15px;
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.case-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--c-common);
    border-radius: 0 0 20px 20px;
    pointer-events: none;
    transition: background 0.3s;
}
.case-card:active { 
    transform: scale(0.98); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 15px var(--rarity-glow, var(--primary-glow));
}
.case-img { width: 100%; height: 90px; object-fit: contain; margin-bottom: 10px; filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3)); }
.case-card div:nth-child(2) { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.case-card div:last-child { font-size: 12px; color: var(--primary); font-weight: 600; }
/* rarity color rules now handled via ::after accent bar below */

/* override green case borders – common should look neutral */
.case-card.rarity-consumer::after { background: var(--c-consumer); }
.case-card.rarity-common::after { background: var(--c-common); }
.case-card.rarity-rare::after { background: var(--c-rare); }
.case-card.rarity-epic::after { background: var(--c-epic); }
.case-card.rarity-legendary::after { background: var(--c-legendary); }
.case-card.rarity-mythical::after { background: var(--c-mythical); }


/* duplicate glass-panel definition removed; use enhanced style at top */

/* GAMES HUB */
.games-hub-grid { display: grid; gap: 15px; }
.game-hub-card { display: flex; align-items: center; gap: 15px; padding: 20px; background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); border-radius: 16px; cursor: pointer; transition: 0.2s; position: relative; overflow: hidden; }
.game-hub-card:active { transform: scale(0.98); background: rgba(255,255,255,0.05); }
.gh-icon { font-size: 30px; width: 50px; height: 50px; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.gh-info { flex: 1; }
.gh-info h3 { margin: 0 0 4px 0; font-size: 16px; font-weight: 800; color: #fff; }
.gh-info p { margin: 0; font-size: 12px; color: #888; }
.gh-btn { font-size: 11px; font-weight: 800; background: var(--primary); color: #000; padding: 6px 12px; border-radius: 8px; }
.game-hub-card.upgrade { border-left: 3px solid #9C27B0; }
.game-hub-card.contract { border-left: 3px solid #2196F3; }
.game-hub-card.top { border-left: 3px solid #FFD700; }

/* UPGRADE */
.upgrade-wrapper { display: flex; flex-direction: column; gap: 20px; }
.upgrade-slots-row { display: flex; align-items: center; gap: 10px; }
.upg-card { flex: 1; height: 130px; display: flex; flex-direction: column; overflow: hidden; position: relative; cursor: pointer; transition: 0.2s; }
.upg-card:active { transform: scale(0.98); }
.upg-card-header { font-size: 9px; font-weight: 800; text-align: center; padding: 8px 0; background: rgba(0,0,0,0.2); color: #888; letter-spacing: 0.5px; }
.upg-card-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.placeholder-icon { font-size: 24px; color: #333; font-weight: 300; }
.upg-card img { width: 70%; height: 60px; object-fit: contain; margin-bottom: 5px; z-index: 2; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)); }
.price-badge { font-size: 10px; background: rgba(0,0,0,0.4); padding: 3px 8px; border-radius: 6px; color: #ccc; }
.price-badge.gold { color: var(--primary); border: 1px solid rgba(255,215,0,0.2); }
.upg-arrow { color: #444; width: 20px; }
.controls-panel { padding: 15px; }
.multipliers-grid { display: flex; gap: 8px; margin-bottom: 15px; }
.multipliers-grid button { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); color: #888; border-radius: 8px; padding: 10px 0; font-size: 12px; font-weight: 700; transition: 0.2s; }
.multipliers-grid button:hover { background: rgba(255,255,255,0.1); color: #fff; }
.slider-wrapper label { display: block; margin-bottom: 5px; font-size: 12px; color: #888; }
.slider-labels { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 8px; color: #888; }
#upg-chance-display { color: var(--primary); font-weight: bold; }
input[type=range] { width: 100%; height: 4px; background: #333; border-radius: 2px; appearance: none; -webkit-appearance: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 10px var(--primary-glow); }
.roll-container { padding: 15px; background: #000; box-shadow: inset 0 0 20px rgba(0,0,0,0.8); }
.roll-track-neon { height: 32px; background: #111; border-radius: 6px; position: relative; overflow: hidden; border: 1px solid #222; }
.roll-win-area { height: 100%; background: linear-gradient(90deg, rgba(76,175,80,0.2), rgba(76,175,80,0.8)); position: absolute; left: 0; top: 0; box-shadow: 0 0 15px rgba(76,175,80,0.5); border-right: 2px solid #4CAF50; transition: width 0.3s ease; }
.roll-pointer { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; left: 0%; z-index: 10; box-shadow: 0 0 8px #fff; transition: left 0.1s linear; }
.status-text { text-align: center; height: 20px; font-weight: 900; letter-spacing: 1px; margin-top: -10px; font-size: 14px; }
.status-win { color: #4CAF50; text-shadow: 0 0 10px rgba(76,175,80,0.5); }
.status-lose { color: #ef4444; text-shadow: 0 0 10px rgba(239,68,68,0.5); }

/* CONTRACTS */
.contract-stats { padding: 15px; display: flex; justify-content: space-between; font-size: 14px; font-weight: bold; margin-bottom: 20px; }
.contract-selected { opacity: 0.6; filter: grayscale(0.5); border: 2px solid var(--primary) !important; }
.contract-footer { margin-top: 20px; }
.contract-anim-overlay { position: fixed; inset: 0; z-index: 4000; background: #000; display: none; align-items: center; justify-content: center; flex-direction: column; }
.contract-vortex { position: relative; width: 300px; height: 300px; display: flex; justify-content: center; align-items: center; }
.c-anim-item { position: absolute; top: 50%; left: 50%; width: 50px; height: 50px; margin-left: -25px; margin-top: -25px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.5); background-size: contain; background-repeat: no-repeat; background-position: center; background-color: #1a1a1a; box-shadow: 0 0 15px rgba(255,255,255,0.2); animation: vortexSpin 2s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards; }
@keyframes vortexSpin { 0% { transform: rotate(0deg) translateX(120px) rotate(0deg) scale(1); opacity: 1; } 50% { opacity: 0.8; } 100% { transform: rotate(720deg) translateX(0px) rotate(-720deg) scale(0.1); opacity: 0; } }

/* BUTTONS - Premium Style with Glass */
.btn-primary { 
    background: linear-gradient(115deg, #f7d86a 0%, #efc84b 22%, #e3b338 48%, #d59d25 74%, #efc84b 100%); 
    background-size: 280% 280%;
    color: #000; 
    border: 1px solid rgba(255, 240, 196, 0.28);
    width: 100%; 
    padding: 14px; 
    border-radius: 14px; 
    font-weight: 800; 
    font-size: 14px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    cursor: pointer; 
    position: relative; 
    overflow: hidden; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 24px rgba(169, 121, 20, 0.26), inset 0 1px 0 rgba(255, 247, 219, 0.2);
    animation: buttonToneShift 4.8s linear infinite;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 26%, transparent 48%, rgba(255,255,255,0.1) 72%, rgba(255,255,255,0.16) 100%);
    background-size: 220% 220%;
    border-radius: 14px;
    pointer-events: none;
    opacity: 0.72;
    mix-blend-mode: soft-light;
    animation: buttonSurfaceFlow 6.2s linear infinite;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(169, 121, 20, 0.34), inset 0 1px 0 rgba(255, 247, 219, 0.24);
    filter: brightness(1.05);
}
.btn-primary:active { 
    transform: scale(0.96); 
}
.btn-primary:disabled { 
    background: #333; 
    color: #666; 
    cursor: not-allowed;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.1);
}

@keyframes buttonToneShift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 55% 35%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 45% 65%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes buttonSurfaceFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.btn-secondary { 
    background: rgba(255,255,255,0.06); 
    color: #fff; 
    border: 1px solid rgba(255,255,255,0.18); 
    padding: 12px; 
    border-radius: 12px; 
    font-weight: 600; 
    width: 100%; 
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,215,0,0.35);
    box-shadow: 0 6px 24px rgba(255,215,0,0.1);
    transform: translateY(-1px);
}
.btn-secondary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.btn-danger-small { 
    background: rgba(239,68,68,0.2); 
    color: #ef4444; 
    border: 1px solid rgba(239,68,68,0.3); 
    padding: 6px 12px; 
    border-radius: 8px; 
    font-size: 11px; 
    font-weight: 700; 
    cursor: pointer;
    transition: all 0.2s;
}
.btn-danger-small:hover {
    background: rgba(239,68,68,0.3);
    box-shadow: 0 0 10px rgba(239,68,68,0.2);
}

/* INVENTORY */
.inventory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-bottom: 20px; }
.inventory-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.empty-state { text-align: center; color: #888; margin-top: 50px; }
.empty-icon { font-size: 40px; margin-bottom: 10px; opacity: 0.5; }

/* === PREMIUM NAVIGATION (BOTTOM FIXED) === */
.bottom-nav { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 75px; 
    background: linear-gradient(180deg, rgba(15,15,20,0.95), rgba(10,10,15,0.98));
    border-top: 2px solid rgba(255,215,0,0.15);
    display: flex; 
    justify-content: space-around; 
    align-items: center; 
    z-index: 100; 
    padding-bottom: 8px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.6), 0 0 40px rgba(255,215,0,0.08);
}

/* Nav Item Base */
.nav-item { 
    background: none; 
    border: none; 
    color: rgba(255,255,255,0.5); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    gap: 4px; 
    font-size: 10px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex: 1; 
    height: 100%;
    position: relative;
    padding-top: 4px;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    user-select: none;
    min-height: 44px;
}

.nav-icon { 
    font-size: 22px; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

/* Hover effect */
.nav-item:hover {
    color: rgba(255,255,255,0.8);
}
.nav-item:hover .nav-icon {
    transform: scale(1.15) translateY(-2px);
}

/* Active state */
.nav-item.active { 
    color: var(--primary);
}
.nav-item.active .nav-icon { 
    color: var(--primary); 
    transform: scale(1.2) translateY(-4px);
    text-shadow: 0 0 15px rgba(255,215,0,0.6);
    filter: drop-shadow(0 0 8px rgba(255,215,0,0.4));
}

/* Active indicator - animated line */
.nav-item.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), rgba(255,215,0,0.3));
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(255,215,0,0.5);
    animation: slideIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

/* Active indicator - animated dot (alternative) */
.nav-item.active::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255,215,0,0.6);
    animation: pulse 1.5s cubic-bezier(0.4,0,0.6,1) infinite;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.6;
        box-shadow: 0 0 8px rgba(255,215,0,0.6);
    }
    50% { 
        opacity: 1;
        box-shadow: 0 0 15px rgba(255,215,0,0.8);
    }
}

/* Main Central Button - Premium Style */
.nav-item.main-action { 
    flex: 0 0 auto;
    width: 65px;
    position: relative;
}

.nav-item.main-action .nav-icon { 
    font-size: 28px; 
    width: 58px; 
    height: 58px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0;
    margin-top: -22px;
    
    /* Base style */
    background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,215,0,0.05));
    border: 2px solid rgba(255,215,0,0.3);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4), 0 0 20px rgba(255,215,0,0.1);
    
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: rgba(255,255,255,0.8);
}

/* Hover effect on main button */
.nav-item.main-action:hover .nav-icon {
    background: linear-gradient(135deg, rgba(255,215,0,0.25), rgba(255,215,0,0.1));
    border-color: rgba(255,215,0,0.5);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 30px rgba(255,215,0,0.15);
    transform: scale(1.08) translateY(-2px);
}

/* Active main button */
.nav-item.main-action.active .nav-icon { 
    border-color: var(--primary);
    color: #000; 
    background: linear-gradient(135deg, var(--primary), #FFB700);
    box-shadow: 0 12px 35px rgba(255,215,0,0.35), 0 0 40px rgba(255,215,0,0.2);
    
    animation: bounceIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes bounceIn {
    0% {
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/* Ripple effect for main button */
.nav-item.main-action .nav-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.3), transparent);
    opacity: 0;
    animation: none;
}

.nav-item.main-action.active .nav-icon::before {
    animation: ripple 0.8s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Label for main action */
.nav-item.main-action span {
    position: absolute;
    bottom: -20px;
    font-size: 9px;
}

/* Badge notification (if needed) */
.nav-item::before-notification {
    content: '';
    position: absolute;
    top: 8px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: #ff4d4d;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255,77,77,0.6);
}

/* BATTLE PASS STYLES UPDATED */
.bp-header { padding: 20px; text-align: center; margin-bottom: 20px; position: relative; overflow: hidden; border: 1px solid rgba(255,215,0,0.3); }
.bp-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 100%; background: radial-gradient(circle at top, rgba(255,215,0,0.1), transparent); pointer-events: none; }
.bp-level-info { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 15px; }
.bp-lvl-badge { background: linear-gradient(135deg, #FFD700, #F57F17); color: #000; width: 45px; height: 45px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; box-shadow: 0 5px 15px rgba(255,215,0,0.3); }
.bp-exp-text { font-size: 14px; color: #fff; font-weight: bold; text-align: left; }
.bp-exp-text span { color: var(--primary); }
.bp-progress-bar { width: 100%; height: 8px; background: #222; border-radius: 4px; overflow: hidden; margin-bottom: 15px; }
.bp-progress-fill { height: 100%; background: linear-gradient(90deg, #FFD700, #ff9800); border-radius: 4px; transition: width 0.5s ease; box-shadow: 0 0 10px rgba(255,215,0,0.5); }
.bp-buy-btn { background: linear-gradient(90deg, #ff9900, #ff9900); color: rgb(0, 0, 0); border: none; font-size: 12px; padding: 12px; box-shadow: 0 4px 15px rgba(224, 153, 0, 0.4); }
.bp-premium-active-badge { font-size: 12px; font-weight: 900; color: #FFD700; background: rgba(255,215,0,0.1); padding: 10px; border-radius: 8px; border: 1px solid rgba(255,215,0,0.3); text-shadow: 0 0 10px rgba(255,215,0,0.5); }

.bp-track-container { display: flex; overflow-x: auto; gap: 15px; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.bp-tier { flex: 0 0 110px; display: flex; flex-direction: column; gap: 8px; scroll-snap-align: start; opacity: 0.5; transition: 0.3s; }
.bp-tier.unlocked { opacity: 1; }
.bp-tier-level { text-align: center; font-size: 10px; font-weight: 900; color: #888; background: rgba(255,255,255,0.05); padding: 5px; border-radius: 6px; }
.bp-reward { background: #111; border: 1px solid #333; border-radius: 12px; padding: 10px 5px; text-align: center; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 90px; }
.bp-reward.premium { border-color: rgba(255,215,0,0.2); background: linear-gradient(180deg, rgba(255,215,0,0.05), #111); }
.bp-reward-val { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.bp-reward-img img { width: 50px; height: 35px; object-fit: contain; margin-bottom: 5px; }
.bp-reward-name { font-size: 9px; color: #ccc; line-height: 1.1; margin-bottom: 5px; height: 20px; overflow: hidden; }
.bp-reward-btn { font-size: 9px; font-weight: bold; background: #333; padding: 4px 8px; border-radius: 4px; color: #888; margin-top: auto; }
.bp-reward.claimable { border-color: #4CAF50; cursor: pointer; box-shadow: 0 0 15px rgba(76,175,80,0.2); }
.bp-reward.claimable .bp-reward-btn { background: #4CAF50; color: #fff; }
.bp-reward.claimed { border-color: #555; opacity: 0.7; }

.bp-tasks-list { display: flex; flex-direction: column; gap: 10px; }
.bp-task-item { background: rgba(255,255,255,0.03); border: 1px solid #333; border-radius: 12px; padding: 15px; display: flex; flex-direction: column; gap: 10px; }
.bp-task-item.done { border-color: #4CAF50; background: linear-gradient(90deg, rgba(76,175,80,0.05), transparent); }
.bp-task-info { display: flex; justify-content: space-between; align-items: flex-start; }
.bp-task-title { font-size: 12px; font-weight: bold; color: #fff; }
.bp-task-exp { font-size: 10px; font-weight: 900; color: var(--primary); background: rgba(255,215,0,0.1); padding: 3px 6px; border-radius: 4px; }
.bp-task-progress { font-size: 11px; color: #888; display: flex; justify-content: space-between; }
.bp-task-bar { width: 100%; height: 4px; background: #222; border-radius: 2px; }
.bp-task-fill { height: 100%; background: #4CAF50; border-radius: 2px; transition: 0.3s; }

/* MODALS */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 2000; justify-content: center; align-items: flex-end; }
.modal-overlay.center-modal { align-items: center; } 
.modal-glass { position: relative; background: #121212; width: 100%; border-radius: 24px 24px 0 0; padding: 25px 20px; border-top: 1px solid var(--glass-border); animation: slideUp 0.3s ease; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.center-modal .modal-glass { width: 90%; border-radius: 24px; border: 1px solid var(--glass-border); animation: popIn 0.3s ease; transition: box-shadow 0.3s, border-color 0.3s; }
.modal-glass.full-height { height: 80vh; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.btn-close { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.1); border: none; color: #fff; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; z-index: 100; display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* PREVIEW */
.case-preview-top { text-align: center; margin-bottom: 20px; padding-top: 10px; }
.case-preview-top img { width: 120px; filter: drop-shadow(0 0 20px rgba(255,255,255,0.1)); margin-bottom: 10px; }
.price-pill { display: inline-block; background: rgba(255,255,255,0.1); padding: 4px 12px; border-radius: 20px; font-size: 12px; color: var(--primary); font-weight: 700; }
.qty-selector { display: flex; gap: 8px; margin-bottom: 20px; }
.qty-btn { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid #333; color: #888; padding: 10px; border-radius: 10px; font-weight: 700; cursor: pointer; }
.qty-btn.active { background: var(--primary); color: #000; border-color: var(--primary); }
.items-scroller { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; overflow-y: auto; flex: 1; padding-bottom: 10px; }
.preview-item { background: rgba(255,255,255,0.03); border: 1px solid #333; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 5px; min-height: 110px; position: relative; overflow: hidden; }
.preview-item.rarity-consumer { border-bottom: 2px solid var(--c-consumer); } .preview-item.rarity-common { border-bottom: 2px solid var(--c-common); } .preview-item.rarity-rare { border-bottom: 2px solid var(--c-rare); } .preview-item.rarity-epic { border-bottom: 2px solid var(--c-epic); } .preview-item.rarity-legendary { border-bottom: 2px solid var(--c-legendary); background: radial-gradient(circle at bottom, rgba(234,179,8,0.15), transparent); } .preview-item.rarity-mythical { border-bottom: 2px solid var(--c-mythical); background: radial-gradient(circle at bottom, rgba(239,68,68,0.2), transparent); }
.preview-item img { width: 100%; height: 50px; object-fit: contain; margin-bottom: 5px; }
.p-name { font-size: 9px; text-align: center; color: #ccc; line-height: 1.2; margin-bottom: 4px; overflow: hidden; display: -webkit-box; line-clamp: 2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.p-price { font-size: 9px; font-weight: 700; color: #666; }
.modal-footer-sticky { margin-top: auto; border-top: 1px solid #222; padding-top: 15px; }
.toggle-fast { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; font-size: 12px; color: #888; }
.toggle-track { width: 32px; height: 18px; background: #333; border-radius: 20px; position: relative; transition: 0.3s; }
.toggle-track::after { content:''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; background: #fff; border-radius: 50%; transition: 0.3s; }
input:checked + .toggle-track { background: var(--primary); }
input:checked + .toggle-track::after { transform: translateX(14px); background: #000; }
.toggle-fast input { display: none; }
.sub-timer { text-align: center; font-size: 12px; color: #ff4d4d; margin-bottom: 10px; font-weight: bold; }
.btn-sub-check { background: #229ED9; color: white; margin-bottom: 10px; }
.btn-sub-verify { background: #4CAF50; color: white; margin-bottom: 10px; display: none; }

/* MODERN INV MODAL */
.modern-item-modal {
    padding: 0 !important;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 20px;
}
.modern-card-bg { position: absolute; top: 0; left: 0; right: 0; height: 250px; z-index: 0; opacity: 0.2; background: radial-gradient(circle, var(--c-common), transparent 70%); transition: 0.3s; }
.inv-action-content {
    position: relative;
    z-index: 2;
    padding: 25px;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.item-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0 30px;
    position: relative;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 20px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2), inset 0 0 15px rgba(255,255,255,0.05);
}
.item-showcase img { width: 160px; height: 100px; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)); transition: transform 0.3s; }
.item-showcase:hover img { transform: scale(1.1); }
.item-rarity-badge { margin-top: 10px; font-size: 10px; font-weight: 800; letter-spacing: 2px; color: #fff; background: rgba(0,0,0,0.4); padding: 4px 10px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1); text-transform: uppercase; }
.item-info-block { margin-bottom: 20px; text-align: center; }
#inv-item-name { font-size: 20px; font-weight: 800; margin: 0 0 5px; letter-spacing: -0.5px; }
.price-tag-modern { display: inline-flex; align-items: center; background: rgba(255,255,255,0.05); padding: 5px 12px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); font-weight: 700; color: #ccc; font-size: 14px; }
.price-tag-modern span { color: #fff; margin-right: 4px; }
.action-buttons-modern { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; margin-top: auto; }
.btn-sell-modern { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #ef4444; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: 0.2s; }
.btn-sell-modern:active { background: rgba(239,68,68,0.2); }
.btn-withdraw-modern { background: var(--primary); border: none; color: #000; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: 0.2s; font-weight: 800; }
.btn-withdraw-modern:active { transform: scale(0.98); }

/* badge for pending withdrawal items */
.pending-badge { position: absolute; top: 4px; right: 4px; background: rgba(255,165,0,0.9); color: #000; font-size: 10px; padding: 2px 4px; border-radius: 3px; z-index: 1; font-weight: bold; }
.btn-subtext { font-size: 10px; opacity: 0.8; font-weight: 600; margin-top: 2px; }

/* WIN SCREEN */
.win-modal { text-align: center; overflow: hidden; position: relative; transition: all 0.5s ease; border: 1px solid var(--glass-border); z-index: 5000 !important; }
.win-light { position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 300px; height: 300px; background: var(--primary); filter: blur(100px); opacity: 0.3; pointer-events: none; transition: background 0.5s; }
.win-modal.mythical { border-color: var(--c-mythical); box-shadow: 0 0 40px rgba(255,51,51,0.3); } .win-modal.mythical .win-light { background: var(--c-mythical); opacity: 0.7; }
.win-modal.legendary { border-color: var(--c-legendary); box-shadow: 0 0 30px rgba(234,179,8,0.3); } .win-modal.legendary .win-light { background: var(--c-legendary); opacity: 0.6; }
.win-modal.epic { border-color: var(--c-epic); box-shadow: 0 0 20px rgba(168,85,247,0.3); } .win-modal.epic .win-light { background: var(--c-epic); opacity: 0.5; }
.win-modal.rare { border-color: var(--c-rare); box-shadow: 0 0 20px rgba(59,130,246,0.3); } .win-modal.rare .win-light { background: var(--c-rare); opacity: 0.5; }
.win-title { font-size: 32px; font-weight: 900; color: #fff; margin: 10px 0; text-transform: uppercase; letter-spacing: 2px; }
.win-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 10px; max-height: 40vh; overflow-y: auto; margin-bottom: 20px; }
.win-grid.single-item { display: flex; justify-content: center; }
.win-item { background: #111; padding: 10px; border-radius: 10px; border: 1px solid #333; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 120px; }
.win-item img { width: 100%; height: 50px; object-fit: contain; margin-bottom: 5px; }
.win-sum { font-size: 14px; color: #888; margin-bottom: 20px; }
.win-actions { display: flex; gap: 10px; }

/* UPGRADE SELECTOR */
.upg-select-list { display: flex; flex-direction: column; gap: 10px; padding: 10px 0; overflow-y: auto; max-height: 60vh; }
.upg-item-row { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(0,0,0,0)); border: 1px solid #333; border-radius: 12px; padding: 10px 15px; position: relative; overflow: hidden; flex-shrink: 0; }
.upg-item-row::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #666; }
.upg-item-row.rarity-common::before { background: var(--c-common); } .upg-item-row.rarity-rare::before { background: var(--c-rare); } .upg-item-row.rarity-epic::before { background: var(--c-epic); } .upg-item-row.rarity-legendary::before { background: var(--c-legendary); } .upg-item-row.rarity-mythical::before { background: var(--c-mythical); }
.upg-row-left { display: flex; align-items: center; gap: 15px; }
.upg-row-img { width: 60px; height: 40px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)); }
.upg-row-info { display: flex; flex-direction: column; }
.upg-row-name { font-size: 13px; font-weight: 700; color: #fff; }
.upg-row-price { font-size: 11px; color: #aaa; margin-top: 2px; }
.btn-upg-select { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); color: #fff; font-size: 11px; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.btn-upg-select:hover { background: var(--primary); color: #000; border-color: var(--primary); }

/* ROULETTE & CONTAINERS */
.roulette-overlay { display: none; position: fixed; inset: 0; z-index: 3000; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); flex-direction: column; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.4s ease; }
.roulette-overlay.active { opacity: 1; }
.roulette-status { font-size: 16px; letter-spacing: 4px; color: var(--primary); font-weight: 900; text-shadow: 0 0 20px var(--primary-glow); margin-bottom: 20px; text-transform: uppercase; z-index: 30; animation: pulse 1s infinite; }
@keyframes pulse { 0% { opacity: 0.6; } 50% { opacity: 1; } 100% { opacity: 0.6; } }
.roulette-strips-container { width: 95%; max-width: 420px; max-height: 85vh; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; padding: 0 10px; }
.roulette-strips-container.grid-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modern-roulette-track { position: relative; width: 100%; height: 160px; background: rgba(0,0,0,0.5); border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); overflow: hidden; display: flex; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.roulette-strips-container.grid-mode .modern-roulette-track { height: 130px; }
.center-marker { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 120px; height: 140px; z-index: 50; border: 1px solid var(--primary); border-radius: 12px; box-shadow: 0 0 15px rgba(255, 215, 0, 0.3); pointer-events: none; }
.center-marker::before { content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%); border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 6px solid var(--primary); }
.center-marker::after { content: ''; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 6px solid var(--primary); }
.roulette-strips-container.grid-mode .center-marker { width: 80px; height: 110px; }
.modern-rail { display: flex; align-items: center; height: 100%; will-change: transform; }
.m-card { width: 110px; min-width: 110px; height: 130px; margin: 0 5px; background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(0,0,0,0.5)); border-radius: 8px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; border-top: 1px solid rgba(255,255,255,0.1); }
.roulette-strips-container.grid-mode .m-card { width: 70px; min-width: 70px; height: 90px; margin: 0 3px; }
.m-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; border-radius: 0 0 8px 8px; opacity: 0.8; }
.m-card.rarity-consumer::after { background: var(--c-consumer); } .m-card.rarity-common::after { background: var(--c-common); } .m-card.rarity-rare::after { background: var(--c-rare); } .m-card.rarity-epic::after { background: var(--c-epic); } .m-card.rarity-legendary::after { background: var(--c-legendary); box-shadow: 0 0 10px var(--c-legendary); } .m-card.rarity-mythical::after { background: var(--c-mythical); box-shadow: 0 0 15px var(--c-mythical); }
.m-card img { width: 90px; height: 60px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)); z-index: 2; margin-bottom: 8px; }
.roulette-strips-container.grid-mode .m-card img { width: 55px; height: 40px; margin-bottom: 4px; }
.m-card-info { text-align: center; z-index: 2; width: 100%; padding: 0 2px; }
.m-name { font-size: 10px; color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-price { font-size: 9px; font-weight: 800; color: #fff; }
.container-anim-overlay { position: fixed; inset: 0; z-index: 3500; background: #000; display: none; align-items: center; justify-content: center; perspective: 1200px; }
.container-box { width: 280px; height: 280px; background: linear-gradient(135deg, #1f1f1f, #0f0f0f); position: relative; border: 8px solid #333; box-shadow: 0 30px 60px rgba(0,0,0,0.9); transform-style: preserve-3d; border-radius: 4px; }
.container-door { position: absolute; top: 0; bottom: 0; width: 50%; background: #2a2a2a; border: 2px solid #444; transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1); z-index: 10; display: flex; align-items: center; justify-content: center; background-image: repeating-linear-gradient(45deg, #252525 0, #252525 20px, #2a2a2a 20px, #2a2a2a 40px); box-shadow: inset 0 0 20px rgba(0,0,0,0.5); }
.c-door-left { left: 0; transform-origin: left; border-right: 2px solid #111; }
.c-door-right { right: 0; transform-origin: right; border-left: 2px solid #111; }
.container-lock { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 20px; height: 60px; background: #555; border-radius: 4px; z-index: 15; box-shadow: 0 0 10px rgba(0,0,0,0.5); transition: opacity 0.3s; }
.container-box.open .container-lock { opacity: 0; }
.container-box.open .c-door-left { transform: rotateY(-105deg); }
.container-box.open .c-door-right { transform: rotateY(105deg); }
.container-inner-light { position: absolute; inset: 0; background: radial-gradient(circle, #fff, var(--primary) 20%, transparent 70%); opacity: 0; transition: opacity 0.8s 0.3s; z-index: 5; mix-blend-mode: screen; }
.container-box.open .container-inner-light { opacity: 1; }
.container-item-reveal { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.2); width: 200px; height: 150px; object-fit: contain; z-index: 6; opacity: 0; filter: drop-shadow(0 0 20px rgba(255,255,255,0.4)); transition: all 0.6s 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.container-box.open .container-item-reveal { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }

/* PROFILE SCROLL & SETTINGS */
.profile-scroll-area { padding-bottom: 20px; overflow-y: auto; max-height: 70vh; }
.settings-form { display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; background: rgba(255,255,255,0.03); padding: 15px; border-radius: 12px; border: 1px solid #333; }
.input-group { flex: 1; }
.input-group label { display: block; font-size: 11px; color: #888; margin-bottom: 6px; font-weight: 600; }
.input-group input, .input-group select { width: 100%; background: #111; border: 1px solid #333; padding: 12px; border-radius: 8px; color: #fff; font-size: 14px; appearance: none; }
.input-group input:focus, .input-group select:focus { border-color: var(--primary); }
.profile-stats { display: flex; justify-content: space-between; background: rgba(255,255,255,0.05); padding: 15px; border-radius: 12px; margin-bottom: 20px; }
.stat-line { font-size: 13px; color: #ccc; font-weight: 500; }
.gold-text { color: var(--primary); font-weight: 700; }
.history-block h4 { margin: 0 0 10px 0; font-size: 14px; color: #888; text-transform: uppercase; letter-spacing: 1px; }
.history-scroll-container { max-height: 200px; overflow-y: auto; background: #000; border: 1px solid #222; border-radius: 12px; padding: 10px; }
#history-list div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #222; font-size: 12px; }
#history-list div:last-child { border-bottom: none; }

/* SHOP TAB */
.balance-glass { background: linear-gradient(135deg, rgba(30, 30, 30, 0.8), rgba(10, 10, 10, 0.95)); backdrop-filter: blur(15px); border: 1px solid rgba(255, 215, 0, 0.3); border-radius: 30px; padding: 6px 6px 6px 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; box-shadow: 0 4px 15px rgba(255, 215, 0, 0.1), inset 0 0 10px rgba(255, 215, 0, 0.05); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.balance-glass:hover { box-shadow: 0 6px 20px rgba(255, 215, 0, 0.25), inset 0 0 15px rgba(255, 215, 0, 0.1); transform: translateY(-2px); border-color: rgba(255, 215, 0, 0.6); }
#user-balance { color: #FFD700; font-weight: 900; font-size: 15px; text-shadow: 0 0 10px rgba(255, 215, 0, 0.4); letter-spacing: 0.5px; }
.btn-add-balance { background: linear-gradient(135deg, #FFD700, #F57F17); color: #000; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 18px; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); transition: transform 0.3s ease; }
.balance-glass:hover .btn-add-balance { transform: rotate(90deg) scale(1.1); }
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 15px; }
@media (min-width: 600px) { .shop-grid { grid-template-columns: repeat(4, 1fr); } }
.shop-btn { background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.4)); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 20px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; position: relative; overflow: hidden; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); color: #fff; animation: shopButtonIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.shop-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); transition: 0.5s; }
.shop-btn:hover::before { left: 150%; }
.shop-btn:hover { transform: translateY(-6px); border-color: rgba(255, 215, 0, 0.4); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 215, 0, 0.1); background: linear-gradient(145deg, rgba(255, 215, 0, 0.05), rgba(0, 0, 0, 0.6)); }
.shop-btn:active { transform: scale(0.92); }

@keyframes shopButtonIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.sb-price { font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 6px; letter-spacing: 1px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.sb-desc { font-size: 11px; color: #aaa; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }
.shop-btn.popular { border-color: rgba(76, 175, 80, 0.5); background: linear-gradient(145deg, rgba(76, 175, 80, 0.1), rgba(0, 0, 0, 0.5)); }
.shop-btn.popular .sb-price { color: #4CAF50; text-shadow: 0 0 10px rgba(76, 175, 80, 0.3); }
.shop-btn.popular:hover { border-color: #4CAF50; box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 20px rgba(76, 175, 80, 0.25); }
.shop-btn.gold { border-color: rgba(255, 215, 0, 0.5); background: linear-gradient(145deg, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0.5)); }
.shop-btn.gold .sb-price { color: #FFD700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
.shop-btn.gold:hover { border-color: #FFD700; box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 20px rgba(255, 215, 0, 0.3); }
.shop-btn.myth { border-color: rgba(255, 51, 51, 0.5); background: linear-gradient(145deg, rgba(255, 51, 51, 0.1), rgba(0, 0, 0, 0.5)); }
.shop-btn.myth .sb-price { color: #ff3333; text-shadow: 0 0 10px rgba(255, 51, 51, 0.4); }
.shop-btn.myth:hover { border-color: #ff3333; box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 20px rgba(255, 51, 51, 0.3); }
.sb-badge { position: absolute; top: -1px; right: -1px; background: linear-gradient(135deg, #4CAF50, #1B5E20); color: #fff; font-size: 10px; font-weight: 900; padding: 5px 12px; border-radius: 0 16px 0 12px; text-transform: uppercase; letter-spacing: 1px; box-shadow: -2px 2px 10px rgba(76, 175, 80, 0.4); }
.custom-amount-input { flex: 1; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.1); color: #FFD700; font-size: 16px; font-weight: 800; padding: 12px 15px; border-radius: 12px; transition: 0.3s; text-align: center; box-shadow: inset 0 2px 5px rgba(0,0,0,0.5); }
.custom-amount-input:focus { border-color: #FFD700; box-shadow: 0 0 15px rgba(255, 215, 0, 0.2), inset 0 2px 5px rgba(0,0,0,0.5); }
#other-inventory-grid { padding-bottom: 20px; }
#modal-other-profile .profile-scroll-area { max-height: 60vh; }
.promo-box-large { display: flex; gap: 10px; background: rgba(0, 0, 0, 0.3); padding: 6px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.08); transition: 0.3s; }
.promo-box-large:focus-within { border-color: rgba(255, 215, 0, 0.5); box-shadow: 0 0 15px rgba(255, 215, 0, 0.15); background: rgba(0, 0, 0, 0.5); }
.promo-box-large input { flex: 1; background: transparent; border: none; padding: 10px 15px; color: #fff; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.promo-box-large input::placeholder { color: #666; font-weight: 500; text-transform: none; }
.promo-box-large button { background: linear-gradient(135deg, #FFD700, #F57F17); color: #000; border: none; padding: 0 20px; border-radius: 12px; font-weight: 900; font-size: 12px; cursor: pointer; transition: all 0.2s ease; text-transform: uppercase; letter-spacing: 0.5px; }
.promo-box-large button:hover { filter: brightness(1.1); box-shadow: 0 0 15px rgba(255, 215, 0, 0.4); }
.promo-box-large button:active { transform: scale(0.96); }
.custom-pay-box { margin-top: 25px; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.custom-pay-label { font-weight: bold; font-size: 14px; white-space: nowrap; }
.custom-pay-box .btn-primary { width: auto; padding: 12px 25px; }

@media (max-width: 480px) {
    .promo-box-large { flex-wrap: wrap; }
    .promo-box-large input { width: 100%; }
    .promo-box-large button { width: 100%; padding: 10px 16px; font-size: 11px; margin-top: 8px; }
    
    .custom-pay-box { flex-wrap: wrap; flex-direction: column; text-align: center; }
    .custom-pay-label { width: 100%; margin-bottom: 10px; }
    .custom-pay-box .btn-primary { width: 100%; padding: 14px 16px; font-size: 13px; }
    
    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .shop-btn { padding: 16px 8px; }
    .sb-price { font-size: 18px; }
    .sb-desc { font-size: 10px; }
}

/* === REFERRAL SYSTEM === */
.ref-card { padding: 20px; text-align: center; margin-bottom: 15px; }
.ref-header { font-size: 12px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.ref-balance { font-size: 32px; font-weight: 900; color: #fff; margin-bottom: 15px; text-shadow: 0 0 20px rgba(255, 215, 0, 0.2); }
.ref-stats-row { display: flex; gap: 10px; }
.ref-stat { flex: 1; background: rgba(0,0,0,0.3); padding: 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05); }
.rs-val { font-size: 16px; font-weight: 800; color: #fff; }
.rs-label { font-size: 10px; color: #666; margin-top: 4px; font-weight: 600; }

@media (max-width: 480px) { 
    body { padding-top: 70px; padding-bottom: 85px; }
    
    .hero-section { 
        padding: 25px 15px; 
        margin-bottom: 20px;
    }
    .hero-section h1 { 
        font-size: 26px; 
        margin-bottom: 8px;
    }
    .hero-section p { 
        font-size: 13px; 
    }
    
    .cases-grid { 
        grid-template-columns: 1fr 1fr; 
        gap: 12px; 
    }
    .case-card { 
        padding: 12px; 
    }
    .case-img { 
        height: 75px; 
        margin-bottom: 8px; 
    }
    .case-card div:nth-child(2) { 
        font-size: 12px; 
    }
    .case-card div:last-child { 
        font-size: 11px; 
    }
    
    .game-hub-card { 
        padding: 16px; 
        gap: 12px;
        flex-direction: column;
        text-align: center;
    }
    .gh-icon { 
        width: 50px; 
        height: 50px; 
        font-size: 26px;
    }
    .gh-info h3 { 
        font-size: 14px; 
    }
    .gh-info p { 
        font-size: 11px; 
    }
    
    .balance-glass { 
        padding: 6px 12px; 
        font-size: 12px;
    }
    
    .inventory-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 8px; 
    }
    
    .section-divider { 
        margin: 20px 0 12px; 
    }
    
    header {
        padding: 12px 15px;
    }
    
    .brand-main {
        font-size: 12px;
    }
    
    .brand-sub {
        font-size: 9px;
    }
}

/* === ENHANCED ANIMATIONS & EFFECTS === */
@keyframes buttonGlow { 0% { box-shadow: 0 0 5px rgba(255,215,0,0.5); } 50% { box-shadow: 0 0 20px rgba(255,215,0,0.8), inset 0 0 10px rgba(255,215,0,0.3); } 100% { box-shadow: 0 0 5px rgba(255,215,0,0.5); } }
@keyframes shimmer { 0% { background-position: -1000px 0; } 100% { background-position: 1000px 0; } }
@keyframes floatUp { 0% { transform: translateY(0) scale(1); opacity: 1; } 100% { transform: translateY(-100px) scale(0); opacity: 0; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes glow { 0% { filter: drop-shadow(0 0 5px rgba(255,215,0,0.3)); } 50% { filter: drop-shadow(0 0 15px rgba(255,215,0,0.8)); } 100% { filter: drop-shadow(0 0 5px rgba(255,215,0,0.3)); } }

.btn-primary { position: relative; }

/* Hero section animations */
.hero-section h1 { animation: fadeIn 0.8s ease forwards; }
.hero-section p { animation: fadeIn 0.8s ease 0.2s forwards; opacity: 0; }

/* Glowing text for primary elements */
.gold-text { color: #FFD700; text-shadow: 0 0 10px rgba(255,215,0,0.5); }

/* Shop buttons with color effects */
.shop-btn.popular::after, .shop-btn.gold::after, .shop-btn.myth::after { content: ''; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px; background: inherit; z-index: -1; border-radius: 16px; opacity: 0.5; filter: blur(10px); }

/* Case cards with enhanced glow */
.case-card { position: relative; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.case-card::before { content: ''; position: absolute; inset: 0; border-radius: 18px; padding: 1px; background: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0) 100%); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.3s; }
.case-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 36px rgba(0,0,0,0.4), 0 0 20px var(--rarity-glow, var(--primary-glow));
}
.case-card:hover .case-img { animation: bounce 0.6s ease-in-out; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4)); }

/* set glow color variable per rarity */
.case-card.rarity-consumer { --rarity-glow: var(--c-consumer); }
.case-card.rarity-common   { --rarity-glow: var(--c-common); }
.case-card.rarity-rare     { --rarity-glow: var(--c-rare); }
.case-card.rarity-epic     { --rarity-glow: var(--c-epic); }
.case-card.rarity-legendary{ --rarity-glow: var(--c-legendary); }
.case-card.rarity-mythical { --rarity-glow: var(--c-mythical); }

/* Game hub cards with enhanced effects */
.game-hub-card { position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.game-hub-card::before { content: ''; position: absolute; top: -50%; right: -50%; width: 100%; height: 100%; background: radial-gradient(circle, rgba(255,255,255,0.1), transparent); animation: spin 8s linear infinite; }
.game-hub-card:hover { transform: translateY(-6px); box-shadow: 0 15px 40px rgba(0,0,0,0.4); border-color: rgba(255,215,0,0.4); }
.gh-icon { animation: bounce 0.8s ease-in-out infinite; }

/* Enhanced notify toasts */
.notify-toast { 
    background: linear-gradient(135deg, rgba(26, 26, 30, 0.97), rgba(20, 20, 26, 0.97));
    box-shadow: 0 15px 45px rgba(0,0,0,0.7), 0 0 35px rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.2);
}
.notify-toast.success { 
    border-left: 4px solid #4CAF50; 
    box-shadow: 0 0 25px rgba(76,175,80,0.4), 0 15px 45px rgba(0,0,0,0.7);
}
.notify-toast.error { 
    border-left: 4px solid #ff3333; 
    box-shadow: 0 0 25px rgba(255,51,51,0.4), 0 15px 45px rgba(0,0,0,0.7);
}
.notify-toast.info { 
    border-left: 4px solid #2196F3; 
    box-shadow: 0 0 25px rgba(33,150,243,0.4), 0 15px 45px rgba(0,0,0,0.7);
}

/* Battle pass enhancements */
.bp-lvl-badge { animation: glow 2s ease-in-out infinite; background: linear-gradient(135deg, #FFD700, #F57F17); box-shadow: 0 0 20px rgba(255,215,0,0.6), 0 8px 16px rgba(0,0,0,0.3); }
.bp-progress-fill { animation: shimmer 3s ease-in-out infinite; }
.bp-reward.claimable { cursor: pointer; transition: all 0.3s ease; }
.bp-reward.claimable:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(76,175,80,0.4), inset 0 0 10px rgba(76,175,80,0.1); border-color: #4CAF50; }
.bp-reward.claiming { animation: bounce 0.6s ease; }

/* Particle effect container */
#particle-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1000; }
.particle { position: absolute; font-size: 20px; animation: floatUp 2s ease-out forwards; }

/* Enhanced modal animations */
.modal-overlay .modal-glass { box-shadow: 0 20px 60px rgba(0,0,0,0.8); }
.modal-overlay.center-modal .modal-glass { box-shadow: 0 25px 50px rgba(0,0,0,0.9), 0 0 40px rgba(255,215,0,0.1); border: 1px solid rgba(255,215,0,0.2); }

/* Rarity borders glow */
.rarity-legendary { box-shadow: inset 0 0 15px rgba(234,179,8,0.2), 0 0 15px rgba(234,179,8,0.1); }
.rarity-mythical { box-shadow: inset 0 0 15px rgba(255,51,51,0.2), 0 0 15px rgba(255,51,51,0.1); }
.rarity-epic { box-shadow: inset 0 0 10px rgba(168,85,247,0.15), 0 0 10px rgba(168,85,247,0.05); }

/* Bottom nav improvements */
.nav-item { position: relative; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.nav-item::after { content: ''; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; background: var(--primary); border-radius: 50%; opacity: 0; transition: all 0.3s ease; }
.nav-item.active::after { opacity: 1; animation: pulse 1s infinite; }

/* Upgrade card enhancements */
.upg-card { box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: all 0.3s ease; }
.upg-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 15px rgba(255,215,0,0.1); transform: translateY(-4px); border-color: rgba(255,215,0,0.2); }

/* Win modal glow effect */
.win-modal.mythical { 
    animation: mythicalGlow 0.5s ease-in-out infinite;
    background: linear-gradient(135deg, rgba(255,51,51,0.1) 0%, rgba(255,51,51,0.05) 100%) !important;
}
.win-modal.legendary { 
    animation: legendaryGlow 0.7s ease-in-out infinite;
    background: linear-gradient(135deg, rgba(255,215,0,0.1) 0%, rgba(255,215,0,0.05) 100%) !important;
}
.win-modal.epic {
    animation: epicGlow 0.8s ease-in-out infinite;
}

@keyframes mythicalGlow {
    0% { 
        box-shadow: 0 0 60px rgba(255,51,51,0.5), inset 0 0 40px rgba(255,51,51,0.2), 0 0 120px rgba(255,51,51,0.2);
    }
    50% { 
        box-shadow: 0 0 80px rgba(255,51,51,0.6), inset 0 0 50px rgba(255,51,51,0.3), 0 0 150px rgba(255,51,51,0.3);
    }
    100% { 
        box-shadow: 0 0 60px rgba(255,51,51,0.5), inset 0 0 40px rgba(255,51,51,0.2), 0 0 120px rgba(255,51,51,0.2);
    }
}

@keyframes legendaryGlow {
    0% { 
        box-shadow: 0 0 50px rgba(255,215,0,0.4), inset 0 0 30px rgba(255,215,0,0.15), 0 0 100px rgba(255,215,0,0.25);
    }
    50% { 
        box-shadow: 0 0 70px rgba(255,215,0,0.5), inset 0 0 40px rgba(255,215,0,0.2), 0 0 130px rgba(255,215,0,0.35);
    }
    100% { 
        box-shadow: 0 0 50px rgba(255,215,0,0.4), inset 0 0 30px rgba(255,215,0,0.15), 0 0 100px rgba(255,215,0,0.25);
    }
}

@keyframes epicGlow {
    0% { 
        box-shadow: 0 0 30px rgba(168,85,247,0.3), inset 0 0 20px rgba(168,85,247,0.1);
    }
    50% { 
        box-shadow: 0 0 50px rgba(168,85,247,0.4), inset 0 0 30px rgba(168,85,247,0.15);
    }
    100% { 
        box-shadow: 0 0 30px rgba(168,85,247,0.3), inset 0 0 20px rgba(168,85,247,0.1);
    }
}

/* Live feed item improvements */
.live-item { box-shadow: 0 4px 12px rgba(0,0,0,0.3); transition: all 0.3s ease; }
.live-item:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.5); transform: translateY(-2px); }
.live-item.legendary { animation: glow 1s ease-in-out infinite; }
.live-item.mythical { animation: glow 0.8s ease-in-out infinite; }

/* Enhanced input focus effects */
input:focus, select:focus, textarea:focus { background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.3)); box-shadow: 0 0 20px rgba(255,215,0,0.2), inset 0 0 10px rgba(0,0,0,0.3); transition: all 0.3s ease; }

/* Shimmer background for premium items */
.premium { background: linear-gradient(90deg, rgba(255,215,0,0.05) 0%, rgba(255,215,0,0.1) 50%, rgba(255,215,0,0.05) 100%); background-size: 200% 100%; animation: shimmer 3s infinite; }

/* Ripple effect utility */
.ripple { position: relative; overflow: hidden; }
.ripple::after { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: radial-gradient(circle, rgba(255,255,255,0.5), transparent); border-radius: 50%; transform: translate(-50%, -50%); }

/* Enhanced text shadows for titles */
h1, h2, h3 { text-shadow: 0 4px 12px rgba(0,0,0,0.4); }

/* === DYNAMIC EFFECTS === */

/* Ripple effect on click */
.dynamic-ripple { position: relative; overflow: hidden; }
.dynamic-ripple::after { 
    content: ''; 
    position: absolute; 
    top: var(--ripple-y, 50%); 
    left: var(--ripple-x, 50%); 
    width: 0; 
    height: 0; 
    background: radial-gradient(circle, rgba(255,255,255,0.6), transparent); 
    border-radius: 50%; 
    transform: translate(-50%, -50%); 
    pointer-events: none;
}

/* Shake animation for alerts */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

/* Bounce animation */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-8px); }
    50% { transform: translateY(-4px); }
}

.activity-case-timer {
    margin-top: 8px;
    min-height: 16px;
    font-size: 12px;
    color: #93a0bd;
}

.activity-reward-overlay {
    position: fixed;
    inset: 0;
    z-index: 6000;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.12), rgba(7, 10, 18, 0.18));
}

.activity-reward-card {
    width: min(360px, calc(100vw - 32px));
    padding: 22px 20px;
    border-radius: 24px;
    text-align: center;
    background: linear-gradient(155deg, rgba(38, 46, 70, 0.96), rgba(18, 24, 37, 0.98));
    border: 1px solid rgba(255, 215, 0, 0.28);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.46), 0 0 28px rgba(255, 215, 0, 0.18);
    animation: activityRewardIn 0.45s cubic-bezier(0.18, 0.9, 0.22, 1.2);
}

.activity-reward-thumb {
    width: 78px;
    height: 78px;
    margin: 0 auto 14px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.24);
}

.activity-reward-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.activity-reward-card h4 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 900;
    color: #fff;
}

.activity-reward-day {
    margin-bottom: 8px;
    color: #ffd866;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: 11px;
    font-weight: 800;
}

.activity-reward-name {
    color: #e9edf7;
    font-size: 17px;
    font-weight: 700;
}

.activity-reward-meta {
    margin-top: 8px;
    color: #a4aec5;
    font-size: 13px;
}

@keyframes activityRewardIn {
    0% { opacity: 0; transform: translateY(20px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Confetti particles */
@keyframes confettiFall {
    to { 
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti {
    position: fixed;
    pointer-events: none;
    font-size: 20px;
    z-index: 2000;
    animation: confettiFall 3s ease-out forwards;
}

/* Button click animation */
.btn-click-anim {
    animation: buttonClick 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes buttonClick {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1.02); }
}

/* Ripple click effect */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.6), rgba(255,255,255,0.2), transparent);
    transform: scale(0);
    animation: rippleExpandSm 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleExpandSm {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Slide in from bottom */
@keyframes slideInUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Fade in scale */
@keyframes fadeInScale {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-scale {
    animation: fadeInScale 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Tab switch animation */
@keyframes tabSwitchIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-switch-in {
    animation: tabSwitchIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Smooth loading animation */
.loader-dot { animation: pulse 1s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* === ADDITIONAL DYNAMIC EFFECTS === */

/* Pulsing glow for important elements */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(255,215,0,0.3); }
    50% { box-shadow: 0 0 20px rgba(255,215,0,0.6); }
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Scale bounce on hover */
@keyframes scaleBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Enhanced live item animations */
.live-item {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.live-item:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.live-item.epic {
    animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.live-item.legendary {
    animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), pulseGlow 1.5s ease-in-out infinite;
}

.live-item.mythical {
    animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), pulseGlow 1s ease-in-out infinite;
}

/* Smooth button transitions */
button {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

button:active:not(:disabled) {
    transform: scale(0.95);
}

/* Input field glow on focus */
input:focus, textarea:focus {
    outline: none;
    transition: all 0.3s ease;
}

/* Notification toast slide in */
@keyframes notifySlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notify-toast {
    animation: notifySlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Modal entrance */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-overlay {
    animation: modalFadeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Header glow effect on new drop */
@keyframes headerPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(255, 215, 0, 0.3); }
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* X2 DROP INDICATOR */
.x2-indicator {
    position: fixed;
    bottom: 100px;
    left: 15px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 4px 12px;
    z-index: 100;
    backdrop-filter: blur(8px);
    animation: x2Subtle 2s ease-in-out infinite;
}

.x2-text {
    font-weight: 700;
    font-size: 10px;
    color: #FFD700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* === CSS SYMBOLS (NO EMOJI) === */
.css-glyph {
    --icon-url: none;
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    color: var(--primary);
    background-color: currentColor;
    -webkit-mask-image: var(--icon-url);
    mask-image: var(--icon-url);
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    opacity: 0.95;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.22));
}

.css-glyph-upgrade { --icon-url: url('img/icons/upgrade.png'); }
.css-glyph-contract { --icon-url: url('img/icons/contract.png'); }
.css-glyph-top { --icon-url: url('img/icons/top.png'); }
.css-glyph-folder { --icon-url: url('img/icons/folder.png'); }
.css-glyph-shop { --icon-url: url('img/icons/shop.png'); }
.css-glyph-games { --icon-url: url('img/icons/games.png'); }
.css-glyph-cases { --icon-url: url('img/icons/cases.png'); }
.css-glyph-pass { --icon-url: url('img/icons/pass.png'); }
.css-glyph-garage { --icon-url: url('img/icons/garage.png'); }

.gh-icon .css-glyph {
    font-size: 30px;
}

.nav-icon .css-glyph {
    font-size: 22px;
}

.main-action .nav-icon .css-glyph {
    font-size: 26px;
}

.empty-icon .css-glyph {
    font-size: 40px;
    opacity: 0.7;
}

.inline-symbol {
    --icon-url: none;
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.12em;
    background-color: var(--primary);
    -webkit-mask-image: var(--icon-url);
    mask-image: var(--icon-url);
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.25));
    margin: 0 2px;
}

.inline-symbol-bolt { --icon-url: url('img/icons/bolt.png'); }
.inline-symbol-ticket { --icon-url: url('img/icons/ticket.png'); }

.ui-symbol {
    margin: 0 auto 16px;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: var(--primary);
    font-size: 36px;
    font-weight: 900;
}

.ui-symbol::before {
    content: '';
    width: 38px;
    height: 38px;
    background-color: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.24));
}

.ui-symbol-vpn::before { -webkit-mask-image: url('img/icons/vpn.png'); mask-image: url('img/icons/vpn.png'); }
.ui-symbol-ban::before { -webkit-mask-image: url('img/icons/ban.png'); mask-image: url('img/icons/ban.png'); }
.ui-symbol-warning::before { -webkit-mask-image: url('img/icons/warning.png'); mask-image: url('img/icons/warning.png'); }
.ui-symbol-note::before { -webkit-mask-image: url('img/icons/note.png'); mask-image: url('img/icons/note.png'); }

.ui-symbol-ban {
    color: #ff4d4d;
    border-color: rgba(255, 77, 77, 0.35);
}

/* Browser Telegram Auth */
.browser-auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.08), transparent 40%), rgba(9, 9, 14, 0.96);
    backdrop-filter: blur(10px);
}

.browser-auth-card {
    width: min(420px, 92vw);
    background: linear-gradient(160deg, rgba(32, 40, 60, 0.95), rgba(19, 24, 38, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: 28px 24px;
    text-align: center;
}

.browser-auth-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.35));
}

.browser-auth-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #fff;
}

.browser-auth-card p {
    margin: 0 0 16px;
    color: #b6bfd6;
    font-size: 14px;
    line-height: 1.4;
}

.tg-login-widget {
    min-height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.browser-auth-note {
    font-size: 12px;
    color: #8e97b2;
}

@keyframes x2Subtle {
    0%, 100% { 
        opacity: 0.7;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
    }
    50% { 
        opacity: 1;
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    }
}

/* === DESKTOP LAYOUT OVERRIDES === */
@media (min-width: 1024px) {
    body {
        padding-top: 85px;
        padding-bottom: 120px;
    }

    #blur-container {
        width: min(1380px, 100% - 48px);
        margin: 0 auto;
    }

    header {
        top: 75px;
        padding: 18px 26px;
        border-radius: 18px;
        margin-bottom: 18px;
        border: 1px solid rgba(255, 215, 0, 0.1);
    }

    .brand-logo-img {
        width: 56px;
        height: 56px;
    }

    .brand-main {
        font-size: 18px;
    }

    .brand-sub {
        font-size: 11px;
    }

    .profile-btn {
        width: 44px;
        height: 44px;
    }

    .section {
        padding: 28px;
    }

    .hero-section {
        margin-bottom: 36px;
        padding: 36px 28px;
    }

    .hero-section h1 {
        font-size: 44px;
    }

    .hero-section.small h1 {
        font-size: 32px;
    }

    .hero-section p {
        font-size: 16px;
    }

    .section-divider {
        margin: 34px 0 18px;
    }

    .cases-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }

    .case-card {
        padding: 18px;
    }

    .case-img {
        height: 130px;
        margin-bottom: 12px;
    }

    .case-card div:nth-child(2) {
        font-size: 15px;
    }

    .case-card div:last-child {
        font-size: 13px;
    }

    .games-hub-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .game-hub-card {
        min-height: 132px;
        padding: 22px;
    }

    .gh-info h3 {
        font-size: 18px;
    }

    .gh-info p {
        font-size: 13px;
    }

    .shop-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .inventory-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 12px;
    }

    .upgrade-wrapper {
        max-width: 1080px;
        margin: 0 auto;
        gap: 22px;
    }

    .upg-card {
        height: 170px;
    }

    .upg-card img {
        height: 80px;
    }

    .upg-card-header {
        font-size: 11px;
    }

    .upg-arrow {
        width: 32px;
        font-size: 22px;
        text-align: center;
    }

    .multipliers-grid button {
        padding: 11px 0;
        font-size: 13px;
    }

    .contract-stats {
        font-size: 16px;
    }

    #notify-area {
        top: 96px;
    }

    .live-feed-strip {
        height: 78px;
    }

    .live-item {
        height: 52px;
    }

    .u-name {
        font-size: 10px;
    }

    .i-name {
        font-size: 12px;
    }

    .modal-overlay {
        align-items: center;
    }

    .modal-glass {
        width: min(1040px, 92vw);
        border-radius: 22px;
        border: 1px solid var(--glass-border);
        padding: 24px;
        max-height: 88vh;
    }

    .center-modal .modal-glass {
        width: min(860px, 88vw);
    }

    .modal-glass.full-height {
        height: min(84vh, 860px);
    }

    .items-scroller {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .upg-select-list {
        max-height: 64vh;
    }

    .profile-scroll-area {
        max-height: 68vh;
    }

    .bottom-nav {
        left: 50%;
        right: auto;
        bottom: 12px;
        transform: translateX(-50%);
        width: min(860px, calc(100% - 48px));
        border-radius: 30px;
        border-left: 1px solid rgba(255, 215, 0, 0.12);
        border-right: 1px solid rgba(255, 215, 0, 0.12);
    }

    .x2-indicator {
        left: 50%;
        transform: translateX(-50%);
        bottom: 128px;
    }
}

@media (min-width: 1440px) {
    .cases-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .inventory-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .hero-section h1 {
        font-size: 50px;
    }
}

/* === BRIGHTNESS TUNING === */
:root {
    --bg-dark: #151a27;
    --bg-darker: #101522;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.14);
}

body {
    background:
        radial-gradient(circle at 10% 5%, rgba(255, 215, 0, 0.08), transparent 35%),
        radial-gradient(circle at 85% 85%, rgba(59, 130, 246, 0.12), transparent 42%),
        linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    padding-top: 94px;
}

.live-feed-strip {
    height: 78px;
    background: linear-gradient(180deg, rgba(30, 37, 56, 0.95), rgba(20, 25, 40, 0.92));
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    box-shadow: 0 12px 28px rgba(6, 10, 22, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.live-feed-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.45), transparent);
    z-index: 203;
    pointer-events: none;
}

header {
    top: 92px;
    margin: 12px 12px 16px;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(145deg, rgba(32, 40, 60, 0.9), rgba(22, 28, 44, 0.88));
    box-shadow: 0 14px 30px rgba(8, 11, 24, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 46%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
    pointer-events: none;
}

.balance-glass {
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 0, 0.38);
    background: linear-gradient(135deg, rgba(46, 55, 78, 0.88), rgba(26, 30, 44, 0.9));
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.profile-btn {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(60, 70, 95, 0.6), rgba(26, 32, 48, 0.85));
    box-shadow: 0 8px 18px rgba(8, 12, 26, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 255, 255, 0.14);
}

.bottom-nav {
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    height: 72px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(180deg, rgba(22, 27, 40, 0.68), rgba(18, 23, 36, 0.62));
    box-shadow: 0 14px 34px rgba(8, 12, 26, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.bg-glow {
    opacity: 0.24;
}

@media (max-width: 768px) {
    body {
        padding-top: 90px;
    }

    .live-feed-strip {
        border-bottom-left-radius: 14px;
        border-bottom-right-radius: 14px;
    }

    header {
        top: 88px;
        margin: 10px 8px 12px;
        border-radius: 22px;
        padding: 12px 14px;
    }

    body.mobile-perf-mode .roulette-overlay {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(0, 0, 0, 0.82);
    }

    body.mobile-perf-mode .roulette-status {
        animation: none;
        text-shadow: none;
    }

    body.mobile-perf-mode .modern-roulette-track {
        box-shadow: none;
    }

    body.mobile-perf-mode .center-marker {
        box-shadow: none;
    }

    body.mobile-perf-mode .m-card {
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
    }

    body.mobile-perf-mode .m-card img {
        filter: none;
    }

    body.mobile-perf-mode .m-card.rarity-legendary::after,
    body.mobile-perf-mode .m-card.rarity-mythical::after {
        box-shadow: none;
    }

    body.mobile-perf-mode .live-feed-strip,
    body.mobile-perf-mode .bottom-nav,
    body.mobile-perf-mode header,
    body.mobile-perf-mode .glass-panel {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (min-width: 1024px) {
    body {
        padding-top: 108px;
    }

    .bottom-nav {
        left: 50%;
        right: auto;
        bottom: 12px;
        transform: translateX(-50%);
        width: min(860px, calc(100% - 48px));
        border-radius: 30px;
    }

    header {
        top: 96px;
    }
}

.admin-check input[type="checkbox"] {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    border-radius: 6px;
    accent-color: #f0c13f;
    box-shadow: none;
    transform: none;
}