/* style.css - Tüm YapıLab Sayfaları İçin Ortak Dark Engineering UI Tasarım Sistemi */

:root {
    --bg-dark: #121212;
    --bg-darker: #0a0a0a;
    --bg-card: #181b22;
    --bg-card-hover: #222733;
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --accent-color: #f5a623;
    --accent-hover: #e09612;
    --accent-glow: rgba(245, 166, 35, 0.25);
    --accent-gradient: linear-gradient(135deg, #f5a623 0%, #ff8c00 100%);
    --eng-blue: #181b22;
    --eng-orange: #f5a623;
    --eng-gray: #334155;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(245, 166, 35, 0.35);
    --font-family: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --accent-blue: #60a5fa;
    --accent-emerald: #34d399;
    --accent-orange: #fbbf24;
    --accent-rose: #f87171;
    --accent-violet: #a78bfa;
}

/* Utilities */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

html, body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark) !important;
    color: var(--text-main) !important;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Dark Engineering Blueprint Grid Arka Planı */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(245, 166, 35, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(59, 130, 246, 0.04) 0%, transparent 40%),
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 30px 30px, 30px 30px;
    z-index: 0;
    pointer-events: none;
}

/* Ambient Glow Blobs */
.glow-blob {
    position: fixed !important;
    border-radius: 50% !important;
    filter: blur(90px) !important;
    z-index: 0 !important;
    opacity: 0.12 !important;
    pointer-events: none !important;
    animation: blob-float 20s infinite alternate !important;
}

@keyframes blob-float {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(10%, 10%) scale(1.1); }
}

#root {
    background: transparent !important;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* --- Butonlar ve Etiketler --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
    font-family: var(--font-family);
}

