@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800;900&family=Teko:wght@500;700&display=swap');

        /* ═══════════════════════════════════════════════════════
           FREERIDER — OLED Siyah + Marka Mavi Renk Sistemi v4
           ═══════════════════════════════════════════════════════ */
        :root {
            /* 1. Zemin ve Paneller */
            --bg-base:    #000000;
            --bg-surface: #0a0a0c;
            --bg-glass:   rgba(15, 23, 42, 0.6);

            /* 2. Marka Mavisi (Primary Blue) */
            --blue-primary: #3b82f6;
            --blue-hover:   #2563eb;
            --blue-glow:    rgba(59, 130, 246, 0.4);

            /* 3. Metinler ve Çizgiler */
            --text-primary:   #ffffff;
            --text-secondary: #94a3b8;
            --border-color:   rgba(59, 130, 246, 0.15);
        }

        body { font-family: 'Outfit', sans-serif; background-color: var(--bg-base); margin: 0; padding: env(safe-area-inset-top) 0 0 0; overscroll-behavior: none; color: var(--text-primary); touch-action: manipulation; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
        
        /* 60 FPS Performance Optimizations */
        * { -webkit-tap-highlight-color: transparent; }
        .gpu-accelerated, .leaflet-container, [id$="-modal"], [id$="-screen"], .feed-container, .glass-panel {
            will-change: transform, opacity;
            transform: translateZ(0);
            backface-visibility: hidden;
            perspective: 1000px;
        }
        .overflow-y-auto {
            -webkit-overflow-scrolling: touch;
            overscroll-behavior-y: contain;
        }

        .teko-font { font-family: 'Teko', sans-serif; text-transform: uppercase; }
        #map { margin-bottom: 0 !important; height: 100% !important; width: 100% !important; z-index: 10; touch-action: none; }
        ::-webkit-scrollbar { width: 0px; background: transparent; }
        .bg-glass { background: var(--bg-glass); border: 1px solid var(--border-color); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); }
        .bg-darker { background-color: var(--bg-surface); }
        
        /* Safari/iOS yerleşik gri Play butonunu gizle */
        video::-webkit-media-controls { display: none !important; }
        video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
        
        .leaflet-control-layers { margin-top: 70px !important; background: var(--bg-glass) !important; color: white !important; border: 1px solid var(--border-color) !important; border-radius: 8px !important;  font-size: 10px !important; padding: 2px !important; }
        .leaflet-control-layers-toggle { width: 30px !important; height: 30px !important; background-size: 18px 18px !important; }
        .leaflet-control-layers-base label { margin-bottom: 2px !important; padding: 2px !important; cursor: pointer; }
        .leaflet-control-geocoder { margin-top: 15px !important; }
        
        /* Premium Animasyonlar & Efektler */
        @keyframes slideUpFade { 0% { opacity: 0; transform: translateY(40px) scale(0.97); } 60% { opacity: 1; } 100% { opacity: 1; transform: translateY(0) scale(1); } }
        @keyframes confettiFall { 0% { transform: translateY(-20px) rotate(0deg); opacity:1; } 100% { transform: translateY(110vh) rotate(720deg); opacity:0; } }
        @keyframes slideDownFade { 0% { opacity: 0; transform: translateY(-20px); } 100% { opacity: 1; transform: translateY(0); } }
        @keyframes scaleInFade { 0% { opacity: 0; transform: scale(0.90); } 70% { transform: scale(1.02); } 100% { opacity: 1; transform: scale(1); } }
        @keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
        @keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
        @keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 8px rgba(59,130,246,0.5); } 50% { box-shadow: 0 0 22px rgba(59,130,246,0.9); } }
        @keyframes onlinePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); transform: scale(1); } 50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); transform: scale(1.1); } }
        @keyframes slideInRight { 0% { opacity: 0; transform: translateX(60px); } 100% { opacity: 1; transform: translateX(0); } }
        @keyframes slideInLeft { 0% { opacity: 0; transform: translateX(-60px); } 100% { opacity: 1; transform: translateX(0); } }
        @keyframes tabSwitch { 0% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: translateY(0); } }
        @keyframes notifBounce { 0%,100%{transform:scale(1)} 30%{transform:scale(1.25)} 60%{transform:scale(0.9)} }
        @keyframes ripple { 0% { transform: scale(0); opacity: 0.6; } 100% { transform: scale(4); opacity: 0; } }

        /* ── AI Moderatör & Moderation UI ── */
        @keyframes shake { 0%,100%{transform:translateX(0)} 10%,30%,50%,70%,90%{transform:translateX(-4px)} 20%,40%,60%,80%{transform:translateX(4px)} }
        @keyframes fadeInUp { 0%{opacity:0;transform:translateY(16px)} 100%{opacity:1;transform:translateY(0)} }
        @keyframes slideUp { 0%{opacity:0;transform:translateY(40px)} 100%{opacity:1;transform:translateY(0)} }
        @keyframes glowPulseRed { 0%,100%{box-shadow:0 0 12px rgba(239,68,68,0.3)} 50%{box-shadow:0 0 24px rgba(239,68,68,0.6)} }
        @keyframes toastSlideIn { 0%{opacity:0;transform:translateX(-50%) translateY(20px)} 100%{opacity:1;transform:translateX(-50%) translateY(0)} }
        @keyframes toastSlideOut { 0%{opacity:1;transform:translateX(-50%) translateY(0)} 100%{opacity:0;transform:translateX(-50%) translateY(20px)} }
        @keyframes skeletonPulse { 0%{opacity:0.4} 50%{opacity:0.8} 100%{opacity:0.4} }
        @keyframes premiumGlow { 0%,100%{box-shadow:0 0 20px rgba(234,179,8,0.3)} 50%{box-shadow:0 0 40px rgba(234,179,8,0.6)} }

        .ai-moderator-msg {
            background: linear-gradient(135deg, #dc2626, #991b1b) !important;
            border-left: 4px solid #ef4444 !important;
            border-color: #ef4444 !important;
            box-shadow: 0 0 20px rgba(239,68,68,0.3);
            animation: shake 0.5s ease-in-out, fadeInUp 0.4s ease-out, glowPulseRed 2s ease-in-out infinite;
            color: #fef2f2 !important;
        }
        /* Flagged mesaj: blur + overlay (flag_count < 2) */
        .msg-flagged {
            filter: blur(5px);
            opacity: 0.6;
            position: relative;
            transition: filter 0.3s, opacity 0.3s;
        }
        .msg-flagged-overlay {
            display: block; width: 100%; margin-bottom: 4px;
        }
        .msg-flagged-overlay span {
            font-size: 9px; font-weight: 800; color: #fca5a5;
            text-transform: uppercase; letter-spacing: 1px;
            padding: 4px 8px; border-radius: 6px;
            background: rgba(127,29,29,0.8); border: 1px solid rgba(239,68,68,0.4);
            display: inline-block;
        }
        /* Collapsed mesaj: flag_count >= 2, tıklanabilir */
        .msg-collapsed-wrap { cursor: pointer; }
        .msg-collapsed-bar {
            display: flex; align-items: center; gap: 8px;
            padding: 8px 14px; border-radius: 12px;
            background: linear-gradient(135deg, rgba(127,29,29,0.4), rgba(0,0,0,0.6));
            border: 1px solid rgba(239,68,68,0.3);
            font-size: 11px; font-weight: 700; color: #fca5a5;
            letter-spacing: 0.5px;
        }
        .msg-collapsed-bar:hover { background: rgba(127,29,29,0.6); }
        .msg-collapsed-content { display: none; margin-top: 6px; }
        .msg-collapsed-content.show { display: block; filter: blur(2px); opacity: 0.5; }
        /* Notification popup */
        .notif-popup-overlay {
            position: fixed; inset: 0; z-index: 99999;
            background: rgba(0,0,0,0.6); 
            display: flex; align-items: center; justify-content: center;
            animation: fadeIn 0.3s ease-out;
        }
        .notif-popup-card {
            background: linear-gradient(145deg, rgba(10,10,12,0.97), rgba(0,0,0,0.99));
            border: 1px solid rgba(59,130,246,0.3);
            border-radius: 20px; padding: 28px 24px;
            max-width: 340px; width: 90%; position: relative;
            box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 40px rgba(59,130,246,0.15);
            animation: slideUp 0.4s cubic-bezier(0.16,1,0.3,1);
        }
        @keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        .skeleton-loader {
            background: linear-gradient(90deg, #0a0a0c 0%, #1a1a20 50%, #0a0a0c 100%);
            background-size: 200% 100%;
            animation: skeletonPulse 1.5s ease-in-out infinite;
            border-radius: 12px;
        }
        .premium-popup-overlay {
            position: fixed; inset: 0; z-index: 999999;
            background: rgba(0,0,0,0.7); 
            display: flex; align-items: center; justify-content: center;
            padding: 16px;
        }
        .premium-popup-card {
            background: linear-gradient(145deg, var(--bg-surface), var(--bg-base));
            border: 1px solid rgba(234,179,8,0.3);
            border-radius: 20px; max-width: 400px; width: 100%;
            padding: 32px 24px; text-align: center;
            animation: slideUp 0.5s cubic-bezier(0.16,1,0.3,1) both;
            box-shadow: 0 20px 60px rgba(0,0,0,0.6);
        }

        /* .slide-up-anim ve .scale-in-anim — alt satırlardaki (683-684) tanımlar tarafından override edilir */
        .slide-down-anim { animation: slideDownFade 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; }
        .fade-in-anim { animation: fadeIn 0.3s ease both; }
        .slide-in-right { animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; }
        .slide-in-left { animation: slideInLeft 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; }
        .tab-switch-anim { animation: tabSwitch 0.3s cubic-bezier(0.16, 1, 0.3, 1) both; }

        /* .btn-premium-hover tanımı — alttaki (687) enhanced versiyon override eder */
        /* .glass-panel tanımı — alttaki (559) enhanced versiyon override eder */
        
        /* Admin Panel Tab Styles */
        .admin-tab-btn { color: var(--text-secondary); }
        .active-admin-tab { background: rgba(59,130,246,0.15); color: #bae6fd; border: 1px solid rgba(59,130,246,0.35); }
        .ua-tab-btn { color: var(--text-secondary); }
        .ua-active-tab { background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border-color); }

        /* Enhanced animations */
        @keyframes adminPulse { 0%,100%{box-shadow:0 0 15px rgba(59,130,246,0.3)} 50%{box-shadow:0 0 30px rgba(59,130,246,0.7)} }
        @keyframes logEntry { 0%{opacity:0;transform:translateX(-12px)} 100%{opacity:1;transform:translateX(0)} }
        @keyframes countUp { 0%{opacity:0;transform:translateY(8px)scale(0.9)} 100%{opacity:1;transform:translateY(0)scale(1)} }
        .admin-card-enter { animation: logEntry 0.3s ease both; }
        .count-up-anim { animation: countUp 0.4s cubic-bezier(0.34,1.56,0.64,1) both; }

        /* Scrollbar for admin panel */
        #admin-panel ::-webkit-scrollbar { width: 3px; }
        #admin-panel ::-webkit-scrollbar-track { background: transparent; }
        #admin-panel ::-webkit-scrollbar-thumb { background: rgba(59,130,246,0.4); border-radius: 4px; }

        /* Ban badge */
        .ban-reason-badge { background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.4); color: #93c5fd; font-size: 9px; font-weight: 800; padding: 2px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.05em; }

        /* Log action colors */
        .log-ban { border-left: 3px solid var(--blue-primary); }
        .log-delete { border-left: 3px solid #f97316; }
        .log-assign { border-left: 3px solid #22c55e; }
        .log-revoke { border-left: 3px solid #eab308; }
        .log-notify { border-left: 3px solid var(--blue-primary); }
        .log-default { border-left: 3px solid var(--text-secondary); }

        /* Çevrim içi göstergesi */
        .online-dot { width: 10px; height: 10px; background: #22c55e; border-radius: 50%; border: 2px solid #09090b; animation: onlinePulse 2s infinite; display: inline-block; flex-shrink: 0; }
        .online-dot-sm { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; border: 1.5px solid #09090b; animation: onlinePulse 2s infinite; display: inline-block; flex-shrink: 0; }
        .recent-dot { width: 8px; height: 8px; background: #eab308; border-radius: 50%; border: 1.5px solid #09090b; display: inline-block; flex-shrink: 0; }
        .offline-dot { width: 8px; height: 8px; background: #52525b; border-radius: 50%; border: 1.5px solid #09090b; display: inline-block; flex-shrink: 0; }
        .online-label { color: #22c55e; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
        .recent-label { color: #eab308; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
        
        @keyframes rainbow-text { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
        /* ── Rainbow border: sadece border-color degistir, box-shadow yok ── */
        @keyframes rainbow-shadow {
            0%   { border-color: #ff4466; }
            20%  { border-color: #ff8800; }
            40%  { border-color: #eab308; }
            60%  { border-color: #22c55e; }
            80%  { border-color: #38bdf8; }
            100% { border-color: #ff4466; }
        }
        /* Alev efekti — sadece border-color + hafif brightness */
        @keyframes fire-border {
            0%,100% { border-color: #c03900; }
            50%     { border-color: #f06000; }
        }
        @keyframes ice-border {
            0%,100% { border-color: #4488bb; }
            50%     { border-color: #66aadd; }
        }
        @keyframes fire-flicker { 0%,100%{opacity:1} 50%{opacity:0.88} }
        @keyframes ice-shimmer  { 0%,100%{opacity:1} 50%{opacity:0.9} }
        @keyframes particle-rise { 0%{transform:translateY(0) translateX(0) scale(1);opacity:0.9} 100%{transform:translateY(-60px) translateX(var(--tx)) scale(0);opacity:0} }
        @keyframes particle-float { 0%{transform:translateY(0) translateX(0) scale(0.8);opacity:0.7} 100%{transform:translateY(40px) translateX(var(--tx)) scale(0.2);opacity:0} }

        .effect-fire {
            animation: fire-border 2s ease-in-out infinite, fire-flicker 2.5s ease-in-out infinite !important;
            border-width: 3px !important;
        }
        .effect-ice {
            animation: ice-border 2.5s ease-in-out infinite, ice-shimmer 3s ease-in-out infinite !important;
            border-width: 3px !important;
        }

        /* Parcacik container */
        .avatar-particle-wrap { position: relative; display: inline-block; }
        .particle-canvas { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); width: 120px; height: 80px; pointer-events: none; z-index: 50; }

        /* ── Premium metin renkleri — text-shadow kaldirildi ── */
        .text-prem-rainbow { background: linear-gradient(90deg, #ff0055, #ffaa00, #55ff00, #00eeff, #aa00ff, #ff0055); background-size: 200% auto; color: transparent; -webkit-background-clip: text; background-clip: text; animation: rainbow-text 3s linear infinite; font-weight: 900 !important; }
        .text-prem-gold  { color: #fbbf24 !important; font-weight: 900 !important; }
        .text-prem-blue  { color: #3b82f6 !important; font-weight: 900 !important; }
        .text-prem-green { color: #22c55e !important; font-weight: 900 !important; }
        .text-prem-pink  { color: #ec4899 !important; font-weight: 900 !important; }

        /* ── Premium avatar border — box-shadow kaldirildi, outline kullanildi ── */
        .border-prem-rainbow { animation: rainbow-shadow 2.5s linear infinite; border-width: 3px; border-style: solid; }
        .border-prem-gold  { border: 3px solid #fbbf24; outline: 1px solid rgba(251,191,36,0.3); }
        .border-prem-blue  { border: 3px solid #3b82f6; outline: 1px solid rgba(59,130,246,0.3); }
        .border-prem-green { border: 3px solid #22c55e; outline: 1px solid rgba(34,197,94,0.3); }
        .border-prem-pink  { border: 3px solid #ec4899; outline: 1px solid rgba(236,72,153,0.3); }

        /* ── Deluxe metin renkleri — text-shadow kaldirildi ── */
        .text-dlx-blue   { background: linear-gradient(45deg, #60a5fa, #bfdbfe, #3b82f6); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800 !important; }
        .text-dlx-yellow { background: linear-gradient(45deg, #fde047, #fef08a, #eab308); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800 !important; }
        .text-dlx-pink   { background: linear-gradient(45deg, #f472b6, #fbcfe8, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800 !important; }
        .text-dlx-green  { background: linear-gradient(45deg, #4ade80, #bbf7d0, #22c55e); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800 !important; }

        /* ── Deluxe border — box-shadow yerine outline ── */
        .border-dlx-blue   { border: 2px solid #3b82f6; outline: 1px solid rgba(59,130,246,0.25); }
        .border-dlx-yellow { border: 2px solid #eab308; outline: 1px solid rgba(234,179,8,0.25); }
        .border-dlx-pink   { border: 2px solid #ec4899; outline: 1px solid rgba(236,72,153,0.25); }
        .border-dlx-green  { border: 2px solid #22c55e; outline: 1px solid rgba(34,197,94,0.25); }
        
        .tab-btn { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
        .market-img-scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; }
        .market-img-scroll img { scroll-snap-align: center; max-width: 100%; border-radius: 8px; }
        .horizontal-scroll-container { display: flex; overflow-x: auto; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; }
        .horizontal-scroll-container::-webkit-scrollbar { display: none; }
        .custom-scrollbar::-webkit-scrollbar { width: 4px; }
        .custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(59,130,246,0.35); border-radius: 4px; }
        .map-add-mode { cursor: crosshair !important; }
        .progress-bar-bg { background-color: var(--bg-surface); border-radius: 9999px; height: 8px; width: 100%; overflow: hidden; margin-top: 8px; }
        .progress-bar-fill { background: linear-gradient(90deg, var(--blue-primary), var(--blue-hover)); height: 100%; transition: width 0.5s ease; }
        
        /* Safe area padding for bottom nav */
        .pb-safe { padding-bottom: env(safe-area-inset-bottom, 8px); }
        #bottom-nav { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
        
        /* Mobile tap highlight fix */
        * { -webkit-tap-highlight-color: transparent; }
        
        /* Premium input focus */
        input:focus, textarea:focus, select:focus { outline: none; }
        
        /* Smooth modal backdrop */
        .modal-backdrop { background: rgba(0,0,0,0.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
        
        /* Seviye atlaması kutlama */
        @keyframes levelUpPulse {
            0%   { transform: scale(0.5) rotate(-5deg); opacity: 0; }
            40%  { transform: scale(1.15) rotate(3deg); opacity: 1; }
            70%  { transform: scale(0.95) rotate(-1deg); }
            100% { transform: scale(1) rotate(0deg); opacity: 1; }
        }
        @keyframes levelUpFloat {
            0%   { transform: translateY(0) scale(1); opacity: 1; }
            100% { transform: translateY(-80px) scale(0.5); opacity: 0; }
        }
        @keyframes storyRing {
            0%   { box-shadow: 0 0 0 3px #0ea5e9, 0 0 0 5px #0ea5e940; }
            50%  { box-shadow: 0 0 0 3px #f59e0b, 0 0 0 6px #f59e0b50; }
            100% { box-shadow: 0 0 0 3px #0ea5e9, 0 0 0 5px #0ea5e940; }
        }
        @keyframes igStoryRingSpin {
            0%   { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        .level-up-anim { animation: levelUpPulse 0.7s cubic-bezier(0.34,1.56,0.64,1) both; }
        /* Instagram gradient story ring */
        .story-ring {
            border-radius: 50%;
            position: relative;
            background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) border-box;
            border: 2.5px solid transparent;
            background-clip: padding-box;
            box-shadow: 0 0 0 2.5px #f09433, 0 0 12px rgba(220,39,67,0.5);
            animation: storyRing 2.5s ease-in-out infinite;
        }
        .story-seen { opacity: 0.5; filter: grayscale(60%); }

        /* ── REELS GRID VIEW ── */
        #reels-feed.grid-mode {
            display: grid !important;
            grid-template-columns: repeat(4, 1fr);
            gap: 2px;
            overflow-y: auto;
            scroll-snap-type: none;
            height: 100%;
            align-content: start;
        }
        #reels-feed.grid-mode > div {
            height: 160px !important;
            cursor: pointer;
            scroll-snap-align: unset !important;
            position: relative;
        }
        #reels-feed.grid-mode > div > video,
        #reels-feed.grid-mode > div > img {
            object-fit: cover !important;
            width: 100% !important;
            height: 100% !important;
        }
        #reels-feed.grid-mode > div > .absolute { display: none !important; }
        #reels-feed.grid-mode > div > video { pointer-events: none; }
        .reel-fullscreen-overlay {
            position: fixed;
            inset: 0;
            z-index: 100;
            background: #000;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        /* Play/Pause flash icon */
        .reel-play-flash {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            pointer-events: none;
            z-index: 20;
            opacity: 0;
            transition: opacity 0.15s;
        }
        .reel-play-flash.show {
            opacity: 1;
            animation: flashFade 0.5s ease-out forwards;
        }
        @keyframes flashFade {
            0%   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
            60%  { opacity: 0.7; transform: translate(-50%,-50%) scale(1.15); }
            100% { opacity: 0; transform: translate(-50%,-50%) scale(0.9); }
        }

        /* Özel tema rengi */
        .theme-red    { --accent: #dc2626; --accent-light: #ef4444; }
        .theme-blue   { --accent: #2563eb; --accent-light: #3b82f6; }
        .theme-green  { --accent: #16a34a; --accent-light: #22c55e; }
        .theme-purple { --accent: #7c3aed; --accent-light: #8b5cf6; }
        .theme-orange { --accent: #ea580c; --accent-light: #f97316; }
        .theme-pink   { --accent: #db2777; --accent-light: #ec4899; }
        body { --accent: #0088ff; --accent-light: #00ccff; }

        @keyframes confettiFall {
            0%   { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
            100% { transform: translateY(60vh) rotate(720deg) scale(0.3); opacity: 0; }
        }
        @keyframes scaleIn {
            0%   { opacity: 0; transform: scale(0.7); }
            70%  { transform: scale(1.04); }
            100% { opacity: 1; transform: scale(1); }
        }
        @keyframes bounce {
            0%   { transform: translateY(0px) scale(1); }
            100% { transform: translateY(-14px) scale(1.08); }
        }
        @keyframes wheelSpinGlow {
            0%,100% { box-shadow: 0 0 35px rgba(14,165,233,0.5), 0 0 60px rgba(234,179,8,0.2); }
            50%      { box-shadow: 0 0 55px rgba(234,179,8,0.9), 0 0 100px rgba(14,165,233,0.6), 0 0 8px rgba(255,255,255,0.4); }
        }
        @keyframes confettiRect {
            0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
            100% { transform: translateY(70vh) rotate(900deg); opacity: 0; }
        }
        .wheel-spinning-canvas {
            animation: wheelSpinGlow 0.35s ease-in-out infinite !important;
        }
        @keyframes trialBanner {
            0%   { transform: translateY(-100%); opacity: 0; }
            15%  { transform: translateY(0); opacity: 1; }
            85%  { transform: translateY(0); opacity: 1; }
            100% { transform: translateY(-100%); opacity: 0; }
        }
        .trial-banner { animation: trialBanner 5s ease-in-out forwards; }
        .wheel-slice {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 50%;
            height: 20px;
            transform-origin: 0% 50%;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            padding-right: 15px;
            box-sizing: border-box;
            color: white;
            font-weight: 900;
            font-size: 10px;
            text-shadow: 1px 1px 3px black;
            text-transform: uppercase;
        }

        /* ═══════════════════════════════════════════════════════
           FREERIDER X — BUZ CAM MAVİSİ PREMIUM TEMA v3
           Ice Glass Blue Ultra Premium Edition
           ═══════════════════════════════════════════════════════ */

        /* ── Buz kristal doku efektleri ── */
        @keyframes iceShimmer {
            0%   { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }
        @keyframes frostPulse {
            0%,100% { 
                box-shadow: 0 0 12px rgba(14,165,233,0.35), 0 0 24px rgba(56,189,248,0.12),
                            inset 0 0 20px rgba(56,189,248,0.04);
            }
            50% { 
                box-shadow: 0 0 24px rgba(14,165,233,0.55), 0 0 48px rgba(56,189,248,0.18),
                            inset 0 0 30px rgba(56,189,248,0.06);
            }
        }
        @keyframes iceGlow {
            0%,100% { filter: drop-shadow(0 0 4px rgba(56,189,248,0.6)); }
            50%      { filter: drop-shadow(0 0 10px rgba(56,189,248,0.9)); }
        }
        @keyframes crystalFloat {
            0%,100% { transform: translateY(0px) rotate(0deg); }
            33%     { transform: translateY(-4px) rotate(1deg); }
            66%     { transform: translateY(-2px) rotate(-1deg); }
        }
        @keyframes auroraShift {
            0%   { background-position: 0% 50%; }
            50%  { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        @keyframes frostLine {
            0%   { opacity: 0; transform: scaleX(0); }
            50%  { opacity: 1; transform: scaleX(1); }
            100% { opacity: 0; transform: scaleX(0); }
        }
        @keyframes iceRipple {
            0%   { transform: scale(0); opacity: 0.7; }
            100% { transform: scale(4); opacity: 0; }
        }
        @keyframes glacierPulse {
            0%,100% { opacity: 0.06; }
            50%     { opacity: 0.12; }
        }

        .ice-glow  { animation: iceGlow 2s ease-in-out infinite; }
        .frost-pulse { animation: frostPulse 3s ease-in-out infinite; }
        .crystal-float { animation: crystalFloat 4s ease-in-out infinite; }

        /* ── Buz cam ultra glass panel (kaldırıldı — line 559'daki son tanım aktif) ── */

        /* ── Buz shimmer efekti (özel kartlar için) ── */
        .ice-shimmer-bg {
            background: linear-gradient(
                90deg,
                rgba(14,165,233,0.03) 0%,
                rgba(56,189,248,0.08) 30%,
                rgba(125,211,252,0.12) 50%,
                rgba(56,189,248,0.08) 70%,
                rgba(14,165,233,0.03) 100%
            );
            background-size: 200% 100%;
            animation: iceShimmer 4s linear infinite;
        }

        /* ── Aurora arkaplan efekti ── */
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background: 
                radial-gradient(ellipse 60% 40% at 20% 80%, rgba(14,165,233,0.04) 0%, transparent 60%),
                radial-gradient(ellipse 40% 30% at 80% 20%, rgba(56,189,248,0.03) 0%, transparent 60%);
            pointer-events: none;
            z-index: 0;
            animation: glacierPulse 6s ease-in-out infinite;
        }

        /* ── Arka Plan Dokusu ── */
        body {
            background:
                radial-gradient(ellipse 80% 50% at 50% -10%, rgba(2,132,199,0.18) 0%, transparent 60%),
                radial-gradient(ellipse 50% 30% at 85% 90%, rgba(120,0,0,0.12) 0%, transparent 50%),
                #000;
        }

        /* ── Gelişmiş Glass Panel ── */
        .glass-panel { background: var(--bg-surface); border: 1px solid var(--border-color); }

        /* ── App Header Gradient Border ── */
        #main-app > div:first-child {
            background: linear-gradient(180deg, rgba(0,0,0,0.97) 0%, var(--bg-glass) 100%);
            
            border-bottom: 1px solid transparent;
            background-clip: padding-box;
            box-shadow: 0 1px 0 var(--blue-glow), 0 4px 20px rgba(0,0,0,0.5);
        }

        /* ── FREERIDER markası parlar ── */
        @keyframes brandPulse {
            0%,100% { text-shadow: 0 0 8px rgba(59,130,246,0.4); }
            50%      { text-shadow: 0 0 20px rgba(59,130,246,0.9), 0 0 40px rgba(59,130,246,0.3); }
        }
        #main-app .teko-font.text-2xl { animation: brandPulse 4s ease-in-out infinite; }

        /* ── Gelişmiş Bottom Nav (Floating Pill) ── */
        #bottom-nav {
            background: linear-gradient(180deg, #1a3a6e 0%, #0f2454 100%) !important; /* OLED Marka Mavi */
            border-top: 1px solid rgba(59,130,246,0.3) !important;
            box-shadow: 0 -4px 24px rgba(59, 130, 246, 0.25) !important;
            padding-top: 8px;
            padding-bottom: max(16px, env(safe-area-inset-bottom));
        }
        #bottom-nav::before {
            content: '';
            position: absolute;
            inset: 0;
            border-top: 1px solid rgba(59,130,246,0.2);
            pointer-events: none;
        }
        #bottom-nav button {
            position: relative;
            border-radius: 14px;
            padding: 8px 10px 6px;
            transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
        }
        #bottom-nav button.text-white {
            background: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(37,99,235,0.2)) !important;
            box-shadow: 0 0 16px rgba(59,130,246,0.35), inset 0 1px 0 rgba(255,255,255,0.07);
        }
        #bottom-nav button.text-white span:first-child {
            filter: drop-shadow(0 0 6px rgba(59,130,246,0.8));
            transform: scale(1.15);
            display: inline-block;
        }
        #bottom-nav button span:first-child {
            transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), filter 0.3s ease;
        }
        #bottom-nav button:active { transform: scale(0.88) !important; }

        /* ── Gelişmiş Yükleme Ekranı ── */
        #app-loading-screen {
            background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(59,130,246,0.2) 0%, #000 70%);
        }

        /* ── Animasyonlar ── */
        @keyframes floatUp {
            0%,100% { transform: translateY(0px); }
            50%      { transform: translateY(-6px); }
        }
        @keyframes glowPulse {
            0%,100% { opacity: 0.7; }
            50%      { opacity: 1; }
        }
        @keyframes morphBorder {
            0%,100% { border-radius: 24px; }
            50%      { border-radius: 32px; }
        }
        @keyframes slideUpSpring {
            0%   { opacity:0; transform: translateY(32px) scale(0.95); }
            60%  { opacity:1; transform: translateY(-4px) scale(1.01); }
            100% { opacity:1; transform: translateY(0) scale(1); }
        }
        @keyframes fadeSlideLeft {
            0%   { opacity:0; transform: translateX(24px); }
            100% { opacity:1; transform: translateX(0); }
        }
        @keyframes fadeSlideRight {
            0%   { opacity:0; transform: translateX(-24px); }
            100% { opacity:1; transform: translateX(0); }
        }
        @keyframes cardEnter {
            0%   { opacity:0; transform: translateY(20px) scale(0.96); }
            70%  { opacity:1; transform: translateY(-2px) scale(1.01); }
            100% { opacity:1; transform: translateY(0) scale(1); }
        }
        @keyframes shimmerSweep {
            0%   { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }
        @keyframes neonBlink {
            0%,95%,100% { opacity:1; }
            97%          { opacity:0.6; }
        }
        @keyframes iconBounce {
            0%,100% { transform: translateY(0) rotate(0deg); }
            25%     { transform: translateY(-5px) rotate(-8deg); }
            75%     { transform: translateY(-3px) rotate(6deg); }
        }
        @keyframes scanline {
            0%   { transform: translateY(-100%); }
            100% { transform: translateY(100dvh); }
        }
        @keyframes gradientShift {
            0%   { background-position: 0% 50%; }
            50%  { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .float-anim   { animation: floatUp 3s ease-in-out infinite; }
        .glow-pulse   { animation: glowPulse 2.5s ease-in-out infinite; }
        .card-enter   { animation: cardEnter 0.45s cubic-bezier(0.34,1.56,0.64,1) both; }
        .slide-up-anim { will-change: transform, opacity; backface-visibility: hidden; transform: translateZ(0); -webkit-font-smoothing: subpixel-antialiased; animation: slideUpSpring 0.5s cubic-bezier(0.34,1.3,0.64,1) both; }
        .scale-in-anim { animation: slideUpSpring 0.4s cubic-bezier(0.34,1.56,0.64,1) both; }

        @keyframes slideUpFade {
            from { opacity: 0; transform: translateY(40px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        /* ── Gelişmiş Buton Hover ── */
        .btn-premium-hover {
            transition: all 0.25s cubic-bezier(0.34,1.2,0.64,1);
            position: relative;
            overflow: hidden;
        }
        .btn-premium-hover::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 50%, rgba(255,255,255,0.02) 100%);
            opacity: 0;
            transition: opacity 0.2s;
            pointer-events: none;
            border-radius: inherit;
        }
        .btn-premium-hover:hover::before { opacity: 1; }
        .btn-premium-hover:hover {
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 8px 24px var(--blue-glow), 0 2px 8px rgba(0,0,0,0.4);
        }
        .btn-premium-hover:active {
            transform: translateY(1px) scale(0.97);
            box-shadow: 0 2px 8px rgba(59,130,246,0.2);
        }
        .btn-premium-hover::after {
            content: '';
            position: absolute;
            top: 50%; left: 50%;
            width: 4px; height: 4px;
            background: rgba(255,255,255,0.6);
            border-radius: 50%;
            transform: scale(0); opacity: 0;
            pointer-events: none;
        }
        .btn-premium-hover:active::after { animation: ripple 0.5s ease-out forwards; }

        /* ── Shimmer Loading Skeleton ── */
        .skeleton {
            background: linear-gradient(90deg, var(--bg-surface) 25%, #0f172a 50%, var(--bg-surface) 75%);
            background-size: 200% 100%;
            animation: shimmerSweep 1.5s infinite;
            border-radius: 8px;
        }

        /* ── Gradient Progress Bar ── */
        .progress-bar-fill {
            background: linear-gradient(90deg, var(--blue-primary), #f97316, #eab308) !important;
            background-size: 200% 100%;
            animation: gradientShift 2s ease infinite;
            box-shadow: 0 0 8px var(--blue-glow);
        }

        /* ── Kart Hover Efekti ── */
        .hover-card {
            transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
        }
        .hover-card:hover {
            transform: translateY(-3px) scale(1.01);
            box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
        }

        /* ── Modal Backdrop Gelişmiş ── */
        .modal-backdrop {
            background: rgba(0,0,0,0.82);
            backdrop-filter: blur(8px) saturate(150%);
            -webkit-backdrop-filter: blur(8px) saturate(150%);
        }

        /* ── Özel Scrollbar ── */
        .custom-scrollbar::-webkit-scrollbar { width: 3px; }
        .custom-scrollbar::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
        .custom-scrollbar::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, var(--blue-primary), var(--blue-hover));
            border-radius: 3px;
        }

        /* ── Input Glow Focus ── */
        input:focus, textarea:focus, select:focus {
            box-shadow: 0 0 0 2px rgba(59,130,246,0.3), 0 0 12px rgba(59,130,246,0.15) !important;
            border-color: rgba(59,130,246,0.7) !important;
        }

        /* ── Sidebar Gelişmiş ── */
        #sidebar {
            background: linear-gradient(180deg, rgba(0,0,0,0.99) 0%, rgba(10,10,12,0.99) 100%) !important;
            border-right: 1px solid var(--border-color) !important;
            box-shadow: 4px 0 40px rgba(0,0,0,0.8) !important;
        }
        #sidebar button.tab-btn {
            transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
            border-left: 2px solid transparent;
        }
        #sidebar button.tab-btn:hover {
            background: rgba(59,130,246,0.08) !important;
            border-left-color: rgba(59,130,246,0.5);
            transform: translateX(3px);
        }
        #sidebar button.bg-zinc-900 {
            background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(37,99,235,0.1)) !important;
            border-left: 2px solid rgba(59,130,246,0.7);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
        }

        /* ── Profil Kartı Efekti ── */
        #screen-profile .glass-panel { background: var(--bg-surface); border: 1px solid var(--border-color); }
        #screen-profile .glass-panel:hover {
            border-color: rgba(59,130,246,0.3);
        }

        /* ── Leaderboard Row ── */
        @keyframes goldShine {
            0%,100% { box-shadow: 0 0 10px rgba(251,191,36,0.3); }
            50%      { box-shadow: 0 0 20px rgba(251,191,36,0.7), 0 0 40px rgba(251,191,36,0.2); }
        }

        /* ── Toast Bildirimleri ── */
        @keyframes toastSlide {
            0%   { opacity:0; transform: translateX(-50%) translateY(-20px) scale(0.9); }
            60%  { opacity:1; transform: translateX(-50%) translateY(4px) scale(1.02); }
            100% { opacity:1; transform: translateX(-50%) translateY(0) scale(1); }
        }

        /* ── Reel Kart Overlay Gradient ── */
        #reels-feed .absolute.inset-0 {
            background: linear-gradient(
                to top,
                rgba(0,0,0,0.88) 0%,
                rgba(0,0,0,0.3) 40%,
                transparent 70%
            ) !important;
        }

        /* ── Story Ring Gelişmiş ── */
        .story-ring {
            animation: storyRing 2.5s ease-in-out infinite;
            box-shadow: 0 0 12px rgba(14,165,233,0.4);
        }

        /* ── bg-glass Gelişmiş ── */
        .bg-glass {
            background: var(--bg-glass) !important;
            backdrop-filter: blur(16px) saturate(180%) !important;
            -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
            border-color: var(--border-color) !important;
        }

        /* ── bg-darker ── */
        .bg-darker {
            background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 100%) !important;
        }

        /* ── Dalgalı Separator ── */
        .wave-sep {
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(59,130,246,0.5), rgba(251,191,36,0.3), rgba(59,130,246,0.5), transparent);
            margin: 16px 0;
        }

        /* ── Yükleme Animasyonu Gelişmiş ── */
        @keyframes loadRing {
            0%   { transform: rotate(0deg) scale(1); }
            50%  { transform: rotate(180deg) scale(1.05); }
            100% { transform: rotate(360deg) scale(1); }
        }
        #app-loading-screen .animate-spin {
            animation: spin 1s linear infinite !important;
        }
        @keyframes spin {
            from { transform: rotate(0deg); }
            to   { transform: rotate(360deg); }
        }

        /* ── Harita Overlay Gradient ── */
        #screen-map::after {
            content: '';
            position: absolute;
            bottom: 0; left: 0; right: 0;
            height: 60px;
            background: linear-gradient(to top, rgba(2,8,22,0.4), transparent);
            pointer-events: none;
            z-index: 5;
        }

        /* ── Harita Beyaz Flash Düzeltmesi ── */
        /* Tile'lar yüklenirken beyaz zemin görünmesin */
        .leaflet-container {
            background: #0a0a0a !important;
        }
        .leaflet-tile-pane {
            will-change: transform;
        }
        .leaflet-tile {
            will-change: transform;
        }
        #map { margin-bottom: 0px !important;
            background: #0a0a0a !important;
            will-change: transform;
        }

        /* ════════════════════════════════════════════════════════
           OVERFLOW & TAŞMA DÜZELTMELERİ
           ════════════════════════════════════════════════════════ */

        /* Global overflow kontrol */
        *, *::before, *::after {
            box-sizing: border-box;
        }

        /* Flex child taşma engelleyici */
        .flex > * { min-width: 0; }
        .flex-1   { min-width: 0; }

        /* Text taşma önleme */
        .truncate-safe {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            min-width: 0;
        }

        /* İçerik taşma engel */
        #screen-chat, #screen-leaderboard, #screen-profile,
        #screen-news, #screen-missions,
        #screen-plus, #screen-invite {
            overflow-x: hidden !important;
            overflow-y: auto !important;
        }

        /* Reels tam ekran overlay — kendi iç kaydırıcısı (#reels-feed) var,
           dış kapsayıcı da kaydırılabilir olursa kartın altı (100dvh kart +
           üstteki mod-seçim başlığı) görünür alanın dışına taşıyordu. */
        #screen-reels {
            overflow: hidden !important;
        }

        /* Pazar özel kaydırma düzeltmesi */
        #screen-market:not(.hidden) {
            overflow-x: hidden !important;
            overflow-y: auto !important;
            display: flex !important;
            flex-direction: column !important;
        }
        #screen-market.hidden {
            display: none !important;
        }
        #market-list {
            flex: 1 1 auto;
            overflow-y: auto !important;
            -webkit-overflow-scrolling: touch !important;
        }

        /* Mesaj balonları taşma engeli */
        .chat-bubble-wrap {
            max-width: calc(100% - 60px) !important;
            overflow-wrap: break-word !important;
            word-break: break-word !important;
        }

        /* Resim taşma engeli */
        img {
            max-width: 100%;
            height: auto;
        }

        /* Modal içi overflow */
        /* .glass-panel burada tekrar tanımlanmasına gerek yok (satır 1013'te tanımlı) */

        /* Kullanıcı adı taşma */
        [id$="-username"], .username-text {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: 100%;
        }

        /* Yatay scroll container'lar */
        .horizontal-scroll-container {
            overflow-x: auto !important;
            overflow-y: hidden !important;
            max-width: 100% !important;
        }

        /* Grid ve flex taşma */
        .grid { overflow: hidden; }

        /* Bottom nav güvenli alan */
        #bottom-nav {
            width: 100% !important;
            max-width: 100% !important;
            overflow: hidden !important;
        }

        /* Ana konteyner taşma engeli */
        .max-w-md {
            overflow-x: hidden !important;
        }

        /* Toast overflow fix */
        #toast-notification {
            max-width: calc(100vw - 32px) !important;
            left: 50% !important;
            transform: translateX(-50%) !important;
        }
            .tab-content { padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px)) !important; }
    
        /* --- GLOBAL BOTTOM NAV OVERLAP FIX --- */
        /* removed 85px map */
        /* Restore original padding for chat container since we are shifting the whole screen up */

    
        /* iOS & Apple Specific Fixes */
        body {
            overscroll-behavior-y: none;
            -webkit-tap-highlight-color: transparent;
            padding-top: env(safe-area-inset-top);

            padding-left: env(safe-area-inset-left);
            padding-right: env(safe-area-inset-right);
            background-color: #000;
        }
        
        /* Prevent auto-zoom on iOS inputs */
        input, textarea, select {
            font-size: 16px !important;
        }

        /* Override Tailwind's h-screen and min-h-screen to use dvh */
        .h-screen { height: 100dvh !important; }
        .min-h-screen { min-height: 100dvh !important; }
        
        /* Ensure absolute/fixed elements respect safe area at bottom */
        .safe-bottom {
            padding-bottom: env(safe-area-inset-bottom) !important;
        }

    
        

    
        /* --- TAM EKRAN VE ALT SEKME (BOTTOM NAV) TAŞMA ÇÖZÜMLERİ --- */
        /* Ekranlar tam ekran kalacak (inset-0), ancak içerikler navbara göre hizalanacak */
        
        /* Chat ve DM Input Alanları navbardan yüksekte dursun */
        #chat-input-area, #chat-dm-input-area {
            margin-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
            transition: margin-bottom 0.3s ease;
        }

        /* Pazar Listesi (kaydırılabilir alan) tam ekran, ama en alt eleman navbara takılmasın */
        #market-list, #mission-list, #leaderboard-list {
            padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
        }
        
        /* Reels'in tam ekran olması, butonların navbar üstünde kalması */
        .reel-actions {
            bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
        }
        .reel-info {
            bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
        }
/* ========================================================================== */
/* FREERIDER PLUS V2.0 (PREMIUM UI/UX REDESIGN)                               */
/* ========================================================================== */

/* Haptic feedback simulator (via scale) */
.active-scale:active {
    transform: scale(0.97) !important;
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Premium Typography & Spacing */
.premium-title {
    font-family: 'Teko', sans-serif;
    background: linear-gradient(to right, #ffdf00, #d4af37, #ffdf00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: goldShine 3s linear infinite;
    letter-spacing: 0.05em;
    filter: drop-shadow(0 2px 4px rgba(212,175,55,0.3));
}

@keyframes goldShine {
    to { background-position: 200% center; }
}

/* Glassmorphism Cards */
.glass-premium {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Plan Specific Gradients */
.plan-std.active {
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
    border-color: rgba(14, 165, 233, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(14, 165, 233, 0.2);
}

.plan-dlx.active {
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.2);
}

.plan-ult.active {
    background: linear-gradient(145deg, rgba(234, 179, 8, 0.15) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-color: rgba(234, 179, 8, 0.6);
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(234, 179, 8, 0.25);
    z-index: 10;
}

/* Sticky CTA */
.sticky-cta-container {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, rgba(10, 10, 26, 1) 40%, rgba(10, 10, 26, 0.8) 80%, transparent 100%);
    backdrop-filter: blur(8px);
    z-index: 50;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticky-cta-container.visible {
    transform: translateY(0);
}

.btn-ultimate {
    width: 100%;
    padding: 16px;
    border-radius: 100px;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #fff;
    border: none;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.btn-ultimate::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    animation: shineBtn 3s infinite;
}

@keyframes shineBtn {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.bg-std { background: linear-gradient(135deg, #0284c7, #0369a1); box-shadow: 0 8px 25px rgba(2, 132, 199, 0.4); }
.bg-dlx { background: linear-gradient(135deg, #9333ea, #7e22ce); box-shadow: 0 8px 25px rgba(147, 51, 234, 0.4); }
.bg-ult { background: linear-gradient(135deg, #d97706, #b45309); box-shadow: 0 8px 25px rgba(217, 119, 6, 0.5); color: #fff;}

/* Animations */
.slide-in-bounced {
    animation: slideInBounced 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes slideInBounced {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Feature List */
.feature-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.feature-row:last-child { border-bottom: none; }
.feature-icon {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    font-size: 14px;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* ── input type="submit" ve type="button" ── */
input[type="submit"]:not([data-keep-color]),
input[type="button"]:not([data-keep-color]) {
    background-color: var(--blue-primary) !important;
    border: none !important;
    color: white !important;
    cursor: pointer;
}
input[type="submit"]:hover, input[type="button"]:hover {
    background-color: var(--blue-hover) !important;
}

/* ── Aktif/Selected buton durumu ── */
button.active:not(.text-red-400):not(.text-green-400):not(.text-yellow-400) {
    background-color: rgba(59,130,246,0.2) !important;
    border-color: var(--blue-primary) !important;
    color: var(--blue-primary) !important;
}

/* ── Tab butonlar ── */
.tab-btn.active,
[role="tab"][aria-selected="true"] {
    background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(37,99,235,0.1)) !important;
    border-color: var(--blue-primary) !important;
    color: var(--text-primary) !important;
}
