/* ==========================================================================
   FOREX TÜRKİYE PLATFORMU - BASE STYLES
   ========================================================================== */

/* Variables / Design System */
:root {
    /* Color Palette */
    --bg-main: #F8FAFC;        /* Light Off-White Background */
    --bg-secondary: #FFFFFF;   /* Pure White for Cards/Sections */
    --bg-glass: rgba(255, 255, 255, 0.8); /* Glassmorphism background */
    --text-primary: #0F172A;   /* Dark Anthracite for main text */
    --text-secondary: #64748B; /* Slate Gray for muted text */
    
    /* Accents */
    --accent-red: #E11D48;     /* Bear/Sell Accent */
    --accent-red-glow: rgba(225, 29, 72, 0.15);
    --accent-green: #059669;   /* Bull/Buy/Profit Accent */
    --accent-green-glow: rgba(5, 150, 105, 0.15);
    --accent-gold: #B45309;    /* VIP Bronze/Gold Accent */
    --accent-gold-glow: rgba(180, 83, 9, 0.15);
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #D97706, #B45309, #92400E);
    --gradient-primary: linear-gradient(135deg, #F1F5F9, #E2E8F0);
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Effects */
    --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 10px 25px -5px rgba(180, 83, 9, 0.3);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --glass-border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Dark Theme Overrides */
[data-theme="dark"] {
    --bg-main: #0B1120;
    --bg-secondary: #0F172A;
    --bg-glass: rgba(15, 23, 42, 0.8);
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --glass-border: 1px solid rgba(255, 255, 255, 0.15);
    --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 10px 25px -5px rgba(180, 83, 9, 0.5);
}

[data-theme="dark"] .glass-banner, 
[data-theme="dark"] .pricing-card, 
[data-theme="dark"] .glass-card, 
[data-theme="dark"] .faq-item {
    background: var(--bg-secondary);
    border-color: rgba(255,255,255,0.15);
}

[data-theme="dark"] .feature-card:hover,
[data-theme="dark"] .market-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .header.scrolled,
[data-theme="dark"] .header {
    background: transparent !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
}

[data-theme="dark"] .stats-list li,
[data-theme="dark"] .faq-answer,
[data-theme="dark"] .pricing-card.vip-tier,
[data-theme="dark"] .signal-card {
    background: var(--bg-main);
}

[data-theme="dark"] .btn-secondary {
    background: var(--bg-main);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .btn-secondary:hover {
    background: #1E293B;
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .markets,
[data-theme="dark"] .success-section,
[data-theme="dark"] .footer,
[data-theme="dark"] .vip-section,
[data-theme="dark"] .faq-section {
    background-color: rgba(11, 17, 32, 0.45) !important;
    backdrop-filter: blur(5px);
}

[data-theme="dark"] .mobile-menu-btn span {
    background-color: var(--text-primary);
}

[data-theme="dark"] .tradingview-widget-container iframe {
    filter: invert(1) hue-rotate(180deg);
}

/* Dynamic Glassmorphism System (for text containers) */
.dynamic-glass {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .dynamic-glass,
body.dark-mode .dynamic-glass {
    background: rgba(15, 23, 42, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.05) !important;
}

.dynamic-text { color: #111; }
.dynamic-text-sub { color: #333; font-weight: 500; }

[data-theme="dark"] .dynamic-text,
body.dark-mode .dynamic-text { color: #fff !important; }

[data-theme="dark"] .dynamic-text-sub,
body.dark-mode .dynamic-text-sub { color: #ccc !important; font-weight: 400; }

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

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Sayfa Geçiş Animasyonu */
body {
    opacity: 0;
    transition: opacity 0.22s ease;
}
body.page-ready {
    opacity: 1;
}
body.page-exit {
    opacity: 0;
    pointer-events: none;
}

/* Tüm Platformlar İçin Video Arka Plan Sistemi */
body {
    background-color: transparent !important; /* Videonun görünmesi için zorunlu zemin şeffaflığı */
}

.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    z-index: -100;
    object-fit: cover;
    pointer-events: none;
    transform: scale(1.02); /* Hafif bir büyüme ile kenarlardaki piksel boşluklarını yutar */
}

.desktop-bg-video {
    display: block;
}

.mobile-bg-video {
    display: none;
}

/* Seksiyonların Masaüstü Light Tema İçin Cam (Glass) Yapılması */
.markets, .success-section, .footer, .vip-section, .faq-section {
    background-color: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .desktop-bg-video {
        display: none !important;
    }
    
    .mobile-bg-video {
        display: block !important;
    }

    /* Üst menünün katı rengini silerek videonun ekranın en tepesinden kesintisiz akmasını sağla */
    .header {
        background-color: transparent !important;
        backdrop-filter: none !important;
        border-bottom: none !important;
    }

    /* Hero wrapper: Yalnızca hiyerarşik sarmalayıcı (Arka plandaki devasa cam kutu israfını kaldırdık) */
    .hero-content {
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
        /* SafeArea desteği ve sabit menünün altına itme */
        padding-top: calc(70px + env(safe-area-inset-top)) !important;
    }
    
    /* İçteki esas metin kutusunu cam yap, tıpkı masaüstündeki gibi zarif dursun */
    .hero-text-container.dynamic-glass {
        padding: 1.5rem 1rem !important;
        border-radius: 20px !important;
        width: 95% !important;
        max-width: 95vw !important;
        margin: 0 auto !important;
    }
    


    /* Diğer bölümler şeffaf cam kalmaya devam etsin */
    .markets, 
    .success-section, 
    .footer, 
    .vip-section, 
    .faq-section {
        background-color: rgba(255, 255, 255, 0.2) !important;
        backdrop-filter: blur(3px);
    }
    
    [data-theme="dark"] .markets,
    [data-theme="dark"] .success-section,
    [data-theme="dark"] .footer,
    [data-theme="dark"] .vip-section,
    [data-theme="dark"] .faq-section {
        background-color: rgba(11, 17, 32, 0.35) !important;
        backdrop-filter: blur(3px);
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-normal);
    gap: 0.5rem;
    border: none;
    font-size: 0.95rem;
    white-space: nowrap; /* Yazının alt satıra geçmesini engeller */
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--bg-main);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: #F1F5F9;
    border-color: rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-glow {
    position: relative;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: var(--gradient-gold);
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(8px);
}

.btn-glow:hover::after {
    opacity: 0.7;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05), inset 0 0 10px rgba(255,255,255,0.4);
    color: var(--text-primary);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.7);
    color: var(--accent-gold);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .btn-glass {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(255,255,255,0.05);
    color: #FFFFFF;
}

[data-theme="dark"] .btn-glass:hover {
    background: rgba(30, 41, 59, 0.8);
    color: var(--accent-gold);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-normal);
    background: transparent !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
}

.header.scrolled {
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    border-radius: 8px;
    transition: transform var(--transition-normal);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 1)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.4));
}

[data-theme="dark"] .logo-img {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 1)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.4));
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 1.25rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    /* Liquid Glassmorphism Efekti */
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05), inset 0 0 10px rgba(255,255,255,0.4);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .nav-links a {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(255,255,255,0.05);
    color: #FFFFFF;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    color: var(--accent-gold);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .nav-links a:hover {
    background: rgba(30, 41, 59, 0.8);
    color: var(--accent-gold);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.nav-buttons {
    display: flex;
    gap: 1.5rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 44px;
    height: 44px;
    padding: 12px 10px;
    cursor: pointer;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 0 10px rgba(255,255,255,0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="dark"] .mobile-menu-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(255,255,255,0.05);
}

.mobile-menu-btn:active {
    transform: scale(0.92);
}

.mobile-menu-btn span {
    display: block;
    height: 2.5px;
    border-radius: 3px;
    background-color: var(--text-primary);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Asimetrik modern tasarım */
.mobile-menu-btn span:nth-child(1) { width: 100%; transform-origin: center; }
.mobile-menu-btn span:nth-child(2) { width: 70%; margin-left: auto; transform-origin: right; }
.mobile-menu-btn span:nth-child(3) { width: 100%; transform-origin: center; }

/*==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    padding-top: 85px; /* Butonların (üst menünün) hemen altında başlaması için daraltıldı */
    display: flex;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.gc-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: #E2E8F0;
    animation: floatCircle 8s ease-in-out infinite;
}

.gc-2 {
    bottom: 10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: #CBD5E1;
    opacity: 0.5;
    animation: floatCircle 10s ease-in-out infinite reverse;
}

.gc-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: #E2E8F0;
    opacity: 0.6;
    animation: floatCircle 12s ease-in-out infinite 2s;
}

