/**
 * Tronx - Modern Roblox Platform Stylesheet
 */

:root {
    --bg-main: #111216;
    --bg-surface: #191B1F;
    --bg-card: #232527;
    --bg-hover: #2E3035;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.14);
    
    --brand-orange: #FF6B00;
    --brand-orange-hover: #FF8533;
    --brand-blue: #0074E4;
    --brand-blue-hover: #1A8CFF;
    --brand-green: #00B06F;
    
    --text-primary: #FFFFFF;
    --text-secondary: #BDC3C7;
    --text-muted: #858990;
    
    --sidebar-width: 230px;
    --topbar-height: 56px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

/* ==========================================================
   TOP NAVIGATION BAR
   ========================================================== */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--topbar-height);
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
}
.hamburger-btn:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.brand-logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.brand-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.brand-logo-text {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #FFFFFF;
}
.brand-select-badge {
    background: #FF6B00;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background-color: var(--bg-hover);
}

/* Global Search Bar */
.topbar-center {
    flex: 1;
    max-width: 520px;
    margin: 0 24px;
    position: relative;
}
.search-wrapper {
    position: relative;
    width: 100%;
}
.search-input {
    width: 100%;
    height: 36px;
    background-color: #111216;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 0 38px 0 36px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}
.search-input:focus {
    border-color: var(--brand-orange);
    background-color: #191B1F;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.25);
}
.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

/* Topbar Right Corner */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tronxbux-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.35);
    padding: 6px 12px;
    border-radius: 18px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    color: #22D3EE;
    transition: all 0.15s ease;
}
.tronxbux-badge:hover {
    background: rgba(6, 182, 212, 0.25);
    transform: scale(1.03);
}
.coin-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.15s ease;
}
.user-profile-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
}
.user-avatar-mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #F5CD2F;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 16px;
}
.user-name-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
}
.icon-btn:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}
.notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #EF4444;
}

/* ==========================================================
   SIDEBAR NAVIGATION
   ========================================================== */
