/* Tema geçişlerinde kademeli / kirli gecikmeleri önle: Anında ve senkronize geçiş */
.disable-transitions,
.disable-transitions *,
.disable-transitions *::before,
.disable-transitions *::after {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    -ms-transition: none !important;
    transition: none !important;
}
.disable-transitions .theme-slider-thumb {
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
html, body {
    overflow-x: clip !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
    position: relative;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
header, .site-header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
}
.apple-card-shadow {
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
}
.apple-hero-glow {
    background-color: #f8fafc;
    background-image: radial-gradient(rgba(148, 163, 184, 0.25) 1px, transparent 1px);
    background-size: 24px 24px;
}
.browser-mockup-shadow {
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(226, 232, 240, 0.9);
}
.faq-collapse-panel, .faq-collapse-sub {
    display: grid;
    transition: grid-template-rows 350ms cubic-bezier(0.16, 1, 0.3, 1);
}
/* ========================================================== */
/*  HUSH YAZILIM GLOBAL DARK MODE (ÖZEL KARANLIK TEMA)      */
/* ========================================================== */
html.dark {
    color-scheme: dark;
}
html.dark body {
    background-color: #070b12 !important;
    color: #f1f5f9 !important;
}
html.dark header {
    background-color: rgba(7, 11, 18, 0.92) !important;
    border-color: rgba(30, 41, 59, 0.8) !important;
}
html.dark .apple-hero-glow {
    background-color: #070b12 !important;
    background-image: radial-gradient(rgba(51, 65, 85, 0.4) 1px, transparent 1px) !important;
    background-size: 24px 24px !important;
    border-color: rgba(30, 41, 59, 0.8) !important;
}
html.dark .store-hero-glow {
    background-color: #070b12 !important;
    background-image: 
        radial-gradient(at 50% -10%, rgba(20, 184, 166, 0.22) 0px, transparent 65%),
        radial-gradient(at 85% 15%, rgba(14, 165, 233, 0.12) 0px, transparent 55%),
        radial-gradient(at 15% 35%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
        radial-gradient(#1e293b 1.2px, transparent 1.2px) !important;
    border-color: rgba(30, 41, 59, 0.8) !important;
}
html.dark section {
    background-color: #070b12 !important;
    border-color: rgba(30, 41, 59, 0.8) !important;
}
html.dark .bg-white {
    background-color: #0f172a !important;
    border-color: rgba(51, 65, 85, 0.7) !important;
}
html.dark [class*="bg-white/"] {
    background-color: rgba(15, 23, 42, 0.92) !important;
    border-color: rgba(51, 65, 85, 0.7) !important;
}
html.dark .bg-slate-50 {
    background-color: #070b12 !important;
}
html.dark [class*="bg-slate-50/"] {
    background-color: rgba(15, 23, 42, 0.7) !important;
}
html.dark .bg-slate-100 {
    background-color: #1e293b !important;
    border-color: rgba(51, 65, 85, 0.7) !important;
}
html.dark [class*="bg-slate-100/"] {
    background-color: rgba(30, 41, 59, 0.8) !important;
}
html.dark [class*="bg-slate-200/"] {
    background-color: rgba(30, 41, 59, 0.9) !important;
    border-color: rgba(51, 65, 85, 0.7) !important;
}
html.dark .bg-brand-50,
html.dark .bg-teal-50,
html.dark .bg-emerald-50,
html.dark .bg-indigo-50,
html.dark .bg-cyan-50,
html.dark .bg-blue-50 {
    background-color: rgba(20, 184, 166, 0.12) !important;
    border-color: rgba(20, 184, 166, 0.25) !important;
    color: #5eead4 !important;
}
/*  Koyu Temada Beyaz Parlama ve Beyaz Gölgeleri Tamamen Engelleme */
html.dark [class*="shadow-slate-"],
html.dark [class*="shadow-white"] {
    --tw-shadow-color: rgba(0, 0, 0, 0.7) !important;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7) !important;
}
html.dark .shadow-xl {
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.75) !important;
}
html.dark .shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85) !important;
}
html.dark .shadow-lg {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6) !important;
}
html.dark [class*="radial-gradient"] {
    opacity: 0.15 !important;
}
/* Gradient kartların koyu temaya dönüşümü (Vitrin, Süreç, Store CTA, Özel Bot Kartı) */
html.dark [class*="from-white"],
html.dark [class*="from-slate-50"],
html.dark [class*="from-teal-50"] {
    --tw-gradient-from: #0f172a var(--tw-gradient-from-position) !important;
    --tw-gradient-to: rgb(15 23 42 / 0) var(--tw-gradient-to-position) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}
