/* ==========================================================================
   MENGA ROBO STÜDYO — PREMIUM FÜTÜRİSTİK TASARIM VE 9:16 HANGAR SAHNESİ
   Modül: public_html/assets/css/robot-forge.css
   Hedef:
   - Sol panelde açık, ferah, yüksek hassasiyetli 2x6 donanım konfigüratörü
   - Sağ panelde elektronik CONFIG-12 kartı ve koyu fütüristik 9:16 sonuç sahnesi
   - Masaüstünde (1440x900, 1760x860) tam boy 9:16 robot görseli ile
     kimlik / 6 neon güç kartı / 3 özel yeteneğin yan yana (side-by-side) gösterimi
   - Mobilde (390px, 430px) yatay taşmasız, doğal dikey akış
   ========================================================================== */

:root {
    --rf-bg-page: #eaf0f7;
    --rf-bg-card: #ffffff;
    --rf-bg-subtle: #f8fafc;
    --rf-bg-selected: #eff8ff;
    --rf-border: #cbd5e1;
    --rf-border-light: #dbe4ef;
    --rf-border-active: #0284c7;
    --rf-text-navy: #0f172a;
    --rf-text-body: #1e293b;
    --rf-text-muted: #475569;
    --rf-text-subtle: #64748b;
    --rf-accent-blue: #0284c7;
    --rf-accent-blue-dark: #0369a1;
    --rf-accent-teal: #0d9488;
    --rf-accent-cyan: #00f0ff;

    /* Sağ Fütüristik Hangar & Elektronik Panel Değişkenleri */
    --rf-stage-bg-deep: #050b16;
    --rf-stage-bg-mid: #09152b;
    --rf-stage-card: rgba(11, 24, 47, 0.88);
    --rf-stage-border: rgba(0, 240, 255, 0.28);
    --rf-stage-border-soft: rgba(56, 189, 248, 0.18);
    --rf-neon-cyan: #00f0ff;
    --rf-neon-blue: #38bdf8;
    --rf-neon-green: #10b981;
    --rf-neon-gold: #fbbf24;
    --rf-neon-red: #ff3b5c;
    --rf-neon-purple: #a855f7;

    --rf-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --rf-mono: "JetBrains Mono", "Fira Code", "Courier New", monospace;
}

/* Sağ alt köşedeki sabit Menga sohbet küresinin sağ sonuç sahnesini kapatmasını önle */
body:has(.rf-viewport) .menga-widget {
    display: none !important;
}

/* Masaüstünde ortak footer'ı gizleyerek tek ekran (no-scroll) dengesi sağla */
@media (min-width: 1025px) {
    body:has(.rf-viewport) {
        background: var(--rf-bg-page);
    }

    body:has(.rf-viewport) .site-main {
        min-height: 0;
    }

    body:has(.rf-viewport) .site-footer {
        display: none;
    }
}

.rf-viewport,
.rf-viewport * {
    box-sizing: border-box;
    font-family: var(--rf-font);
}

.rf-viewport {
    background-color: var(--rf-bg-page);
    background-image:
        radial-gradient(circle at 12% 15%, rgba(2, 132, 199, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 88% 80%, rgba(13, 148, 136, 0.06) 0%, transparent 45%),
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 28px 28px, 28px 28px;
    color: var(--rf-text-navy);
    width: 100%;
    padding: 8px 12px 10px;
}

.rf-container {
    width: 100%;
    max-width: 2200px;
    margin: 0 auto;
}

/* --- ÜST BAŞLIK ÇUBUĞU (KOMPAKT & TEKNOLOJİK) --- */
.rf-design-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-bottom: 7px;
    min-width: 0;
}

.rf-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0b172e;
    color: var(--rf-neon-cyan);
    border: 1px solid rgba(0, 240, 255, 0.4);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.12);
}

.rf-brand-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rf-neon-cyan);
    box-shadow: 0 0 6px var(--rf-neon-cyan);
}

.rf-title {
    font-size: 17.5px;
    font-weight: 900;
    color: var(--rf-text-navy);
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.2;
    white-space: nowrap;
}

.rf-subtitle {
    font-size: 12px;
    font-weight: 700;
    color: var(--rf-text-muted);
    margin: 0;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* --- ANA STÜDYO İKİ SÜTUNLU DENGELİ YERLEŞİM --- */
.rf-studio-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(660px, 1.1fr);
    gap: 12px;
    align-items: stretch;
}

@media (min-width: 1560px) {
    .rf-studio-grid {
        grid-template-columns: minmax(0, 0.86fr) minmax(800px, 1.14fr);
        gap: 14px;
    }
}

/* --- SOL BÖLÜM: DONANIM SEÇİMİ (2 SÜTUN x 6 SATIR RAFİNE KARTLAR) --- */
.rf-config-column {
    min-width: 0;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--rf-border);
    border-radius: 11px;
    padding: 9px 11px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
}

.rf-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--rf-border-light);
}

.rf-random-select-btn {
    margin-left: auto;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(34, 211, 238, .48);
    border-radius: 10px;
    color: #e0fbff;
    background: linear-gradient(135deg, rgba(8, 145, 178, .42), rgba(30, 64, 175, .38));
    font: inherit;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
    cursor: pointer;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.rf-random-select-btn:hover:not(:disabled) {
    border-color: #67e8f9;
    box-shadow: 0 0 22px rgba(34, 211, 238, .22);
    transform: translateY(-1px);
}
.rf-random-select-btn:disabled { opacity: .65; cursor: wait; }
@media (max-width: 560px) {
    .rf-section-header { flex-wrap: wrap; gap: 10px; }
    .rf-random-select-btn { width: 100%; margin-left: 0; }
}

.rf-section-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--rf-text-navy);
    margin: 0;
    letter-spacing: 0.01em;
    white-space: nowrap;
}




.rf-title-light {
    color: #f8fafc;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rf-section-meta {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--rf-accent-blue-dark);
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    padding: 2px 8px;
    border-radius: 5px;
}

/* 12 Kompakt Donanım Kartı (2x6 Grid) */
.rf-systems-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 9px;
    flex: 0 0 auto;
}

.rf-sys-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #cbd5e1;
    border-left: 3px solid #94a3b8;
    border-radius: 8px;
    padding: 5px 9px 6px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.rf-sys-card:hover {
    border-color: #64748b;
    border-left-color: var(--rf-accent-blue);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
}

.rf-sys-card.is-selected {
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #0284c7;
    border-left: 3px solid #00d2ff;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.12);
}

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

