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

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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-secondary: #1e293b;
    --dark-tertiary: #334155;
    --light: #f8fafc;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(16, 185, 129, 0.15) 0px, transparent 50%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--gradient-primary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

.nav-link.active::before {
    transform: translateX(-50%) scaleX(1);
}

.wallet-info {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 10px 18px;
    border-radius: 12px;
    margin: 0 8px;
    backdrop-filter: blur(10px);
}

.wallet-balance {
    color: var(--success);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.user-menu {
    display: flex;
    gap: 8px;
}

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

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

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

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary-light);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

/* Hero */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero p {
    font-size: clamp(16px, 2vw, 22px);
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}

.game-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.game-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
    border-color: var(--primary);
}

.game-card:hover::before {
    opacity: 0.05;
}

.game-card-image {
    width: 100%;
    height: 220px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    position: relative;
    overflow: hidden;
}

.game-card-image::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;
}

.game-card:hover .game-card-image::after {
    left: 100%;
}

.game-card-content {
    padding: 24px;
    position: relative;
    z-index: 1;
}

.game-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.game-card-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    min-height: 44px;
    line-height: 1.5;
}

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

.game-cost {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.3s;
}

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

.modal-content {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    margin: 10% auto;
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 440px;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: 300;
    color: var(--text-secondary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s;
}

.close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.modal-content h2 {
    margin-bottom: 28px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-content input {
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.modal-content input::placeholder {
    color: var(--text-muted);
}

/* Profile */
.profile-header {
    text-align: center;
    padding: 60px 20px 40px;
}

.profile-header h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.profile-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

.profile-content {
    display: grid;
    gap: 28px;
    margin-bottom: 40px;
}

.profile-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.profile-card h2 {
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.info-grid {
    display: grid;
    gap: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.info-item:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--primary);
}

.info-item label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
}

.info-item span {
    color: var(--text-primary);
    font-weight: 600;
}

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

.balance-large {
    margin-bottom: 32px;
}

.balance-label {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.balance-amount {
    display: block;
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

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

.stat-item {
    text-align: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s;
}

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

.stat-value {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-games-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top-game-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s;
}

.top-game-item:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--primary);
    transform: translateX(4px);
}

/* Transactions */
.page-header {
    text-align: center;
    padding: 60px 20px 40px;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 14px 28px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 14px;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.tab-content {
    display: none;
}

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

.transactions-list,
.games-history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.transaction-item,
.game-history-item {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 16px;
    border-left: 4px solid var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.transaction-item:hover,
.game-history-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
}

.transaction-item.negative {
    border-left-color: var(--danger);
}

.transaction-item.positive {
    border-left-color: var(--success);
}

.transaction-info {
    flex: 1;
}

.transaction-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.transaction-details {
    font-size: 14px;
    color: var(--text-secondary);
}

.transaction-amount {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.transaction-amount.negative {
    color: var(--danger);
}

.transaction-amount.positive {
    color: var(--success);
}

.loading {
    text-align: center;
    padding: 60px;
    color: var(--text-secondary);
    font-size: 16px;
}

.access-denied {
    text-align: center;
    padding: 60px 24px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    margin: 24px 0;
}
.access-denied h2 {
    color: var(--danger);
    margin-bottom: 16px;
}
.access-denied p {
    color: var(--text-secondary);
    margin: 8px 0;
}
.access-denied code {
    background: rgba(0,0,0,0.3);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.logged-in-message {
    text-align: center;
    padding: 60px 24px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    margin: 24px 0;
}
.logged-in-message h2 {
    color: var(--primary-light);
    margin-bottom: 16px;
}
.logged-in-message p {
    color: var(--text-secondary);
    margin: 8px 0;
}
.site-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.2) 100%);
    color: #e0e7ff;
    border: 1px solid rgba(99, 102, 241, 0.5);
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}
.play-again-btn {
    display: inline-block;
    padding: 12px 28px;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 2px solid rgba(16, 185, 129, 0.5);
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.25s ease;
}
.play-again-btn:hover {
    background: rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.2);
}
.site-link-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(139, 92, 246, 0.3) 100%);
    border-color: rgba(99, 102, 241, 0.7);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.25);
}
.lang-dropdown {
    position: relative;
}
.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.lang-dropdown-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(99, 102, 241, 0.4);
}
.lang-dropdown .lang-flag {
    font-size: 18px;
    line-height: 1;
}
.lang-dropdown .lang-arrow {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.2s;
}
.lang-dropdown.open .lang-arrow {
    transform: rotate(180deg);
}
.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    padding: 6px;
    background: rgba(30, 41, 59, 0.98);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 100;
}
.lang-dropdown.open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-dropdown-menu li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.15s;
}
.lang-dropdown-menu li:hover {
    background: rgba(99, 102, 241, 0.15);
    color: var(--text-primary);
}
.lang-dropdown-menu li.active {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
}

