/**
 * Baykuş Software - Hero Bölümü & 3 Canlı Uygulama CSS Mimarisi
 * Obsidian Titanium & Siyah-Beyaz Premium Tema
 * Z-Index Hiyerarşisi: Canlı Destek (9995) < AppWindow (10050)
 */

/* ==========================================================================
   1. HERO BÖLÜMÜ YERLEŞİMİ (DESKTOP >= 1024px & MOBİL < 1024px)
   ========================================================================== */
.cinematic-hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(90px, 12vh, 140px) 24px clamp(60px, 8vh, 100px);
    box-sizing: border-box;
    overflow: clip;
    background: #000000;
}

/* Ambient Canvas Arka Plan */
.ambient-canvas-wrapper {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* Ortalanmış Merkez Metin Sütunu (z-index: 10, max-width: 760px) */
.hero-center-column {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    pointer-events: none; /* Boşluklarda arkadaki yüzen kartlara tıklanabilsin */
}

.hero-center-column > * {
    pointer-events: auto; /* Metin seçilebilir veya etkileşime girilebilir */
}

/* Gemini About Tarzı Kademeli (Staggered) Sinematik Giriş Animasyonu */
@keyframes geminiStaggerFadeUp {
    0% {
        opacity: 0;
        transform: translateY(38px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.mono-meta {
    animation: geminiStaggerFadeUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.25s backwards;
}

.cinematic-title {
    font-size: clamp(2.4rem, 5.2vw, 4.6rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.04em !important;
    line-height: 1.08 !important;
    margin: 18px auto 22px !important;
    color: #ffffff !important;
    text-wrap: balance;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.8);
    animation: geminiStaggerFadeUp 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s backwards;
}

.cinematic-lead {
    font-size: clamp(0.95rem, 1.4vw, 1.15rem) !important;
    line-height: 1.7 !important;
    color: #cbd5e1 !important;
    max-width: 640px !important;
    margin: 0 auto 32px !important;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.9);
    animation: geminiStaggerFadeUp 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.85s backwards;
}

/* Kartlar Kapsayıcısı */
.hero-cards-wrapper {
    position: relative;
    width: 100%;
}

/* ==========================================================================
   2. ORTAK KART BİLEŞENİ (AppCard)
   ========================================================================== */
.hero-app-card {
    aspect-ratio: 4 / 3;
    border-radius: 22px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.04);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    user-select: none;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease,
                box-shadow 0.45s ease;
    perspective: 900px;
    outline: none;
}

.hero-app-card:hover {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 255, 255, 0.08);
}

.hero-app-card:focus-visible {
    border-color: #5ef2ff;
    box-shadow: 0 0 0 3px rgba(94, 242, 255, 0.4);
}

/* Kart Mini Önizleme Sahnesi (Üst %70) */
.card-preview-stage {
    position: relative;
    flex: 1;
    width: 100%;
    background: #04060b;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Kart Alt Bilgi Şeridi (Alt %30) */
.card-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #0d0f14;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-mono-tag {
    display: block;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 2px;
}

.card-app-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2px 0;
}

.card-app-desc {
    font-size: 0.72rem;
    color: #94a3b8;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.card-arrow-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.hero-app-card:hover .card-arrow-icon {
    background: #ffffff;
    color: #000000;
    transform: translateX(3px);
}

/* ==========================================================================
   3. KART MİNİ ÖNİZLEMELERİ (STOK GÖRSEL YOK · HAFİF CSS & 2D CANVAS)
   ========================================================================== */

