:root {
    /* ===== COLOR PALETTE ===== */
    /* Primary Background Colors */
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #25253e;
    --bg-card: #2a2a42;
    --bg-elevated: #323252;
    
    /* Text Colors */
    --text-primary: #e8e8f0;
    --text-secondary: #9a9ab5;
    --text-tertiary: #6a6a85;
    --text-disabled: #4a4a60;
    
    /* Accent Colors */
    --accent-primary: #4a9eff;
    --accent-secondary: #6b7fff;
    --accent-hover: #3a8eef;
    --accent-pressed: #2a7edf;
    
    /* Semantic Colors */
    --success-color: #00d68f;
    --success-light: #00ff9d;
    --warning-color: #ffb84d;
    --warning-light: #ffd166;
    --error-color: #ff5757;
    --error-light: #ff6b6b;
    --info-color: #00d4ff;
    
    /* Border Colors */
    --border-color: #3a3a52;
    --border-light: #4a4a62;
    --border-focus: rgba(74, 158, 255, 0.6);
    
    /* ===== GRADIENTS ===== */
    --gradient-primary: linear-gradient(135deg, #4a9eff 0%, #6b7fff 100%);
    --gradient-card: linear-gradient(145deg, #2a2a42 0%, #25253e 100%);
    --gradient-accent: linear-gradient(135deg, #4a9eff 0%, #6b7fff 100%);
    --gradient-hero: linear-gradient(160deg, #0f0f1a 0%, #1a1a2e 50%, #25253e 100%);
    --gradient-success: linear-gradient(135deg, #00d68f 0%, #00ff9d 100%);
    --gradient-warning: linear-gradient(135deg, #ffb84d 0%, #ffd166 100%);
    --gradient-glow: radial-gradient(circle, rgba(74, 158, 255, 0.15) 0%, transparent 70%);
    
    /* ===== SHADOWS ===== */
    --shadow-xs: 0 1px 4px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);  
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);
    --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.8);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.3); /* Daha hafif */

    
    /* Glow Shadows */
    --shadow-glow-sm: 0 0 10px rgba(74, 158, 255, 0.3);
    --shadow-glow-md: 0 0 20px rgba(74, 158, 255, 0.4);
    --shadow-glow-lg: 0 0 30px rgba(74, 158, 255, 0.5);
    
    /* ===== GLASS MORPHISM ===== */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.12);
    
    /* ===== SPACING SCALE ===== */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 20px;
    --space-2xl: 24px;
    --space-3xl: 32px;
    --space-4xl: 40px;
    --space-5xl: 48px;
    
    /* ===== BORDER RADIUS SCALE ===== */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-3xl: 32px;
    --radius-full: 9999px;
    
    /* ===== TYPOGRAPHY ===== */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    
    /* Font Sizes */
    --font-xs: 12px;
    --font-sm: 14px;
    --font-base: 16px;
    --font-lg: 18px;
    --font-xl: 20px;
    --font-2xl: 24px;
    --font-3xl: 30px;
    --font-4xl: 36px;
    --font-5xl: 48px;
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;
    
    /* Letter Spacing */
    --tracking-tight: -0.5px;
    --tracking-normal: 0;
    --tracking-wide: 0.5px;
    
    /* ===== TRANSITIONS ===== */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* ===== Z-INDEX SCALE ===== */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-notification: 800;
    --z-loading: 900;
    --z-top: 1000;
    
    /* ===== SAFE AREA INSETS ===== */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    
    /* ===== BLUR VALUES ===== */
    --blur-sm: 4px;
    --blur-base: 8px;
    --blur-md: 12px;
    --blur-lg: 16px;
    --blur-xl: 20px;
    --blur-2xl: 24px;
    
    /* ===== ANIMATION DURATIONS ===== */
    --duration-75: 75ms;
    --duration-100: 100ms;
    --duration-150: 150ms;
    --duration-200: 200ms;
    --duration-300: 300ms;
    --duration-500: 500ms;
    --duration-700: 700ms;
    --duration-1000: 1000ms;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: inherit;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
}

h1 { font-size: var(--font-5xl); }
h2 { font-size: var(--font-4xl); }
h3 { font-size: var(--font-3xl); }
h4 { font-size: var(--font-2xl); }
h5 { font-size: var(--font-xl); }
h6 { font-size: var(--font-lg); }

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    transition: background var(--transition-base);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

::selection {
    background: var(--accent-primary);
    color: white;
    text-shadow: none;
}

::-moz-selection {
    background: var(--accent-primary);
    color: white;
    text-shadow: none;
}

/* ========================================
   IMPROVED FOCUS STYLES
   ======================================== */

:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════
   LOADING SCREEN — Sinematik 9 saniyelik
═══════════════════════════════════════ */
.loading-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at 50% 40%,
        #0d1b3e 0%,
        #060d1f 55%,
        #000008 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.active {
    opacity: 1;
    visibility: visible;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* ── Logo halkası ── */
.loading-logo-ring {
    position: relative;
    width: 130px;
    height: 130px;
    margin-bottom: 28px;
}

.loading-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: ringRotate 1.8s linear infinite;
}

.ring-outer {
    inset: 0;
    border-top-color: #7c4dff;
    border-right-color: rgba(124, 77, 255, 0.3);
    animation-duration: 1.8s;
}

.ring-inner {
    inset: 14px;
    border-top-color: #00d4ff;
    border-left-color: rgba(0, 212, 255, 0.3);
    animation-direction: reverse;
    animation-duration: 1.3s;
}

@keyframes ringRotate {
    to { transform: rotate(360deg); }
}

.loading-ball-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-ball-icon {
    font-size: 52px;
    background: linear-gradient(135deg, #7c4dff, #b47cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 18px rgba(124, 77, 255, 0.7));
    animation: ballPulse 1.4s ease-in-out infinite;
}

@keyframes ballPulse {
    0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 18px rgba(124,77,255,0.7)); }
    50%       { transform: scale(1.12); filter: drop-shadow(0 0 30px rgba(124,77,255,1)); }
}

/* ── Başlık ── */
.loading-title {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffffff 0%, #b47cff 50%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    animation: titleShimmer 3s ease-in-out infinite;
    background-size: 200% auto;
}

@keyframes titleShimmer {
    0%   { background-position: 0% center; }
    50%  { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* ── İpucu yazısı ── */
.loading-sub {
    font-size: 13px;
    color: rgba(180, 188, 208, 0.75);
    letter-spacing: 0.5px;
    margin-bottom: 22px;
    min-height: 18px;
    transition: opacity 0.4s ease;
}

/* ── Progress bar ── */
.loading-bar {
    width: 220px;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.loading-progress {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    background: linear-gradient(90deg, #7c4dff, #b47cff, #00d4ff);
    background-size: 200% auto;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.loading-progress::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shimmer 1.2s ease-in-out infinite;
}

/* ── Yüzde yazısı ── */
.loading-percent {
    font-size: 12px;
    color: rgba(124, 77, 255, 0.9);
    font-weight: 700;
    letter-spacing: 1px;
}

@keyframes shimmer {
    0%   { left: -100%; }
    100% { left: 100%; }
}


.app-container {
    max-width: 414px;
    margin: 0 auto;
    background: var(--bg-primary);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding-top: var(--safe-area-top);
  padding-bottom: var(--safe-area-bottom);
  padding-left: var(--safe-area-left);
  padding-right: var(--safe-area-right);
  min-height: 100vh;
    overflow: hidden;
}

.header {
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    margin-top: 0px;
    padding-top: calc(10px + var(--safe-area-top));
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px;
}

.currency-display {
    display: flex;
    gap: 12px;
}

.currency-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    padding: 10px 16px;
    border-radius: 25px;
    border: 1px solid var(--glass-border);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.currency-item:hover {
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.2);
    transform: translateY(-2px);
}

.currency-item i {
    color: var(--accent-primary);
    font-size: 16px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.user-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
}

/* Main Content */
.main-content {
    flex: 1;
    padding-bottom: 80px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.page {
    padding: 20px;
    display: none;
    
}

.page.active {
    display: block;
}



/* Page Headers */
.page-header {
    text-align: center;
    margin-bottom: 35px;
}

.page-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -1px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
}

/* HOME PAGE - Premium Design */
.hero-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    margin: -20px -20px 30px -20px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    background: var(--gradient-hero);
    padding: 40px 30px 35px;
    border-radius: 0 0 30px 30px;
    position: relative;
    overflow: hidden;
}

.hero-content::before {
    display: none; /* Gereksiz glow efekti kaldırıldı */
}


.hero-content h1 {
    font-size: 38px;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #4a9eff 0%, #6b7fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: none;
    animation: none; /* Gradient flow animasyonu kaldırıldı */
}

.hero-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-weight: 400;
    position: relative;
}

@keyframes gradientFlow {
    0%, 100% { 
        background-position: 0% center; 
    }
    50% { 
        background-position: 100% center; 
    }
}


.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 18px;
    background: var(--glass-bg);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
}

.stat-item::before {
    display: none; /* Gereksiz animasyon kaldırıldı */
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-3px);
    border-color: rgba(74, 158, 255, 0.4);
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.15);
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 6px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}


