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

:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --dark: #0D0D0D;
    --dark-light: #111111;
    --dark-lighter: #1a1a1a;
    --border: #2a2a2a;
    --text: #e0e0e0;
    --text-muted: #999;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
}

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--dark-light) 0%, var(--dark) 100%);
    border-right: 1px solid var(--border);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), transparent);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
    transition: transform 0.3s;
}

.logo-img:hover {
    transform: rotate(360deg) scale(1.1);
}

.logo-text {
    display: flex;
    gap: 4px;
    font-size: 20px;
    font-weight: 800;
}

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

.text-white {
    color: white;
}

.user-info {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}

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

.avatar-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-lighter), var(--dark));
    border-radius: 50%;
    border: 2px solid var(--border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.avatar-placeholder i {
    font-size: 48px;
    color: var(--text-muted);
}

.login-text {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
}

.btn-discord {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-discord::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-discord:hover::before {
    left: 100%;
}

.btn-discord:hover {
    background: linear-gradient(135deg, #4752C4, #5865F2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}

.btn-discord i {
    font-size: 18px;
}

.user-profile {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--primary);
    object-fit: cover;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 3px solid var(--dark-light);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

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

.user-name {
    font-weight: 700;
    font-size: 16px;
    color: white;
    margin-bottom: 4px;
}

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


.balance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.balance::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.balance i {
    color: var(--primary);
    font-size: 18px;
}

.balance span {
    color: white;
    font-size: 18px;
}

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

#addCoinsBtn {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

#addCoinsBtn:hover {
    background: var(--primary);
    color: #000;
    transform: scale(1.05);
}

#addCoinsBtn:active {
    transform: scale(0.95);
}

#addCoinsBtn i {
    font-size: 12px;
    color: inherit;
}

.logout-icon-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.logout-icon-btn:hover {
    background: #ef4444;
    color: #fff;
    transform: scale(1.05);
}

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

.logout-icon-btn i {
    font-size: 14px;
}

.btn-store {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-store::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-store:hover::after {
    left: 100%;
}

.btn-store:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-logout {
    width: 100%;
    padding: 10px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

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

.nav-menu {
    flex: 1;
    padding: 10px 0;
}

.nav-section {
    padding: 15px 20px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 14px;
    font-weight: 500;
}

.nav-item:hover {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.05), transparent);
    color: var(--text);
    padding-left: 24px;
}

.nav-item:hover i {
    color: var(--primary);
    transform: scale(1.1);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), transparent);
    color: var(--primary);
    border-left: 3px solid var(--primary);
    box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.1);
}

.nav-item.active i {
color: var(--primary);
filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.5));
}

.nav-item i {
width: 20px;
text-align: center;
flex-shrink: 0;
}

.nav-dropdown-group {
display: block;
}

.nav-dropdown-toggle {
width: 100%;
justify-content: space-between;
background: transparent;
border: none;
cursor: pointer;
font-family: inherit;
}

.nav-item-label {
display: flex;
align-items: center;
gap: 12px;
}

.nav-dropdown-icon {
margin-left: auto;
width: auto !important;
transition: transform 0.25s ease;
}

.nav-dropdown-group.open .nav-dropdown-icon {
transform: rotate(180deg);
}

.nav-dropdown-group.open > .nav-dropdown-toggle {
background: linear-gradient(90deg, rgba(16, 185, 129, 0.07), transparent);
color: var(--text);
}

.nav-submenu {
display: grid;
gap: 4px;
max-height: 0;
opacity: 0;
overflow: hidden;
padding-left: 12px;
transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.25s ease;
}

.nav-dropdown-group.open .nav-submenu {
max-height: 420px;
opacity: 1;
padding-bottom: 8px;
}

.nav-sub-item {
margin-left: 12px;
padding: 10px 20px 10px 24px;
font-size: 13px;
border-left: 2px solid rgba(255, 255, 255, 0.04);
}

.nav-sub-item:hover {
padding-left: 28px;
}

.nav-sub-item i {
width: 18px;
}

.badge {
margin-left: auto;
background: var(--primary);
color: white;
padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.main-content {
flex: 1;
margin-left: 280px;
background: var(--dark);
position: relative;
min-width: 0;
}

.main-content::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('https://lunar.lt/nuotraukos/bg.webp');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
opacity: 0.15;
z-index: 0;
pointer-events: none;
}

.main-content::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: 
linear-gradient(rgba(16, 185, 129, 0.06) 1.5px, transparent 1.5px),
linear-gradient(90deg, rgba(16, 185, 129, 0.06) 1.5px, transparent 1.5px),
linear-gradient(180deg, rgba(13, 13, 13, 0.7) 0%, rgba(13, 13, 13, 0.9) 100%);
background-size: 90px 90px, 90px 90px, 100% 100%;
z-index: 0;
pointer-events: none;
}

.main-content > * {
position: relative;
z-index: 1;
}

.header {
    background: rgba(17, 17, 17, 0.95);
    border-bottom: 1px solid var(--border);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-nav {
    display: flex;
    gap: 25px;
}

.header-nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
    font-size: 14px;
}

.header-nav a:hover {
    color: var(--primary);
}

.header-mobile-brand {
    display: none;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.04em;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--dark-lighter);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.server-status i {
    color: var(--primary);
    animation: pulse 2s infinite;
    font-size: 8px;
    margin-right: 4px;
}

.server-status.offline i {
    color: #ef4444;
}

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