@keyframes floatCircle {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-40px) scale(1.05); }
}

.hero-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

[data-theme="dark"] .hero-main-logo img {
    /* Karanlık temada logoyu çok daha kalın ve belirgin bir beyaz aydınlatma ile öne çıkarır */
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 1)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.85)) drop-shadow(0 0 50px rgba(255, 255, 255, 0.6));
}

.hero-main-logo img {
    max-width: 960px; /* %100 ölçeğe sığması için zarifçe küçültüldü */
    width: 100%;
    height: auto;
    margin-bottom: 0.5rem; /* Sıkılaştırma */
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.75)) drop-shadow(0 0 50px rgba(255, 255, 255, 0.5)) drop-shadow(0 20px 30px rgba(0,0,0,0.5));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-main-logo img:hover {
    transform: scale(1.05) translateY(-5px);
}

.badge {
    background: var(--bg-secondary);
    color: var(--accent-gold);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem; /* Sıkılaştırma */
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    box-shadow: var(--shadow-subtle);
}

.hero h1 {
    font-size: 3.2rem; /* Tek ekrana sığması için font daraltıldı */
    margin-bottom: 0.75rem; /* Sıkılaştırma */
    line-height: 1.1;
    color: var(--text-primary);
    text-shadow: none;
}

.hero p {
    font-size: 1rem;
    max-width: 600px;
    margin-bottom: 1.5rem; /* Sıkılaştırma */
    color: var(--text-secondary);
    text-shadow: none;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem; /* Sıkılaştırma */
}

/* Custom class for replacing index.php inline styles */
.hero-text-container {
    text-align: center;
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}



.hero-text-container h1 {
    font-size: 3.5rem;
    font-family: 'Outfit';
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text-container p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-text-container {
        padding: 1.5rem 1rem;
        width: 90%;
    }
    .hero-text-container h1 {
        font-size: 2.2rem;
    }
    .hero-text-container p {
        font-size: 1rem;
    }
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-secondary);
    padding: 1rem 2rem; /* Daha kompakt bir kutu boyutu */
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-subtle);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.6rem; /* Dengeli küçültme */
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
}