.play-button {
    background: var(--gradient-accent);
    border: none;
    color: white;
    padding: 16px 50px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(74, 158, 255, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.play-button::before {
    display: none; /* Gereksiz animasyon kaldırıldı */
}

.play-button:hover::before {
    width: 400px;
    height: 400px;
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(74, 158, 255, 0.4);
}

.play-button i {
    margin-right: 10px;
}

/* Quick Actions - Premium Grid */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.action-card {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.action-card::before {
    display: none; /* Gereksiz animasyon kaldırıldı */
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(74, 158, 255, 0.2);
    border-color: rgba(74, 158, 255, 0.4);
}

.action-card:hover::before {
    opacity: 1;
    animation: cardRotate 3s linear infinite;
}

@keyframes cardRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.action-card i {
    font-size: 30px;
    color: var(--accent-primary);
    margin-bottom: 12px;
    display: block;
    transition: all 0.3s ease;
    position: relative;
}

.action-card:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(74, 158, 255, 0.4));
}



.action-card span {
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

/* GAME PAGE - Enhanced Design */
.game-container {
    max-width: 100%;
    margin: 0 auto;
}

.game-header {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-info span {
    font-weight: 600;
    color: var(--text-secondary);
}

.game-info span span {
    color: var(--accent-primary);
}

.football-field {
    background: linear-gradient(to bottom, #d97706 0%, #92400e 100%);
    border-radius: 25px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    min-height: 400px;
    border: 2px solid #ea580c;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.goal-area {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.basketball-hoop {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.hoop-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
}

.hoop-net-area {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 80px;
    z-index: 1;
    pointer-events: none;
}

@keyframes netSwing {
    0% { transform: translateX(-50%) scaleY(1); }
    30% { transform: translateX(-50%) scaleY(1.15) rotate(2deg); }
    60% { transform: translateX(-50%) scaleY(1.1) rotate(-2deg); }
    100% { transform: translateX(-50%) scaleY(1); }
}

.hoop-net-area.net-animation {
    animation: netSwing 0.8s ease-out;
}

.penalty-area {
    text-align: center;
    position: relative;
    padding-top: 50px;
    border-top: 3px solid rgba(255, 255, 255, 0.2);
}

.ball-container {
    position: relative;
    display: inline-block;
}

.football {
    cursor: pointer;
    transition: transform 0.1s ease;
    display: inline-block;
    width: 45px;
    height: 45px;
    position: relative;
    z-index: 100;
}



.football.through-hoop {
    z-index: 3 !important;
}

.football.inside-hoop {
    z-index: 1 !important;
}

.football.shooting {
    animation: none !important;
    transition: none !important;
}

.football:hover {
    transform: scale(1.1);
}

.penalty-spot {
    width: 20px;
    height: 3px;
    background: white;
    border-radius: 0;
    margin: 20px auto 0;
}

.game-controls {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}



.power-meter label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

.power-bar {
    position: relative;
    width: 100%;
    height: 20px;
    background: rgba(31, 41, 55, 0.6);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.power-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 10px;
    width: 0%;
    transition: width 0.05s linear;
    position: relative;
    overflow: hidden;
}

.power-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s ease-in-out infinite;
}

.power-percentage {
    position: absolute;
    left: 50%;
    top: -25px;
    transform: translateX(-50%);
    font-size: 14px;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
}

.shoot-button {
    width: 100%;
    background: var(--gradient-accent);
    border: none;
    color: white;
    padding: 18px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4);
}

.shoot-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.6);
}

.shoot-button:active:not(:disabled) {
    transform: translateY(0);
}

.shoot-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.shoot-button i {
    margin-right: 10px;
}

/* CONTACT PAGE - Premium Design */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px 24px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.social-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--gradient-accent);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.social-link:hover::before {
    transform: scaleY(1);
}

.social-link:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 229, 255, 0.5);
}

.social-link i:first-child {
    font-size: 26px;
    color: var(--accent-primary);
    margin-right: 16px;
    transition: all 0.3s ease;
}

.social-link:hover i:first-child {
    transform: scale(1.2) rotate(5deg);
}

.social-link span {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
}

.social-link i:last-child {
    color: var(--text-secondary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-link:hover i:last-child {
    transform: translateX(4px);
    color: var(--accent-primary);
}

.contact-info {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.contact-info h3 {
    margin-bottom: 15px;
    color: var(--accent-primary);
    font-size: 20px;
    font-weight: 700;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 12px 24px;
    border-radius: 50px;
    background: rgba(0, 229, 255, 0.1);
}

.contact-email:hover {
    transform: translateY(-2px);
    background: rgba(0, 229, 255, 0.2);
}

/* SETTINGS PAGE - Premium Design */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

.setting-item {
    background: var(--gradient-card);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.setting-item.clickable {
    cursor: pointer;
}

.setting-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 229, 255, 0.5);
}

.setting-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.setting-info i {
    font-size: 22px;
    color: var(--accent-primary);
    width: 28px;
    text-align: center;
}

.setting-info div h3 {
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 700;
}

.setting-info div p {
    color: var(--text-secondary);
    font-size: 13px;
}

.toggle-switch {
    position: relative;
}

.toggle-switch input {
    display: none;
}

.toggle-switch label {
    display: block;
    width: 52px;
    height: 28px;
    background: rgba(31, 41, 55, 0.8);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--glass-border);
}

.toggle-switch label::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + label {
    background: var(--gradient-accent);
    border-color: var(--accent-primary);
}

.toggle-switch input:checked + label::after {
    left: 26px;
}

/* REFERRAL PAGE - Premium Design */
.referral-card {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 25px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.referral-code h3 {
    margin-bottom: 18px;
    color: var(--accent-primary);
    font-size: 18px;
    font-weight: 700;
}

.code-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.code-display:hover {
    border-color: rgba(0, 229, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2);
}

.code-display span {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
}

.copy-btn {
    background: var(--gradient-accent);
    border: none;
    color: white;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.copy-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.4);
}

.referral-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.referral-input {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.referral-input h3 {
    margin-bottom: 18px;
    color: var(--accent-primary);
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.input-group input {
    flex: 1;
    padding: 14px;
    border: 1px solid var(--glass-border);
    background: rgba(31, 41, 55, 0.6);
    color: var(--text-primary);
    border-radius: 12px;
    font-size: 16px;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.submit-btn {
    background: var(--gradient-accent);
    border: none;
    color: white;
    padding: 14px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
}

.submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.4);
}

.input-note {
    color: var(--text-secondary);
    font-size: 12px;
    text-align: center;
}

.referral-rewards {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.referral-rewards h3 {
    margin-bottom: 25px;
    color: var(--accent-primary);
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(55, 65, 81, 0.3);
    transition: all 0.3s ease;
}

.reward-item:last-child {
    border-bottom: none;
}

.reward-item:hover {
    transform: translateX(4px);
}

.reward-item i {
    font-size: 24px;
    color: var(--accent-primary);
    width: 28px;
    text-align: center;
}

.reward-item div {
    flex: 1;
}

.reward-item strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
}

.reward-item span {
    color: var(--text-secondary);
    font-size: 14px;
}

/* LEADERBOARD PAGE - Premium Design */
.leaderboard-tabs {
    display: flex;
    gap: 8px;
    background: rgba(31, 41, 55, 0.6);
    border-radius: 16px;
    padding: 6px;
    margin-top: 15px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 600;
}

.tab-btn.active {
    background: var(--gradient-accent);
    color: white;
    font-weight: 700;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.4);
}

.leaderboard-content {
    margin-top: 20px;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

.leaderboard-item {
    background: var(--gradient-card);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.leaderboard-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 229, 255, 0.5);
}

.rank {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-primary);
    width: 35px;
    text-align: center;
}

.rank.gold {
    color: #ffd166;
    text-shadow: 0 0 10px rgba(255, 209, 102, 0.5);
}

.rank.silver {
    color: #d1d5db;
    text-shadow: 0 0 10px rgba(209, 213, 219, 0.5);
}