html.dark [class*="via-white"],
html.dark [class*="via-slate-50"] {
    --tw-gradient-to: rgb(15 23 42 / 0) var(--tw-gradient-to-position) !important;
    --tw-gradient-stops: var(--tw-gradient-from), #0f172a var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}
html.dark [class*="to-white"],
html.dark [class*="to-slate-50"],
html.dark [class*="to-slate-100"],
html.dark [class*="to-teal-50"] {
    --tw-gradient-to: #090e1a var(--tw-gradient-to-position) !important;
}
/* Vitrin Mockup Penceresi */
html.dark .browser-mockup-shadow {
    background-color: #0b111e !important;
    border-color: rgba(51, 65, 85, 0.7) !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(51, 65, 85, 0.6) !important;
}
html.dark .hero-showcase-panel [class*="bg-white"] {
    background-color: #131c2e !important;
    border-color: rgba(51, 65, 85, 0.7) !important;
}
/* Metinler ve Başlıklar */
html.dark .text-slate-900,
html.dark .text-slate-800 {
    color: #f8fafc !important;
}
html.dark .text-slate-700,
html.dark .text-slate-600 {
    color: #cbd5e1 !important;
}
html.dark .text-slate-500,
html.dark .text-slate-400 {
    color: #94a3b8 !important;
}
html.dark .border-slate-200,
html.dark .border-slate-200\/80,
html.dark .border-slate-200\/90,
html.dark .border-slate-100 {
    border-color: rgba(51, 65, 85, 0.6) !important;
}
html.dark .apple-card-shadow {
    background-color: #0f172a !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(51, 65, 85, 0.6) !important;
}
/* SSS Akordeon Kartları */
html.dark .faq-cat-card,
html.dark .faq-cat-card > button {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-color: rgba(51, 65, 85, 0.7) !important;
}
html.dark .faq-cat-card > button:hover {
    background-color: #131c2e !important;
}
html.dark .faq-sub-card,
html.dark .faq-sub-card button {
    background-color: #131c2e !important;
    color: #f8fafc !important;
    border-color: rgba(51, 65, 85, 0.6) !important;
}
html.dark .faq-cat-chevron,
html.dark .faq-sub-chevron {
    background-color: #1e293b !important;
    border-color: rgba(51, 65, 85, 0.8) !important;
    color: #94a3b8 !important;
}
/* Mağaza Hızlı Arama Butonları & Filtreler */
html.dark button[onclick*="quickFilterTag"] {
    background-color: #131c2e !important;
    border-color: rgba(51, 65, 85, 0.8) !important;
    color: #cbd5e1 !important;
}
html.dark button[onclick*="quickFilterTag"]:hover {
    background-color: rgba(20, 184, 166, 0.2) !important;
    border-color: #14b8a6 !important;
    color: #5eead4 !important;
}
/* Formlar & Girdiler */
html.dark input,
html.dark textarea,
html.dark select {
    background-color: #131c2e !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}
html.dark input.bg-transparent,
html.dark input[type="text"].bg-transparent,
html.dark #storeSearchInput {
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}
html.dark input::placeholder,
html.dark textarea::placeholder {
    color: #64748b !important;
}
html.dark #mobileMenu {
    background-color: rgba(7, 11, 18, 0.98) !important;
    border-color: rgba(30, 41, 59, 0.8) !important;
}
html.dark #mobileMenu a {
    color: #f1f5f9;
}
html.dark #mobileMenu a:hover {
    background-color: rgba(30, 41, 59, 0.7);
}
html.dark #mobileMenuBtn {
    background-color: rgba(15, 23, 42, 0.9) !important;
    color: #f8fafc !important;
    border-color: rgba(51, 65, 85, 0.8) !important;
}
html.dark footer {
    background-color: #0f172a !important;
    border-color: rgba(30, 41, 59, 0.8) !important;
}
html.dark h1, html.dark h2, html.dark h3, html.dark h4 {
    color: #f8fafc !important;
}
html.dark h1 span.bg-clip-text,
html.dark h2 span.bg-clip-text,
html.dark h3 span.bg-clip-text {
    background-image: linear-gradient(to right, #ffffff, #2dd4bf, #14b8a6) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

/* ========================================================== */
/*  MODERN SLIDING THEME TOGGLE (PREMIUM PILL SWITCH)       */
/* ========================================================== */
.theme-slider-toggle {
    position: relative;
    width: 62px;
    height: 32px;
    border-radius: 9999px;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    user-select: none;
    flex-shrink: 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
    outline: none;
}
@media (max-width: 1023.98px) {
    header .theme-slider-toggle:not(#mobileMenu .theme-slider-toggle),
    .theme-slider-toggle.hidden {
        display: none !important;
    }
}
@media (min-width: 1024px) {
    .theme-slider-toggle.lg\:inline-flex,
    header .theme-slider-toggle:not(#mobileMenu .theme-slider-toggle) {
        display: inline-flex !important;
    }
}
@media (min-width: 640px) {
    .theme-slider-toggle.sm\:flex,
    .theme-slider-toggle.sm\:inline-flex {
        display: inline-flex !important;
    }
}
.theme-slider-toggle:hover {
    border-color: #94a3b8;
    background: #cbd5e1;
}
html.dark .theme-slider-toggle {
    background: #0f172a !important;
    border-color: #334155 !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}
html.dark .theme-slider-toggle:hover {
    border-color: #475569 !important;
}
.theme-slider-slot {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.25s ease;
}
.theme-slider-slot.slot-left {
    color: #f59e0b;
    opacity: 0.35;
}
.theme-slider-slot.slot-right {
    color: #64748b;
    opacity: 0.65;
}
html.dark .theme-slider-slot.slot-left {
    color: #64748b;
    opacity: 0.6;
}
html.dark .theme-slider-slot.slot-right {
    color: #38bdf8;
    opacity: 0.35;
}
.theme-slider-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    border-radius: 9999px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16), 0 1px 2px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1), background-color 0.2s ease, box-shadow 0.2s ease;
    z-index: 2;
    pointer-events: none;
}
html.dark .theme-slider-thumb {
    transform: translateX(32px);
    background: #1e293b;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(56, 189, 248, 0.25);
}
.thumb-icon-sun {
    font-size: 12px;
    color: #d97706;
    display: block;
}
.thumb-icon-moon {
    font-size: 11px;
    color: #38bdf8;
    display: none;
}
html.dark .thumb-icon-sun {
    display: none;
}
html.dark .thumb-icon-moon {
    display: block;
}