/* Glass Mockup inside Hero */
.hero-image {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3D Medallion */
.medallion-container {
    width: 320px;
    height: 320px;
    margin: 2rem auto;
    perspective: 1200px;
    border-radius: 50%;
    box-shadow:
        0 0 0 4px var(--accent-gold),
        0 20px 40px -10px rgba(180, 83, 9, 0.3);
}

.medallion {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: spin3D 8s linear infinite;
    cursor: pointer;
}

.medallion:hover {
    animation-play-state: paused;
}

.medallion-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.medallion-front { transform: translateZ(1px); }
.medallion-back { transform: rotateY(180deg) translateZ(1px); }

/* --- CALCULATOR UI --- */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}
.custom-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 10px;
    margin-top: 5px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: var(--shadow-glow);
}
.custom-dropdown .dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
    color: var(--text-primary);
    transition: background 0.2s;
}
.custom-dropdown .dropdown-item:hover {
    background: rgba(128, 128, 128, 0.1);
}
.btn-toggle {
    background: var(--bg-glass);
    border: 1px solid rgba(128, 128, 128, 0.2);
    color: var(--text-secondary);
    padding: 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}
.btn-buy.active {
    background: rgba(76, 175, 80, 0.15);
    border-color: #4CAF50;
    color: #4CAF50;
    box-shadow: inset 0 0 10px rgba(76, 175, 80, 0.2);
}
.btn-sell.active {
    background: rgba(244, 67, 54, 0.15);
    border-color: #F44336;
    color: #F44336;
    box-shadow: inset 0 0 10px rgba(244, 67, 54, 0.2);
}
.form-input {
    background: var(--bg-secondary) !important;
    border: 1px solid rgba(128, 128, 128, 0.2) !important;
    color: var(--text-primary) !important;
    padding: 1rem !important;
    border-radius: 10px !important;
    outline: none !important;
    transition: border-color 0.3s !important;
    font-family: inherit;
    font-size: 1rem;
}
.form-input:focus {
    border-color: var(--accent-gold) !important;
}

/* CALCULATOR ENHANCEMENTS */
.calc-result {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05), inset 0 0 10px rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

[data-theme="dark"] .calc-result {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(255, 255, 255, 0.05);
}

.category-header {
    padding: 8px 15px;
    background: rgba(128, 128, 128, 0.1);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    position: sticky;
    top: 0;
    z-index: 2;
    text-align: left;
    backdrop-filter: blur(5px);
}
.category-header.fav-header {
    background: rgba(241, 196, 15, 0.15);
    color: #b8860b;
}

[data-theme="dark"] .category-header.fav-header {
    background: rgba(255, 215, 0, 0.15);
    color: #f1c40f;
}

.medallion-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 15px rgba(212, 175, 55, 0.3));
}

/* Removed faux edge as it blocked the back face */