.rank.bronze {
    color: #f97316;
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

.player-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.player-name {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
}

.player-score {
    font-size: 20px;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* WITHDRAW PAGE - Premium Design */
.balance-card {
    background: var(--gradient-accent);
    border-radius: 28px;
    padding: 40px 30px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: balanceRotate 15s linear infinite;
}

@keyframes balanceRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.balance-info {
    position: relative;
    z-index: 2;
}

.balance-info h3 {
    margin-bottom: 18px;
    opacity: 0.95;
    font-weight: 600;
    font-size: 16px;
}

.balance-amount {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 10px;
}

.balance-amount small {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 600;
}

.balance-equivalent {
    font-size: 16px;
    opacity: 0.85;
}

.withdraw-methods {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.withdraw-methods h3 {
    margin-bottom: 25px;
    color: var(--accent-primary);
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(55, 65, 81, 0.3);
    transition: all 0.3s ease;
}

.method-item:last-child {
    border-bottom: none;
}

.method-item:hover {
    transform: translateX(4px);
}

.method-item i {
    font-size: 26px;
    color: var(--accent-primary);
    width: 32px;
    text-align: center;
}

.method-item div {
    flex: 1;
}

.method-item h4 {
    margin-bottom: 4px;
    font-weight: 700;
}

.method-item p {
    color: var(--text-secondary);
    font-size: 14px;
}

.method-item .status {
    background: var(--warning-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.withdraw-note {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
}

.withdraw-note i {
    font-size: 22px;
    color: var(--accent-primary);
}

.withdraw-note p {
    color: var(--text-primary);
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.85) 0%, rgba(26, 26, 46, 0.98) 100%);
    border-top: 1px solid rgba(74, 158, 255, 0.15);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 calc(8px + var(--safe-area-bottom));
    backdrop-filter: blur(30px) saturate(180%);
    z-index: 1000;
    box-shadow: 
        0 -4px 20px rgba(0, 0, 0, 0.3),
        0 -1px 0 rgba(74, 158, 255, 0.1) inset;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



.bottom-nav::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(74, 158, 255, 0.4) 50%, 
        transparent 100%);
    opacity: 0.6;
}


.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    min-width: 65px;
    position: relative;
    overflow: hidden;
    
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center,
    rgba(0, 229, 255, 0.15) 0%,
    transparent 70%);
    opacity: 0;
    transition: opacity 0.15s ease;
 }

 .nav-item:hover::before {
    opacity: 1;
    }

    .nav-item:hover {
        background: rgba(0, 229, 255, 0.08);
        transform: translateY(-5px);
        }

        
        .nav-item.active {
            color: var(--accent-primary);
            background: linear-gradient(135deg,
            rgba(0, 229, 255, 0.12) 0%,
            rgba(123, 97, 255, 0.12) 100%);
            }


            .nav-item.active::after {
                content: '';
                position: absolute;
                top: 0;
                left: 50%;
                transform: translateX(-50%);
                width: 40px;
                height: 3px;
                background: var(--gradient-accent);
                border-radius: 0 0 3px 3px;
                box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
                }

                .nav-item.active i {
                    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.8));
                    animation: navIconBounce 0.6s ease;
                    }

                    @keyframes navIconBounce {
                        0%, 100% {
                        transform: scale(1);
                        }
                        50% {
                        transform: scale(1.25);
                        }
                        }

                        .nav-item i {
                            font-size: 22px;
                            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                            }

                            .nav-item span {
                                font-size: 11px;
                                font-weight: 600;
                                transition: all 0.3s ease;
                                }
                                .nav-item:hover i {
                                transform: scale(1.2);
                                }
                                .nav-item:active {
                                transform: translateY(-2px) scale(0.95);
                                }


@keyframes navIconPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(74, 158, 255, 0.8));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 12px rgba(74, 158, 255, 1));
    }
}

.nav-item i {
    font-size: 22px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item:hover i {
    transform: scale(1.15) translateY(-2px);
}

.nav-item span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.nav-item.active span {
    opacity: 1;
    font-weight: 700;
}

.nav-item:active {
    transform: translateY(0) scale(0.95);
}

.nav-item:active::before {
    animation: ripple 0.6s ease-out;
}

/* Modals - Premium Design */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    margin-bottom: 18px;
    color: var(--accent-primary);
    font-size: 22px;
    font-weight: 800;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.custom-modal .modal-content {
    background: var(--gradient-card);
    padding: 30px;
    border-radius: 24px;
    max-width: 90%;
    width: 400px;
}

.account-info {
    margin: 20px 0;
    line-height: 1.8;
}

/* Login Modal - Premium Design */
.login-content {
    max-width: 400px;
}

.login-header {
    margin-bottom: 35px;
}

.app-logo {
    width: 90px;
    height: 90px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 44px;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 229, 255, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.login-header h2 {
    margin-bottom: 12px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
    font-weight: 900;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

.google-login-btn {
    width: 100%;
    background: white;
    color: #1f2937;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
    box-shadow: var(--shadow-md);
}

.google-login-btn:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.google-login-btn i {
    font-size: 22px;
    color: #4285f4;
}

.login-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-secondary);
}

.benefit-item i {
    color: var(--accent-primary);
    font-size: 18px;
    width: 24px;
}

/* Buttons - Premium Design */
.btn-primary {
    background: var(--gradient-accent);
    border: none;
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 229, 255, 0.4);
}

.btn-secondary {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
}

.btn-secondary:hover {
    background: rgba(31, 41, 55, 1);
    transform: translateY(-2px);
}

/* Premium Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--gradient-card);
    border: 1px solid rgba(0, 229, 255, 0.5);
    border-radius: 20px;
    padding: 18px 24px;
    z-index: 10001;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 360px;
    width: 90%;
    backdrop-filter: blur(20px);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    animation: toastPulse 0.5s ease;
}

@keyframes toastPulse {
    0% { transform: translateX(-50%) translateY(0) scale(0.8); }
    50% { transform: translateX(-50%) translateY(0) scale(1.05); }
    100% { transform: translateX(-50%) translateY(0) scale(1); }
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.toast-icon {
    font-size: 26px;
    color: var(--success-color);
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.toast-icon.error {
    color: var(--error-color);
    animation: iconShake 0.5s ease;
}

@keyframes iconShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.toast-icon.warning {
    color: var(--warning-color);
    animation: iconPulse 0.8s ease infinite;
}

@keyframes iconPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.toast-message {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
}

/* Goal/Miss Animations */
.goal-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 56px;
    color: var(--success-color);
    z-index: 10001;
    animation: basketCelebration 2s ease-out forwards;
    pointer-events: none;
    text-shadow: 0 0 30px rgba(0, 255, 157, 0.8);
    font-weight: 800;
}

@keyframes basketCelebration {
    0% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.5) rotate(-15deg); 
    }
    50% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1.4) rotate(5deg); 
    }
    100% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(1) translateY(-80px) rotate(0deg); 
    }
}

.miss-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 42px;
    color: var(--error-color);
    z-index: 10001;
    animation: missCelebration 1.5s ease-out forwards;
    pointer-events: none;
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.8);
    font-weight: 800;
}

@keyframes missCelebration {
    0% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.8) rotate(10deg); 
    }
    50% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1.2) rotate(-5deg); 
    }
    100% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(1) rotate(0deg); 
    }
}