.rf-sys-title-group {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.rf-sys-num {
    width: 21px;
    height: 21px;
    border-radius: 5px;
    background: #0f172a;
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    font-size: 10.5px;
    font-weight: 800;
    font-family: var(--rf-mono);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rf-sys-card.is-selected .rf-sys-num {
    background: #0284c7;
    color: #ffffff;
    border-color: #00f0ff;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.35);
}

.rf-sys-name {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--rf-text-navy);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rf-sys-status-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.rf-sys-status {
    font-size: 10px;
    font-weight: 700;
    color: var(--rf-text-subtle);
    background: #e2e8f0;
    padding: 1.5px 6px;
    border-radius: 4px;
    white-space: nowrap;
    max-width: 135px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rf-sys-card.is-selected .rf-sys-status {
    background: #0f172a;
    color: #00f0ff;
    border: 1px solid rgba(0, 240, 255, 0.45);
}

.rf-sys-clear {
    display: none;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--rf-text-muted);
    width: 19px;
    height: 19px;
    border-radius: 4px;
    font-size: 9.5px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.rf-sys-card.is-selected .rf-sys-clear {
    display: inline-flex;
}

.rf-sys-clear:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #dc2626;
}

/* Seri ve Model Açılır Seçim Kutuları */
.rf-sys-controls {
    display: grid;
    grid-template-columns: 0.78fr 1.4fr;
    gap: 6px;
}

.rf-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.rf-field-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--rf-text-muted);
    line-height: 1.1;
}

.rf-form-select {
    width: 100%;
    height: 30px;
    padding: 0 22px 0 7px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--rf-text-navy);
    background-color: #ffffff;
    border: 1px solid var(--rf-border);
    border-radius: 6px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230284c7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rf-form-select:hover {
    border-color: var(--rf-accent-blue);
}

.rf-form-select:focus {
    outline: none;
    border-color: var(--rf-accent-blue);
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.18);
}

/* ==========================================================================
   SAĞ PANEL: ELEKTRONİK CONFIG-12 KARTI VE KOYU FÜTÜRİSTİK HANGAR SAHNESİ
   ========================================================================== */
.rf-right-panel {
    display: flex;
    align-self: stretch;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}

/* --- ÜST KART: ELEKTRONİK CONFIG-12 ÜRETİM KARTI --- */
.rf-build-card {
    margin-top: 10px;
    background: linear-gradient(155deg, #071022 0%, #0c1b36 60%, #081326 100%);
    border: 1px solid var(--rf-stage-border);
    border-radius: 11px;
    padding: 8px 11px 9px;
    box-shadow:
        0 6px 20px rgba(5, 11, 22, 0.22),
        inset 0 1px 0 rgba(0, 240, 255, 0.18);
    flex-shrink: 0;
    position: relative;
}

.rf-build-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.18);
}

.rf-build-title-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
}

.rf-led-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rf-neon-cyan);
    box-shadow: 0 0 8px var(--rf-neon-cyan);
}

.rf-config-tag {
    font-size: 10px;
    font-weight: 800;
    font-family: var(--rf-mono);
    color: var(--rf-neon-cyan);
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.38);
    padding: 1px 7px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.rf-progress-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rf-progress-track {
    width: 110px;
    height: 7px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 999px;
    overflow: hidden;
}

.rf-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0284c7 0%, #00f0ff 60%, #10b981 100%);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
    transition: width 0.22s ease;
}

.rf-build-counter {
    font-size: 12px;
    font-weight: 800;
    font-family: var(--rf-mono);
    color: var(--rf-neon-cyan);
    min-width: 44px;
    text-align: right;
}

/* 12 Seçim Özeti (4 Sütun x 3 Satır Elektronik Mikro Yuvalar) */
.rf-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px 6px;
    margin-bottom: 7px;
}

.rf-slot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
    padding: 2px 5px;
    background: rgba(6, 13, 27, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 5px;
    min-width: 0;
    height: 21px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.rf-slot-row.is-filled {
    background: rgba(2, 132, 199, 0.22);
    border-color: rgba(0, 240, 255, 0.55);
    box-shadow: inset 2px 0 0 var(--rf-neon-cyan);
}

.rf-slot-left {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.rf-slot-num {
    font-size: 8.5px;
    font-weight: 800;
    font-family: var(--rf-mono);
    color: #94a3b8;
    background: rgba(30, 41, 59, 0.9);
    border-radius: 3px;
    padding: 0 3px;
    line-height: 14px;
    flex-shrink: 0;
}

.rf-slot-row.is-filled .rf-slot-num {
    background: var(--rf-neon-cyan);
    color: #040b16;
}

.rf-slot-cat {
    font-size: 9.5px;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
    flex-shrink: 0;
}

.rf-slot-value {
    font-size: 9.5px;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: auto;
}

.rf-slot-row:not(.is-filled) .rf-slot-value {
    font-weight: 500;
    color: #64748b;
}

.rf-slot-clear {
    display: none;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 9px;
    padding: 0 2px;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
}

.rf-slot-row.is-filled .rf-slot-clear {
    display: inline-block;
}

.rf-slot-clear:hover {
    color: var(--rf-neon-red);
}

/* Üretim Durum Çipi */
.rf-production-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #94a3b8;
    margin-bottom: 8px;
    width: fit-content;
}

.rf-production-status-chip .rf-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #64748b;
}