.btn-primary {
    background: var(--accent-gradient) !important;
    color: #000000 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffb13b 0%, #fa7b00 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.4);
    color: #000 !important;
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: var(--text-main) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.btn-outline:hover {
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
    background-color: rgba(245, 166, 35, 0.08) !important;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-color);
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid rgba(245, 166, 35, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* --- Başlıklar --- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
}

/* --- Navbar (Menü) --- */
header, body > nav {
    position: sticky !important;
    top: 0 !important;
    z-index: 10000 !important;
    background: rgba(18, 18, 18, 0.94) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5) !important;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.logo i {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    color: #cbd5e1;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active, nav a:hover {
    color: var(--accent-color) !important;
}

/* --- Alt Sayfa Başlık Alanı --- */
.page-banner {
    padding: 60px 0;
    background: linear-gradient(180deg, #161616 0%, #121212 100%);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 40px;
}

.page-banner h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    font-weight: 800;
    color: #ffffff;
}

.page-banner p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* --- Grid ve Kart Yapıları --- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

.card {
    background-color: var(--bg-card);
    padding: 30px 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    background-color: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.card-icon {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.card-text {
    color: #cbd5e1;
    font-size: 0.92rem;
}

/* ═════════════════════════════════════════════════════════════════
   GLOBAL DARK ENGINEERING UI OVERRIDES (HIGH CONTRAST)
   ═════════════════════════════════════════════════════════════════ */

.bg-white, .glass-panel,
.bg-white\/95, .bg-white\/90, .bg-white\/80, .bg-white\/70, .bg-white\/60, .bg-white\/50, .bg-white\/40, .bg-white\/30, .bg-white\/20 {
    background-color: #181b22 !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6) !important;
    color: #ffffff !important;
}

.bg-white\/10, .bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.hover\:bg-white\/50:hover, .hover\:bg-white\/40:hover, .hover\:bg-white\/20:hover, .hover\:bg-white\/10:hover {
    background-color: #222733 !important;
}

/* Box Shadows Neutralization - Prevent White Glowing Shadows in Dark Mode */
.shadow-slate-200, .shadow-slate-200\/50, .shadow-slate-100,
.shadow-gray-200, .shadow-zinc-200, .shadow-indigo-200, .shadow-sky-200, .shadow-blue-200,
[class*="shadow-slate-"], [class*="shadow-gray-"], [class*="shadow-zinc-"] {
    --tw-shadow-color: rgba(0, 0, 0, 0.6) !important;
    --tw-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.6) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6) !important;
}

.bg-slate-50, .bg-slate-100, .bg-gray-50, .bg-gray-100, .bg-zinc-50, .bg-zinc-100 {
    background-color: #14171f !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.bg-slate-200, .bg-gray-200, .bg-zinc-200 {
    background-color: #222733 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.bg-slate-900 {
    background-color: #14171f !important;
}

.bg-slate-800, .bg-slate-800\/80, .bg-slate-800\/60, .bg-slate-800\/40 {
    background-color: #181b22 !important;
}

/* Renkli Kategori Yumuşak Arka Planları (Dark Mode İçin) */
.bg-sky-50, .bg-sky-50\/30, .bg-sky-50\/50, .bg-sky-100, .bg-cyan-50, .bg-cyan-100 {
    background-color: rgba(14, 165, 233, 0.12) !important;
    border-color: rgba(14, 165, 233, 0.3) !important;
}
.bg-blue-50, .bg-blue-50\/30, .bg-blue-50\/50, .bg-blue-100 {
    background-color: rgba(59, 130, 246, 0.12) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}
.bg-emerald-50, .bg-emerald-50\/30, .bg-emerald-50\/50, .bg-emerald-100 {
    background-color: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}
.bg-amber-50, .bg-amber-50\/30, .bg-amber-50\/50, .bg-amber-100 {
    background-color: rgba(245, 166, 35, 0.12) !important;
    border-color: rgba(245, 166, 35, 0.3) !important;
}
.bg-indigo-50, .bg-indigo-50\/30, .bg-indigo-50\/50, .bg-indigo-100 {
    background-color: rgba(99, 102, 241, 0.12) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
}
.bg-rose-50, .bg-rose-100, .bg-red-50 {
    background-color: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

/* Metin Renkleri - Yüksek Kontrast */
.text-slate-900, .text-slate-800, .text-slate-700,
.text-gray-900, .text-gray-800, .text-gray-700,
.text-zinc-900, .text-zinc-800, .text-zinc-700,
.text-engBlue, .text-eng-blue {
    color: #ffffff !important;
}

.text-engBlue\/90, .text-engBlue\/80, .text-slate-800\/80 {
    color: #f8fafc !important;
}

.text-slate-600, .text-slate-500,
.text-gray-600, .text-gray-500,
.text-zinc-600, .text-zinc-500,
.text-engBlue\/70, .text-engBlue\/60 {
    color: #cbd5e1 !important;
}

.text-slate-400, .text-gray-400, .text-zinc-400,
.text-engBlue\/50, .text-engBlue\/40, .text-engBlue\/30 {
    color: #94a3b8 !important;
}

/* Renkli Vurgu Metinleri */
.text-blue-600, .text-blue-700, .text-blue-500, .text-accent-blue {
    color: #60a5fa !important;
}
.text-emerald-600, .text-emerald-700, .text-emerald-500, .text-accent-emerald {
    color: #34d399 !important;
}
.text-amber-600, .text-amber-700, .text-amber-500, .text-engOrange, .text-accent-orange {
    color: #fbbf24 !important;
}
.text-indigo-600, .text-indigo-700, .text-indigo-500 {
    color: #818cf8 !important;
}
.text-red-600, .text-red-700, .text-red-500 {
    color: #f87171 !important;
}

/* Kenarlıklar */
.border-slate-200, .border-slate-100, .border-slate-300,
.border-gray-200, .border-gray-100, .border-gray-300,
.border-zinc-200, .border-zinc-300 {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.bg-engBlue, .bg-eng-blue {
    background-color: #1e222d !important;
    color: #ffffff !important;
}

.bg-engBlue\/10, .bg-engBlue\/5, .bg-engBlue\/20 {
    background-color: rgba(255, 255, 255, 0.06) !important;
}

.border-engBlue\/10, .border-engBlue\/20 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Form Elemanları (Input, Select, Textarea) */
input, select, textarea {
    background-color: #121212 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.25) !important;
    background-color: #0b0d11 !important;
}

select option {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
}

/* Butonlar */
button.bg-sky-500, button.bg-blue-600, button.bg-engBlue, button.bg-indigo-600, .bg-engOrange {
    background: var(--accent-gradient) !important;
    color: #000000 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px var(--accent-glow) !important;
    border: none !important;
}

button.bg-sky-500:hover, button.bg-blue-600:hover, button.bg-indigo-600:hover {
    background: linear-gradient(135deg, #ffb13b 0%, #fa7b00 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.4) !important;
}

/* Tablolar */
table {
    border-collapse: collapse;
    width: 100%;
    color: #ffffff;
}

th {
    background-color: #14171f !important;
    color: var(--accent-color) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
    padding: 12px 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 12px 16px !important;
    color: #e2e8f0;
}

tr:hover td {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

/* Simülasyon Kartları & Readouts */
.sim-card {
    background-color: #181b22 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.sim-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color) !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 20px rgba(245, 166, 35, 0.15) !important;
}

.readout-box {
    font-family: 'JetBrains Mono', monospace;
    background: #0d0f12 !important;
    color: var(--accent-color) !important;
    border-radius: 6px;
    padding: 10px 15px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.6);
    border: 1px solid rgba(245, 166, 35, 0.2) !important;
}

.input-eng {
    background: #121212 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 700;
    color: #ffffff !important;
    outline: none;
    transition: all 0.3s;
}

.input-eng:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.25) !important;
}

/* Turkey Map Styles */
.turkey-map-wrapper { position: relative; }
.turkey-map-container { position: relative; border-radius: 16px; overflow: hidden; }
.turkey-map-container svg path {
    stroke: #121212 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}
.turkey-map-container svg path:hover {
    filter: brightness(1.3) drop-shadow(0 0 8px rgba(245, 166, 35, 0.5)) !important;
    stroke: var(--accent-color) !important;
    stroke-width: 2px !important;
}
.turkey-map-container svg text { pointer-events: none; user-select: none; }

/* Simülasyon Animasyonları */
.needle-penetration { transition: transform 2s cubic-bezier(0.4, 0, 0.2, 1); }
.slump-morph { transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.concrete-color { fill: #475569; stroke: #334155; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}
.animate-shake { animation: shake 0.2s infinite; }
.frost-bar { transition: width 2s cubic-bezier(0.4, 0, 0.2, 1); }

@keyframes layerSlideIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.cross-section-layer { animation: layerSlideIn 0.5s ease-out forwards; }

@keyframes crack-draw {
    0% { stroke-dashoffset: 120; opacity: 0; }
    50% { opacity: 0.8; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}
.crack-line { stroke-dasharray: 120; stroke-dashoffset: 0; animation: crack-draw 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

@keyframes debris-pop {
    0% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
    70% { opacity: 0.9; }
    100% { opacity: 0; transform: var(--debris-target) scale(0.2) rotate(var(--debris-rot)); }
}
.debris-particle-fly { animation: debris-pop 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

@keyframes press-shake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-8px, 4px) rotate(-1.5deg); }
    20% { transform: translate(8px, -4px) rotate(1.5deg); }
    30% { transform: translate(-6px, 3px) rotate(-1deg); }
    40% { transform: translate(6px, -3px) rotate(1deg); }
    50% { transform: translate(-4px, 2px) rotate(-0.5deg); }
    60% { transform: translate(4px, -2px) rotate(0.5deg); }
    70% { transform: translate(-2px, 1px); }
    80% { transform: translate(2px, -1px); }
}
.press-shake { animation: press-shake 0.45s ease-out; }

@keyframes specimen-pulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
}
.specimen-pulse { animation: specimen-pulse 0.8s ease-in-out infinite; }

.stress-strain-chart {
    background: #0f1218;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}
.stress-strain-chart svg text { font-family: 'Inter', system-ui, sans-serif; font-weight: 600; }

@keyframes load-glow {
    0%, 100% { box-shadow: 0 0 4px rgba(245, 166, 35, 0.3); }
    50% { box-shadow: 0 0 12px rgba(245, 166, 35, 0.6); }
}
.load-bar-active { animation: load-glow 1s ease-in-out infinite; }
.gauge-needle { transition: transform 0.1s linear; transform-origin: bottom center; }

@keyframes result-slide-in {
    0% { opacity: 0; transform: translateY(20px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.result-card-enter { animation: result-slide-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

@keyframes stamp-slam {
    0% { transform: rotate(-20deg) scale(2.5); opacity: 0; }
    60% { transform: rotate(-12deg) scale(1); opacity: 1; }
    80% { transform: rotate(-10deg) scale(1.05); }
    100% { transform: rotate(-12deg) scale(1); }
}
.verdict-stamp { animation: stamp-slam 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

/* --- Footer --- */
footer {
    background-color: #0a0a0a !important;
    padding: 60px 0 20px !important;
    border-top: 1px solid #222 !important;
    margin-top: 80px;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 15px;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1rem;
    color: #ffffff;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links ul a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.8rem;
}

.footer-ref-link {
    background: #181b22 !important;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-ref-link:hover {
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.2);
}

/* --- Responsive Tasarım --- */
@media (max-width: 992px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .page-banner h1 { font-size: 2.2rem; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* Global Hidden Utility */
.hidden {
    display: none !important;
}

/* --- Auth Modal & Gatekeeper Global Styles --- */
.yapilab-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    z-index: 999999 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    display: none;
}

.yapilab-modal-overlay.active {
    display: flex !important;
}

.yapilab-modal-overlay.hidden,
.yapilab-modal-overlay:not(.active) {
    display: none !important;
}

/* Dark Autofill Override */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 40px #181b22 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

.yapilab-modal-card {
    position: relative !important;
    width: 100% !important;
    max-width: 440px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    background: #14171f !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 24px !important;
    padding: 28px 24px !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9) !important;
    color: #ffffff !important;
    box-sizing: border-box !important;
    text-align: left;
}

.yapilab-modal-card::-webkit-scrollbar {
    width: 4px;
}
.yapilab-modal-card::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.yapilab-gatekeeper-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(18, 18, 18, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    z-index: 90000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* Dedicated Auth Modal & Gatekeeper Components */
.yapilab-modal-card * {
    box-sizing: border-box;
}

.auth-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.auth-logo-box {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    border-radius: 12px;
    background: #181b22;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    flex-shrink: 0;
    overflow: hidden;
}

.auth-logo-box img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

.auth-tagline {
    font-size: 10px;
    font-family: monospace;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #f5a623;
    text-transform: uppercase;
    line-height: 1.2;
}

.auth-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff;
    margin: 2px 0 0 0;
    line-height: 1.2;
    font-family: var(--font-heading, 'Outfit', sans-serif);
}

.auth-subtitle {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.5;
}

.auth-tabs-container {
    display: flex;
    background: #181b22;
    padding: 4px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    gap: 4px;
}

.auth-tab-btn {
    flex: 1;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.auth-tab-btn.active {
    background: #f5a623 !important;
    color: #090b10 !important;
    font-weight: 900 !important;
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.25) !important;
}

.auth-tab-btn:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.auth-form-group {
    margin-bottom: 14px;
    position: relative;
}

.auth-form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 18px;
    pointer-events: none;
    z-index: 2;
}

.yapilab-modal-card input[type="text"],
.yapilab-modal-card input[type="email"],
.yapilab-modal-card input[type="password"],
.yapilab-modal-card select {
    width: 100% !important;
    background: #181b22 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    padding: 10px 14px 10px 42px !important;
    font-size: 13.5px !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.yapilab-modal-card input[type="password"] {
    padding-right: 42px !important;
}

.yapilab-modal-card .auth-input-no-icon {
    padding-left: 14px !important;
}

.yapilab-modal-card input:focus,
.yapilab-modal-card select:focus {
    border-color: #f5a623 !important;
    box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.25) !important;
}

.auth-toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    color: #64748b !important;
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 2;
}

.auth-toggle-pass:hover {
    color: #ffffff !important;
}

.auth-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.auth-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 16px 0;
    font-size: 12px;
    color: #94a3b8;
}

.auth-remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.auth-remember-label input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    accent-color: #f5a623 !important;
    cursor: pointer;
    margin: 0;
}

.auth-submit-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: #f5a623 !important;
    color: #090b10 !important;
    border: none;
    font-size: 13.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(245, 166, 35, 0.25);
}

.auth-submit-btn:hover {
    background: #e09618 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.35);
}

.auth-demo-box {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-demo-btn {
    width: 100%;
    padding: 10px 14px;
    background: #181b22;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #f5a623;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.auth-demo-btn:hover {
    background: #222733;
    border-color: rgba(245, 166, 35, 0.4);
}

.auth-alert-box {
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #181b22;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.auth-close-btn:hover {
    color: #ffffff;
    border-color: rgba(245, 166, 35, 0.4);
    background: #222733;
}

#yapilab-auth-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    padding: 14px 20px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
}