@keyframes zonePulse {
    0% { outline-color: rgba(0, 229, 255, 0.9); transform: scale(1); }
    50% { outline-color: rgba(0, 229, 255, 0.4); transform: scale(1.05); }
    100% { outline-color: rgba(0, 229, 255, 0.9); transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 375px) {
    .page {
        padding: 15px;
    }
    
    .hero-content {
        padding: 40px 25px 35px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-stats {
        gap: 12px;
    }
    
    .stat-item {
        padding: 18px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .currency-display {
        gap: 10px;
    }
    
    .currency-item {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .play-button {
        padding: 16px 50px;
        font-size: 17px;
    }
}

@media (max-height: 667px) {
    .football-field {
        min-height: 350px;
    }
    
    .goal-area {
        height: 150px;
    }
    
    .basketball-hoop {
        width: 120px;
        height: 120px;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid transparent;
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus,
input:focus,
.nav-item:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}



/* YENİ EKLENEN STILLER */

/* Ana Sayfa Günlük Bonus */
.daily-bonus {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

.bonus-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.bonus-header i {
    color: var(--accent-primary);
    font-size: 20px;
}

.bonus-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.step {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: rgba(31, 41, 55, 0.6);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.step.active {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.5);
}

.step span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.step small {
    font-size: 10px;
    color: var(--text-secondary);
}

/* Destek Kartı */
.support-card {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.support-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
}

.support-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.support-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Profil Bölümü */
.profile-section {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.user-avatar.large {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.profile-info {
    flex: 1;
}

.profile-info h3 {
    margin-bottom: 4px;
    font-size: 16px;
}

.profile-info p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Davet Sayfası Hero */
.referral-hero {
    background: var(--gradient-accent);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.referral-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: balanceRotate 10s linear infinite;
}

.referral-badge {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 32px;
}

.referral-hero h3 {
    font-size: 24px;
    margin-bottom: 8px;
    position: relative;
}

.referral-hero p {
    opacity: 0.9;
    position: relative;
}

/* Liderlik Sayfası Top Oyuncular */
.top-players {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    margin: 20px 0;
    padding: 0 10px;
}

.top-player {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    flex: 1;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.top-player.first {
    transform: scale(1.1);
    background: var(--gradient-accent);
    border-color: rgba(0, 229, 255, 0.8);
    order: 2;
    margin-bottom: 10px;
}

.top-player.second {
    order: 1;
}

.top-player.third {
    order: 3;
}

.player-rank {
    font-size: 14px;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.top-player.first .player-rank {
    color: white;
}

.player-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 20px;
}

.top-player.first .player-avatar {
    background: rgba(255, 255, 255, 0.2);
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-name {
    font-size: 12px;
    font-weight: 600;
}

.player-score {
    font-size: 11px;
    color: var(--text-secondary);
}

.top-player.first .player-score {
    color: rgba(255, 255, 255, 0.9);
}

/* Puan Çekme Sayfası İlerleme */
.balance-progress {
    margin-top: 15px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(31, 41, 55, 0.6);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Ödül Seçenekleri */
.withdraw-options {
    margin: 25px 0;
}

.withdraw-options h3 {
    margin-bottom: 15px;
    font-size: 18px;
    text-align: center;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.option-card {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.option-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 229, 255, 0.5);
}

.option-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 20px;
    color: var(--accent-primary);
}

.option-card h4 {
    margin-bottom: 8px;
    font-size: 14px;
}

.option-card p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.option-badge {
    background: var(--warning-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

/* Daha Fazla Kazanç */
.earn-more {
    margin-top: 25px;
}

.earn-more h3 {
    margin-bottom: 15px;
    font-size: 18px;
    text-align: center;
}

.earn-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.earn-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.earn-item:hover {
    transform: translateX(4px);
    border-color: rgba(0, 229, 255, 0.5);
}

.earn-item i {
    font-size: 20px;
    color: var(--accent-primary);
    width: 24px;
}

.earn-item div {
    flex: 1;
}

.earn-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.earn-item span {
    font-size: 12px;
    color: var(--text-secondary);
}

.earn-badge {
    background: var(--gradient-accent);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

/* Animasyonlar */
@keyframes balanceRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Düzenlemeler */
@media (max-width: 375px) {
    .progress-steps {
        flex-direction: column;
        gap: 6px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .top-players {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .top-player {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .top-player.first {
        transform: none;
        order: 1;
        margin-bottom: 0;
    }
    
    .player-info {
        flex: 1;
        text-align: left;
    }
}

.auth-tabs {
    display: flex;
    background: rgba(31, 41, 55, 0.6);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.auth-tab.active {
    background: var(--gradient-accent);
    color: white;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.input-group {
    position: relative;
    margin-bottom: 16px;
}

.input-group input {
    width: 100%;
    padding: 16px 16px 16px 45px;
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent-primary);
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    text-decoration: underline;
}

.full-width {
    width: 100%;
}

/* Ad Modal Styles */
.ad-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.ad-modal.active {
    opacity: 1;
    visibility: visible;
}

.ad-modal-content {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.ad-modal.active .ad-modal-content {
    transform: scale(1);
}

.ad-modal-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: white;
    animation: iconBounce 2s ease-in-out infinite;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.ad-modal-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--accent-primary);
}

.ad-modal-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.ad-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.ad-modal-actions button {
    flex: 1;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ad-modal-btn-yes {
    background: var(--gradient-accent);
    border: none;
    color: white;
}

.ad-modal-btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 229, 255, 0.4);
}

.ad-modal-btn-no {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.ad-modal-btn-no:hover {
    background: rgba(31, 41, 55, 1);
    transform: translateY(-2px);
}

.toast-icon.info {
    color: var(--accent-primary) !important;
}

/* Dil değiştirme butonları */
.language-btn.active {
    background: var(--gradient-accent);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.4);
}

/* MODERN DİL BUTONLARI - Premium Stil */
.language-selector {
    display: flex;
    gap: 8px;
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 6px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.language-btn {
    flex: 1;
    background: transparent;
    border: 2px solid transparent;
    color: var(--text-secondary);
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 80px;
}

.language-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.language-btn:hover::before {
    left: 100%;
}

.language-btn:hover {
    color: var(--text-primary);
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.2);
}

.language-btn.active {
    background: var(--gradient-accent);
    color: white;
    border-color: rgba(0, 229, 255, 0.8);
    transform: scale(1.05);
    box-shadow: 
        0 8px 25px rgba(0, 229, 255, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: languagePulse 2s infinite;
}

.language-btn.active::after {
    content: '✓';
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--success-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 255, 157, 0.5);
    animation: badgeBounce 0.6s ease;
}

@keyframes languagePulse {
    0%, 100% {
        box-shadow: 
            0 8px 25px rgba(0, 229, 255, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    }
    50% {
        box-shadow: 
            0 8px 30px rgba(0, 229, 255, 0.6),
            0 0 0 1px rgba(255, 255, 255, 0.2) inset,
            0 0 15px rgba(0, 229, 255, 0.3);
    }
}

@keyframes badgeBounce {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.2) rotate(10deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Buton içindeki bayrak emojileri */
.language-btn::first-letter {
    font-size: 16px;
    margin-right: 4px;
}

/* Login modal'daki dil butonları için özel stil */
.login-content .language-selector {
    margin-bottom: 25px;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-content .language-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
}

.login-content .language-btn.active {
    background: var(--gradient-accent);
    box-shadow: 
        0 6px 20px rgba(0, 229, 255, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

/* Settings sayfasındaki dil butonları */
.settings-list .language-selector {
    margin-top: 8px;
    background: rgba(31, 41, 55, 0.4);
}

.settings-list .language-btn {
    font-size: 13px;
    padding: 10px 14px;
    min-width: 70px;
}

/* Hover efekti geliştirmesi */
.language-btn:not(.active):hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.5);
}

/* Mobil uyumluluk */
@media (max-width: 375px) {
    .language-btn {
        padding: 10px 12px;
        font-size: 13px;
        min-width: 70px;
    }
    
    .language-btn.active::after {
        width: 18px;
        height: 18px;
        font-size: 10px;
        top: -5px;
        right: -5px;
    }
}

/* Gece modu için ince ayarlar */
@media (prefers-color-scheme: dark) {
    .language-btn:not(.active) {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .language-btn:hover:not(.active) {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Tıklama animasyonu */
.language-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.language-btn.active:active {
    transform: scale(1.02);
}

/* Erişilebilirlik - focus durumu */
.language-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.3);
}

.language-btn.active:focus {
    box-shadow: 
        0 0 0 3px rgba(0, 229, 255, 0.3),
        0 8px 25px rgba(0, 229, 255, 0.4);
}

/* Gradient border efekti (opsiyonel - premium görünüm için) */
.language-btn.premium {
    border: double 2px transparent;
    background-image: 
        linear-gradient(var(--bg-card), var(--bg-card)),
        var(--gradient-accent);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.language-btn.premium.active {
    background-image: var(--gradient-accent);
}

/* REFERANS BUTON STİLLERİ - Premium Desteği */
.submit-btn {
    background: var(--gradient-accent);
    border: none;
    color: white;
    padding: 14px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
}

.submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Buton durumları */
.submit-btn.loading {
    background: linear-gradient(135deg, #7b61ff 0%, #00e5ff 100%);
    animation: buttonLoading 1.5s ease-in-out infinite;
}

.submit-btn.used {
    background: linear-gradient(135deg, #00ff9d 0%, #00cc7a 100%);
    cursor: not-allowed;
}

.submit-btn.success {
    background: linear-gradient(135deg, #00ff9d 0%, #00cc7a 100%);
    animation: buttonSuccess 0.6s ease;
}

.submit-btn.error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    animation: buttonError 0.3s ease;
}

@keyframes buttonLoading {
    0%, 100% {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(123, 97, 255, 0.4);
    }
    50% {
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(123, 97, 255, 0.6);
    }
}

@keyframes buttonSuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes buttonError {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Input alanı çok dilli stil */
#referral-input {
    flex: 1;
    padding: 14px;
    border: 1px solid var(--glass-border);
    background: rgba(31, 41, 55, 0.6);
    color: var(--text-primary);
    border-radius: 12px;
    font-size: 16px;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
}

#referral-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

#referral-input:disabled {
    background: rgba(31, 41, 55, 0.3);
    color: var(--text-secondary);
    cursor: not-allowed;
}

/* Referans kod görüntüleme alanı */
.code-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.code-display:hover {
    border-color: rgba(0, 229, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2);
}

.code-display span {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
}

/* Input group responsive */
.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

@media (max-width: 375px) {
    .input-group {
        flex-direction: column;
    }
    
    .submit-btn {
        min-width: auto;
        padding: 12px 16px;
    }
    
    #referral-input {
        font-size: 14px;
        padding: 12px;
    }
}

/* Buton içindeki ikon animasyonları */
.submit-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

.submit-btn .fa-check {
    transition: transform 0.3s ease;
}

.submit-btn.success .fa-check {
    animation: checkBounce 0.5s ease;
}

@keyframes checkBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Premium Scrollbar */
.main-content::-webkit-scrollbar {
    width: 6px;
}

.main-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.main-content::-webkit-scrollbar-thumb {
    background: var(--gradient-accent);
    border-radius: 10px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Premium Selection */
::selection {
    background: rgba(0, 229, 255, 0.3);
    color: white;
}

/* Premium Focus Effects */
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Premium Hover Effects */
.btn-primary,
.btn-secondary,
.submit-btn,
.copy-btn,
.shoot-button,
.play-button {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-secondary::after,
.submit-btn::after,
.copy-btn::after,
.shoot-button::after,
.play-button::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 ease;
}

.btn-primary:hover::after,
.btn-secondary:hover::after,
.submit-btn:hover::after,
.copy-btn:hover::after,
.shoot-button:hover::after,
.play-button:hover::after {
    left: 100%;
}

/* Premium Background Patterns */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 229, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(123, 97, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 255, 157, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Premium Text Shadows */
.hero-content h1,
.page-header h2,
.balance-amount,
.stat-number,
.player-score {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Premium Border Animations */
.action-card,
.setting-item,
.leaderboard-item,
.social-link {
    position: relative;
}

.action-card::after,
.setting-item::after,
.leaderboard-item::after,
.social-link::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-accent);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-card:hover::after,
.setting-item:hover::after,
.leaderboard-item:hover::after,
.social-link:hover::after {
    opacity: 1;
}

/* Premium Loading States */
.loading-state {
    position: relative;
    overflow: hidden;
}

.loading-state::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: loadingShimmer 1.5s infinite;
}

@keyframes loadingShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Premium Icon Animations */
.fa-basketball-ball,
.fa-trophy,
.fa-users,
.fa-cog,
.fa-home {
    transition: all 0.3s ease;
}

.nav-item:hover .fa-basketball-ball,
.nav-item:hover .fa-trophy,
.nav-item:hover .fa-users,
.nav-item:hover .fa-cog,
.nav-item:hover .fa-home {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6));
}

/* Premium Pulse Effects */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Premium Glass Morphism Enhancements */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.glass-intense {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Premium Gradient Text */
.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Premium Shadow Enhancements */
.shadow-glow {
    box-shadow: 
        0 0 20px rgba(0, 229, 255, 0.3),
        0 0 40px rgba(123, 97, 255, 0.2);
}

.shadow-glow:hover {
    box-shadow: 
        0 0 30px rgba(0, 229, 255, 0.4),
        0 0 60px rgba(123, 97, 255, 0.3);
}

/* Premium Border Gradients */
.border-gradient {
    border: double 2px transparent;
    background-image: 
        linear-gradient(var(--bg-card), var(--bg-card)),
        var(--gradient-accent);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* Premium Focus States */
.focus-glow:focus {
    box-shadow: 
        0 0 0 3px rgba(0, 229, 255, 0.1),
        0 0 20px rgba(0, 229, 255, 0.3);
}

/* Premium Transition Classes */
.transition-all-smooth {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-transform-smooth {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium Hover Lift */
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Premium Scale Hover */
.hover-scale:hover {
    transform: scale(1.05);
}

/* Premium Rotate Hover */
.hover-rotate:hover {
    transform: rotate(5deg);
}

/* Premium Background Animations */
.animate-bg {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Premium Border Animation */
.border-animate {
    position: relative;
    overflow: hidden;
}

.border-animate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
    animation: borderFlow 2s linear infinite;
}

@keyframes borderFlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Premium Text Glow */
.text-glow {
    text-shadow: 0 0 10px currentColor;
}

/* Premium Icon Glow */
.icon-glow {
    filter: drop-shadow(0 0 8px currentColor);
}

/* Premium Button Shine */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-shine:hover::before {
    left: 100%;
}

/* Premium Card Tilt */
.card-tilt {
    transition: transform 0.3s ease;
}

.card-tilt:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* Premium Floating Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Premium Shimmer Effect */
.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Premium Gradient Border */
.gradient-border {
    position: relative;
    background: var(--bg-card);
    border-radius: 20px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-accent);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.gradient-border:hover::before {
    opacity: 1;
}

/* Premium Neon Effect */
.neon {
    text-shadow: 
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 15px currentColor,
        0 0 20px currentColor;
}

/* Premium Glass Reflection */
.glass-reflection::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Premium Depth Effect */
.depth {
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Premium Glow Border */
.glow-border {
    box-shadow: 
        0 0 0 1px rgba(0, 229, 255, 0.3),
        0 0 20px rgba(0, 229, 255, 0.2);
}

.glow-border:hover {
    box-shadow: 
        0 0 0 1px rgba(0, 229, 255, 0.6),
        0 0 30px rgba(0, 229, 255, 0.4);
}

/* Premium Magnetic Button */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.magnetic-btn:hover {
    transform: scale(0.95);
}

/* Premium Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Premium Scroll Snap */
.snap-container {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
}

.snap-item {
    scroll-snap-align: start;
}

/* Premium Backdrop Effects */
.backdrop-blur {
    backdrop-filter: blur(20px);
}

.backdrop-brightness {
    backdrop-filter: brightness(1.2);
}

.backdrop-contrast {
    backdrop-filter: contrast(1.2);
}

/* Premium Gradient Mask */
.gradient-mask {
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* Premium Text Stroke */
.text-stroke {
    -webkit-text-stroke: 1px var(--accent-primary);
    color: transparent;
}

/* Premium Clip Path */
.clip-hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Premium Perspective */
.perspective-1000 {
    perspective: 1000px;
}

.transform-3d {
    transform-style: preserve-3d;
}

/* Premium Filter Effects */
.filter-glow {
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.5));
}

.filter-blur {
    filter: blur(10px);
}

/* Premium Mix Blend */
.blend-multiply {
    mix-blend-mode: multiply;
}

.blend-screen {
    mix-blend-mode: screen;
}

/* Premium CSS Grid */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.grid-auto-fill {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* Premium Flexbox */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-around {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

/* Premium Position Utilities */
.absolute-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.absolute-cover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Premium Z-index Scale */
.z-1 { z-index: 1; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Premium Opacity Scale */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Premium Border Radius Scale */
.rounded-sm { border-radius: 8px; }
.rounded-md { border-radius: 12px; }
.rounded-lg { border-radius: 16px; }
.rounded-xl { border-radius: 20px; }
.rounded-2xl { border-radius: 24px; }
.rounded-full { border-radius: 50%; }

/* Premium Shadow Scale */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Premium Spacing Scale */
.space-xs { gap: 4px; }
.space-sm { gap: 8px; }
.space-md { gap: 12px; }
.space-lg { gap: 16px; }
.space-xl { gap: 20px; }

/* Premium Text Scale */
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-md { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 36px; }

/* Premium Font Weight */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 800; }

/* Premium Line Height */
.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.75; }

/* Premium Letter Spacing */
.tracking-tight { letter-spacing: -0.5px; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.5px; }

/* Premium Text Transform */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

/* Premium Text Decoration */
.underline { text-decoration: underline; }
.line-through { text-decoration: line-through; }
.no-underline { text-decoration: none; }

/* Premium Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.cursor-default { cursor: default; }

/* Premium Pointer Events */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* Premium User Select */
.select-none { user-select: none; }
.select-text { user-select: text; }
.select-all { user-select: all; }

/* Premium Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }
.overflow-scroll { overflow: scroll; }
.overflow-auto { overflow: auto; }

/* Premium Visibility */
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* Premium Display */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Premium Position */
.static { position: static; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Premium Top/Right/Bottom/Left */
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

/* Premium Width/Height */
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-screen { width: 100vw; }
.h-screen { height: 100vh; }

/* Premium Min/Max Width/Height */
.min-w-0 { min-width: 0; }
.min-h-0 { min-height: 0; }
.max-w-full { max-width: 100%; }
.max-h-full { max-height: 100%; }

/* Premium Object Fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.object-fill { object-fit: fill; }

/* Premium Object Position */
.object-center { object-position: center; }
.object-top { object-position: top; }
.object-bottom { object-position: bottom; }
.object-left { object-position: left; }
.object-right { object-position: right; }

/* Premium Background Size */
.bg-cover { background-size: cover; }
.bg-contain { background-size: contain; }
.bg-auto { background-size: auto; }

/* Premium Background Position */
.bg-center { background-position: center; }
.bg-top { background-position: top; }
.bg-bottom { background-position: bottom; }
.bg-left { background-position: left; }
.bg-right { background-position: right; }

/* Premium Background Repeat */
.bg-repeat { background-repeat: repeat; }
.bg-no-repeat { background-repeat: no-repeat; }
.bg-repeat-x { background-repeat: repeat-x; }
.bg-repeat-y { background-repeat: repeat-y; }

/* Premium Background Attachment */
.bg-fixed { background-attachment: fixed; }
.bg-local { background-attachment: local; }
.bg-scroll { background-attachment: scroll; }

/* Premium Border Styles */
.border-solid { border-style: solid; }
.border-dashed { border-style: dashed; }
.border-dotted { border-style: dotted; }
.border-double { border-style: double; }
.border-none { border-style: none; }

/* Premium Border Width */
.border-0 { border-width: 0; }
.border-1 { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-8 { border-width: 8px; }

/* Premium Outline */
.outline-none { outline: none; }
.outline-white { outline: 1px solid white; }
.outline-black { outline: 1px solid black; }

/* Premium Transition Properties */
.transition-none { transition: none; }
.transition-all { transition: all 0.3s ease; }
.transition-colors { transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; }
.transition-opacity { transition: opacity 0.3s ease; }
.transition-transform { transition: transform 0.3s ease; }

/* Premium Transition Duration */
.duration-75 { transition-duration: 75ms; }
.duration-100 { transition-duration: 100ms; }
.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }
.duration-1000 { transition-duration: 1000ms; }

/* Premium Transition Timing */
.ease-linear { transition-timing-function: linear; }
.ease-in { transition-timing-function: cubic-bezier(0.4, 0, 1, 1); }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* Premium Animation */
.animate-spin { animation: spin 1s linear infinite; }
.animate-ping { animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-bounce { animation: bounce 1s infinite; }

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Premium Transform */
.transform { transform: translateX(0) translateY(0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1); }
.transform-gpu { transform: translate3d(0, 0, 0); }

/* Premium Transform Origin */
.origin-center { transform-origin: center; }
.origin-top { transform-origin: top; }
.origin-top-right { transform-origin: top right; }
.origin-right { transform-origin: right; }
.origin-bottom-right { transform-origin: bottom right; }
.origin-bottom { transform-origin: bottom; }
.origin-bottom-left { transform-origin: bottom left; }
.origin-left { transform-origin: left; }
.origin-top-left { transform-origin: top left; }

/* Premium Scale */
.scale-0 { transform: scale(0); }
.scale-50 { transform: scale(0.5); }
.scale-75 { transform: scale(0.75); }
.scale-90 { transform: scale(0.9); }
.scale-95 { transform: scale(0.95); }
.scale-100 { transform: scale(1); }
.scale-105 { transform: scale(1.05); }
.scale-110 { transform: scale(1.1); }
.scale-125 { transform: scale(1.25); }
.scale-150 { transform: scale(1.5); }

/* Premium Rotate */
.rotate-0 { transform: rotate(0deg); }
.rotate-45 { transform: rotate(45deg); }
.rotate-90 { transform: rotate(90deg); }
.rotate-180 { transform: rotate(180deg); }

/* Premium Translate */
.translate-x-0 { transform: translateX(0); }
.translate-y-0 { transform: translateY(0); }
.translate-x-full { transform: translateX(100%); }
.translate-y-full { transform: translateY(100%); }

/* Premium Skew */
.skew-x-0 { transform: skewX(0deg); }
.skew-y-0 { transform: skewY(0deg); }
.skew-x-3 { transform: skewX(3deg); }
.skew-y-3 { transform: skewY(3deg); }
.skew-x-6 { transform: skewX(6deg); }
.skew-y-6 { transform: skewY(6deg); }
.skew-x-12 { transform: skewX(12deg); }
.skew-y-12 { transform: skewY(12deg); }

/* Premium Filter */
.filter { filter: var(--tw-filter); }
.filter-none { filter: none; }

/* Premium Backdrop Filter */
.backdrop-filter { backdrop-filter: var(--tw-backdrop-filter); }
.backdrop-filter-none { backdrop-filter: none; }

/* Premium Blend Mode */
.blend-normal { mix-blend-mode: normal; }
.blend-multiply { mix-blend-mode: multiply; }
.blend-screen { mix-blend-mode: screen; }
.blend-overlay { mix-blend-mode: overlay; }
.blend-darken { mix-blend-mode: darken; }
.blend-lighten { mix-blend-mode: lighten; }
.blend-color-dodge { mix-blend-mode: color-dodge; }
.blend-color-burn { mix-blend-mode: color-burn; }
.blend-hard-light { mix-blend-mode: hard-light; }
.blend-soft-light { mix-blend-mode: soft-light; }
.blend-difference { mix-blend-mode: difference; }
.blend-exclusion { mix-blend-mode: exclusion; }
.blend-hue { mix-blend-mode: hue; }
.blend-saturation { mix-blend-mode: saturation; }
.blend-color { mix-blend-mode: color; }
.blend-luminosity { mix-blend-mode: luminosity; }

/* Premium Isolation */
.isolate { isolation: isolate; }
.isolation-auto { isolation: auto; }

/* Premium Appearance */
.appearance-none { appearance: none; }

/* Premium Columns */
.columns-1 { columns: 1; }
.columns-2 { columns: 2; }
.columns-3 { columns: 3; }

/* Premium Break Before */
.break-before-auto { break-before: auto; }
.break-before-avoid { break-before: avoid; }
.break-before-all { break-before: all; }
.break-before-avoid-page { break-before: avoid-page; }
.break-before-page { break-before: page; }
.break-before-left { break-before: left; }
.break-before-right { break-before: right; }
.break-before-column { break-before: column; }

/* Premium Break After */
.break-after-auto { break-after: auto; }
.break-after-avoid { break-after: avoid; }
.break-after-all { break-after: all; }
.break-after-avoid-page { break-after: avoid-page; }
.break-after-page { break-after: page; }
.break-after-left { break-after: left; }
.break-after-right { break-after: right; }
.break-after-column { break-after: column; }

/* Premium Break Inside */
.break-inside-auto { break-inside: auto; }
.break-inside-avoid { break-inside: avoid; }
.break-inside-avoid-page { break-inside: avoid-page; }
.break-inside-avoid-column { break-inside: avoid-column; }

/* Premium Box Decoration Break */
.decoration-slice { box-decoration-break: slice; }
.decoration-clone { box-decoration-break: clone; }

/* Premium Box Sizing */
.box-border { box-sizing: border-box; }
.box-content { box-sizing: content-box; }

/* Premium Display Box */
.contents { display: contents; }
.list-item { display: list-item; }

/* Premium Float */
.float-right { float: right; }
.float-left { float: left; }
.float-none { float: none; }

/* Premium Clear */
.clear-left { clear: left; }
.clear-right { clear: right; }
.clear-both { clear: both; }
.clear-none { clear: none; }

/* Premium Overscroll Behavior */
.overscroll-auto { overscroll-behavior: auto; }
.overscroll-contain { overscroll-behavior: contain; }
.overscroll-none { overscroll-behavior: none; }

/* Premium Scroll Behavior */
.scroll-auto { scroll-behavior: auto; }
.scroll-smooth { scroll-behavior: smooth; }

/* Premium Touch Action */
.touch-auto { touch-action: auto; }
.touch-none { touch-action: none; }
.touch-pan-x { touch-action: pan-x; }
.touch-pan-y { touch-action: pan-y; }

/* Premium User Select */
.select-none { user-select: none; }
.select-text { user-select: text; }
.select-all { user-select: all; }
.select-auto { user-select: auto; }

/* Premium Resize */
.resize-none { resize: none; }
.resize-y { resize: vertical; }
.resize-x { resize: horizontal; }
.resize { resize: both; }

/* Premium Scroll Snap */
.snap-none { scroll-snap-type: none; }
.snap-x { scroll-snap-type: x mandatory; }
.snap-y { scroll-snap-type: y mandatory; }
.snap-both { scroll-snap-type: both mandatory; }

/* Premium Scroll Snap Align */
.snap-start { scroll-snap-align: start; }
.snap-end { scroll-snap-align: end; }
.snap-center { scroll-snap-align: center; }
.snap-align-none { scroll-snap-align: none; }

/* Premium Scroll Snap Stop */
.snap-normal { scroll-snap-stop: normal; }
.snap-always { scroll-snap-stop: always; }

/* Premium Scroll Margin */
.scroll-m-0 { scroll-margin: 0; }
.scroll-mx-0 { scroll-margin-left: 0; scroll-margin-right: 0; }
.scroll-my-0 { scroll-margin-top: 0; scroll-margin-bottom: 0; }

/* Premium Scroll Padding */
.scroll-p-0 { scroll-padding: 0; }
.scroll-px-0 { scroll-padding-left: 0; scroll-padding-right: 0; }
.scroll-py-0 { scroll-padding-top: 0; scroll-padding-bottom: 0; }

/* Premium Fill */
.fill-current { fill: currentColor; }

/* Premium Stroke */
.stroke-current { stroke: currentColor; }

/* Premium Stroke Width */
.stroke-0 { stroke-width: 0; }
.stroke-1 { stroke-width: 1; }
.stroke-2 { stroke-width: 2; }

/* Premium Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Premium Not Screen Reader */
.not-sr-only {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Premium Focus Within */
.focus-within\:shadow-lg:focus-within {
    box-shadow: var(--shadow-lg);
}

/* Premium Group Hover */
.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

/* Premium Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .dark\:bg-gray-900 {
        background-color: #111827;
    }
}

/* Premium Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .motion-reduce\:transition-none {
        transition: none;
    }
}

/* Premium High Contrast Mode */
@media (prefers-contrast: high) {
    .contrast-more\:border-2 {
        border-width: 2px;
    }
}

/* Premium Print Styles */
@media print {
    .print\:hidden {
        display: none;
    }
}

/* ========================================
   3D GERÇEKÇI BOWLING TASARIMI
   ======================================== */

/* Bowling Pistinin 3D Görünümü */
.bowling-lane {
    background: 
        linear-gradient(180deg, 
            #8B4513 0%,
            #A0522D 10%,
            #CD853F 30%,
            #A0522D 70%,
            #8B4513 100%
        );
    border-radius: 0 0 30px 30px;
    padding: 30px 20px;
    margin-bottom: 20px;
    position: relative;
    min-height: 480px;
    border: none;
    overflow: visible;
    box-shadow: 
        inset 0 15px 40px rgba(0, 0, 0, 0.4),
        0 25px 70px rgba(0, 0, 0, 0.5);
    perspective: 2000px;
    overflow: hidden;
}



.bowling-lane::before,
.bowling-lane::after {
    content: '';
    position: absolute;
    top: 0;
    width: 35px;
    height: 100%;
    background: 
        linear-gradient(90deg, 
            rgba(15, 15, 15, 0.95) 0%,
            rgba(25, 25, 25, 0.85) 50%,
            rgba(15, 15, 15, 0.95) 100%
        );
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.bowling-lane::before {
    left: 0;
    border-radius: 0 0 0 30px;
}

.bowling-lane::after {
    right: 0;
    border-radius: 0 0 30px 0;
}

.lane-marking {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-bottom: 30px solid rgba(255, 215, 0, 0.35);
    z-index: 2;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

.lane-marking:nth-child(1) { 
    top: 12%; 
    border-bottom-color: rgba(255, 215, 0, 0.45);
}
.lane-marking:nth-child(2) { 
    top: 32%; 
    border-bottom-color: rgba(255, 215, 0, 0.35);
}
.lane-marking:nth-child(3) { 
    top: 52%; 
    border-bottom-color: rgba(255, 215, 0, 0.25);
}

.pin-area {
    position: relative;
    height: 200px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5px;
    margin-bottom: 0;
    transform-style: preserve-3d;
    perspective: 1500px;
    transform: translateZ(0);
    overflow: visible;
    z-index: 10;
}

.bowling-pins {
    position: relative;
    pointer-events: none;
    width: 180px; /* 220px → 180px */
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* 20px → 15px */
    transform-style: preserve-3d;
    transform: scale(0.70); /* %15 küçültme */
    overflow: visible;
    z-index: 10;
    top: -45px;
}

.pin-row-1,
.pin-row-2,
.pin-row-3,
.pin-row-4 {
    display: flex;
    justify-content: center;
    gap: 22px; /* 28px → 22px */
    position: relative;
    z-index: 10;
    overflow: visible;
}

/* 3D Gerçekçi Bowling Pinleri - Küçültülmüş */
.bowling-pin {
    width: 28px; /* 32px → 28px */
    height: 60px; /* 70px → 60px */
    position: relative;
    transform-style: preserve-3d;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: opacity 0.3s ease; /* Devrilme animasyonu kaldırıldı */
    transform-origin: center bottom;
    z-index: 10;
    overflow: visible;
}

/* Pin üzerindeki kırmızı şerit */
.bowling-pin::before {
    content: '';
    position: absolute;
    top: 22%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 35%;
    background: 
        linear-gradient(135deg, 
            #ff3333 0%,
            #cc0000 50%,
            #aa0000 100%
        );
    border-radius: 50%;
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

.bowling-pin::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) translateZ(-5px);
    width: 40px;
    height: 10px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 50%, transparent 75%);
    border-radius: 50%;
    z-index: -1;
    transition: all 0.5s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.bowling-pin.fallen::after {
    width: 55px;
    opacity: 0.35;
}


@keyframes pinImpact {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.bowling-pin.impact {
    animation: pinImpact3D 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    filter: brightness(1.25) drop-shadow(0 0 12px rgba(255, 255, 255, 0.6));
}




@keyframes pinFall {
    0% { 
        transform: rotate(0deg) translateX(0) translateY(0) scale(1);
    }
    20% {
        transform: rotate(-10deg) translateY(-8px) scale(1.05);
    }
    40% {
        transform: rotate(20deg) translateY(-3px) scale(1.02);
    }
    100% { 
        transform: rotate(95deg) translateX(25px) translateY(5px) scale(0.9);
    }
}

.bowling-pin:not(.fallen):hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.6);
}


.bowling-ball {
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    width: 35px;
    height: 35px;
    position: relative;
    z-index: 1000 !important;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.7));
    transform-style: preserve-3d;
    transform-origin: center center;
    will-change: transform, opacity;
}

.ball-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 38% 38%, 
            #3a3a50 0%,
            #2a2a40 35%,
            #1a1a30 65%,
            #0a0a15 100%
        );
    box-shadow: 
        inset -18px -18px 35px rgba(0, 0, 0, 0.85),
        inset 18px 18px 35px rgba(120, 120, 180, 0.25),
        0 12px 30px rgba(0, 0, 0, 0.85);
    position: relative;
    transform-style: preserve-3d;
}

.ball-image::before,
.ball-image::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background: 
        radial-gradient(circle, 
            #000000 0%,
            #1a1a1a 50%,
            #0a0a0a 100%
        );
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 
        inset 0 3px 6px rgba(0, 0, 0, 0.95),
        0 1px 3px rgba(255, 255, 255, 0.15);
}

.ball-image::before {
    left: 30%;
}

.ball-image::after {
    right: 30%;
}

.ball-image-center-hole {
    position: absolute;
    width: 9px;
    height: 9px;
    background: 
        radial-gradient(circle, 
            #000000 0%,
            #1a1a1a 50%,
            #0a0a0a 100%
        );
    border-radius: 50%;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        inset 0 3px 6px rgba(0, 0, 0, 0.95),
        0 1px 3px rgba(255, 255, 255, 0.15);
}

/* Top hover efekti */
.bowling-ball:not(.rolling):hover {
    transform: scale(1.15) translateY(-5px);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.85));
}

.bowling-ball:not(.rolling):hover .ball-image {
    box-shadow: 
        inset -15px -15px 30px rgba(0, 0, 0, 0.8),
        inset 15px 15px 30px rgba(120, 120, 180, 0.3),
        0 12px 30px rgba(0, 0, 0, 0.85);
}

.bowling-ball.rolling {
    animation: none !important;
    transition: none !important;
    pointer-events: none;
    will-change: transform, opacity;
    z-index: 9999 !important;  /* Atış sırasında en üstte */

}

.throw-area {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    z-index: 5;
}

/* Foul çizgisi */
.lane-line {
    width: 100%;
    height: 5px;
    background: 
        linear-gradient(90deg, 
            transparent 0%,
            #ff0000 22%,
            #ff0000 78%,
            transparent 100%
        );
    border-radius: 3px;
    box-shadow: 
        0 0 12px rgba(255, 0, 0, 0.6),
        0 3px 6px rgba(0, 0, 0, 0.4);
    margin-top: 12px;
}

/* 3D Lighting efekti */
.pin-area::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 220px;
    background: 
        radial-gradient(ellipse, 
            rgba(255, 255, 220, 0.18) 0%,
            transparent 75%
        );
    pointer-events: none;
    z-index: 10;
}



/* Pist yansıması efekti */
.bowling-lane-reflection {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: 
        linear-gradient(to top, 
            rgba(255, 255, 255, 0.02) 0%,
            transparent 100%
        );
    pointer-events: none;
    z-index: 3;
}

/* Animasyonlu glow efekti */
@keyframes laneGlow {
    0%, 100% {
        box-shadow: 
            inset 0 0 30px rgba(255, 215, 0, 0.1),
            0 0 50px rgba(0, 0, 0, 0.5);
    }
    50% {
        box-shadow: 
            inset 0 0 40px rgba(255, 215, 0, 0.15),
            0 0 60px rgba(0, 0, 0, 0.6);
    }
}

.bowling-lane {
    animation: laneGlow 4s ease-in-out infinite;
}

/* Responsive - küçük ekranlar */
@media (max-width: 375px) {
    .bowling-pins {
        transform: rotateX(8deg) scale(0.75);
    }
    
    .bowling-lane {
        perspective: 1500px;
    }

    .pin-row-1,
    .pin-row-2,
    .pin-row-3,
    .pin-row-4 {
        gap: 25px;
    }
    
    .bowling-pin {
        width: 24px;
        height: 52px;
    }
    
    .bowling-ball {
        width: 48px;
        height: 48px;
        z-index: 1000 !important; 
    }
}

/* Kısa ekranlar için */
@media (max-height: 667px) {
    .bowling-lane {
        min-height: 450px;
    }
    
    .pin-area {
        height: 180px;
    }
}

.bowling-lane {
    perspective: 2000px;
    perspective-origin: center 80%;
}



.strike-animation,
.spare-animation,
.gutter-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 52px;
    font-weight: 900;
    z-index: 10001;
    pointer-events: none;
    text-shadow: 0 0 35px currentColor;
    animation: resultAnimation 2.2s ease-out forwards;
}

.strike-animation {
    color: #00ff9d;
}

.spare-animation {
    color: #00e5ff;
}

.gutter-animation {
    color: #ff6b6b;
}


@keyframes resultAnimation {
    0% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.6) rotate(-18deg); 
    }
    35% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1.35) rotate(6deg); 
    }
    70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.25) rotate(-4deg);
    }
    100% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(1.1) translateY(-110px) rotate(0deg); 
    }
}

/* Power Meter - Animasyonlu */
.power-meter {
    margin-bottom: 20px;
    width: 100%;
}

.power-meter label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
}

.power-bar {
    position: relative;
    width: 100%;
    height: 24px;
    background: rgba(31, 41, 55, 0.7);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.4);
}

.power-fill {
    height: 100%;
    background: linear-gradient(45deg, #00d4ff, #091a7a);
    border-radius: 12px;
    width: 70%;
    transition: all 0.1s linear;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

.power-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.power-percentage {
    position: absolute;
    left: 50%;
    top: -30px;
    transform: translateX(-50%);
    font-size: 16px;
    color: white;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    min-width: 50px;
    text-align: center;
}

/* Eski direction indicator'ı gizle */
.direction-indicator {
    margin-bottom: 20px;
    width: 100%;
    display: none; /* ✅ Bar kaldırıldı, ok topun üstünde */
}

.direction-indicator label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
}

.direction-track {
    position: relative;
    width: 100%;
    height: 50px;
    background: rgba(31, 41, 55, 0.7);
    border-radius: 12px;
    border: 2px solid var(--glass-border);
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.4);
    overflow: visible;
    display: none; /* ✅ Gizlendi */
}

.direction-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%) rotate(180deg);
    font-size: 25px;
    transform: rotateX(180deg);
    color: #00ff9d;
    transition: all 0.1s linear;
    filter: drop-shadow(0 0 10px currentColor);
    animation: arrowPulse 1.5s ease-in-out infinite;
    display: none; /* ✅ Gizlendi */
}

@keyframes arrowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px currentColor);
        transform: translateX(-50%) scale(1);
    }
    50% {
        filter: drop-shadow(0 0 20px currentColor);
        transform: translateX(-50%) scale(1.1);
    }
}

@media (max-width: 375px) {
    .bowling-lane {
        min-height: 480px !important;
        padding: 22px 15px !important;
    }
    
    .bowling-pins {
        width: 160px !important;
        gap: 12px !important;
        transform: scale(0.75) !important;
    }
    
    .pin-row-1,
    .pin-row-2,
    .pin-row-3,
    .pin-row-4 {
        gap: 28px !important;
    }
    
    .bowling-pin {
        width: 26px !important;
        height: 58px !important;
    }
    
    .bowling-ball {
        width: 50px !important;
        height: 50px !important;
        z-index: 1000 !important; 
    }
    
    .pin-area {
        height: 180px !important;
    }
}

@media (max-height: 667px) {
    .bowling-lane {
        min-height: 480px !important;
    }
    
    .pin-area {
        height: 180px !important;
    }
}

.bowling-pin .pin-img {
    width: 280%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: 
        drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6))
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    transform-style: preserve-3d;
}


.bowling-pin.fallen {
    opacity: 0.55;
    pointer-events: none;
    animation-fill-mode: forwards;
    transform-style: preserve-3d;
}


/* Sola devrilme - daha akıcı */
.bowling-pin.fallen.fall-left {
    animation: pinFallLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Sağa devrilme - daha akıcı */
.bowling-pin.fallen.fall-right {
    animation: pinFallRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Geriye devrilme - daha akıcı */
.bowling-pin.fallen.fall-back {
    animation: pinFallBack 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes pinFallLeft {
    0% { 
        transform: rotateZ(0deg) translateX(0) translateY(0) scale(1);
        opacity: 1;
    }
    35% { /* 40'tan 35'e */
        transform: rotateZ(-22deg) translateX(-7px) translateY(2px) scale(0.96);
        opacity: 0.85;
    }
    65% { /* 70'ten 65'e */
        transform: rotateZ(-60deg) translateX(-16px) translateY(7px) scale(0.88);
        opacity: 0.55;
    }
    100% { 
        transform: rotateZ(-88deg) translateX(-23px) translateY(11px) scale(0.82);
        opacity: 0;
    }
}

@keyframes pinFallRight {
    0% { 
        transform: rotateZ(0deg) translateX(0) translateY(0) scale(1);
        opacity: 1;
    }
    35% {
        transform: rotateZ(22deg) translateX(7px) translateY(2px) scale(0.96);
        opacity: 0.85;
    }
    65% {
        transform: rotateZ(60deg) translateX(16px) translateY(7px) scale(0.88);
        opacity: 0.55;
    }
    100% { 
        transform: rotateZ(88deg) translateX(23px) translateY(11px) scale(0.82);
        opacity: 0;
    }
}

@keyframes pinFallBack {
    0% { 
        transform: rotateX(0deg) translateY(0) translateZ(0) scale(1);
        opacity: 1;
    }
    35% {
        transform: rotateX(-28deg) translateY(4px) translateZ(-4px) scale(0.96);
        opacity: 0.85;
    }
    65% {
        transform: rotateX(-58deg) translateY(11px) translateZ(-9px) scale(0.88);
        opacity: 0.55;
    }
    100% { 
        transform: rotateX(-88deg) translateY(17px) translateZ(-14px) scale(0.78);
        opacity: 0;
    }
}

@keyframes pinImpact3D {
    0%, 100% { 
        transform: rotateX(0deg) rotateY(0deg) scale(1) translateZ(0);
    }
    25% {
        transform: rotateX(-4deg) rotateY(-3deg) scale(1.06) translateZ(-3px);
    }
    50% {
        transform: rotateX(3deg) rotateY(4deg) scale(1.1) translateZ(-4px);
    }
    75% {
        transform: rotateX(-2deg) rotateY(-2deg) scale(1.04) translateZ(-2px);
    }
}


/* Responsive - küçük ekranlar */
@media (max-width: 375px) {
    .bowling-pin {
        width: 24px !important;
        height: 52px !important;
    }
    
    .bowling-pin::after {
        width: 28px !important;
        bottom: -6px !important;
    }
    
    .bowling-pin.fallen::after {
        width: 42px !important;
    }
}

/* Kısa ekranlar için */
@media (max-height: 667px) {
    .bowling-pin {
        width: 22px !important;
        height: 48px !important;
    }
}

@media (max-width: 375px) {
    .power-bar {
        height: 20px;
    }
    
    .power-percentage {
        font-size: 14px;
        top: -26px;
    }
    
    .direction-arrow {
        font-size: 28px;
    }
    
    .shoot-button {
        padding: 16px;
        font-size: 16px;
    }
}

@keyframes pinShake {
    0%, 100% { transform: translateX(0) scale(1); }
    25% { transform: translateX(-3px) scale(1.05); }
    75% { transform: translateX(3px) scale(1.05); }
}

.bowling-ball-container {
    position: relative;
    display: inline-block;
}

#direction-arrow-ball {
    position: absolute;
    left: 50%;
    top: -35px;
    transform: translateX(-50%);
    font-size: 24px;
    transition: all 0.1s linear;
    filter: drop-shadow(0 0 10px currentColor);
    pointer-events: none;
    z-index: 999;
    animation: arrowPulse 1.5s ease-in-out infinite;
}

#direction-arrow-ball i {
    transform: rotate(0deg);
}


.input-group input {
    width: 100%;
    padding: 16px 16px 16px 45px;
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
    text-transform: none; /* ✅ Büyük harf zorlamasını kaldır */
}

.input-group input::placeholder {
    color: var(--text-secondary);
    text-transform: none; /* ✅ Placeholder'da da kaldır */
}

/* Referral input için özel ayar */
#referral-input {
    flex: 1;
    padding: 14px;
    border: 1px solid var(--glass-border);
    background: rgba(31, 41, 55, 0.6);
    color: var(--text-primary);
    border-radius: 12px;
    font-size: 16px;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase; /* ✅ Sadece referral kodu büyük harf */
    font-weight: 600;
    transition: all 0.3s ease;
}


.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-2xl);
    font-size: var(--font-base);
    font-weight: var(--font-bold);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    user-select: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-md);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--blur-base));
}