@keyframes spin3D {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

@media (max-width: 768px) {
    .medallion-container {
        width: 250px;
        height: 250px;
    }
}

.glass-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-subtle);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.mockup-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f56;
}
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.mockup-header .title {
    margin: 0 auto;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.mockup-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.signal-card {
    background: var(--bg-main);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    border-left: 4px solid;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.signal-card.buy { border-left-color: var(--accent-green); }
.signal-card.sell { border-left-color: var(--accent-red); }

.signal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pair {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.action {
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.buy .action {
    color: var(--accent-green);
    background: rgba(0, 150, 94, 0.1);
}

.sell .action {
    color: var(--accent-red);
    background: rgba(166, 25, 46, 0.1);
}

.signal-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.detail-row .label { color: var(--text-secondary); }
.detail-row .value { font-weight: 600; font-family: monospace; }
.value.success { color: var(--accent-green); }
.value.danger { color: var(--accent-red); }

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.fade-up {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.features-section {
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-radius: 24px;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    background: var(--accent-gold-glow);
    padding: 1.2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: content-box;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ==========================================================================
   LIVE MARKETS SECTION
   ========================================================================== */
.section-padding {
    padding: 3.5rem 0;
}

/* Bölüm arka plan overlay'leri — fotoğraf hero'da tam görünür, aşağıda kararır */
.markets         { background: #FFFFFF; }
.vip-section     { background: #F8FAFC; }
.success-section { background: #FFFFFF; }
.faq-section     { background: #F8FAFC; }

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 1.5rem;
}

.market-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.market-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.market-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.market-info h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.market-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.trend {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.trend.bull { color: var(--accent-green); background: rgba(5, 150, 105, 0.1); }
.trend.bear { color: var(--accent-red); background: rgba(225, 29, 72, 0.1); }
.trend.neutral { color: var(--text-secondary); background: rgba(0, 0, 0, 0.05); }

.tradingview-widget-container {
    height: 150px;
    max-height: 150px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    position: relative;
    background: transparent;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    contain: paint;
    isolation: isolate;
    /* iOS Safari için en güvenilir clip yöntemi */
    -webkit-clip-path: inset(0 round var(--border-radius-sm));
    clip-path: inset(0 round var(--border-radius-sm));
}

.tradingview-widget-container iframe {
    width: 100% !important;
    height: 150px !important;
    max-height: 150px !important;
    display: block;
}


/* Bull/Bear sol bant rengi */
.market-card:has(.trend.bull) {
    border-left: 3px solid var(--accent-green);
}

.market-card:has(.trend.bear) {
    border-left: 3px solid var(--accent-red);
}

.market-card:has(.trend.neutral) {
    border-left: 3px solid rgba(0, 0, 0, 0.1);
}

.market-action {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   VIP COMPARISON SECTION
   ========================================================================== */
.vip-section {
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    align-items: center;
}

.pricing-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    position: relative;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-normal);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.free {
    box-shadow: var(--shadow-subtle);
}

.pricing-card.vip-tier {
    background: #FFFFFF;
    border: 2px solid var(--accent-gold);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
    z-index: 1;
}

/* VIP kart shimmer — removed for light theme */
.pricing-card.vip-tier::after {
    display: none;
}

.pricing-card.vip-tier .popular-badge,
.pricing-card.vip-tier .card-header,
.pricing-card.vip-tier .card-body,
.pricing-card.vip-tier .card-footer {
    position: relative;
    z-index: 1;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.pricing-card.vip-tier:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 50px rgba(180, 83, 9, 0.2);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-gold);
    color: var(--bg-main);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-glow);
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0.5rem 0 1rem;
}

.card-body .features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
}

.features i.fa-check { color: var(--text-secondary); }
.features i.fa-check-circle { color: var(--accent-gold); font-size: 1.1rem; }
.features i.fa-times { color: rgba(0, 0, 0, 0.2); }

.features li.disabled {
    color: rgba(0, 0, 0, 0.4);
}

.pricing-card.vip-tier .features i.fa-times { color: rgba(0, 0, 0, 0.2); }
.pricing-card.vip-tier .features li.disabled { color: rgba(0, 0, 0, 0.4); }

.glow-icon {
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

/* ==========================================================================
   SUCCESS TRANSPARENCY SECTION
   ========================================================================== */
.container-narrow {
    max-width: 1000px;
}

.glass-banner {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-subtle);
    border-radius: var(--border-radius-lg);
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    overflow: hidden;
}

.glass-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: var(--accent-red);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
}

.banner-content {
    flex: 1;
}

.banner-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.25rem 0;
}

.stats-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    background: #F8FAFC;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--accent-green);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-list li i {
    color: var(--accent-green);
    font-size: 1.25rem;
}

.banner-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Cascading Trade Cards Settings for Image Elements */
.mt5-trade-card {
    width: 320px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    object-fit: contain;
    display: block;
    background: #FFFFFF; /* optionally white background if image has transparency */
}

/* Cascading layout for overlapping trade cards (User's diagram) */
.cascading-trades {
    position: relative;
    width: 420px; /* Base width */
    height: 440px; /* Adjusted height to fit tightly */
    margin: 1rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trade-group {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none; /* Standartta hepsi gizli, JS veya Media Query yönetecek */
    justify-content: center;
    align-items: center;
}

/* Sadece masaüstü rastgele görünümü açık olan grup */
.trade-group.active-desktop {
    display: flex;
}
.desktop-group .mt5-trade-card {
    top: 120px;
    transform-origin: top center;
}
#trade-group-mobile {
    display: none !important; /* Masaüstünde dev grup asla açılmasın */
}

/* Base style for all cards in the cascade */
.cascading-trades .mt5-trade-card {
    position: absolute;
    width: 420px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    /* Yüksek kaliteli esnek (spring) animasyon geçişi */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Dynamic property bindings */
    z-index: var(--z);
    /* Scale --op yerine --sc kullanacağız, şeffaflık yerine küçülme ve kararama ile derinlik vereceğiz */
    transform: translate(var(--tx), var(--ty)) scale(var(--sc));
    filter: brightness(var(--br));
    opacity: 1; /* Transparanlık metinlerin üst üste binip karışmasına sebep olur, bu yüzden hep 1 */
}

/* Dim other cards when the container is hovered */
.cascading-trades:hover .mt5-trade-card {
    /* Karartma yerine parlaklığı artırıp (beyaza yaklaştırıp) bulanıklaştırıyoruz */
    filter: brightness(1.3) contrast(0.8) blur(3px);
    transform: translate(var(--tx), var(--ty)) scale(calc(var(--sc) - 0.02));
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Hover effect uses the bound variables to pop perfectly into place */
.cascading-trades .mt5-trade-card:hover {
    z-index: 50 !important;
    transform: translate(var(--tx), calc(var(--ty) - 40px)) scale(1.08);
    filter: brightness(1) contrast(1) blur(0) !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

/* Data variables for --tx, --ty, --sc, --br are now perfectly injected inline via HTML based on group length */

.trade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.trade-header .symbol {
    font-weight: 700;
    font-size: 1.15rem;
    color: #1A1A1A;
}

.trade-header .action.sell {
    color: #ff3b30;
    font-weight: 500;
    margin-left: 5px;
}

.trade-header .order-id {
    color: #8e8e93;
    font-size: 0.85rem;
}

.trade-asset {
    color: #64748B;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.trade-prices {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.trade-prices .price-range {
    color: #64748B;
}

.trade-prices .profit {
    color: #2196f3; /* MT5 blue profit */
    font-weight: 600;
    font-size: 1.35rem;
}

.trade-delta {
    color: #2196f3;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trade-time {
    color: #64748B;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.trade-details {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 1rem;
}

.details-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 45%;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.detail-item .label {
    color: #64748B;
}

.detail-item .value {
    color: #1A1A1A;
}

.detail-item .value.success {
    color: #00e676; /* MT5 green target */
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
    position: relative;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-normal);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-normal);
}

.faq-question:hover {
    color: var(--accent-gold);
}

.faq-question i {
    color: var(--accent-gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    background: #F8FAFC;
}

.faq-item.active .faq-answer {
    padding: 0 2rem 1.5rem;
}

.faq-answer p {
    margin: 0;
    font-size: 0.95rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: #FFFFFF;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-about p {
    font-size: 0.95rem;
    max-width: 350px;
    margin-top: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--accent-gold);
    color: #FFFFFF;
    transform: translateY(-3px);
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-gold);
}

.footer-links ul, .footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a, .footer-contact a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.disclaimer {
    font-size: 0.75rem;
    color: var(--text-secondary);
    max-width: 800px;
    line-height: 1.5;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   RESPONSIVE BASE
   ========================================================================== */
/* ==========================================================================
   SCROLL INDICATOR
   ========================================================================== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-gold);
    font-size: 1.25rem;
    opacity: 0.6;
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer;
    z-index: 10;
    transition: opacity var(--transition-normal);
}

.scroll-indicator:hover {
    opacity: 1;
}

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

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .gc-1, .gc-2, .gc-3    { animation: none; }
    .scroll-indicator       { animation: none; }
    .pricing-card.vip-tier::after { animation: none; }
    .medallion              { animation: none; }
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--accent-gold);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #e67e22; /* Slightly darker gold/orange on hover */
    transform: translateY(-5px);
}

/* Hide on desktop by default as per request (Mobil versiyonda da ekle) */
@media (min-width: 769px) {
    .back-to-top {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero h1 { font-size: 3rem; }
    .hero-container {
        grid-template-columns: 1fr;
        padding-top: 4rem;
    }
    .hero-content {
        align-items: center;
        text-align: center;
    }
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pricing-card.vip-tier {
        transform: scale(1);
    }
    .pricing-card.vip-tier:hover {
        transform: translateY(-5px);
    }
    
    .glass-banner {
        flex-direction: column;
        padding: 3rem 2rem;
        text-align: center;
    }
    
    .stats-list li {
        text-align: left;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    
    .section-padding { padding: 4rem 0; }
    
    .hero h1 { font-size: 2.25rem; }

    /* Hero: tüm içerik tek ekrana sığsın */
    .hero {
        padding-top: 0 !important;
        min-height: 100svh !important; /* iOS safe viewport height */
        min-height: 100dvh !important; /* modern iOS Chrome/Safari */
        display: flex !important;
        align-items: stretch !important;
    }

    .hero-container {
        min-height: 100svh;
        min-height: 100dvh;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .hero-content {
        padding-top: clamp(70px, 14vh, 110px) !important;
        padding-bottom: clamp(0.5rem, 2vh, 1.5rem) !important;
        border-radius: 35px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        gap: clamp(0.4rem, 1.5vh, 1rem) !important;
    }

    .hero-main-logo {
        margin-bottom: clamp(0.25rem, 1vh, 0.75rem) !important;
    }

    .hero-main-logo img {
        max-width: clamp(180px, 55vw, 280px) !important;
    }
    
    .header {
        top: 15px !important; /* Logo panelin içinde kalsın diye aşağı çek */
        width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .hero-stats {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-evenly !important;
        gap: 5px !important;
        width: 100%;
        max-width: 100% !important;
        padding: 1rem 0.5rem !important;
        border-radius: 24px !important;
    }
    
    .hero-stats > div:not([style*="width: 1px"]) {
        flex: 1;
        text-align: center;
        /* Kelime bölünmelerini/taşmayı önle */
        white-space: nowrap; 
    }
    
    .hero-stats h3 {
        font-size: 1.4rem !important;
    }
    
    .hero-stats span {
        font-size: 0.7rem !important;
    }
    
    .hero-stats > div[style*="width: 1px"] {
        align-self: center;
        min-height: 30px !important;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    /* Hamburger → X animasyonu */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .navbar {
        position: relative;
    }

    .nav-links {
        display: none;
    }
    
    /* Nav Buttons gizli değil, sadece A tag'leri gizli (Tema tuşu dışarı çıksın diye) */
    .nav-buttons {
        display: flex !important;
        position: static;
        width: 0;
        height: 0;
        margin: 0;
        padding: 0;
    }
    .nav-buttons > a,
    .nav-buttons > form {
        display: none !important;
    }
    
    #theme-toggle {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 55px; /* Çarpı butonunun yanı (Hamburger menüye çarpmaması için 55px) */
        width: 38px;
        height: 38px;
        z-index: 1005;
        padding: 0 !important;
        margin: 0;
    }

    /* Mobil menü açık hali — CSS class ile yönetilir */
    .navbar.nav-open {
        flex-wrap: wrap;
        z-index: 1000;
    }

    @keyframes menuBgFadeIn {
        0% { opacity: 0; }
        100% { opacity: 1; }
    }

    @keyframes menuSlideInRight {
        0% { opacity: 0; transform: translateX(50px); }
        100% { opacity: 1; transform: translateX(0); }
    }

    /* Mobil Tam Ekran Arkaplan Bulanıklığı (Hepsinde Beyaz) */
    .navbar.nav-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.85) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: -1;
        animation: menuBgFadeIn 0.3s ease-out forwards;
    }

    /* Beyaz arkaplan üzerinde beyaz ikonların görünmez olmasını engellemek için Light Mode Koyu Renkli Buton / İkon Zorlama */
    .navbar.nav-open .mobile-menu-btn span {
        background-color: #0F172A !important;
    }
    
    .navbar.nav-open #theme-toggle,
    .navbar.nav-open .btn-glass {
        color: #0F172A !important;
        border-color: rgba(0, 0, 0, 0.2) !important;
        background: rgba(255, 255, 255, 0.8) !important;
        text-shadow: none !important;
    }

    .navbar.nav-open .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        order: 3;
        gap: 0;
        padding: 0.5rem 0 0;
        border-top: 1px solid rgba(0, 0, 0, 0.07);
    }

    .navbar.nav-open .nav-links li a {
        display: block;
        padding: 0.85rem 0.5rem;
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
        border-bottom: none;
        text-align: center; /* Yazıları Ortala */
        font-weight: 700;
        
        /* Arkaplan daima beyaz olduğu için Light modde metinleri koyulaştır */
        color: #0F172A !important;
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 5px rgba(255, 255, 255, 0.6) !important;
        background: rgba(255, 255, 255, 0.6) !important; 
    }
    
    /* ------------------------------------------------------------- 
       GERÇEK DARK MODE MOBİL MENÜ OVERRIDE 
       ------------------------------------------------------------- */
    [data-theme="dark"] .navbar.nav-open::before {
        background: rgba(15, 23, 42, 0.9) !important; /* Gerçek lacivert-siyah tonu */
        backdrop-filter: blur(25px) saturate(120%);
    }

    [data-theme="dark"] .navbar.nav-open .mobile-menu-btn span {
        background-color: #FFFFFF !important; /* Hamburger x ikonları beyaza döner */
    }

    [data-theme="dark"] .navbar.nav-open #theme-toggle,
    [data-theme="dark"] .navbar.nav-open .btn-glass {
        color: #FFFFFF !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
        background: rgba(255, 255, 255, 0.05) !important;
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.5) !important;
    }

    [data-theme="dark"] .navbar.nav-open .nav-links {
        border-top: 1px solid rgba(255, 255, 255, 0.05); /* Çizgi rengi light'tan dark'a */
    }

    [data-theme="dark"] .navbar.nav-open .nav-links li a {
        color: #F8FAFC !important;
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.8) !important;
        background: rgba(255, 255, 255, 0.03) !important;
    }

    [data-theme="dark"] .navbar.nav-open .nav-links li a:active,
    [data-theme="dark"] .navbar.nav-open .nav-links li a:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        color: var(--accent-gold) !important;
    }

    .navbar.nav-open .nav-buttons {
        flex-direction: column;
        width: 100%;
        height: auto;
        order: 4;
        gap: 0.75rem;
        padding: 1rem 0 1.25rem;
    }
    
    /* Animasyonları Ana Kutuya Değil, İçindeki Elemanlara Ver - Tarayıcı Uyumluluğu (Safari/Chrome Mobile) İçin Kesin Çözüm */
    .navbar.nav-open .nav-links li,
    .navbar.nav-open .nav-buttons > a,
    .navbar.nav-open .nav-buttons > form {
        opacity: 0;
        animation: menuSlideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    
    /* Akıcı Şelale Efekti (Staggered Animation) */
    .navbar.nav-open .nav-links li:nth-child(1) { animation-delay: 0.05s; }
    .navbar.nav-open .nav-links li:nth-child(2) { animation-delay: 0.10s; }
    .navbar.nav-open .nav-links li:nth-child(3) { animation-delay: 0.15s; }
    .navbar.nav-open .nav-links li:nth-child(4) { animation-delay: 0.20s; }
    .navbar.nav-open .nav-links li:nth-child(5) { animation-delay: 0.25s; }
    .navbar.nav-open .nav-links li:nth-child(6) { animation-delay: 0.30s; }
    .navbar.nav-open .nav-links li:nth-child(7) { animation-delay: 0.35s; }
    .navbar.nav-open .nav-buttons > a:nth-child(2) { animation-delay: 0.40s; }
    .navbar.nav-open .nav-buttons > a:nth-child(3) { animation-delay: 0.45s; }
    
    .navbar.nav-open .nav-buttons > a,
    .navbar.nav-open .nav-buttons > form {
        display: flex !important;
        width: 100%;
        justify-content: center;
    }

    .navbar.nav-open .nav-buttons > form button {
        width: 100%;
        justify-content: center;
    }

    .navbar.nav-open .nav-buttons > form {
        animation-delay: 0.45s;
    }
    
    .navbar.nav-open #theme-toggle {
        top: 2px !important; /* Menü açıldığında flexboyutu değişeceği için X butonuyla hizala */
        transform: none !important;
        right: 55px !important;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Şeffaflık / Başarılar Alanı Mobil Düzeni (Simetrik ve Ortalı) */
    /* ── Hero inline style override'ları ──────────────────────────── */
    .hero-text-container {
        padding: clamp(0.75rem, 2.5vh, 1.5rem) clamp(0.75rem, 4vw, 1.25rem) !important;
    }
    .hero-text-container h1 {
        font-size: clamp(1.45rem, 5.5vw, 2rem) !important;
        margin-bottom: clamp(0.25rem, 1vh, 0.5rem) !important;
    }
    .hero-text-container p {
        font-size: clamp(0.8rem, 3vw, 0.95rem) !important;
        margin-bottom: clamp(0.5rem, 1.5vh, 1rem) !important;
    }
    .hero-cta {
        margin-bottom: clamp(0.5rem, 1.5vh, 1rem) !important;
    }
    .hero-cta a {
        padding: clamp(0.55rem, 1.5vh, 0.8rem) clamp(0.75rem, 3vw, 1.2rem) !important;
        font-size: clamp(0.8rem, 3vw, 0.95rem) !important;
    }
    .hero-stats {
        gap: clamp(0.25rem, 2vw, 0.75rem) !important;
        padding: clamp(0.6rem, 1.5vh, 0.85rem) clamp(0.5rem, 3vw, 1.25rem) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .hero-stats h3 {
        font-size: clamp(1rem, 4vw, 1.4rem) !important;
    }
    .hero-stats span {
        font-size: clamp(0.6rem, 2.5vw, 0.75rem) !important;
    }

    /* ── Success section inline padding + min-width fix ───────────── */
    .success-section .dynamic-glass {
        padding: 1.5rem 1rem !important;
        gap: 1.25rem !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        /* iOS Safari Bug: backdrop-filter forces 3D space flattening of children */
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.95) !important;
    }
    
    [data-theme="dark"] .success-section .dynamic-glass {
        background: rgba(15, 23, 42, 0.95) !important;
    }

    .banner-content {
        flex: none !important;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 1.5rem;
        min-width: 0 !important;   /* inline min-width:320px'i iptal et */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .banner-content h2 {
        font-size: clamp(1.5rem, 5.5vw, 2rem) !important;
        text-align: center;
    }

    .banner-content p {
        text-align: center;
        font-size: clamp(0.85rem, 3.5vw, 1.1rem) !important;
    }

    /* ── İşlem Görselleri 3D Makara (Mobile 3D Carousel) ─────────── */

    /* Removed iOS Safari clip hacks because they flatten 3D space */
    .success-section {
        position: relative;
    }
    .success-section .dynamic-glass {
        position: relative;
    }

    .cascading-trades {
        flex: none !important;
        height: 480px;
        margin: 1.5rem auto;
        width: 100% !important;
        max-width: 100vw;
        perspective: 1200px;
        touch-action: pan-y;
    }

    /* Mobilde sadece birleşik makara grubu göster, diğerlerini asla gösterme */
    .desktop-group { display: none !important; }
    #trade-group-mobile { 
        display: flex !important; 
        transition: none !important; /* JS frame-by-frame animasyonları ile CSS geçişinin çelişmesini engeller */
    }

    .trade-group {
        transform-style: preserve-3d;
    }

    .cascading-trades .mt5-trade-card {
        width: clamp(200px, 65vw, 280px);
        /* filter and opacity < 1 break Safari's 3D z-index sorting */
        opacity: 1 !important;
        backface-visibility: visible;
        /* Disable CSS transition so JS physics engine is not fought causing stuttering */
        transition: none !important;
    }

    /* Disable Desktop hover/blur logic on mobile entirely (since touch triggers it unpredictably and kills fps) */
    .cascading-trades:hover .mt5-trade-card,
    .cascading-trades .mt5-trade-card:hover {
        filter: none !important;
        z-index: 50 !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   KÜÇÜK EKRAN BREAKPOINT'LERİ (≤480px ve ≤390px)
   ========================================================================== */

@media (max-width: 480px) {
    /* Hero */
    .hero-content {
        padding-top: calc(65px + env(safe-area-inset-top)) !important;
        margin-top: 0 !important;
    }
    .hero-text-container {
        width: 95% !important;
    }
    .hero-text-container h1 {
        font-size: clamp(1.4rem, 7vw, 1.9rem) !important;
        line-height: 1.2 !important;
    }
    .hero-cta {
        gap: 0.5rem !important;
    }
    .hero-cta a {
        font-size: 0.85rem !important;
        padding: 0.7rem 1rem !important;
    }

    /* Success section */
    .success-section .dynamic-glass {
        padding: 1.2rem 0.85rem !important;
        border-radius: 16px !important;
    }
    .banner-content h2 {
        font-size: clamp(1.3rem, 6.5vw, 1.7rem) !important;
    }
    .banner-content a.btn {
        font-size: 0.85rem !important;
        padding: 0.75rem 1.25rem !important;
    }

    /* Stats */
    .hero-stats h3 {
        font-size: clamp(1rem, 5vw, 1.3rem) !important;
    }
    .hero-stats span {
        font-size: 0.6rem !important;
    }
    .hero-stats > div[style*="width: 1px"] {
        min-height: 24px !important;
    }

    /* Features grid */
    .features-grid {
        grid-template-columns: 1fr !important;
    }
    .section-header .dynamic-glass {
        padding: 1rem 1.25rem !important;
        border-radius: 14px !important;
    }
    .section-header h2 {
        font-size: 1.6rem !important;
    }
}

@media (max-width: 390px) {
    .hero-text-container h1 {
        font-size: clamp(1.2rem, 8vw, 1.6rem) !important;
    }
    .hero-stats {
        gap: 0.15rem !important;
        padding: 0.7rem 0.4rem !important;
    }
    .hero-stats h3 {
        font-size: 1rem !important;
    }
    .hero-stats span {
        font-size: 0.55rem !important;
        white-space: nowrap !important;
    }
    .cascading-trades .mt5-trade-card {
        width: clamp(170px, 55vw, 220px) !important;
    }
    .banner-content h2 {
        font-size: 1.3rem !important;
    }
}

/* ==========================================================================
   LIGHTBOX FOR CASCADING TRADES
   ========================================================================== */
.cascading-trades .mt5-trade-card {
    cursor: zoom-in;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* Siyah karartı yerine beyaz, lüks ve ferah bir buzlu cam (glassmorphism) efekti */
    background-color: rgba(255, 255, 255, 0.7); 
    backdrop-filter: blur(12px) saturate(150%);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    /* Beyaz arka plana uyumlu, çok daha zarif, geniş ve yumuşak bir gölge */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2); 
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    /* Beyaz cam üzerinde net okunabilmesi için koyu füme/siyah renk */
    color: #222;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent-gold);
    transform: scale(1.1);
}


/* --- PREMIUM LOCK UI --- */
.premium-lock-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.premium-lock-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.premium-lock-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 0 40px rgba(255,215,0,0.05);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.premium-lock-overlay.active .premium-lock-card {
    transform: translateY(0) scale(1);
}
.vip-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    color: #000;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Custom compact flex grid exclusively for "Araçlar" page calculators */
.araclar-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    align-items: stretch;
    width: 100%;
}

.araclar-grid > .feature-card {
    width: calc(33.333% - 1rem);
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .araclar-grid {
        flex-direction: column;
        align-items: center;
    }
    .araclar-grid > .feature-card {
        width: 100%;
        max-width: 500px;
    }
}

/* VIP Ribbon/Banner Görseli İçin CSS Sınırlandırması */
.vip-logo-badge {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    width: 140px !important;
    height: auto !important;
    z-index: 10;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
    pointer-events: none; /* Kart üzerindeki tıklamaları engellemesin */
}

@media (max-width: 768px) {
    .vip-logo-badge {
        width: 110px !important;
        top: -5px !important;
        right: -5px !important;
    }
}

/* --- MENÜ YAMASI: ELEMANLAR KESİNLİKLE ALT SATIRA KAYMASIN --- */
.nav-links {
    gap: 0.6rem !important; /* Boşluklar sıkılaştırıldı */
    flex-wrap: nowrap !important;
}

.nav-links a {
    white-space: nowrap !important; /* Yazı kesinlikle tek satırda kalır */
    padding: 0.5rem 0.8rem !important; /* Hap boyutu küçültüldü */
    font-size: 0.85rem !important;
}

.nav-buttons .btn {
    white-space: nowrap !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
}

.navbar {
    gap: 0.5rem; /* Logo ile menü arasına nefes alma payı */
    flex-wrap: nowrap !important;
}

/* Mobilde menünün düzgün açılması için Override'ları ez */
@media (max-width: 992px) {
    .navbar.nav-open {
        flex-wrap: wrap !important;
    }
    .navbar.nav-open .nav-links {
        flex-direction: column !important;
        gap: 0 !important;
    }
    .navbar.nav-open .nav-links a {
        white-space: normal !important;
        font-size: 1.05rem !important;
        padding: 1rem 0.5rem !important;
    }
}

/* ==========================================================================
   FOOTER INTENSIVE DYNAMIC GLASS OVERRIDE (Option 1)
   ========================================================================== */
.footer {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1) !important;
    position: relative;
    z-index: 10;
}

[data-theme="dark"] .footer,
body.dark-mode .footer {
    background-color: rgba(15, 23, 42, 0.85) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5) !important;
}