.rf-production-status-chip.is-ready {
    border-color: #10b981;
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
}
.rf-production-status-chip.is-ready .rf-status-dot {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.rf-production-status-chip.is-generating {
    border-color: #00d2ff;
    color: #38bdf8;
    background: rgba(0, 210, 255, 0.12);
}
.rf-production-status-chip.is-generating .rf-status-dot {
    background: #00d2ff;
    box-shadow: 0 0 8px #00d2ff;
}

.rf-production-status-chip.is-quota-locked {
    border-color: #f59e0b;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
}
.rf-production-status-chip.is-quota-locked .rf-status-dot {
    background: #f59e0b;
}

.rf-production-status-chip.is-error {
    border-color: #ef4444;
    color: #f87171;
    background: rgba(239, 68, 68, 0.12);
}
.rf-production-status-chip.is-error .rf-status-dot {
    background: #ef4444;
}

/* Belirgin, Kaliteli ROBOTU ÜRET Butonu */
.rf-build-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.rf-generate-btn {
    flex: 1;
    height: 34px;
    background: linear-gradient(180deg, #16243d 0%, #0f192c 100%);
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #64748b;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 900;
    letter-spacing: 0.08em;
    cursor: not-allowed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.rf-btn-bolt {
    font-size: 13px;
    opacity: 0.55;
}

.rf-generate-btn.is-ready {
    background: linear-gradient(135deg, #0284c7 0%, #00d2ff 52%, #10b981 100%);
    border-color: #00f0ff;
    color: #030914;
    cursor: pointer;
    box-shadow:
        0 0 18px rgba(0, 240, 255, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.rf-generate-btn.is-ready .rf-btn-bolt {
    opacity: 1;
}

.rf-generate-btn.is-ready:hover {
    filter: brightness(1.08);
    box-shadow:
        0 0 24px rgba(0, 240, 255, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.rf-btn-helper {
    font-size: 10.5px;
    font-weight: 700;
    font-family: var(--rf-mono);
    color: #94a3b8;
    background: rgba(6, 13, 27, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.22);
    padding: 5px 9px;
    border-radius: 6px;
    white-space: nowrap;
}

.rf-btn-helper.is-ready {
    color: var(--rf-neon-cyan);
    border-color: rgba(0, 240, 255, 0.45);
    background: rgba(0, 240, 255, 0.1);
}

/* ==========================================================================
   ALT KART: FÜTÜRİSTİK ROBOT KİMLİĞİ & 9:16 HANGAR SONUÇ SAHNESİ
   ========================================================================== */
.rf-result-panel {
    background:
        radial-gradient(circle at 24% 48%, rgba(0, 240, 255, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 82% 24%, rgba(168, 85, 247, 0.09) 0%, transparent 48%),
        linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px),
        linear-gradient(165deg, #050b16 0%, #09152b 55%, #040812 100%);
    background-size: 100% 100%, 100% 100%, 24px 24px, 24px 24px, 100% 100%;
    border: 1px solid rgba(0, 240, 255, 0.34);
    border-radius: 12px;
    padding: 9px 11px 10px;
    box-shadow:
        0 10px 28px rgba(4, 9, 20, 0.32),
        inset 0 0 24px rgba(0, 240, 255, 0.06);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    color: #f8fafc;
    position: relative;
}

.rf-result-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    flex-shrink: 0;
}

.rf-result-head-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.rf-hangar-beacon {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--rf-neon-cyan);
    box-shadow: 0 0 8px var(--rf-neon-cyan);
    transform: rotate(45deg);
}

.rf-stage-subtag {
    font-size: 9.5px;
    font-weight: 800;
    font-family: var(--rf-mono);
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 1px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.rf-dryrun-pill {
    font-size: 9.5px;
    font-weight: 800;
    font-family: var(--rf-mono);
    color: var(--rf-neon-gold);
    background: rgba(251, 191, 36, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.45);
    padding: 1px 7px;
    border-radius: 4px;
    white-space: nowrap;
}

.rf-live-pill {
    font-size: 9.5px;
    font-weight: 800;
    font-family: var(--rf-mono);
    color: #34d399;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.5);
    padding: 1px 7px;
    border-radius: 4px;
    white-space: nowrap;
}

.rf-result-head-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rf-mini-btn {
    height: 24px;
    padding: 0 9px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.rf-mini-btn:hover {
    border-color: var(--rf-neon-cyan);
    color: var(--rf-neon-cyan);
}

.rf-mini-btn.is-primary {
    background: linear-gradient(135deg, #0284c7, #00d2ff);
    border-color: var(--rf-neon-cyan);
    color: #030914;
    font-weight: 800;
}

/* --- YAN YANA 9:16 SAHNE İZGARASI (MASAÜSTÜ SIDE-BY-SIDE) --- */
.rf-stage-split {
    display: grid;
    grid-template-columns: clamp(340px, 49%, 540px) minmax(0, 1fr);
    gap: 11px;
    flex: 1;
    align-items: stretch;
    min-height: 0;
}

@media (min-width: 1560px) {
    .rf-stage-split {
        grid-template-columns: clamp(340px, 49%, 540px) minmax(0, 1fr);
        gap: 13px;
    }
}

.rf-mode-pill {
    font-size: 9.5px;
    font-weight: 800;
    font-family: var(--rf-mono);
    padding: 1px 7px;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 0.04em;
}

.rf-mode-pill.is-live {
    color: #34d399;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.rf-mode-pill.is-dry_run {
    color: var(--rf-neon-gold);
    background: rgba(251, 191, 36, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.45);
}

.rf-mode-pill.is-key_missing {
    color: #fda4af;
    background: rgba(255, 59, 92, 0.16);
    border: 1px solid rgba(255, 59, 92, 0.5);
}

/* HUD Köşe Braketleri */
.rf-hud-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: var(--rf-neon-cyan);
    border-style: solid;
    pointer-events: none;
    z-index: 2;
}

.rf-hud-corner.is-tl {
    top: 6px;
    left: 6px;
    border-width: 2px 0 0 2px;
}

.rf-hud-corner.is-tr {
    top: 6px;
    right: 6px;
    border-width: 2px 2px 0 0;
}

.rf-hud-corner.is-bl {
    bottom: 6px;
    left: 6px;
    border-width: 0 0 2px 2px;
}

.rf-hud-corner.is-br {
    bottom: 6px;
    right: 6px;
    border-width: 0 2px 2px 0;
}

/* --- DURUM 1: ÜRETİM ÖNCESİ BEKLEME SAHNESİ (SİLÜET VEYA SAHTE VERİ YOK) --- */
.rf-result-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.rf-standby-chamber {
    background:
        radial-gradient(ellipse at 50% 88%, rgba(0, 240, 255, 0.16) 0%, transparent 65%),
        linear-gradient(180deg, rgba(4, 10, 22, 0.92) 0%, rgba(8, 22, 46, 0.92) 100%);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 10px;
    padding: 16px 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    aspect-ratio: 768 / 1376;
    align-self: start;
    width: 100%;
    overflow: hidden;
}

.rf-standby-ratio-tag {
    font-size: 9.5px;
    font-weight: 800;
    font-family: var(--rf-mono);
    color: var(--rf-neon-cyan);
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.06em;
}

.rf-standby-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    my: auto;
}

.rf-empty-status {
    font-size: 10px;
    font-weight: 800;
    font-family: var(--rf-mono);
    color: var(--rf-neon-cyan);
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.4);
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.05em;
}

.rf-empty-title {
    font-size: 13px;
    font-weight: 800;
    color: #f8fafc;
    margin: 2px 0 0;
    line-height: 1.35;
}

.rf-empty-desc {
    font-size: 11px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.45;
}

.rf-standby-pedestal {
    width: 78%;
    height: 16px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 240, 255, 0.45);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
}

.rf-standby-telemetry {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.rf-standby-id-box,
.rf-standby-abilities-box {
    background: rgba(8, 19, 38, 0.82);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rf-standby-label {
    font-size: 10px;
    font-weight: 800;
    font-family: var(--rf-mono);
    color: #38bdf8;
    letter-spacing: 0.05em;
}

.rf-standby-wait {
    font-size: 13px;
    font-weight: 800;
    color: #64748b;
}

.rf-standby-ab-note {
    font-size: 11px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

.rf-standby-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    flex: 1;
}

.rf-standby-stat {
    background: rgba(7, 16, 33, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10.5px;
    font-weight: 800;
    color: #cbd5e1;
}

.rf-standby-stat strong {
    font-family: var(--rf-mono);
    font-size: 13px;
    color: #475569;
}

.rf-standby-stat.is-pwr { border-left: 3px solid var(--rf-neon-red); }
.rf-standby-stat.is-spd { border-left: 3px solid var(--rf-neon-cyan); }
.rf-standby-stat.is-def { border-left: 3px solid var(--rf-neon-green); }
.rf-standby-stat.is-nrg { border-left: 3px solid var(--rf-neon-gold); }
.rf-standby-stat.is-int { border-left: 3px solid var(--rf-neon-purple); }
.rf-standby-stat.is-flt { border-left: 3px solid var(--rf-neon-blue); }

/* --- DURUM 2: ÜRETİM SÜRECİ (YÜKLENİYOR) --- */
.rf-result-loading {
    background: rgba(6, 14, 29, 0.88);
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 420px;
}

.rf-quantum-loader {
    position: relative;
    width: 54px;
    height: 54px;
    margin-bottom: 4px;
}

.rf-spinner {
    width: 54px;
    height: 54px;
    border: 3px solid rgba(0, 240, 255, 0.18);
    border-top-color: var(--rf-neon-cyan);
    border-radius: 50%;
    animation: rfSpin 0.9s linear infinite;
}

.rf-spinner-inner {
    position: absolute;
    inset: 9px;
    border: 2px solid rgba(251, 191, 36, 0.2);
    border-bottom-color: var(--rf-neon-gold);
    border-radius: 50%;
    animation: rfSpinReverse 1.3s linear infinite;
}

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

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

.rf-loading-badge {
    font-size: 10px;
    font-weight: 800;
    font-family: var(--rf-mono);
    color: var(--rf-neon-cyan);
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.4);
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.06em;
}

.rf-loading-title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
}

.rf-loading-sub {
    margin: 0;
    font-size: 11.5px;
    color: #94a3b8;
    max-width: 390px;
    line-height: 1.45;
}

/* --- DURUM 3: ÜRETİM HATASI DURUMU --- */
.rf-result-error {
    background: rgba(28, 10, 20, 0.88);
    border: 1px solid rgba(255, 59, 92, 0.55);
    border-radius: 10px;
    padding: 24px 18px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 420px;
}

.rf-error-badge {
    font-size: 10.5px;
    font-weight: 800;
    font-family: var(--rf-mono);
    color: #fda4af;
    background: rgba(255, 59, 92, 0.2);
    border: 1px solid rgba(255, 59, 92, 0.5);
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.05em;
}

.rf-error-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
}

.rf-error-msg {
    margin: 0;
    font-size: 12px;
    color: #fecdd3;
    max-width: 420px;
    line-height: 1.45;
}

.rf-error-retry-btn {
    margin-top: 4px;
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    background: rgba(255, 59, 92, 0.22);
    border: 1px solid #ff3b5c;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}

.rf-error-retry-btn:hover {
    background: #ff3b5c;
    color: #050b16;
}

/* ==========================================================================
   DURUM 4: BAŞARILI ÜRETİM SONUCU (9:16 DİKEY GÖRSEL + NEON TELEMETRİ)
   ========================================================================== */
.rf-result-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* 1. SOL SÜTUN: TAM BOY DİKEY 9:16 ROBOT GÖRSEL SAHNESİ */
.rf-result-visual-box {
    background:
        radial-gradient(ellipse at 50% 85%, rgba(0, 240, 255, 0.22) 0%, transparent 65%),
        radial-gradient(circle at 50% 22%, rgba(56, 189, 248, 0.14) 0%, transparent 55%),
        linear-gradient(180deg, #040914 0%, #08152c 60%, #030710 100%);
    border: 1px solid rgba(0, 240, 255, 0.45);
    border-radius: 10px;
    padding: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    aspect-ratio: 768 / 1376;
    align-self: start;
    width: 100%;
    box-shadow:
        0 0 22px rgba(0, 240, 255, 0.14),
        inset 0 0 18px rgba(0, 240, 255, 0.08);
}

.rf-visual-ratio-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 3;
    font-size: 8.5px;
    font-weight: 800;
    font-family: var(--rf-mono);
    color: var(--rf-neon-cyan);
    background: rgba(4, 10, 22, 0.82);
    border: 1px solid rgba(0, 240, 255, 0.4);
    padding: 1.5px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    pointer-events: none;
}

.rf-result-visual-box img {
    width: 100%;
    height: 100%;
    
    border-radius: 6px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 16px rgba(0, 240, 255, 0.18));
}

.rf-img-disclaimer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(4, 10, 22, 0.9);
    color: var(--rf-neon-gold);
    border-top: 1px solid rgba(251, 191, 36, 0.35);
    font-size: 8.5px;
    font-weight: 600;
    text-align: center;
    padding: 3px 6px;
    line-height: 1.2;
    z-index: 3;
}

/* 2. SAĞ SÜTUN: ROBOT KİMLİĞİ, 6 NEON GÜÇ KARTI VE 3 ÖZEL YETENEK */
.rf-result-telemetry-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    min-height: 0;
}

/* Robot Kimlik Kartı */
.rf-identity-summary {
    background: linear-gradient(135deg, rgba(10, 24, 48, 0.95) 0%, rgba(6, 15, 32, 0.95) 100%);
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-top: 2px solid var(--rf-neon-cyan);
    border-radius: 9px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.rf-identity-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.rf-identity-eyebrow {
    font-size: 9px;
    font-weight: 800;
    font-family: var(--rf-mono);
    color: #38bdf8;
    letter-spacing: 0.08em;
}

.rf-result-robot-name {
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.38);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.rf-identity-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.rf-id-badge {
    font-size: 9.5px;
    font-weight: 700;
    font-family: var(--rf-mono);
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.9);
    color: #bae6fd;
    border: 1px solid rgba(56, 189, 248, 0.35);
    white-space: nowrap;
    flex-shrink: 0;
}

.rf-id-badge.is-class {
    background: rgba(0, 240, 255, 0.14);
    color: var(--rf-neon-cyan);
    border-color: rgba(0, 240, 255, 0.55);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

.rf-id-badge.is-design {
    color: var(--rf-neon-gold);
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.08);
}

/* Altı Güç Özelliği (6 Farklı Neon Renkli Elektronik Kart - 2 Sütun x 3 Satır) */
.rf-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 60px;
    align-content: start;
    gap: 6px 8px;
    flex: 0 0 auto;
}

.rf-stat-item {
    --stat-neon: #00f0ff;
    --stat-bg: rgba(0, 240, 255, 0.07);
    background: linear-gradient(145deg, rgba(9, 20, 40, 0.94) 0%, rgba(5, 12, 26, 0.94) 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-left: 3px solid var(--stat-neon);
    border-radius: 8px;
    padding: 6px 11px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-height: 0;
    box-shadow: inset 0 0 12px var(--stat-bg);
}

.rf-stat-item.is-pwr {
    --stat-neon: #ff3b5c;
    --stat-bg: rgba(255, 59, 92, 0.09);
    border-color: rgba(255, 59, 92, 0.35);
}

.rf-stat-item.is-spd {
    --stat-neon: #00f0ff;
    --stat-bg: rgba(0, 240, 255, 0.09);
    border-color: rgba(0, 240, 255, 0.35);
}

.rf-stat-item.is-def {
    --stat-neon: #10b981;
    --stat-bg: rgba(16, 185, 129, 0.09);
    border-color: rgba(16, 185, 129, 0.35);
}

.rf-stat-item.is-nrg {
    --stat-neon: #fbbf24;
    --stat-bg: rgba(251, 191, 36, 0.09);
    border-color: rgba(251, 191, 36, 0.35);
}

.rf-stat-item.is-int {
    --stat-neon: #a855f7;
    --stat-bg: rgba(168, 85, 247, 0.09);
    border-color: rgba(168, 85, 247, 0.35);
}

.rf-stat-item.is-flt {
    --stat-neon: #38bdf8;
    --stat-bg: rgba(56, 189, 248, 0.09);
    border-color: rgba(56, 189, 248, 0.35);
}

.rf-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.rf-stat-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 800;
    color: #e2e8f0;
    letter-spacing: 0.04em;
}

.rf-stat-label i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--stat-neon);
    box-shadow: 0 0 6px var(--stat-neon);
    display: inline-block;
}

.rf-stat-val {
    font-size: 22px;
    line-height: 1.1;
    font-weight: 900;
    font-family: var(--rf-mono);
    color: var(--stat-neon);
    text-shadow: 0 0 8px var(--stat-bg);
}

.rf-stat-track {
    height: 6px;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.rf-stat-fill {
    height: 100%;
    background: var(--stat-neon);
    box-shadow: 0 0 8px var(--stat-neon);
    border-radius: 999px;
    transition: width 0.35s ease;
}

/* Üç Özel Yetenek Modülü */
.rf-abilities-wrap {
    background: rgba(7, 16, 34, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 9px;
    padding: 7px 9px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1 1 auto;
    min-height: 0;
}

.rf-abilities-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 9.5px;
    font-weight: 800;
    font-family: var(--rf-mono);
    color: #38bdf8;
    letter-spacing: 0.05em;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.16);
}

.rf-abilities-tag {
    color: var(--rf-neon-cyan);
}

.rf-abilities-box {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    gap: 8px;
    flex: 1;
    min-height: 0;
}

.rf-ability-item {
    background: rgba(11, 25, 50, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-left: 3px solid var(--rf-neon-cyan);
    border-radius: 6px;
    padding: 5px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rf-ability-item.is-ab-2 {
    border-left-color: var(--rf-neon-gold);
}

.rf-ability-item.is-ab-3 {
    border-left-color: var(--rf-neon-purple);
}

.rf-ability-head {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.rf-ability-type {
    font-size: 10px;
    font-weight: 800;
    font-family: var(--rf-mono);
    color: var(--rf-neon-cyan);
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 0.5px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.rf-ability-item.is-ab-2 .rf-ability-type {
    color: var(--rf-neon-gold);
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.35);
}

.rf-ability-item.is-ab-3 .rf-ability-type {
    color: #d8b4fe;
    background: rgba(168, 85, 247, 0.14);
    border-color: rgba(168, 85, 247, 0.4);
}

.rf-ability-name {
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rf-ability-desc {
    margin: 0;
    font-size: 12.5px;
    color: #cbd5e1;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .rf-spinner,
    .rf-spinner-inner {
        animation: none;
    }
}

/* ==========================================================================
   HAYATI — GEÇMİŞ HAYATI (sağ bilgi sütununun son bölümü)
   ========================================================================== */
.rf-life-card {
    margin-top: 12px;
    background:
        radial-gradient(ellipse at 8% 0%, rgba(168, 85, 247, 0.12) 0%, transparent 55%),
        linear-gradient(160deg, rgba(10, 24, 48, 0.96) 0%, rgba(6, 15, 32, 0.97) 100%);
    border: 1px solid rgba(168, 85, 247, 0.38);
    border-top: 2px solid var(--rf-neon-purple);
    border-radius: 10px;
    padding: 14px 18px 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28), inset 0 0 22px rgba(168, 85, 247, 0.06);
}

.rf-life-card:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

.rf-life-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.22);
}

.rf-life-head-main {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
    flex-wrap: wrap;
}

.rf-life-title {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.rf-life-kicker {
    order: 2;
    font-size: 10px;
    font-weight: 800;
    font-family: var(--rf-mono);
    color: #d8b4fe;
    letter-spacing: 0.1em;
}

.rf-life-story-title {
    margin-top: 12px;
    font-size: 22px;
    font-weight: 900;
    color: var(--rf-neon-cyan);
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.28);
}

.rf-life-tagline {
    margin: 6px 0 0;
    font-size: 13.5px;
    font-style: italic;
    color: #fcd34d;
    line-height: 1.45;
    border-left: 3px solid var(--rf-neon-gold);
    padding-left: 10px;
}

.rf-life-universe {
    margin-top: 9px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 8px;
    padding: 7px 9px;
    border-radius: 7px;
    background: rgba(5, 13, 28, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.28);
}

.rf-uni-pill {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.rf-uni-pill.is-wide {
    grid-column: 1 / -1;
    padding-top: 3px;
    border-top: 1px dashed rgba(168, 85, 247, 0.25);
}

.rf-uni-pill span {
    font-size: 8.5px;
    font-weight: 800;
    font-family: var(--rf-mono);
    color: #38bdf8;
    letter-spacing: 0.06em;
}

.rf-uni-pill strong {
    font-size: 11px;
    font-weight: 700;
    color: #f1f5f9;
    white-space: normal;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.rf-life-body {
    margin-top: 12px;
    max-width: 78ch;
}

.rf-life-body p {
    margin: 0 0 11px;
    font-size: 14.5px;
    line-height: 1.7;
    color: #dbe5f1;
    text-align: left;
    overflow-wrap: anywhere;
}

.rf-life-body p:last-child {
    margin-bottom: 0;
}

.rf-life-body p:first-child::first-letter {
    font-size: 1.9em;
    font-weight: 900;
    color: var(--rf-neon-cyan);
    float: left;
    line-height: 1;
    padding: 2px 6px 0 0;
}

.rf-result-head-actions {
    flex-wrap: wrap;
}

.rf-mini-btn {
    min-height: 32px;
    white-space: nowrap;
}

.rf-mini-btn:disabled {
    opacity: 0.5;
    cursor: wait;
}

#rfPdfStatus {
    font-size: 12px;
    color: #fcd34d;
    margin: 0 0 6px;
}

/* ==========================================================================
   MASAÜSTÜ VE LAPTOP YERLEŞİM MİMARİSİ (>= 1025px)
   Viewport ownership belongs to the studio, never to the portrait or story.
   ========================================================================== */
@media (min-width: 1025px) {
    .rf-viewport {
        height: var(--rf-available-height, calc(100dvh - 83px));
        min-height: 640px;
    }

    .rf-container,
    .rf-studio-grid {
        height: 100%;
        min-height: 0;
    }

    .rf-config-column,
    .rf-right-panel {
        min-height: 0;
        min-width: 0;
    }

    .rf-systems-grid {
        min-height: 0;
        flex: 1 1 0;
        grid-template-rows: repeat(6, minmax(52px, 84px));
        align-content: space-between;
    }

    .rf-sys-card {
        justify-content: center;
        gap: 4px;
    }

    .rf-build-card {
        flex-shrink: 0;
        margin-top: auto;
    }

    .rf-stage-split {
        grid-template-columns: minmax(260px, 45.5%) minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
    }

    .rf-result-visual-box,
    .rf-standby-chamber {
        height: 100%;
        max-height: 100%;
        aspect-ratio: auto;
        min-height: 0;
    }

    .rf-result-visual-box img {
        min-height: 0;
    }

    .rf-result-telemetry-col {
        justify-content: flex-start;
    }

    .rf-abilities-wrap,
    .rf-abilities-box {
        flex: 0 0 auto;
    }

    .rf-abilities-box {
        gap: 4px;
    }

    .rf-ability-name {
        font-size: 12px;
    }

    .rf-ability-desc {
        font-size: 11px;
        line-height: 1.3;
    }

    .rf-life-card {
        flex: 1 1 0;
        min-height: 120px;
        overflow-y: auto;
        margin-top: 0;
        padding: 10px 12px;
        overscroll-behavior: contain;
    }

    .rf-life-story-title {
        font-size: 18px;
        margin-top: 8px;
    }

    .rf-standby-telemetry {
        justify-content: flex-start;
    }

    .rf-standby-stats-grid {
        flex: 0 0 auto;
        grid-auto-rows: 60px;
    }
}

/* Kompakt Masaüstü / Laptop Yüksekliği (ör. 1366x768) */
@media (min-width: 1025px) and (max-height: 820px) {
    .rf-viewport {
        padding: 4px 10px 6px;
        min-height: 600px;
    }

    .rf-config-column {
        gap: 4px;
    }

    .rf-design-head {
        padding-bottom: 1px;
    }

    .rf-title {
        font-size: 14px;
    }

    .rf-subtitle {
        font-size: 11px;
    }

    .rf-systems-grid {
        gap: 4px;
        grid-template-rows: repeat(6, minmax(48px, 1fr));
    }

    .rf-sys-card {
        padding: 3px 6px;
        gap: 2px;
    }

    .rf-sys-title {
        font-size: 10.5px;
    }

    .rf-form-select {
        height: 24px;
        font-size: 11px;
        padding: 0 18px 0 6px;
    }

    .rf-build-card {
        padding: 5px 8px;
        gap: 4px;
    }

    .rf-slots-grid {
        gap: 2px 5px;
    }

    .rf-slot-row {
        height: 19px;
        padding: 1px 5px;
        font-size: 9.5px;
    }

    .rf-generate-btn {
        height: 30px;
        font-size: 11.5px;
    }

    .rf-stage-card {
        padding: 6px 10px;
        gap: 5px;
    }

    .rf-section-header {
        padding-bottom: 3px;
        gap: 6px;
    }

    .rf-result-head-left {
        gap: 5px;
    }

    .rf-section-title {
        font-size: 12.5px;
    }

    .rf-stage-tag,
    .rf-live-pill,
    .rf-dryrun-pill {
        font-size: 8.5px;
        padding: 2px 5px;
    }

    .rf-mini-btn {
        min-height: 25px;
        padding: 2px 7px;
        font-size: 9.5px;
    }

    .rf-result-identity-card {
        padding: 5px 9px;
        gap: 2px;
    }

    .rf-result-robot-name {
        font-size: 18px;
    }

    .rf-stats-grid,
    .rf-standby-stats-grid {
        grid-auto-rows: 58px;
        gap: 4px 6px;
    }

    .rf-abilities-wrap {
        padding: 5px 8px;
        gap: 3px;
    }

    .rf-abilities-box {
        gap: 3px;
    }

    .rf-ability-item {
        padding: 3px 7px;
        gap: 1px;
    }

    .rf-ability-name {
        font-size: 11.5px;
    }

    .rf-ability-desc {
        font-size: 10.5px;
        line-height: 1.22;
        -webkit-line-clamp: 2;
    }

    .rf-life-card {
        min-height: 145px;
        padding: 8px 10px;
    }

    .rf-life-title {
        font-size: 15px;
    }

    .rf-life-story-title {
        font-size: 16px;
        margin-top: 5px;
    }

    .rf-life-tagline {
        font-size: 12px;
        margin-top: 4px;
    }

    .rf-life-universe {
        margin-top: 6px;
        padding: 5px 7px;
    }

    .rf-life-body {
        margin-top: 8px;
    }

    .rf-life-body p {
        font-size: 13px;
        line-height: 1.55;
        margin-bottom: 8px;
    }
}

/* ==========================================================================
   TABLET VE MOBİL UYUMLULUK (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .rf-viewport {
        padding: 12px 12px 32px;
        height: auto;
        min-height: 0;
    }

    .rf-design-head {
        gap: 4px 8px;
    }

    .rf-subtitle {
        white-space: normal;
        font-size: 12px;
    }

    .rf-studio-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .rf-slots-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rf-slot-row {
        height: auto;
        min-height: 32px;
        padding: 4px 8px;
        flex-direction: row;
        justify-content: space-between;
    }

    .rf-build-head,
    .rf-section-header {
        flex-wrap: wrap;
    }

    .rf-result-head-left {
        min-width: 0;
    }

    .rf-live-pill,
    .rf-dryrun-pill {
        white-space: normal;
    }

    .rf-mini-btn {
        min-height: 38px;
        padding: 6px 12px;
        font-size: 11px;
    }

    .rf-sys-clear,
    .rf-slot-clear {
        min-width: 28px;
        min-height: 28px;
    }

    .rf-stage-split {
        grid-template-columns: minmax(240px, 40%) minmax(0, 1fr);
        gap: 14px;
        align-items: start;
    }

    .rf-standby-chamber,
    .rf-result-visual-box {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
        aspect-ratio: 9 / 16;
    }

    .rf-result-visual-box img {
        max-height: none;
    }

    .rf-life-card {
        overflow-y: visible;
        max-height: none;
    }

    .rf-ability-desc {
        -webkit-line-clamp: 3;
    }
}

/* Mobil ve Dar Tablet (<= 768px) */
@media (max-width: 768px) {
    .rf-mobile-tabs {
        display: flex;
        gap: 8px;
        margin-bottom: 12px;
        position: sticky;
        top: 64px;
        z-index: 99;
        background: rgba(7, 9, 14, 0.95);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        padding: 6px 0;
        border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    }
    .rf-mobile-tab-btn {
        flex: 1;
        padding: 10px 12px;
        border-radius: 8px;
        border: 1px solid rgba(56, 189, 248, 0.25);
        background: rgba(15, 23, 42, 0.75);
        color: #94a3b8;
        font-size: 0.8rem;
        font-weight: 700;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 44px;
        transition: all 0.2s ease;
    }
    .rf-mobile-tab-btn.is-active {
        background: linear-gradient(135deg, rgba(2, 132, 199, 0.3) 0%, rgba(56, 189, 248, 0.18) 100%);
        border-color: #38bdf8;
        color: #fff;
        box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
    }
    .rf-mobile-jump-preview,
    .rf-mobile-back-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
        min-height: 42px;
        padding: 8px 14px;
        border-radius: 8px;
        font-size: 0.82rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .rf-mobile-jump-preview {
        background: rgba(56, 189, 248, 0.12);
        border: 1px dashed rgba(56, 189, 248, 0.4);
        color: #7dd3fc;
        margin-top: 8px;
    }
    .rf-mobile-back-wrap {
        margin-bottom: 12px;
    }
    .rf-mobile-back-btn {
        background: rgba(15, 23, 42, 0.85);
        border: 1px solid rgba(56, 189, 248, 0.3);
        color: #38bdf8;
    }
    .rf-config-column.is-mobile-hidden,
    .rf-right-panel.is-mobile-hidden {
        display: none !important;
    }

    .rf-stage-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .rf-standby-chamber,
    .rf-result-visual-box {
        max-width: 380px;
    }
}

@media (min-width: 769px) {
    .rf-mobile-tabs,
    .rf-mobile-jump-preview,
    .rf-mobile-back-wrap {
        display: none !important;
    }
    .rf-config-column,
    .rf-right-panel {
        display: flex !important;
    }
}

/* Mobil Ekranlar (<= 640px) */
@media (max-width: 640px) {
    .rf-viewport {
        padding: 10px 10px 28px;
    }

    .rf-systems-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .rf-sys-card {
        padding: 9px 10px;
        gap: 6px;
    }

    .rf-form-select {
        height: 38px;
        font-size: 13px;
    }

    .rf-slots-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 6px;
    }

    .rf-slot-row {
        min-height: 32px;
        padding: 4px 7px;
        gap: 4px;
    }

    .rf-build-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .rf-generate-btn {
        height: 44px;
        font-size: 14px;
    }

    .rf-btn-helper {
        text-align: center;
        white-space: normal;
    }

    .rf-standby-chamber,
    .rf-result-visual-box {
        max-width: 100%;
    }

    .rf-result-head-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .rf-mini-btn {
        flex: 1 1 auto;
        justify-content: center;
        text-align: center;
        min-height: 40px;
    }

    .rf-life-card {
        padding: 12px 13px 14px;
    }

    .rf-life-story-title {
        font-size: 19px;
    }

    .rf-life-universe {
        grid-template-columns: minmax(0, 1fr);
    }

    .rf-life-body p {
        font-size: 14px;
        line-height: 1.65;
    }
}

/* Küçük ve Standart Mobil Dar Ekranlar (<= 430px) */
@media (max-width: 430px) {
    .rf-title,
    .rf-section-title {
        white-space: normal;
        font-size: 14px;
    }

    .rf-sys-controls {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .rf-result-robot-name {
        font-size: 20px;
    }
}

/* ==========================================================================
   IP BAZLI 24 SAATLİK GÖRSEL ÜRETİM LİMİTİ BİLDİRİMİ (#rfQuotaLockNotice)
   ========================================================================== */
.rf-generate-btn.is-quota-locked {
    background: rgba(30, 41, 59, 0.85) !important;
    border-color: rgba(251, 191, 36, 0.45) !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

.rf-quota-lock-notice {
    margin-top: 6px;
    padding: 8px 11px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(15, 23, 42, 0.94) 100%);
    border: 1px solid rgba(251, 191, 36, 0.48);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32), inset 0 0 12px rgba(251, 191, 36, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #f8fafc;
}

.rf-quota-lock-head {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rf-quota-lock-icon {
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
}

.rf-quota-lock-title {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fbbf24;
    text-transform: uppercase;
    line-height: 1.25;
}

.rf-quota-lock-desc {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
    color: #e2e8f0;
}

.rf-quota-lock-timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    padding: 3px 8px;
    border-radius: 5px;
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid rgba(56, 189, 248, 0.35);
    align-self: flex-start;
    font-size: 11px;
}

.rf-quota-timer-label {
    color: #94a3b8;
    font-weight: 600;
}

.rf-quota-timer-value {
    font-family: var(--rf-mono);
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.02em;
}

@media (min-width: 1025px) {
    .rf-left-panel {
        overflow-y: auto;
        scrollbar-width: thin;
    }
}

@media (max-width: 768px) {
    .rf-quota-lock-notice {
        padding: 10px 12px;
        gap: 6px;
    }

    .rf-quota-lock-title {
        font-size: 12.5px;
    }

    .rf-quota-lock-desc {
        font-size: 12px;
        line-height: 1.48;
    }

    .rf-quota-lock-timer {
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* ==========================================================================
   ROBO NEXIMUS — SON ROBOTUMU GERİ GETİR BANNERI & ÇIKIŞ UYARISI MODALI
   ========================================================================== */

/* --- SON ROBOTUMU GERİ GETİR BANNERI (STANDBY HANGAR) --- */
.rf-restore-banner {
    width: 100%;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(8, 22, 46, 0.95) 0%, rgba(4, 12, 28, 0.95) 100%);
    border: 1px solid rgba(0, 240, 255, 0.38);
    border-radius: 9px;
    box-shadow: 0 4px 18px rgba(0, 240, 255, 0.12), inset 0 0 12px rgba(0, 240, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    animation: rfRestorePulse 3s infinite ease-in-out;
}

@keyframes rfRestorePulse {
    0%, 100% { border-color: rgba(0, 240, 255, 0.38); box-shadow: 0 4px 18px rgba(0, 240, 255, 0.12); }
    50% { border-color: rgba(0, 240, 255, 0.65); box-shadow: 0 4px 24px rgba(0, 240, 255, 0.22); }
}

.rf-restore-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.rf-restore-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 240, 255, 0.14);
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: var(--rf-neon-cyan);
    font-size: 10px;
    font-weight: 800;
    font-family: var(--rf-mono);
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.rf-restore-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00f0ff;
    box-shadow: 0 0 6px #00f0ff;
}

.rf-restore-titles {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rf-restore-robot-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rf-restore-meta {
    font-size: 11px;
    font-family: var(--rf-mono);
    color: #94a3b8;
}

.rf-restore-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: 1px solid rgba(0, 240, 255, 0.5);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    padding: 7px 14px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.35);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.rf-restore-btn:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-color: #00f0ff;
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.5);
    transform: translateY(-1px);
}

.rf-head-restore-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(2, 132, 199, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.rf-head-restore-btn:hover {
    background: rgba(2, 132, 199, 0.35);
    border-color: #00f0ff;
    color: #ffffff;
}

.rf-mobile-restore-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: 1px solid rgba(0, 240, 255, 0.5);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.35);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.rf-mobile-restore-pill:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-color: #00f0ff;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.5);
}