.btn-secondary:hover:not(:disabled) {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

/* ========================================
   IMPROVED ANIMATIONS
   ======================================== */



@keyframes fadeOut {
    from { 
        opacity: 1; 
        transform: translateY(0); 
    }
    to { 
        opacity: 0; 
        transform: translateY(20px); 
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .no-print {
        display: none !important;
    }
}


.games-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game-card {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--gradient-accent);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.game-card:hover::before {
    transform: scaleY(1);
}

.game-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 229, 255, 0.5);
}

.game-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.3);
    transition: all 0.3s ease;
}

.game-card:hover .game-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
}

.game-info {
    flex: 1;
}

.game-info h3 {
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.game-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.game-arrow {
    color: var(--text-secondary);
    font-size: 18px;
    transition: all 0.3s ease;
}

.game-card:hover .game-arrow {
    transform: translateX(4px);
    color: var(--accent-primary);
}

@media (max-width: 375px) {
    .game-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .game-info h3 {
        font-size: 15px;
    }
    
    .game-info p {
        font-size: 12px;
    }
}


@keyframes ripple {
    0% {
        opacity: 1;
        transform: scale(0);
    }
    100% {
        opacity: 0;
        transform: scale(2.5);
    }
}

/* Dark mode için ek optimizasyon */
@media (prefers-color-scheme: dark) {
    .bottom-nav {
        background: linear-gradient(180deg, 
            rgba(15, 15, 26, 0.9) 0%, 
            rgba(15, 15, 26, 0.98) 100%);
        border-top-color: rgba(74, 158, 255, 0.2);
    }
}

/* Tablet ve büyük ekranlar için */
@media (min-width: 768px) {
    .bottom-nav {
        max-width: 480px;
        padding: 12px 0 calc(12px + var(--safe-area-bottom));
    }
    
    .nav-item {
        padding: 12px 20px;
        min-width: 72px;
    }
    
    .nav-item i {
        font-size: 24px;
    }
    
    .nav-item span {
        font-size: 12px;
    }
}


.bowling-ball {
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1000 !important;
    transform: translate3d(0, 0, 0);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.7));
    transform-style: preserve-3d;
    transform-origin: center center;
    will-change: transform, opacity;
}