/* A. Evrak AI Mini Önizleme (Stilize Belge ve KVKK Maskeleri) */
.preview-evrak {
    background: linear-gradient(145deg, #060b11 0%, #03060a 100%);
    padding: 16px;
    box-sizing: border-box;
}

.mini-doc-sheet {
    width: 100%;
    height: 100%;
    background: #0d131f;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.doc-header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 6px;
}

.doc-title-placeholder {
    width: 45%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.mini-badge-kvkk {
    font-family: var(--font-mono, monospace);
    font-size: 0.6rem;
    font-weight: 700;
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

.doc-body-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.doc-line {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.doc-line.l-long { width: 90%; }
.doc-line.l-med { width: 75%; }
.doc-line.l-short { width: 50%; }

.doc-line.l-tag {
    height: auto;
    background: transparent;
    display: inline-flex;
}

.tag-pulse {
    font-family: var(--font-mono, monospace);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    animation: tagBlink 3s ease-in-out infinite;
}

.tag-tckn .tag-pulse {
    color: #34d399;
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.35);
}

.tag-iban .tag-pulse {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    animation-delay: 1s;
}

.tag-addr .tag-pulse {
    color: #f5b971;
    background: rgba(245, 185, 113, 0.15);
    border: 1px solid rgba(245, 185, 113, 0.35);
    animation-delay: 2s;
}

@keyframes tagBlink {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}

/* B. Baykuş: Gece Uçuşu 2D Mini Canvas */
.card-preview-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* C. Editör AI Mini Önizleme (Tarama Çizgisi ve Metrik Hapları) */
.preview-editor {
    background: linear-gradient(145deg, #0d0a06 0%, #050402 100%);
    padding: 16px;
    box-sizing: border-box;
    position: relative;
}

.mini-editor-sheet {
    width: 100%;
    height: 100%;
    background: #110e08;
    border-radius: 10px;
    border: 1px solid rgba(245, 185, 113, 0.15);
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.editor-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f5b971, transparent);
    box-shadow: 0 0 10px #f5b971;
    animation: scanAnim 3.8s ease-in-out infinite;
}

@keyframes scanAnim {
    0% { top: 0%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.editor-sample-lines {
    font-size: 0.65rem;
    color: #94a3b8;
    line-height: 1.5;
    font-family: var(--font-mono, monospace);
}

.editor-sample-lines mark.ed-warn {
    background: rgba(244, 63, 94, 0.2);
    color: #f43f5e;
    text-decoration: underline wavy #f43f5e;
    padding: 1px 3px;
    border-radius: 2px;
}

.editor-sample-lines mark.ed-repeat {
    background: rgba(245, 185, 113, 0.2);
    color: #f5b971;
    padding: 1px 3px;
    border-radius: 2px;
}

.editor-metric-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.ed-pill {
    font-family: var(--font-mono, monospace);
    font-size: 0.58rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.ed-atesman {
    background: rgba(245, 185, 113, 0.15);
    color: #f5b971;
    border: 1px solid rgba(245, 185, 113, 0.3);
}

.ed-warnings {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.ed-dialogue {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

/* ==========================================================================
   4. BİRLEŞİK GEMINI DERİNLİK YERLEŞİMİ & KORUMALI OKUMA KORİDORU
   ========================================================================== */

/* Mobil & Tablet (< 1024px): Kartlar yumuşak ambiyans filtresiyle metnin arkasında derinlik oluşturur */
@media (max-width: 1023px) {
    .cinematic-hero-wrapper {
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        padding: clamp(80px, 12vh, 120px) 20px 40px;
        overflow: hidden;
    }

    .hero-cards-wrapper {
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 2; /* Metin katmanının (z-index: 10) arkasında derinlik */
        overflow: hidden;
    }

    .hero-app-card {
        position: absolute;
        pointer-events: auto;
        aspect-ratio: 4 / 3;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                    opacity 0.4s ease,
                    filter 0.4s ease,
                    box-shadow 0.5s ease;
    }

    /* Sol Üst: Evrak AI (Mobilde metnin arkasında sol üstte süzülür, başlıkla çakışmaz) */
    .hero-app-card.card-evrak-ai {
        top: clamp(65px, 10vh, 115px);
        left: clamp(8px, 3vw, 24px);
        width: clamp(170px, 46vw, 235px);
        opacity: 0.55;
        filter: blur(1.2px) brightness(0.75);
        animation: geminiCardEntrance 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s backwards,
                   geminiFloatLeftTop 14s ease-in-out 2.5s infinite;
    }

    /* Sağ Üst / Orta: Baykuş: Gece Uçuşu (Mobilde metnin arkasında sağ üstte süzülür) */
    .hero-app-card.card-owl-flight {
        top: clamp(125px, 18vh, 210px);
        right: clamp(8px, 3vw, 24px);
        width: clamp(175px, 48vw, 245px);
        opacity: 0.58;
        filter: blur(1.2px) brightness(0.75);
        animation: geminiCardEntrance 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.85s backwards,
                   geminiFloatRightTop 15s ease-in-out 2.5s infinite;
    }

    /* Alt Merkez: Editör AI (Mobilde metnin arkasında altta süzülür, margin auto ile ortalanır) */
    .hero-app-card.card-editor-ai {
        bottom: clamp(25px, 6vh, 65px);
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        width: clamp(185px, 52vw, 265px);
        opacity: 0.56;
        filter: blur(1.2px) brightness(0.75);
        animation: geminiCardEntrance 2.2s cubic-bezier(0.16, 1, 0.3, 1) 1.1s backwards,
                   geminiFloatCenterBottom 16s ease-in-out 2.5s infinite;
    }

    .hero-app-card:active {
        opacity: 1 !important;
        filter: blur(0px) brightness(1.1) !important;
        transform: scale(0.98);
    }
}

/* Masaüstü (>= 1024px): Başlığın iki yanındaki dış yörüngede (kanatlarda) korumalı yerleşim */
@media (min-width: 1024px) {
    .cinematic-hero-wrapper {
        min-height: 100vh;
        min-height: 100dvh;
        position: relative;
    }

    .hero-cards-wrapper {
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 2; /* Metin katmanının (z-index: 10) arkasında/yanında derinlik */
    }

    .hero-app-card {
        position: absolute;
        pointer-events: auto;
        opacity: 0.78;
        filter: blur(0.6px) brightness(0.85);
        transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                    opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                    filter 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                    border-color 0.35s ease,
                    box-shadow 0.55s ease;
    }

    /* Sol Üst: Evrak AI (Merkez metin sütunu 760px ile asla kesişmez, sol dış yörünge) */
    .hero-app-card.card-evrak-ai {
        top: clamp(80px, 12vh, 140px);
        left: clamp(24px, 3.8vw, 65px);
        width: clamp(235px, 18vw, 320px);
        animation: geminiCardEntrance 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s backwards,
                   geminiFloatLeftTop 13s ease-in-out 2.5s infinite;
    }

    /* Sol Alt: Editör AI (Merkez metin sütunu 760px ile asla kesişmez, sol alt yörünge) */
    .hero-app-card.card-editor-ai {
        bottom: clamp(40px, 8vh, 90px);
        left: clamp(24px, 3.8vw, 65px);
        width: clamp(225px, 17vw, 310px);
        animation: geminiCardEntrance 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.9s backwards,
                   geminiFloatLeftBottom 15s ease-in-out 2.5s infinite;
    }

    /* Sağ Üst: Baykuş: Gece Uçuşu (Merkez metin sütunu 760px ile asla kesişmez, sağ dış yörünge) */
    .hero-app-card.card-owl-flight {
        top: clamp(85px, 13vh, 150px);
        right: clamp(24px, 3.8vw, 65px);
        width: clamp(245px, 19vw, 340px);
        animation: geminiCardEntrance 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.75s backwards,
                   geminiFloatRightTop 14s ease-in-out 2.5s infinite;
    }
}

/* ==========================================================================
   5. GEMINI SPOTLIGHT ODAK FİLTRESİ (HOVER ELEVATION & SURROUNDING DIM)
   ========================================================================== */

/* Üzerine gelinen kart: z-index: 50 ile en öne fırlar, netleşir ve parlar */
.hero-app-card:hover,
.hero-app-card.is-hovered {
    z-index: 50 !important;
    opacity: 1 !important;
    filter: blur(0px) brightness(1.15) contrast(1.05) !important;
    transform: scale(1.06) translateY(-8px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) !important;
    border-color: rgba(255, 255, 255, 0.65) !important;
    box-shadow: 0 35px 95px rgba(0, 0, 0, 0.98), 0 0 50px rgba(255, 255, 255, 0.2) !important;
    animation-play-state: paused;
}

/* Bir karta hover yapıldığında diğer kartların kararması / odak yaratması */
.hero-cards-wrapper:has(.hero-app-card:hover) .hero-app-card:not(:hover),
.cinematic-hero-wrapper.is-spotlight-active .hero-app-card:not(.is-hovered) {
    opacity: 0.25 !important;
    filter: blur(3px) brightness(0.5) !important;
    transform: scale(0.96) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5) !important;
}

/* Bir karta hover yapıldığında merkez metnin hafifçe geri çekilmesi */
.cinematic-hero-wrapper:has(.hero-app-card:hover) .hero-center-column,
.cinematic-hero-wrapper.is-spotlight-active .hero-center-column {
    opacity: 0.38 !important;
    filter: blur(1.2px) !important;
    transform: scale(0.99) !important;
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-center-column {
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Kart Giriş Animasyonu (Gemini 2.2s Derinlikten Yükseliş) */
@keyframes geminiCardEntrance {
    0% {
        opacity: 0;
        transform: translateY(45px) scale(0.9);
    }
    100% {
        opacity: var(--card-base-opacity, 0.78);
        transform: translateY(0px) scale(1);
    }
}

/* Uzun ve Akıcı Yüzme Animasyonları (Gemini Derinlik & Hissiyatı) */
@keyframes geminiFloatLeftTop {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(-1.2deg);
    }
}

@keyframes geminiFloatLeftBottom {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(12px) rotate(1deg);
    }
}

@keyframes geminiFloatRightTop {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(1.2deg);
    }
}

@keyframes geminiFloatCenterBottom {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(10px) rotate(-0.8deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mono-meta,
    .cinematic-title,
    .cinematic-lead,
    .hero-app-card {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   6. ORTAK PENCERE SİSTEMİ (AppWindow)
   Z-INDEX: 10050 (Canlı Destek Butonu 9995'in Üstünde!)
   ========================================================================== */
.app-window-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 2.5vw, 24px);
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                visibility 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app-window-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.app-window-container {
    width: 92vw;
    max-width: 1400px;
    height: 88vh;
    max-height: 860px;
    background: #090c12;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.94) translateY(16px);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app-window-overlay.is-active .app-window-container {
    transform: scale(1) translateY(0);
}

/* Tam Ekran Modu */
.app-window-container.is-fullscreen {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
}

@media (max-width: 768px) {
    .app-window-overlay {
        padding: 0;
    }
    .app-window-container {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        border: none;
    }
}

/* Pencere Üst Çubuğu */
.app-window-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #0d1118;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.app-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-topbar-logo-badge {
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    font-weight: 800;
    color: #000000;
    background: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.app-topbar-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #e2e8f0;
    font-family: var(--font-mono, monospace);
}

.app-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-window-action {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-window-action:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-window-close:hover {
    background: #f43f5e;
    color: #ffffff;
    border-color: #f43f5e;
}

/* Pencere İçeriği Gövdesi */
.app-window-body {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: auto;
    background: #090c12;
}

/* ==========================================================================
   7. UYGULAMA İÇİ STILLER (EVRAK AI, EDİTÖR AI, 3D OYUN)
   ========================================================================== */

/* Ortak Yükleniyor & Hata Ekranları */
.app-loading-state,
.app-error-state {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px;
    box-sizing: border-box;
    text-align: center;
}

.app-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #5ef2ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.app-loading-msg {
    color: #94a3b8;
    font-size: 0.9rem;
    font-family: var(--font-mono, monospace);
}

.app-error-icon {
    font-size: 2.5rem;
}

.app-error-title {
    color: #f43f5e;
    font-size: 1.3rem;
    margin: 0;
}

.app-error-desc {
    color: #94a3b8;
    max-width: 480px;
    font-size: 0.88rem;
    margin: 0;
}

.btn-app-retry {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
}

/* EVRAK AI STILLERI */
.evrak-app-root {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.evrak-trust-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #06110c;
    border-bottom: 1px solid rgba(52, 211, 153, 0.2);
    flex-wrap: wrap;
    gap: 10px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono, monospace);
    font-size: 0.74rem;
    color: #34d399;
}

.trust-pulse-dot {
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 10px #34d399;
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.trust-actions {
    display: flex;
    gap: 8px;
}

.btn-evrak-ghost,
.btn-evrak-upload {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: var(--font-mono, monospace);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-evrak-ghost:hover,
.btn-evrak-upload:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.evrak-preset-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    background: #0b0e14;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
}

.preset-label {
    font-size: 0.75rem;
    color: #64748b;
    font-family: var(--font-mono, monospace);
    white-space: nowrap;
}

.preset-chips {
    display: flex;
    gap: 8px;
}

.preset-chip {
    background: #141923;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.preset-chip.is-active,
.preset-chip:hover {
    background: #1e293b;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.evrak-workspace-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    overflow: hidden;
}

@media (max-width: 960px) {
    .evrak-workspace-grid {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
}

.evrak-left-column {
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: #080a0f;
    overflow: hidden;
}

.evrak-pane-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: #0a0d14;
}

.evrak-view-toggles {
    display: flex;
    background: #131722;
    border-radius: 6px;
    padding: 2px;
}

.view-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.74rem;
    cursor: pointer;
}

.view-btn.is-active {
    background: #252e42;
    color: #ffffff;
    font-weight: 600;
}

.evrak-select {
    background: #141923;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
}

.evrak-editors-wrapper {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.evrak-editors-wrapper.view-mode-masked .editor-original { display: none; }
.evrak-editors-wrapper.view-mode-masked { grid-template-columns: 1fr; }
.evrak-editors-wrapper.view-mode-original .editor-masked { display: none; }
.evrak-editors-wrapper.view-mode-original { grid-template-columns: 1fr; }

.editor-pane {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.pane-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #0c1017;
    font-family: var(--font-mono, monospace);
    font-size: 0.7rem;
    color: #64748b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.badge-safe {
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
}

.evrak-textarea {
    flex: 1;
    width: 100%;
    background: #080a0f;
    border: none;
    color: #e2e8f0;
    padding: 16px;
    box-sizing: border-box;
    font-family: var(--font-mono, monospace);
    font-size: 0.82rem;
    line-height: 1.6;
    resize: none;
    outline: none;
}

.evrak-masked-display {
    flex: 1;
    width: 100%;
    background: #06090e;
    color: #cbd5e1;
    padding: 16px;
    box-sizing: border-box;
    font-family: var(--font-mono, monospace);
    font-size: 0.82rem;
    line-height: 1.6;
    overflow-y: auto;
    white-space: pre-wrap;
}

.masked-tag {
    color: #34d399;
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.35);
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 700;
}

.evrak-right-column {
    display: flex;
    flex-direction: column;
    background: #0a0d14;
    overflow: hidden;
}

.evrak-tabs-nav {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #0d1118;
}

.evrak-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 12px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.evrak-tab-btn.is-active {
    color: #ffffff;
    border-bottom-color: #34d399;
    background: rgba(52, 211, 153, 0.05);
}

.evrak-tab-content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.evrak-tab-pane {
    display: none;
}

.evrak-tab-pane.is-active {
    display: block;
}

.metadata-card,
.deadline-tracker-card,
.executive-summary-card,
.draft-preview-box {
    background: #111520;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
}

.meta-row {
    font-size: 0.8rem;
    margin-bottom: 6px;
    display: flex;
    gap: 8px;
}

.meta-k {
    color: #64748b;
    min-width: 60px;
}

.meta-v {
    color: #e2e8f0;
}

.meta-badges-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.meta-pill {
    font-family: var(--font-mono, monospace);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: #1e293b;
    color: #94a3b8;
}

.meta-pill.is-urgent {
    background: rgba(244, 63, 94, 0.2);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.4);
}

.deadline-tracker-card {
    border-color: rgba(56, 189, 248, 0.3);
    background: linear-gradient(145deg, #0f172a 0%, #0a0f1d 100%);
}

.tracker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.tracker-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: #ffffff;
}

.tracker-subtitle {
    font-size: 0.72rem;
    color: #94a3b8;
}

.deadline-chip {
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    padding: 3px 8px;
    border-radius: 6px;
}

.deadline-chip.is-urgent {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.15);
}

.card-heading {
    font-family: var(--font-mono, monospace);
    font-size: 0.75rem;
    color: #64748b;
    margin: 0 0 10px 0;
}

.summary-list {
    margin: 0;
    padding-left: 18px;
    color: #cbd5e1;
    font-size: 0.8rem;
    line-height: 1.6;
}

.summary-list li {
    margin-bottom: 8px;
}

.category-toggles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.toggle-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #131722;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.74rem;
    color: #cbd5e1;
    cursor: pointer;
}

.cat-count {
    margin-left: auto;
    font-family: var(--font-mono, monospace);
    color: #34d399;
    font-weight: 700;
}

.findings-list {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.finding-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #111520;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-family: var(--font-mono, monospace);
}

.finding-tag {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    padding: 1px 4px;
    border-radius: 3px;
}

.finding-raw {
    color: #f43f5e;
    text-decoration: line-through;
}

.finding-arrow {
    color: #64748b;
}

.finding-masked {
    color: #34d399;
}

.draft-controls-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.draft-control-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.control-label {
    font-size: 0.72rem;
    color: #64748b;
}

.draft-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.draft-pre {
    background: #06090e;
    padding: 12px;
    border-radius: 6px;
    font-family: var(--font-mono, monospace);
    font-size: 0.76rem;
    line-height: 1.5;
    color: #e2e8f0;
    white-space: pre-wrap;
    max-height: 320px;
    overflow-y: auto;
    margin: 0;
}

.evrak-contact-cta,
.editor-contact-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 14px;
    font-size: 0.78rem;
    color: #94a3b8;
}

.btn-evrak-cta,
.btn-editor-cta {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-evrak-cta:hover,
.btn-editor-cta:hover {
    transform: translateY(-2px);
}

/* EDİTÖR AI STILLERI */
.editor-app-root {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.editor-top-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #110d06;
    border-bottom: 1px solid rgba(245, 185, 113, 0.2);
    flex-wrap: wrap;
    gap: 10px;
}

.editor-brand-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono, monospace);
    font-size: 0.74rem;
    color: #f5b971;
}

.amber-dot {
    width: 8px;
    height: 8px;
    background: #f5b971;
    border-radius: 50%;
    box-shadow: 0 0 10px #f5b971;
}

.editor-toolbar-actions {
    display: flex;
    gap: 8px;
}

.btn-editor-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: var(--font-mono, monospace);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-editor-ghost.is-active,
.btn-editor-ghost:hover {
    background: rgba(245, 185, 113, 0.15);
    border-color: #f5b971;
    color: #ffffff;
}

.editor-preset-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    background: #0d0a06;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
}

.editor-preset-chip {
    background: #19140c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.editor-preset-chip.is-active,
.editor-preset-chip:hover {
    background: #261f13;
    color: #ffffff;
    border-color: rgba(245, 185, 113, 0.4);
}

.editor-workspace-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    overflow: hidden;
}

@media (max-width: 960px) {
    .editor-workspace-grid {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
}

.editor-left-column {
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: #080705;
    overflow: hidden;
}

.editor-pane-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: #0f0c08;
}

.editor-live-badge {
    font-size: 0.65rem;
    font-family: var(--font-mono, monospace);
    color: #f5b971;
    background: rgba(245, 185, 113, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.editor-quick-counts {
    display: flex;
    gap: 8px;
    font-family: var(--font-mono, monospace);
    font-size: 0.74rem;
    color: #94a3b8;
}

.editor-input-wrapper {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.editor-highlights-layer {
    position: absolute;
    inset: 0;
    padding: 18px;
    box-sizing: border-box;
    font-family: var(--font-mono, monospace);
    font-size: 0.84rem;
    line-height: 1.65;
    color: transparent;
    pointer-events: none;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-y: hidden;
}

.editor-highlights-layer mark.hl-spelling {
    background: transparent;
    color: transparent;
    border-bottom: 2px wavy #f43f5e;
}

.editor-textarea {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    color: #e2e8f0;
    padding: 18px;
    box-sizing: border-box;
    font-family: var(--font-mono, monospace);
    font-size: 0.84rem;
    line-height: 1.65;
    resize: none;
    outline: none;
    overflow-y: auto;
}

.editor-right-column {
    display: flex;
    flex-direction: column;
    background: #0c0a06;
    overflow: hidden;
}

.editor-tabs-nav {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #110d08;
}

.editor-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 12px 6px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.editor-tab-btn.is-active {
    color: #ffffff;
    border-bottom-color: #f5b971;
    background: rgba(245, 185, 113, 0.06);
}

.editor-tab-content-area {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.editor-tab-pane {
    display: none;
}

.editor-tab-pane.is-active {
    display: block;
}

.atesman-card {
    background: linear-gradient(145deg, #19140b 0%, #100d07 100%);
    border: 1px solid rgba(245, 185, 113, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
}

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

.atesman-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.atesman-formula {
    font-family: var(--font-mono, monospace);
    font-size: 0.65rem;
    color: #64748b;
    margin-top: 2px;
}

.atesman-score-badge {
    font-family: var(--font-mono, monospace);
    font-size: 1.8rem;
    font-weight: 800;
    color: #f5b971;
    background: rgba(245, 185, 113, 0.15);
    padding: 4px 14px;
    border-radius: 8px;
    border: 1px solid rgba(245, 185, 113, 0.35);
}

.atesman-level-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.level-indicator-pill {
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.badge-very-easy { background: rgba(52, 211, 153, 0.2); color: #34d399; }
.badge-easy { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.badge-medium { background: rgba(245, 185, 113, 0.2); color: #f5b971; }
.badge-hard { background: rgba(249, 115, 22, 0.2); color: #f97316; }
.badge-very-hard { background: rgba(244, 63, 94, 0.2); color: #f43f5e; }

.atesman-detail-text {
    font-size: 0.72rem;
    color: #94a3b8;
}

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

.metric-box {
    background: #141009;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.m-val {
    font-family: var(--font-mono, monospace);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.m-lbl {
    font-size: 0.74rem;
    color: #cbd5e1;
    margin: 2px 0;
}

.m-sub {
    font-size: 0.65rem;
    color: #64748b;
    font-family: var(--font-mono, monospace);
}

.tempo-map-card {
    background: #141009;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px;
}

.tempo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.tempo-legend {
    font-size: 0.7rem;
    color: #64748b;
}

.tempo-svg-container {
    width: 100%;
    height: 90px;
}

.tempo-svg {
    width: 100%;
    height: 100%;
}

.warnings-summary-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.warnings-stat-pill {
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    background: #1a140d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    padding: 3px 8px;
    border-radius: 4px;
}

.warnings-scroll-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.warning-card {
    background: #141009;
    border-radius: 8px;
    padding: 12px;
    border-left: 3px solid #64748b;
}

.warning-card.sev-high { border-left-color: #f43f5e; }
.warning-card.sev-medium { border-left-color: #f59e0b; }
.warning-card.sev-low { border-left-color: #38bdf8; }

.w-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 6px;
}

.w-type-tag {
    font-family: var(--font-mono, monospace);
    font-size: 0.7rem;
    font-weight: 700;
    color: #f43f5e;
}

.btn-apply-fix {
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #34d399;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-family: var(--font-mono, monospace);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-apply-fix:hover {
    background: #34d399;
    color: #000000;
}

.w-quote {
    font-family: var(--font-mono, monospace);
    font-size: 0.78rem;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.w-reason {
    font-size: 0.74rem;
    color: #94a3b8;
    line-height: 1.4;
}

.genre-card,
.themes-card,
.cover-draft-box {
    background: #141009;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
}

.genre-title {
    font-size: 1.1rem;
    color: #ffffff;
    margin: 4px 0 6px 0;
}

.genre-desc {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0;
}

.card-mini-title {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin: 0 0 10px 0;
}

.themes-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.theme-pill {
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    background: #201a0f;
    border: 1px solid rgba(245, 185, 113, 0.25);
    color: #f5b971;
    padding: 4px 10px;
    border-radius: 6px;
}

.cover-tone-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.tone-label {
    font-size: 0.75rem;
    color: #64748b;
}

.tone-buttons {
    display: flex;
    gap: 6px;
}

.btn-tone {
    background: #17120a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.74rem;
    cursor: pointer;
}

.btn-tone.is-active {
    background: #2a2012;
    border-color: #f5b971;
    color: #ffffff;
    font-weight: 600;
}

.cover-draft-badge {
    font-family: var(--font-mono, monospace);
    font-size: 0.68rem;
    font-weight: 700;
    color: #f5b971;
    background: rgba(245, 185, 113, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.cover-draft-text {
    font-size: 0.84rem;
    line-height: 1.65;
    color: #cbd5e1;
    font-style: italic;
    margin: 0 0 12px 0;
}

/* 3D OYUN STILLERI */
.owl-game-app-root {
    position: relative;
    width: 100%;
    height: 100%;
    background: #02040a;
    overflow: hidden;
    touch-action: none;
}

.game-flash-overlay {
    position: absolute;
    inset: 0;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    transition: opacity 0.05s ease-out;
}

.game-flash-overlay.is-active {
    opacity: 0.75;
}

.owl-canvas-stage {
    width: 100%;
    height: 100%;
}

.owl-hud-bar {
    position: absolute;
    top: 14px;
    left: 20px;
    right: 20px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.hud-left,
.hud-center,
.hud-right {
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
}

.hud-score-display {
    background: rgba(4, 6, 11, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 8px;
    backdrop-filter: blur(8px);
}

.hud-score-label {
    font-family: var(--font-mono, monospace);
    font-size: 0.65rem;
    color: #64748b;
    display: block;
}

.hud-score-num {
    font-family: var(--font-mono, monospace);
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

.hud-multiplier-badge {
    font-family: var(--font-mono, monospace);
    font-size: 0.85rem;
    font-weight: 800;
    color: #5ef2ff;
    background: rgba(94, 242, 255, 0.15);
    border: 1px solid rgba(94, 242, 255, 0.35);
    padding: 6px 10px;
    border-radius: 6px;
}

.hud-zone-pill {
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 10px;
    border-radius: 6px;
}

.hud-speed-box {
    background: rgba(4, 6, 11, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 12px;
    border-radius: 8px;
    font-family: var(--font-mono, monospace);
}

.hud-speed-num {
    font-size: 1rem;
    font-weight: 800;
    color: #38bdf8;
}

.hud-speed-unit {
    font-size: 0.68rem;
    color: #64748b;
}

.hud-boost-bar-wrap {
    width: 90px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.hud-boost-fill {
    width: 0%;
    height: 100%;
    background: #5ef2ff;
    box-shadow: 0 0 8px #5ef2ff;
    transition: width 0.2s ease-out;
}

.btn-hud-tool {
    background: rgba(4, 6, 11, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-overlay-screen {
    position: absolute;
    inset: 0;
    z-index: 60;
    background: rgba(2, 4, 10, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.game-menu-card {
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: clamp(24px, 4vw, 36px);
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.game-menu-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 8px 0 12px 0;
}

.game-menu-desc {
    font-size: 0.86rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.controls-guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 24px;
}

.guide-item {
    background: #111724;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.guide-key {
    font-family: var(--font-mono, monospace);
    font-size: 0.74rem;
    font-weight: 700;
    color: #5ef2ff;
}

.guide-action {
    font-size: 0.68rem;
    color: #64748b;
}

.menu-actions-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.btn-game-primary {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-game-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.btn-game-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.game-high-score-hint {
    font-family: var(--font-mono, monospace);
    font-size: 0.76rem;
    color: #64748b;
}

.game-high-score-hint strong {
    color: #f5b971;
}

.game-new-record-pill {
    font-family: var(--font-mono, monospace);
    font-size: 0.78rem;
    font-weight: 800;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.game-over-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.stat-cell {
    background: #111724;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.stat-cell .stat-lbl {
    font-size: 0.72rem;
    color: #64748b;
}

.stat-cell .stat-val {
    font-family: var(--font-mono, monospace);
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 2px;
}

.owl-touch-controls {
    position: absolute;
    bottom: 24px;
    left: 20px;
    right: 20px;
    z-index: 50;
    pointer-events: auto;
    display: none;
}

@media (max-width: 1023px) and (pointer: coarse) {
    .owl-touch-controls {
        display: block;
    }
}

.touch-btn-boost {
    width: 100%;
    background: rgba(94, 242, 255, 0.15);
    border: 1px solid rgba(94, 242, 255, 0.4);
    color: #5ef2ff;
    padding: 14px;
    border-radius: 10px;
    font-family: var(--font-mono, monospace);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    cursor: pointer;
}

/* Vurgu Renkleri */
.highlight-cyan { color: #5ef2ff !important; }
.highlight-amber { color: #f5b971 !important; }
.highlight-green { color: #34d399 !important; }
.highlight-purple { color: #a855f7 !important; }