@media (min-width: 1025px) {
    .rf-mobile-restore-pill {
        display: none !important;
    }
}


/* --- ÇIKIŞ UYARISI MODALI (KAHRAMANINI KAYBETME!) --- */
.rf-exit-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(3, 7, 18, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 1;
}

.rf-exit-modal-card {
    background: #091326;
    background: linear-gradient(180deg, #0d1b38 0%, #060e1d 100%);
    border: 1px solid rgba(0, 240, 255, 0.45);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.25), 0 25px 60px rgba(0, 0, 0, 0.95);
    border-radius: 14px;
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 1;
    position: relative;
    z-index: 100000;
}

.rf-exit-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(2, 6, 23, 0.7);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.rf-exit-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rf-exit-beacon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 10px #fbbf24;
    position: relative;
}

.rf-exit-beacon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid #fbbf24;
    animation: rfBeaconPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes rfBeaconPing {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

.rf-exit-modal-title {
    font-size: 15px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.04em;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

.rf-exit-close-btn {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #94a3b8;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.rf-exit-close-btn:hover {
    color: #ffffff;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.rf-exit-modal-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rf-exit-modal-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #cbd5e1;
}

.rf-exit-preview-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 9px;
}

.rf-exit-thumb-wrap {
    width: 52px;
    height: 92px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0, 240, 255, 0.35);
    flex-shrink: 0;
    background: #020617;
}