.ball-image-new {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Eski .ball-image, .ball-image::before, .ball-image::after ve .ball-image-center-hole stillerini SİL */
/* Artık gerekli değil çünkü gerçek resim kullanıyoruz */

/* Top hover efekti */
.bowling-ball:not(.rolling):hover {
    transform: scale(1.15) translateY(-5px);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.85));
}

.bowling-ball:not(.rolling):hover .ball-image-new {
    transform: rotate(15deg);
}

.bowling-ball.rolling {
    animation: none !important;
    transition: none !important;
    pointer-events: none;
    will-change: transform, opacity;
    z-index: 9999 !important;
}

/* Mobile responsive */
@media (max-width: 375px) {
    .bowling-ball {
        width: 48px;
        height: 48px;
        z-index: 1000 !important; 
    }
}

@media (max-height: 667px) {
    .bowling-ball {
        width: 50px;
        height: 50px;
    }
}

.glass-bg, .backdrop-blur {
    backdrop-filter: none; /* veya blur(5px) - daha az */
}


/* Tüm transition'ları devre dışı bırak mobile'da */
@media (hover: none) and (pointer: coarse) {
    * {
        transition-duration: 0.1s !important;
        animation-duration: 0.3s !important;
    }
    
    .backdrop-blur, .backdrop-filter {
        backdrop-filter: none !important;
    }
    
    .shadow-xl, .shadow-2xl {
        box-shadow: none !important;
    }
}

#scene {
    position: relative;
    transform: translateZ(0);
  }

  .game-object {
    position: absolute;
    transform: translateZ(0);
  }
  