/* Footer text colors for light mode (High Contrast) */
.footer p, 
.footer-about p, 
.footer .disclaimer {
    color: #333 !important;
    font-weight: 500;
}
.footer h4, 
.footer-links a, 
.footer-contact a {
    color: #111 !important;
    font-weight: 600;
}
.footer-bottom .copyright {
    color: #555 !important;
}

/* Footer text colors for dark mode */
[data-theme="dark"] .footer p, 
[data-theme="dark"] .footer-about p, 
[data-theme="dark"] .footer .disclaimer,
body.dark-mode .footer p, 
body.dark-mode .footer-about p, 
body.dark-mode .footer .disclaimer {
    color: #cbd5e1 !important;
    font-weight: 400;
}

[data-theme="dark"] .footer h4, 
[data-theme="dark"] .footer-links a, 
[data-theme="dark"] .footer-contact a,
body.dark-mode .footer h4, 
body.dark-mode .footer-links a, 
body.dark-mode .footer-contact a {
    color: #ffffff !important;
}

[data-theme="dark"] .footer-bottom .copyright,
body.dark-mode .footer-bottom .copyright {
    color: #94a3b8 !important;
}

/* ==========================================================================
   MOBİL & RESPONSIVE DÜZELTMELER (Eksikler Giderildi)
   ========================================================================== */