.rf-exit-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rf-exit-info-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.rf-exit-info-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rf-exit-class-tag {
    font-size: 9.5px;
    font-weight: 800;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.rf-exit-status-pill {
    font-size: 9.5px;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    padding: 1px 6px;
    border-radius: 4px;
}

.rf-exit-status-pill.is-downloaded {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.4);
}

.rf-exit-robot-name {
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rf-exit-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--rf-mono);
    font-size: 11px;
    color: #94a3b8;
}

.rf-exit-modal-footer {
    padding: 14px 18px 18px;
    background: rgba(2, 6, 23, 0.6);
    border-top: 1px solid rgba(56, 189, 248, 0.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rf-exit-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.rf-exit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    text-align: center;
}

.rf-exit-btn.is-img {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    color: #ffffff;
    border: 1px solid rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 14px rgba(2, 132, 199, 0.35);
}

.rf-exit-btn.is-img:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.55);
    transform: translateY(-1px);
}

.rf-exit-btn.is-pdf {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    color: #ffffff;
    border: 1px solid rgba(20, 184, 166, 0.5);
    box-shadow: 0 0 14px rgba(13, 148, 136, 0.35);
}

.rf-exit-btn.is-pdf:hover {
    background: linear-gradient(135deg, #14b8a6 0%, #2dd4bf 100%);
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.55);
    transform: translateY(-1px);
}

.rf-exit-btn.is-done {
    background: rgba(34, 197, 94, 0.25) !important;
    border-color: #22c55e !important;
    color: #86efac !important;
    box-shadow: none !important;
}

.rf-exit-sub-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.rf-exit-btn.is-stay {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
}

.rf-exit-btn.is-stay:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: #cbd5e1;
    color: #ffffff;
}

.rf-exit-btn.is-leave {
    background: rgba(239, 68, 68, 0.09);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.rf-exit-btn.is-leave:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ffffff;
}

@media (max-width: 600px) {
    .rf-exit-actions-row {
        grid-template-columns: 1fr;
    }
    .rf-exit-sub-actions-row {
        grid-template-columns: 1fr;
    }
    .rf-restore-banner {
        flex-direction: column;
        align-items: stretch;
    }
    .rf-restore-btn {
        justify-content: center;
    }
}