.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
    padding: 20px;
    border-radius: 12px;
    margin: 24px 0;
    font-weight: 500;
}

.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
    padding: 20px;
    border-radius: 12px;
    margin: 24px 0;
    font-weight: 500;
}

/* Earnings Page */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow-lg);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.stat-value {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 16px 0;
    letter-spacing: -1px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.earnings-history {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.earnings-history h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.earnings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.earnings-item:last-child {
    border-bottom: none;
}

.earnings-item:hover {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    margin: 0 -12px;
    padding: 20px 32px;
}

.earnings-game {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 16px;
}

.earnings-amount {
    font-size: 20px;
    font-weight: 800;
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.earnings-duration {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

.earnings-date {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
}

/* Game Page */
.game-container {
    width: 100%;
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    background: var(--dark);
}

.game-header {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.game-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.balance-display {
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .nav-brand {
        font-size: 20px;
    }
    .nav-brand .nav-logo {
        height: 36px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .lang-dropdown-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .site-link-btn {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero {
        padding: 40px 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .game-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .game-info {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .game-info .btn {
        width: 100%;
    }
    
    .report-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .logged-in-message,
    .access-denied {
        padding: 32px 20px;
    }
    
    .last-game-report {
        padding: 20px 16px;
        margin-top: 16px;
    }
    
    .last-game-report h3 {
        font-size: 1.1rem;
        flex-wrap: wrap;
    }
    
    .lang-dropdown-menu {
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .nav-brand {
        font-size: 18px;
    }
    .nav-brand .nav-logo {
        height: 28px;
    }
    
    .site-link-btn {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    
    .logged-in-message,
    .access-denied {
        padding: 24px 16px;
    }
    
    .access-denied code {
        font-size: 11px;
        word-break: break-all;
    }
    
    .game-report-modal {
        max-width: 100%;
        margin: 16px;
    }
    
    .game-report-overlay {
        padding: 12px;
        align-items: flex-start;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--dark-tertiary);
    border-radius: 5px;
}

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

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

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Oyun raporu - ana sayfa ve oyun sayfası */
.report-section { margin-bottom: 20px; }
.report-section:last-child { margin-bottom: 0; }
.report-section-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: #64748b; margin-bottom: 10px; font-weight: 600; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.report-item { display: flex; flex-direction: column; gap: 2px; }
.report-item.full { grid-column: 1 / -1; }
.report-label { font-size: 0.7rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; }
.report-value { font-size: 0.95rem; color: #e2e8f0; font-weight: 500; }
.report-value.highlight { color: #a78bfa; font-weight: 600; }
.report-value.score { font-size: 1.25rem; color: #34d399; font-weight: 700; }
.report-card { background: rgba(255,255,255,0.03); border-radius: 10px; padding: 14px 16px; margin-top: 8px; }
.report-card .report-value { font-size: 0.9rem; }
.status-badge { display: inline-block; padding: 6px 14px; border-radius: 9999px; font-size: 0.8rem; font-weight: 600; }
.status-badge.active { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.status-badge.completed { background: rgba(99, 102, 241, 0.2); color: #818cf8; }

/* Ana sayfa rapor kartı */
.last-game-report {
    margin-top: 24px;
    background: linear-gradient(145deg, #1e1e2e 0%, #16162a 100%);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
    max-width: 560px;
}
.last-game-report h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.last-game-report .report-status-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
}
.last-game-report .report-content {
    margin-top: 16px;
}