/* Compact Discord login button (replaces sidebar one) */
.btn-discord-compact {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px 12px 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.btn-discord-compact:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}
.btn-discord-compact i {
    position: absolute;
    left: 18px;
    top: 12px;
    font-size: 16px;
    line-height: 1;
}
.btn-discord-compact span {
    white-space: nowrap;
}

 /* Compact sidebar user widget */
 .sidebar-user-row {
     display: flex;
     align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
 }
 .sidebar-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(16, 185, 129, 0.85);
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.08), 0 10px 18px rgba(0, 0, 0, 0.25);
 }
 .sidebar-user-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.1;
    min-width: 0;
 }
 .sidebar-user-name {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
 }
 .sidebar-user-id {
    font-size: 11px;
    color: var(--text-muted);
 }
 .sidebar-user-logout {
    background: rgba(127, 29, 29, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.32);
    color: #ef4444;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    padding: 0;
 }
 .sidebar-user-logout:hover {
    background: #ef4444;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(239, 68, 68, 0.22);
 }
 .sidebar-user-logout i {
    font-size: 13px;
 }

.btn-join {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

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

.btn-join:hover::before {
    width: 200px;
    height: 200px;
}

.btn-join:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

#page-content {
    padding: 30px;
    min-height: calc(100vh - 70px);
    animation: fadeIn 0.4s ease-out;
}

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

.page-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
}

.vip-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.vip-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border-radius: 12px;
    padding: 30px;
    border: 2px solid #2a2a2a;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.vip-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.vip-card:hover::after {
    opacity: 1;
}

.vip-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.vip-card:hover {
transform: translateY(-8px) scale(1.02);
border-color: var(--primary);
box-shadow: 0 15px 40px rgba(16, 185, 129, 0.3), 0 0 0 1px rgba(16, 185, 129, 0.2);
}

.garage-import-card {
background: linear-gradient(135deg, rgba(17, 17, 17, 0.78) 0%, rgba(13, 13, 13, 0.88) 100%);
min-width: 0;
overflow: hidden;
}

.garage-import-image,
.shop-car-image {
background:
linear-gradient(rgba(16, 185, 129, 0.08) 1.5px, transparent 1.5px),
linear-gradient(90deg, rgba(16, 185, 129, 0.08) 1.5px, transparent 1.5px),
linear-gradient(180deg, rgba(13, 13, 13, 0.35) 0%, rgba(13, 13, 13, 0.68) 100%);
background-size: 45px 45px, 45px 45px, 100% 100%;
border: 1px solid rgba(16, 185, 129, 0.12);
border-radius: 10px;
}

.garage-import-meta {
background:
linear-gradient(rgba(16, 185, 129, 0.045) 1px, transparent 1px),
linear-gradient(90deg, rgba(16, 185, 129, 0.045) 1px, transparent 1px),
rgba(13, 13, 13, 0.58);
background-size: 34px 34px, 34px 34px, 100% 100%;
border: 1px solid rgba(255, 255, 255, 0.06);
}

.section-header-card,
.section-header-main,
.section-header-text,
.section-header-extra,
.garage-header-stats,
.garage-header-stat,
.garage-imports-grid,
.garage-import-row,
.garage-import-value,
.referrals-page,
.referrals-header-layout,
.referrals-summary,
.referrals-summary-box,
.referrals-actions,
.referrals-layout,
.referrals-rewards-panel,
.referrals-side-column,
.referrals-code-panel,
.referrals-list-panel,
.referrals-code-row,
.referrals-code-input,
.referrals-code-submit,
.referrals-list,
.referral-list-item,
.referral-list-item-head,
.referral-list-item-name,
.referral-list-item-meta,
.referral-list-item-date,
.referral-list-item-status,
.lucky-wheel-event-card,
.lucky-wheel-event-top,
.lucky-wheel-countdown,
.lucky-wheel-wheel-panel,
.lucky-wheel-layout,
.lucky-wheel-prize-card,
.lucky-wheel-stats-card,
.lucky-wheel-stats-grid,
.lucky-wheel-info-card,
.lucky-wheel-participants-card,
.lucky-wheel-participants-list {
min-width: 0;
max-width: 100%;
box-sizing: border-box;
}

.section-header-card {
flex-wrap: wrap;
}

.section-header-extra {
display: flex;
align-items: stretch;
justify-content: flex-end;
flex-wrap: wrap;
gap: 15px;
}

.garage-header-stats {
flex-wrap: wrap;
width: 100%;
}

.garage-import-title {
line-height: 1.35;
overflow-wrap: anywhere;
}

.garage-import-row {
gap: 12px;
align-items: flex-start;
}

.garage-import-value {
min-width: 0;
text-align: right;
overflow-wrap: anywhere;
word-break: break-word;
}

.referrals-summary,
.referrals-actions {
flex-wrap: wrap;
}

.referral-list-item-name {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.referral-list-item-date {
min-width: 0;
overflow-wrap: anywhere;
}

.vip-badge {
display: inline-block;
padding: 8px 16px;
background: rgba(16, 185, 129, 0.2);
border-radius: 20px;
color: var(--primary);
font-size: 14px;
font-weight: 600;
margin-bottom: 15px;
}

.vip-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.vip-image.garage-import-image,
.vip-image.shop-car-image {
background:
linear-gradient(rgba(16, 185, 129, 0.08) 1.5px, transparent 1.5px),
linear-gradient(90deg, rgba(16, 185, 129, 0.08) 1.5px, transparent 1.5px),
radial-gradient(circle at 50% 62%, rgba(16, 185, 129, 0.16) 0%, rgba(16, 185, 129, 0.05) 34%, transparent 68%),
linear-gradient(180deg, rgba(13, 13, 13, 0.24) 0%, rgba(13, 13, 13, 0.64) 100%);
background-size: 45px 45px, 45px 45px, 100% 100%, 100% 100%;
border: 1px solid rgba(16, 185, 129, 0.12);
border-radius: 10px;
}

.vip-image.shop-car-image::before {
content: '';
position: absolute;
inset: 16px 18px 22px;
background:
radial-gradient(ellipse at 50% 72%, rgba(16, 185, 129, 0.22) 0%, rgba(16, 185, 129, 0.08) 34%, transparent 72%),
linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 52%);
border-radius: 12px;
pointer-events: none;
}