.sidebar {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--topbar-height));
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 90;
    transition: transform 0.25s ease;
}
.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}
.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F5CD2F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.sidebar-user-info {
    overflow: hidden;
}
.sidebar-username {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user-status {
    font-size: 11px;
    color: #10B981;
    display: flex;
    align-items: center;
    gap: 4px;
}
.sidebar-user-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}
.sidebar-item:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}
.sidebar-item.active {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}
.sidebar-item-icon {
    font-size: 18px;
    width: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar-badge {
    margin-left: auto;
    background: #374151;
    color: #fff;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 700;
}

.sidebar-promo-box {
    margin-top: auto;
    background: rgba(255, 107, 0, 0.08);
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
}
.sidebar-promo-title {
    font-size: 12px;
    font-weight: 700;
    color: #FFA500;
    margin-bottom: 4px;
}
.sidebar-promo-text {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.sidebar-promo-btn {
    width: 100%;
    padding: 6px;
    background: var(--brand-orange);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* ==========================================================
   MAIN CONTENT CONTAINER
   ========================================================== */
.main-content {
    margin-top: var(--topbar-height);
    margin-left: var(--sidebar-width);
    padding: 24px 32px 60px 32px;
    min-height: calc(100vh - var(--topbar-height));
    transition: margin-left 0.25s ease;
}
.main-content.expanded {
    margin-left: 0;
}

/* ==========================================================
   AUTH SCREEN (Clean Blank Orange Background)
   ========================================================== */
#auth-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #FF6B00; /* Pure blank Tronx orange background */
    background: radial-gradient(circle at 50% 45%, #FF7A1A 0%, #FF5A00 60%, #E64900 100%);
    background-image: none !important; /* No roblox images */
    overflow-y: auto;
    padding: 20px;
}

.auth-header {
    position: absolute;
    top: 24px;
    left: 32px;
    right: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.auth-logo img {
    width: 44px;
    height: 44px;
}
.auth-logo span {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.auth-login-topbtn {
    padding: 8px 24px;
    background: #FFFFFF;
    color: #111216;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.15s ease;
}
.auth-login-topbtn:hover {
    background: #F3F4F6;
    transform: translateY(-1px);
}

#auth-screen.hidden {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.auth-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    z-index: 10;
}
.auth-close-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.1);
}

.auth-card {
    position: relative;
    width: 450px;
    max-width: 95vw;
    background: #191B1F;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 32px 30px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 40px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
}

.auth-tabs {
    display: flex;
    background: #111216;
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 22px;
    gap: 4px;
}
.auth-tab-btn {
    flex: 1;
    padding: 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.auth-tab-btn.active {
    background: #FF6B00;
    color: #FFFFFF;
}

.auth-card-title {
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.birthday-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 8px;
}
.auth-select, .auth-input {
    width: 100%;
    height: 42px;
    background: #111216;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    color: #FFFFFF;
    font-size: 14px;
    outline: none;
    transition: border 0.15s ease;
}
.auth-select:focus, .auth-input:focus {
    border-color: var(--brand-orange);
}

.gender-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.gender-btn {
    height: 44px;
    background: #111216;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.gender-btn:hover {
    border-color: var(--border-light);
}
.gender-btn.active {
    border-color: var(--brand-orange);
    background: rgba(255, 107, 0, 0.15);
    color: #fff;
}

.auth-disclaimer {
    font-size: 11px;
    line-height: 1.4;
    color: var(--text-muted);
    text-align: center;
    margin: 4px 0;
}
.auth-disclaimer a {
    color: #60A5FA;
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    height: 50px;
    background: #FF6B00;
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}
.auth-submit-btn:hover {
    background: #FFFFFF;
    transform: translateY(-1px);
}

.auth-guest-btn {
    width: 100%;
    height: 42px;
    background: transparent;
    color: #FFA500;
    border: 1px solid rgba(255, 165, 0, 0.4);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 4px;
}
.auth-guest-btn:hover {
    background: rgba(255, 165, 0, 0.12);
    border-color: #FFA500;
}

/* Instant Big Start Button on Auth Screen */
.auth-instant-start-btn {
    width: 100%;
    height: 54px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    transition: all 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}
.auth-instant-start-btn:hover {
    background: linear-gradient(135deg, #34D399, #10B981);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.5);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 6px 0 16px 0;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.auth-divider span {
    padding: 0 12px;
}

/* Start button on game cards */
.card-start-btn {
    margin-top: 8px;
    width: 100%;
    padding: 8px 12px;
    background: #10B981;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.card-start-btn:hover {
    background: #059669;
    transform: scale(1.02);
}

/* Home featured banner */
.home-featured-banner {
    background: linear-gradient(135deg, #1E293B, #0F172A);
    border: 1px solid rgba(255, 107, 0, 0.35);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.giant-start-btn {
    background: linear-gradient(135deg, #10B981, #059669);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 16px 36px;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
    white-space: nowrap;
}
.giant-start-btn:hover {
    background: linear-gradient(135deg, #34D399, #10B981);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.6);
}

/* ==========================================================
   HOME DASHBOARD (Screenshot 2)
   ========================================================== */
.welcome-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}
.welcome-avatar-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #232527;
    border: 3px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.welcome-text h1 {
    font-size: 32px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

/* Account Setup Banner */
.setup-account-banner {
    background: #191B1F;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}
.setup-banner-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.setup-lock-icon {
    font-size: 26px;
    color: #60A5FA;
}
.setup-banner-title {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 2px;
}
.setup-banner-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}
.unlock-btn {
    padding: 8px 22px;
    background: #E5E7EB;
    color: #111216;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.unlock-btn:hover {
    background: #FFFFFF;
    transform: scale(1.03);
}

/* Games Row / Grid */
.game-section {
    margin-bottom: 36px;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.section-title {
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.2px;
}
.see-all-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-orange);
    cursor: pointer;
}
.see-all-link:hover {
    text-decoration: underline;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
}

.game-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}
.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-light);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.game-card-thumb-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111216;
    position: relative;
    overflow: hidden;
}
.game-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.game-card:hover .game-card-thumb {
    transform: scale(1.05);
}
.game-card-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: #FBBF24;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
}

.game-card-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.game-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.game-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}
.game-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #10B981;
    font-weight: 600;
}
.game-playing {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
}

/* ==========================================================
   GAME DETAILS SCREEN (Screenshot 3)
   ========================================================== */
#game-detail-screen {
    max-width: 1100px;
    margin: 0 auto;
}

.game-detail-header-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.detail-banner-wrap {
    width: 100%;
    height: 380px;
    background: #111216;
    position: relative;
    overflow: hidden;
}
.detail-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detail-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(transparent, rgba(25, 27, 31, 0.95));
}