/* --- Eksik 19: Cascading trade kartları tablet boyutlarında taşma ---
   768px-1200px arası viewport'larda kartları orantılı küçült */
@media (max-width: 1200px) and (min-width: 769px) {
    .cascading-trades {
        width: 400px;
        height: 520px;
    }
    .cascading-trades .mt5-trade-card {
        width: 400px;
    }
}

@media (max-width: 960px) and (min-width: 769px) {
    .cascading-trades {
        width: 320px;
        height: 440px;
    }
    .cascading-trades .mt5-trade-card {
        width: 320px;
    }
}

/* --- Eksik 22: Hesaplayıcı formlarındaki yan yana input alanları
   küçük ekranlarda alt alta gelsin --- */
@media (max-width: 480px) {
    /* araclar.php içindeki form-row'lar (inline flex layout'ları) */
    .araclar-grid .feature-card form > div[style*="display: flex"][style*="gap: 10px"] {
        flex-direction: column !important;
    }
    .araclar-grid .feature-card form > div[style*="display: flex"][style*="gap: 10px"] > div {
        flex: none !important;
        width: 100% !important;
    }
    /* Araclar grid: max-width sınırını 480px altında kaldır */
    .araclar-grid {
        max-width: 100% !important;
    }
}

/* --- Eksik 23: Footer mobilde daha iyi görünüm ---
   Alt kısımda güvenli alan (home indicator) boşluğu ve kompakt düzen */
@media (max-width: 768px) {
    .footer {
        padding: 2.5rem 0 1.5rem !important;
        /* iOS home indicator için alt boşluk */
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)) !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center;
    }

    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links ul {
        align-items: center;
    }

    .footer-about p {
        max-width: 100%;
        font-size: 0.9rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* --- Eksik 21: Admin panel tabloları mobilde yatay kaydırılabilir ---
   (Doğrudan style.css'e konmuş, admin sayfaları kendi <style> bloğunda da güncellendi) */
.admin-table-wrap,
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 4px;
}

/* Auth sayfaları (login/register/forgot/reset) telefon ekranında doldurucu dolgu */
@media (max-width: 480px) {
    body.auth-page main {
        padding: 1rem !important;
        align-items: flex-start !important;
        padding-top: 1.5rem !important;
    }
    body.auth-page .glass-card {
        padding: 2rem 1.5rem !important;
        border-radius: 16px !important;
    }
}

/* Zorunlu Responsive Sabitleyici: Araçlar Formu Taşmayı Önleme */
.tool-form input {
    min-width: 0 !important;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .araclar-grid .feature-card {
        padding: 1.2rem !important;
    }
}