.vip-image.shop-car-image::after {
content: '';
position: absolute;
left: 24%;
right: 24%;
bottom: 22px;
height: 12px;
background: rgba(0, 0, 0, 0.55);
border-radius: 50%;
filter: blur(10px);
pointer-events: none;
}

.shop-car-photo {
position: relative;
z-index: 1;
filter: contrast(1.08) saturate(1.08) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.48));
mix-blend-mode: lighten;
}

.shop-car-card {
display: flex;
flex-direction: column;
min-height: 100%;
border: 1px solid rgba(16, 185, 129, 0.18);
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
backdrop-filter: blur(6px);
overflow: hidden;
}

.vip-image.shop-car-image {
height: 170px;
margin-bottom: 0;
padding: 18px 18px 24px;
align-items: center;
justify-content: center;
border-bottom: 1px solid rgba(16, 185, 129, 0.12);
background:
linear-gradient(rgba(16, 185, 129, 0.045) 1px, transparent 1px),
linear-gradient(90deg, rgba(16, 185, 129, 0.045) 1px, transparent 1px),
radial-gradient(circle at 50% 75%, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0.06) 26%, transparent 58%),
linear-gradient(180deg, rgba(17, 17, 17, 0.92) 0%, rgba(10, 10, 10, 0.98) 100%);
background-size: 26px 26px, 26px 26px, 100% 100%, 100% 100%;
}

.vip-image.shop-car-image::before {
display: none;
}

.vip-image.shop-car-image::after {
content: '';
position: absolute;
left: 18%;
right: 18%;
bottom: 18px;
height: 12px;
background: rgba(0, 0, 0, 0.42);
border-radius: 999px;
filter: blur(12px);
pointer-events: none;
}

.shop-car-photo {
width: 100%;
max-width: 210px;
height: auto;
object-fit: contain;
filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.42));
mix-blend-mode: normal;
}

.car-item {
position: relative;
}

.car-item[data-transferable="0"] .shop-transfer-badge {
display: none !important;
}

.shop-discount-badge {
position: absolute;
top: 12px;
left: 12px;
display: inline-flex;
align-items: center;
gap: 6px;
padding: 7px 11px;
background:
linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 45%),
linear-gradient(135deg, #ef4444, #dc2626);
color: #fff;
border: 1px solid rgba(255, 255, 255, 0.18);
border-radius: 999px;
font-size: 12px;
font-weight: 900;
letter-spacing: 0.02em;
box-shadow: 0 10px 24px rgba(239, 68, 68, 0.32);
z-index: 10;
}

.shop-transfer-badge {
position: absolute;
top: 12px;
right: 12px;
width: 32px;
height: 32px;
display: inline-flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, rgba(250, 204, 21, 0.95), rgba(234, 179, 8, 0.95));
color: #111827;
border: 1px solid rgba(255, 255, 255, 0.22);
border-radius: 10px;
box-shadow: 0 12px 24px rgba(234, 179, 8, 0.28);
z-index: 12;
cursor: help;
}

.shop-transfer-badge i {
font-size: 13px;
}

.shop-transfer-badge::after {
content: attr(aria-label);
position: absolute;
top: calc(100% + 10px);
right: 0;
width: 220px;
padding: 10px 12px;
background: rgba(10, 10, 10, 0.96);
border: 1px solid rgba(250, 204, 21, 0.28);
border-radius: 10px;
box-shadow: 0 16px 28px rgba(0, 0, 0, 0.34);
color: #f9fafb;
font-size: 12px;
font-weight: 600;
line-height: 1.45;
text-align: left;
opacity: 0;
visibility: hidden;
transform: translateY(-6px);
transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
pointer-events: none;
}

.shop-transfer-badge:hover::after,
.shop-transfer-badge:focus-visible::after {
opacity: 1;
visibility: visible;
transform: translateY(0);
}

.shop-car-body {
display: flex;
flex: 1;
flex-direction: column;
padding: 18px 18px 14px;
}

.shop-car-title {
font-size: 18px;
line-height: 1.35;
min-height: 48px;
margin-bottom: 14px;
display: -webkit-box;
line-clamp: 2;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

.shop-car-class {
display: inline-flex;
align-items: center;
gap: 7px;
width: fit-content;
margin-bottom: 12px;
padding: 6px 10px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 999px;
color: var(--text-muted);
font-size: 12px;
font-weight: 700;
}

.shop-car-class i {
color: var(--primary);
font-size: 11px;
}

.shop-filters-panel {
position: relative;
padding: 20px;
margin-bottom: 25px;
background:
linear-gradient(rgba(16, 185, 129, 0.035) 1px, transparent 1px),
linear-gradient(90deg, rgba(16, 185, 129, 0.035) 1px, transparent 1px),
linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(16, 185, 129, 0.05));
background-size: 32px 32px, 32px 32px, 100% 100%;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 16px;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.shop-filters-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 14px;
margin-bottom: 18px;
}

.shop-filters-kicker {
color: var(--primary);
font-size: 11px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.08em;
margin-bottom: 4px;
}

.shop-filters-title {
color: #fff;
font-size: 20px;
font-weight: 800;
line-height: 1.2;
}

.shop-clear-filters-btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 12px;
background: rgba(239, 68, 68, 0.14);
border: 1px solid rgba(239, 68, 68, 0.28);
border-radius: 999px;
color: #f87171;
font-size: 12px;
font-weight: 800;
cursor: pointer;
transition: all 0.2s ease;
}