.detail-header-bar {
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.detail-title-info {
    flex: 1;
}
.detail-title {
    font-size: 32px;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 4px;
}
.detail-creator-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}
.creator-name {
    font-weight: 700;
    color: #60A5FA;
}
.creator-verified {
    color: #3B82F6;
    font-size: 15px;
}
.detail-maturity-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

/* Giant Blue Play Button */
.detail-play-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.giant-play-btn {
    min-width: 180px;
    height: 64px;
    background: #2563EB;
    background-image: linear-gradient(135deg, #3B82F6, #1D4ED8);
    border: none;
    border-radius: var(--radius-md);
    color: #FFFFFF;
    font-size: 26px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.giant-play-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.6);
    background-image: linear-gradient(135deg, #60A5FA, #2563EB);
}
.giant-play-btn:active {
    transform: translateY(1px);
}

.detail-actions-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.detail-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    min-width: 60px;
    transition: all 0.15s ease;
}
.detail-action-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}
.detail-action-btn.active {
    color: #FBBF24;
    border-color: #FBBF24;
}

/* Detail Navigation Tabs */
.detail-tabs {
    display: flex;
    gap: 28px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
}
.detail-tab {
    padding: 12px 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: color 0.15s ease;
}
.detail-tab:hover {
    color: var(--text-primary);
}
.detail-tab.active {
    color: var(--text-primary);
}
.detail-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--brand-orange);
    border-radius: 3px;
}

/* Tab Pane Contents */
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
}

.detail-desc-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #D1D5DB;
    white-space: pre-line;
    margin-bottom: 24px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.badge-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
}
.badge-icon {
    font-size: 32px;
}
.badge-title {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
}
.badge-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Gamepass Store Cards */
.gamepasses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.gamepass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}
.gamepass-icon {
    font-size: 40px;
    margin-bottom: 4px;
}
.gamepass-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.gamepass-desc {
    font-size: 12px;
    color: var(--text-muted);
    min-height: 36px;
}
.gamepass-buy-btn {
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    background: #059669;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}
.gamepass-buy-btn:hover {
    background: #10B981;
}
.gamepass-buy-btn.owned {
    background: #374151;
    color: #9CA3AF;
    cursor: default;
}

/* ==========================================================
   AVATAR EDITOR SCREEN (Screenshot 4)
   ========================================================== */
#avatar-screen {
    max-width: 1200px;
    margin: 0 auto;
}

.avatar-editor-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 32px;
}

/* Left 3D Viewport Column */
.avatar-preview-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.avatar-canvas-box {
    width: 100%;
    height: 480px;
    background: #191B1F;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
#avatar-3d-container {
    width: 100%;
    height: 100%;
}
.view-mode-pill {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.6);
    color: #D1D5DB;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.avatar-preview-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}
.redraw-btn {
    background: none;
    border: none;
    color: #60A5FA;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

/* Right Customization Column */
.avatar-customization-col {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.avatar-category-tabs {
    display: flex;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
}
.avatar-tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.avatar-tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}
.avatar-tab-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 6px;
}
.items-grid::-webkit-scrollbar {
    width: 6px;
}
.items-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.item-card {
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
}
.item-card:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
}
.item-card.equipped {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.08);
}
.item-check-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #10B981;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
}
.item-card.equipped .item-check-badge {
    display: flex;
}

.item-card-icon {
    font-size: 42px;
    margin: 8px 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.item-card-name {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Skin Tone Color Palette */
.skin-palette-box {
    margin-top: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
}
.skin-palette-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.color-swatch {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s ease;
}
.color-swatch:hover {
    transform: scale(1.15);
}
.color-swatch.active {
    border-color: #FFFFFF;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ==========================================================
   MARKETPLACE / SHOP SCREEN
   ========================================================== */
#marketplace-screen {
    max-width: 1200px;
    margin: 0 auto;
}

.marketplace-header {
    margin-bottom: 24px;
}
.marketplace-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.shop-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.15s ease;
}
.shop-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
.shop-card-icon {
    font-size: 48px;
    margin: 12px 0;
}
.shop-card-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.shop-card-price {
    font-size: 13px;
    font-weight: 800;
    color: #FFA500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================
   GLOBAL TOAST & MODALS
   ========================================================== */
#app-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1F2937;
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.25s ease;
}
#app-toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .main-content {
        margin-left: 0;
        padding: 16px;
    }
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .avatar-editor-layout {
        grid-template-columns: 1fr;
    }
}