.shop-clear-filters-btn:hover {
background: rgba(239, 68, 68, 0.22);
transform: translateY(-1px);
}

.shop-filters-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 15px;
align-items: end;
}

.shop-filter-group {
display: flex;
flex-direction: column;
gap: 8px;
}

.shop-filter-label {
display: flex;
align-items: center;
gap: 8px;
color: var(--text-muted);
font-size: 13px;
font-weight: 700;
}

.shop-filter-label i {
color: var(--primary);
font-size: 12px;
}

.shop-filter-control {
width: 100%;
padding: 12px 13px;
background: rgba(10, 10, 10, 0.82);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 10px;
color: #fff;
font-size: 14px;
transition: all 0.2s ease;
}

.shop-filter-control:focus {
outline: none;
border-color: rgba(16, 185, 129, 0.38);
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.10);
}

.shop-filter-price-range {
display: flex;
gap: 10px;
align-items: center;
}

.shop-filter-range-separator {
color: var(--text-muted);
font-weight: 700;
}

.tebex-sales-banner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 18px;
padding: 18px 20px;
margin-bottom: 22px;
background: linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(245, 158, 11, 0.10));
border: 1px solid rgba(239, 68, 68, 0.24);
border-radius: 16px;
box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.tebex-sales-banner-main {
display: flex;
align-items: center;
gap: 14px;
min-width: 0;
}

.tebex-sales-banner-icon {
width: 46px;
height: 46px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 12px;
background: rgba(255, 255, 255, 0.08);
color: #fca5a5;
font-size: 18px;
flex-shrink: 0;
}

.tebex-sales-banner-kicker {
color: #fca5a5;
font-size: 11px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.08em;
margin-bottom: 4px;
}

.tebex-sales-banner-title {
color: #fff;
font-size: 18px;
font-weight: 800;
line-height: 1.25;
}

.tebex-sales-banner-subtitle {
color: #f3f4f6;
font-size: 13px;
margin-top: 4px;
}

.tebex-sales-banner-subtitle strong {
color: #fecaca;
}

.tebex-sales-banner-badge {
padding: 10px 14px;
border-radius: 999px;
background: rgba(239, 68, 68, 0.22);
border: 1px solid rgba(254, 202, 202, 0.18);
color: #fff;
font-size: 18px;
font-weight: 900;
white-space: nowrap;
flex-shrink: 0;
}

.tebex-sales-widget {
position: fixed;
right: 24px;
bottom: 24px;
z-index: 997;
width: min(320px, calc(100vw - 32px));
padding: 16px 16px 14px;
background: linear-gradient(135deg, rgba(24, 24, 27, 0.96), rgba(15, 15, 18, 0.98));
border: 1px solid rgba(239, 68, 68, 0.24);
border-radius: 16px;
box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
backdrop-filter: blur(8px);
}

.tebex-sales-widget-close {
position: absolute;
top: 10px;
right: 10px;
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 8px;
color: #fca5a5;
cursor: pointer;
transition: all 0.2s ease;
}

.tebex-sales-widget-close:hover {
background: rgba(239, 68, 68, 0.14);
}

.tebex-sales-widget-kicker {
color: #fca5a5;
font-size: 11px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.08em;
margin-bottom: 6px;
}

.tebex-sales-widget-title {
color: #fff;
font-size: 18px;
font-weight: 800;
line-height: 1.2;
padding-right: 28px;
margin-bottom: 6px;
}

.tebex-sales-widget-subtitle {
color: var(--text-muted);
font-size: 12px;
line-height: 1.45;
margin-bottom: 12px;
}

.tebex-sales-widget-actions {
display: flex;
gap: 8px;
}

.tebex-sales-widget-btn {
flex: 1;
padding: 9px 12px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 10px;
color: #fff;
font-size: 12px;
font-weight: 700;
cursor: pointer;
transition: all 0.2s ease;
}

.tebex-sales-widget-btn:hover {
border-color: rgba(16, 185, 129, 0.25);
color: var(--primary);
}

.shop-price-panel {
display: grid;
gap: 7px;
padding: 14px;
background:
linear-gradient(rgba(16, 185, 129, 0.045) 1px, transparent 1px),
linear-gradient(90deg, rgba(16, 185, 129, 0.045) 1px, transparent 1px),
linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(16, 185, 129, 0.06));
background-size: 26px 26px, 26px 26px, 100% 100%;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 12px;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.shop-price-panel.has-discount {
background:
linear-gradient(rgba(239, 68, 68, 0.045) 1px, transparent 1px),
linear-gradient(90deg, rgba(239, 68, 68, 0.045) 1px, transparent 1px),
linear-gradient(135deg, rgba(239, 68, 68, 0.10), rgba(16, 185, 129, 0.04));
background-size: 26px 26px, 26px 26px, 100% 100%;
border-color: rgba(239, 68, 68, 0.20);
}

.shop-price-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}

.shop-price-header span {
color: var(--text-muted);
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
}

.shop-price-header strong {
padding: 4px 8px;
background: rgba(239, 68, 68, 0.16);
border: 1px solid rgba(239, 68, 68, 0.22);
border-radius: 999px;
color: #f87171;
font-size: 11px;
font-weight: 800;
}

.shop-old-price {
display: inline-flex;
align-items: center;
gap: 6px;
color: #7d8594;
font-size: 12px;
text-decoration: line-through;
}

.shop-old-price small {
font-size: 11px;
}

.shop-final-price {
display: flex;
align-items: end;
justify-content: space-between;
gap: 12px;
}

.shop-final-price-main {
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--primary);
}

.shop-price-panel.has-discount .shop-final-price-main {
color: #f87171;
}

.shop-final-price-main i {
font-size: 16px;
}

.shop-final-price-main strong {
font-size: 28px;
line-height: 1;
}

.shop-final-price small {
color: var(--text-muted);
font-size: 12px;
font-weight: 600;
white-space: nowrap;
}

.shop-car-footer {
padding: 0 18px 18px;
margin-top: auto;
}

.shop-buy-btn {
margin-top: 0;
padding: 13px 14px;
font-size: 14px;
font-weight: 800;
border-radius: 10px;
}

.shop-buy-btn-ready {
background: linear-gradient(135deg, var(--primary), #0d9668);
box-shadow: 0 10px 22px rgba(16, 185, 129, 0.22);
}

.shop-buy-btn-muted {
background: rgba(107, 114, 128, 0.28);
border: 1px solid rgba(107, 114, 128, 0.38);
color: #d1d5db;
opacity: 0.78;
cursor: not-allowed;
}

.shop-buy-btn-warning {
background: linear-gradient(135deg, #facc15, #eab308);
border: 1px solid rgba(250, 204, 21, 0.42);
color: #111827;
opacity: 0.92;
cursor: not-allowed;
box-shadow: 0 10px 22px rgba(250, 204, 21, 0.2);
}

.shop-buy-btn-danger {
background: rgba(239, 68, 68, 0.16);
border: 1px solid rgba(239, 68, 68, 0.34);
color: #f87171;
opacity: 0.78;
cursor: not-allowed;
box-shadow: none;
}

.car-confirm-card {
position: relative;
overflow: hidden;
padding: 24px;
border: 1px solid rgba(16, 185, 129, 0.18);
border-radius: 18px;
background: linear-gradient(135deg, rgba(17, 17, 17, 0.96), rgba(11, 11, 11, 0.99));
box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
text-align: left;
}

.confirm-modal-content-rich {
background: linear-gradient(180deg, rgba(14, 14, 14, 0.98) 0%, rgba(9, 9, 9, 1) 100%);
border-color: rgba(16, 185, 129, 0.16);
box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.confirm-modal-body-rich {
padding: 24px !important;
text-align: left !important;
}

.confirm-rich-content {
width: 100%;
}

.confirm-modal-footer-rich {
padding-top: 0;
border-top: none;
justify-content: stretch !important;
}

.confirm-action-btn {
flex: 1;
padding: 13px 16px !important;
font-size: 14px;
font-weight: 800 !important;
border-radius: 12px !important;
}

.confirm-action-btn-primary {
background: linear-gradient(135deg, var(--primary), #0d9668) !important;
color: #03150f !important;
box-shadow: 0 10px 24px rgba(16, 185, 129, 0.26);
}

.confirm-action-btn-secondary {
background: rgba(255, 255, 255, 0.04) !important;
border: 1px solid rgba(255, 255, 255, 0.10) !important;
color: #fff !important;
}

.car-confirm-grid-bg {
position: absolute;
inset: 0;
background:
linear-gradient(rgba(16, 185, 129, 0.04) 1px, transparent 1px),
linear-gradient(90deg, rgba(16, 185, 129, 0.04) 1px, transparent 1px),
radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.16), transparent 58%);
background-size: 34px 34px, 34px 34px, 100% 100%;
pointer-events: none;
}

.car-confirm-head,
.car-confirm-subtitle,
.car-confirm-price {
position: relative;
z-index: 1;
}

.car-confirm-head {
display: flex;
align-items: center;
gap: 14px;
margin-bottom: 14px;
}

.car-confirm-icon {
width: 58px;
height: 58px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(16, 185, 129, 0.12);
border: 1px solid rgba(16, 185, 129, 0.24);
border-radius: 16px;
color: var(--primary);
font-size: 24px;
flex-shrink: 0;
}

.car-confirm-kicker {
color: var(--primary);
font-size: 11px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.08em;
margin-bottom: 4px;
}

.car-confirm-title {
color: #fff;
font-size: 21px;
font-weight: 800;
line-height: 1.2;
}

.car-confirm-subtitle {
color: var(--text-muted);
font-size: 13px;
line-height: 1.5;
margin-bottom: 18px;
}

.car-confirm-meta {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
margin-bottom: 16px;
}

.car-confirm-meta-item {
padding: 12px 13px;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 12px;
}

.car-confirm-meta-item span {
display: block;
color: var(--text-muted);
font-size: 11px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.08em;
margin-bottom: 5px;
}

.car-confirm-meta-item strong {
display: block;
color: #fff;
font-size: 14px;
line-height: 1.3;
word-break: break-word;
}

.car-confirm-price {
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
padding: 13px 14px;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 12px;
}

.car-confirm-price span {
color: var(--text-muted);
font-size: 11px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.08em;
}

.car-confirm-price strong {
color: var(--primary);
font-size: 18px;
}

.purchase-modal-overlay {
background: rgba(0, 0, 0, 0.82);
backdrop-filter: blur(6px);
z-index: 10001;
}

.purchase-modal-content {
max-width: 560px;
background: linear-gradient(180deg, rgba(14, 14, 14, 0.98) 0%, rgba(9, 9, 9, 1) 100%);
border: 1px solid rgba(16, 185, 129, 0.16);
box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
overflow: hidden;
}

.purchase-modal-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 22px 24px 16px;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.purchase-modal-kicker {
color: var(--primary);
font-size: 11px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.08em;
margin-bottom: 6px;
}

.purchase-modal-header h3 {
margin: 0;
color: #fff;
font-size: 22px;
font-weight: 800;
line-height: 1.2;
}

.purchase-modal-body {
padding: 22px 24px 12px;
}

.purchase-confirm-card {
border-color: rgba(16, 185, 129, 0.16);
box-shadow: none;
background: linear-gradient(135deg, rgba(17, 17, 17, 0.88), rgba(11, 11, 11, 0.96));
}

.purchase-modal-actions {
display: flex;
gap: 12px;
padding: 0 24px 24px;
}

.purchase-confirm-btn,
.purchase-cancel-btn {
flex: 1;
padding: 13px 16px;
border-radius: 12px;
font-size: 14px;
font-weight: 800;
cursor: pointer;
transition: all 0.2s ease;
}

.purchase-confirm-btn {
background: linear-gradient(135deg, var(--primary), #0d9668);
color: #03150f;
box-shadow: 0 10px 24px rgba(16, 185, 129, 0.24);
}

.purchase-confirm-btn:disabled {
opacity: 0.7;
cursor: not-allowed;
box-shadow: none;
}

.purchase-cancel-btn {
background: rgba(255, 255, 255, 0.04);
color: #fff;
border: 1px solid rgba(255, 255, 255, 0.10);
}

.purchase-cancel-btn:hover,
.purchase-confirm-btn:hover:not(:disabled) {
transform: translateY(-1px);
}

@media (max-width: 520px) {
    .shop-filters-head {
        flex-direction: column;
        align-items: stretch;
    }

    .tebex-sales-banner,
    .tebex-sales-banner-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .tebex-sales-widget {
        right: 16px;
        width: min(320px, calc(100vw - 24px));
    }

    .shop-clear-filters-btn {
        width: fit-content;
    }

    .purchase-modal-actions {
        flex-direction: column-reverse;
    }

    .purchase-modal-header,
    .purchase-modal-body,
    .purchase-modal-actions {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 520px) {
    .car-confirm-meta {
        grid-template-columns: 1fr;
    }

    .confirm-modal-footer-rich {
        flex-direction: column-reverse;
    }
}

.vip-image i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}

.vip-card:hover .vip-image i {
    transform: scale(1.1) rotate(5deg);
}

.vip-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.vip-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.vip-price span {
    font-size: 18px;
    color: #999;
}

.vip-features {
    list-style: none;
    margin-bottom: 20px;
}

.vip-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
}

.vip-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
}

.btn-buy {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

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

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

.btn-buy:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

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

.btn-buy.shop-buy-btn-warning {
    background: linear-gradient(135deg, #facc15, #eab308);
    border: 1px solid rgba(250, 204, 21, 0.42);
    color: #111827;
    opacity: 0.92;
    cursor: not-allowed;
    box-shadow: 0 10px 22px rgba(250, 204, 21, 0.2);
}

.btn-buy.shop-buy-btn-warning:hover {
    background: linear-gradient(135deg, #facc15, #eab308);
    transform: none;
    box-shadow: 0 10px 22px rgba(250, 204, 21, 0.2);
}

.btn-buy-small {
    padding: 10px 16px;
    font-size: 13px;
    width: auto;
}

.credits-section {
    background: var(--dark-lighter);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border);
}

.credits-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.credits-info {
    color: #999;
    margin-bottom: 20px;
}

.leaderboard-table {
    width: 100%;
    background: var(--dark-lighter);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

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

.leaderboard-table thead {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), transparent);
}

.leaderboard-table th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    color: var(--primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leaderboard-table td {
    padding: 15px;
    border-top: 1px solid var(--border);
    color: var(--text);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.rank-badge.silver {
    background: linear-gradient(135deg, #C0C0C0, #999);
    color: #000;
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: #fff;
}

.rank-badge.default {
    background: var(--dark-lighter);
    border: 2px solid var(--border);
    color: var(--text-muted);
}

.invitation-section {
    background: var(--dark-lighter);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.invitation-code {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.code-display {
    flex: 1;
    background: var(--dark-lighter);
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-copy {
    padding: 15px 25px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-copy:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.reward-item {
    background: var(--dark-lighter);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.reward-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.reward-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.reward-count {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.reward-label {
    color: #999;
    font-size: 14px;
}

.lottery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.lottery-card {
    background: var(--dark-lighter);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.lottery-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.lottery-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lottery-info {
    padding: 20px;
}

.lottery-number {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.lottery-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.lottery-winner {
    color: #999;
    font-size: 14px;
    margin-bottom: 5px;
}

.lottery-details {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--dark-lighter), var(--dark));
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.empty-state > i {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

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

.character-card {
    background: linear-gradient(135deg, var(--dark-lighter) 0%, var(--dark) 100%);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.character-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.character-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.character-header-main {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.character-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--primary);
}

.character-info {
    flex: 1;
}

.profile-history-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.28);
    background: rgba(16, 185, 129, 0.08);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.profile-history-btn:hover {
    transform: translateY(-1px);
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.4);
}

.character-name {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

.character-id {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.character-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
    gap: 14px;
    margin-top: 24px;
    align-items: stretch;
}

.stat-item {
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.98) 0%, rgba(10, 10, 10, 0.92) 100%);
    padding: 16px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    min-width: 0;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.95), rgba(59, 130, 246, 0.7));
    opacity: 0.75;
}

.stat-item:hover {
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.12), 0 0 0 1px rgba(16, 185, 129, 0.08);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    font-weight: 700;
}

.stat-label i {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary);
    font-size: 10px;
    flex-shrink: 0;
}

.stat-value {
    font-size: clamp(21px, 1.9vw, 29px);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.25;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.stat-value-text {
    font-size: clamp(16px, 1.35vw, 22px);
    line-height: 1.35;
}

.stat-value.money {
    color: #f59e0b;
}

.stat-value.bank {
    color: #3b82f6;
}

.empty-state h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    
    .main-content {
        margin-left: 240px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--dark-lighter);
        border: 1px solid var(--border);
        border-radius: 8px;
        color: var(--primary);
        cursor: pointer;
        font-size: 18px;
        transition: all 0.3s;
    }
    
    .menu-toggle:hover {
        background: var(--primary);
        color: #000;
    }
    
    .sidebar {
        position: fixed;
        left: 0;
        width: min(86vw, 320px);
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        height: 100vh;
        overflow-y: auto;
    }
    
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
    }
    
    .sidebar.open::before {
        content: '';
        position: fixed;
        top: 0;
        left: min(86vw, 320px);
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    .main-content {
        margin-left: 0;
    }

    .header {
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .header-nav {
        display: none;
    }

    .header-mobile-brand {
        display: block;
        flex: 1;
        min-width: 0;
        text-align: center;
    }

    .header-actions {
        display: none;
    }

    #page-content {
        padding: 18px;
    }

    .page-title {
        font-size: 28px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .nav-section {
        padding: 14px 16px 8px;
    }

    .nav-item {
        padding: 12px 16px;
    }

    .nav-sub-item {
        margin-left: 8px;
        padding: 10px 16px 10px 18px;
    }

    .character-card,
    .vip-card,
    .empty-state,
    .modal-content {
        padding-left: 18px;
        padding-right: 18px;
    }
    
    .vip-packages {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .shop-filters-grid,
    .rewards-grid,
    .lottery-grid {
        grid-template-columns: 1fr;
    }

    .shop-price-header,
    .shop-final-price {
        flex-wrap: wrap;
    }
    
    .character-header {
        flex-direction: column;
        text-align: center;
    }

    .character-header-main {
        flex-direction: column;
        text-align: center;
    }

    .profile-history-btn {
        width: 100%;
        justify-content: center;
    }
    
    .character-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        min-height: unset;
    }

    .section-header-card {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 18px !important;
        gap: 16px !important;
    }

    .section-header-main {
        width: 100%;
    }

    .section-header-extra {
        width: 100%;
        justify-content: flex-start;
    }

    .garage-header-stat {
        flex: 1 1 140px;
    }

    .lucky-wheel-event-card {
        padding: 20px !important;
    }

    .lucky-wheel-event-top {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
    }

    .lucky-wheel-countdown {
        text-align: left !important;
    }

    .lucky-wheel-wheel-panel {
        padding: 18px !important;
    }

    .lucky-wheel-layout {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .lucky-wheel-participants-list {
        max-height: 280px !important;
    }

    .referrals-header-layout {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .referrals-summary {
        width: 100%;
    }

    .referrals-summary-box {
        flex: 1 1 150px;
        min-width: 0;
    }

    .referrals-actions {
        width: 100%;
    }

    .referrals-actions button {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
    }

    .referrals-layout {
        grid-template-columns: 1fr !important;
    }

    .referrals-code-row {
        flex-wrap: wrap;
    }

    .referrals-code-input {
        min-width: 0;
    }

    .referral-list-item-head,
    .referral-list-item-meta {
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .logo {
        padding: 16px;
    }

    .user-info {
        padding: 12px;
    }

    .header {
        padding: 12px;
    }

    .menu-toggle {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .header-actions {
        display: none;
    }

    #page-content {
        padding: 14px;
    }

    .page-title {
        font-size: 24px;
    }

    .character-card,
    .vip-card,
    .empty-state {
        padding: 16px;
    }

    .shop-car-image,
    .garage-import-image {
        min-height: 120px !important;
        padding: 14px !important;
    }

    .shop-transfer-badge {
        width: 30px;
        height: 30px;
        top: 10px;
        right: 10px;
    }

    .shop-transfer-badge::after {
        width: min(210px, calc(100vw - 40px));
    }

    .shop-final-price-main strong {
        font-size: 24px;
    }

    .stat-item {
        padding: 14px 12px;
        border-radius: 12px;
    }

    .stat-label {
        margin-bottom: 10px;
    }

    .stat-value {
        font-size: 22px;
    }

    .stat-value-text {
        font-size: 17px;
    }

    .section-header-card {
        padding: 16px !important;
    }

    .section-header-main {
        gap: 14px !important;
        align-items: flex-start !important;
    }

    .section-header-text h1 {
        font-size: 20px;
        line-height: 1.25;
    }

    .section-header-extra,
    .garage-header-stats {
        flex-direction: column;
    }

    .garage-header-stat {
        width: 100%;
    }

    .garage-import-row {
        flex-direction: column;
        gap: 6px;
    }

    .garage-import-value {
        text-align: left;
        width: 100%;
    }

    .lucky-wheel-event-card {
        padding: 18px !important;
    }

    .lucky-wheel-wheel-panel,
    .lucky-wheel-stats-card,
    .lucky-wheel-prize-card,
    .lucky-wheel-info-card,
    .lucky-wheel-participants-card {
        padding: 14px !important;
    }

    .lucky-wheel-stats-grid {
        grid-template-columns: 1fr !important;
    }

    .wheel {
        border-width: 6px;
    }

    .wheel-center {
        width: 62px;
        height: 62px;
        border-width: 3px;
    }

    .wheel-center i {
        font-size: 22px !important;
    }

    .wheel-pointer {
        top: -16px;
        border-left-width: 16px;
        border-right-width: 16px;
        border-top-width: 32px;
    }

    .wheel-pointer::after {
        top: -32px;
        left: -12px;
        width: 24px;
        height: 24px;
    }

    #time-remaining {
        font-size: 24px !important;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .referrals-header-card,
    .referrals-rewards-panel,
    .referrals-code-panel,
    .referrals-list-panel {
        padding: 14px !important;
    }

    .referrals-actions button,
    .referrals-code-submit {
        width: 100%;
    }

    .referrals-code-row {
        flex-direction: column !important;
    }

    .referrals-list {
        padding-right: 0 !important;
    }

    .referral-list-item-head,
    .referral-list-item-meta {
        flex-wrap: wrap;
    }

    .referral-list-item-status {
        margin-left: auto;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

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

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

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

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

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

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

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

/* Wheel Spinning Animations */
@keyframes wheelSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(var(--spin-degrees));
    }
}

@keyframes wheelGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.6);
    }
}

.wheel-container {
    position: relative;
    width: min(420px, 100%);
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 100%;
    margin: 0 auto;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    border: 8px solid var(--primary);
    background: var(--dark);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
    transition: transform 0.1s ease-out;
    display: block;
    transform-origin: center center;
}

.wheel.spinning {
    animation: wheelSpin 15s cubic-bezier(0.17, 0.67, 0.12, 0.99) forwards;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), #0d9668);
    border-radius: 50%;
    border: 4px solid var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.wheel-slice-hover {
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.wheel-slice-hover:hover {
    fill: rgba(255, 255, 255, 0.15) !important;
}

.wheel-tooltip {
    position: absolute;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid var(--primary);
    border-radius: 10px;
    padding: 10px 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
    max-width: 240px;
    backdrop-filter: blur(8px);
}

.wheel-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.wheel-tooltip img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.wheel-tooltip-name {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.wheel-tooltip-pos {
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 2px;
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #ef4444;
    z-index: 11;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.wheel-pointer::after {
    content: '';
    position: absolute;
    top: -40px;
    left: -15px;
    width: 30px;
    height: 30px;
    background: #ef4444;
    border-radius: 50%;
}

/* Tebex package description HTML styling */
.tebex-description img { max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0; }
.tebex-description h1, .tebex-description h2, .tebex-description h3 { color: #fff; margin: 16px 0 8px; }
.tebex-description h1 { font-size: 20px; }
.tebex-description h2 { font-size: 17px; }
.tebex-description h3 { font-size: 15px; }
.tebex-description p { margin: 8px 0; }
.tebex-description ul, .tebex-description ol { padding-left: 22px; margin: 8px 0; }
.tebex-description li { margin: 4px 0; }
.tebex-description a { color: var(--primary); text-decoration: none; }
.tebex-description a:hover { text-decoration: underline; }
.tebex-description strong, .tebex-description b { color: #fff; }
.tebex-description hr { border: none; border-top: 1px solid var(--border); margin: 14px 0; }
.tebex-description code { background: rgba(0,0,0,0.4); padding: 2px 6px; border-radius: 4px; font-size: 12px; color: var(--primary); }

/* ==========================================
   Discord Login Loading Overlay
   ========================================== */
.discord-loading-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, #0f1419 0%, #050810 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

.discord-loading-overlay::before,
.discord-loading-overlay::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 6s ease-in-out infinite;
}

.discord-loading-overlay::before {
    width: 400px;
    height: 400px;
    background: #5865F2;
    top: -100px;
    left: -100px;
}

.discord-loading-overlay::after {
    width: 500px;
    height: 500px;
    background: #10b981;
    bottom: -150px;
    right: -150px;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.discord-loading-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.discord-loading-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 460px;
    width: 90%;
    padding: 50px 40px;
    background: rgba(20, 22, 30, 0.6);
    border: 1px solid rgba(88, 101, 242, 0.25);
    border-radius: 24px;
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 120px rgba(88, 101, 242, 0.15);
    animation: contentSlide 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Orb with rotating rings */
.discord-loading-orb {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discord-loading-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    z-index: 5;
    position: relative;
    animation: logoBreathe 2.4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.7));
}

@keyframes logoBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.orb-ring {
    position: absolute;
    border-radius: 50%;
    border-style: solid;
    border-color: transparent;
}

.orb-ring-1 {
    width: 110px;
    height: 110px;
    border-width: 2px;
    border-top-color: #5865F2;
    border-right-color: rgba(88, 101, 242, 0.4);
    animation: spin 2s linear infinite;
}

.orb-ring-2 {
    width: 130px;
    height: 130px;
    border-width: 2px;
    border-bottom-color: var(--primary);
    border-left-color: rgba(16, 185, 129, 0.4);
    animation: spin 3s linear infinite reverse;
}

.orb-ring-3 {
    width: 150px;
    height: 150px;
    border-width: 1px;
    border-top-color: rgba(255, 255, 255, 0.3);
    animation: spin 4s linear infinite;
}

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

/* Text */
.discord-loading-text h2 {
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #fff 0%, #c0c8e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.discord-loading-text p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    margin: 0 0 32px;
    font-weight: 500;
}

/* Steps */
.discord-loading-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 28px;
}

.discord-loading-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.4s ease;
    opacity: 0.45;
}

.discord-loading-step.active {
    opacity: 1;
    background: rgba(88, 101, 242, 0.12);
    border-color: rgba(88, 101, 242, 0.5);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.2);
}

.discord-loading-step.completed {
    opacity: 1;
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.35);
}

.discord-loading-step .step-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 101, 242, 0.15);
    border-radius: 8px;
    color: #5865F2;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.discord-loading-step.completed .step-icon {
    background: rgba(16, 185, 129, 0.18);
    color: var(--primary);
}

.discord-loading-step span {
    flex: 1;
    text-align: left;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.discord-loading-step .step-status {
    font-size: 14px;
    color: var(--primary);
    flex-shrink: 0;
}

.discord-loading-step .step-status.pending {
    font-size: 6px;
    color: rgba(255, 255, 255, 0.25);
}

.discord-loading-step.completed .step-status {
    color: var(--primary);
}

/* Progress bar */
.discord-loading-progress {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    overflow: hidden;
}

.discord-loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #5865F2 0%, var(--primary) 100%);
    border-radius: 100px;
    transition: width 0.5s ease;
    box-shadow: 0 0 12px rgba(88, 101, 242, 0.6);
}
