/* ================================================= */
/* 👑 ROYAL SP PRO - FİNAL STİL DOSYASI (STYLE.CSS) */
/* ================================================= */

/* --- TEMALAR VE RENK PALETİ --- */
:root {
    /* Varsayılan Tema (Eflatun/Mor) */
    --ana-renk: #9b59b6;
    --ana-renk-koyu: #8e44ad;
    --arka-plan: #ecf0f1;
    --kutu-bg: #ffffff;
    --yazi-rengi: #2c3e50;
    --border-renk: rgba(155, 89, 182, 0.4);
    --sidebar-bg: #2c3e50;
    --sidebar-text: #ecf0f1;
}

[data-theme="mavi"] { --ana-renk: #3498db; --ana-renk-koyu: #2980b9; --border-renk: rgba(52, 152, 219, 0.4); }
[data-theme="yesil"] { --ana-renk: #2ecc71; --ana-renk-koyu: #27ae60; --border-renk: rgba(46, 204, 113, 0.4); }
[data-theme="turuncu"] { --ana-renk: #e67e22; --ana-renk-koyu: #d35400; --border-renk: rgba(230, 126, 34, 0.4); }

/* --- GENEL AYARLAR --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--arka-plan);
    color: var(--yazi-rengi);
    margin: 0; padding: 0;
    display: flex; height: 100vh; overflow: hidden;
}

/* --- ORTAK ELEMANLAR --- */
input, select, textarea {
    width: 100%; padding: 12px;
    background: #f8f9fa;
    border: 1px solid #ddd; border-radius: 8px;
    color: #333; font-size: 14px; box-sizing: border-box;
    transition: 0.3s;
}
input:focus, select:focus, textarea:focus { border-color: var(--ana-renk); outline: none; background: #fff; }
button { cursor: pointer; }

/* --- LOGIN SAYFASI --- */
body.login-page {
    height: 100vh; display: flex; justify-content: center; align-items: center;
    background: linear-gradient(135deg, #2c3e50, #000);
}
.login-kutu {
    background: rgba(255, 255, 255, 0.1); padding: 40px; border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); backdrop-filter: blur(10px);
    width: 100%; max-width: 350px; text-align: center; border: 1px solid rgba(255, 255, 255, 0.1);
}
.login-kutu h2 { color: #fff; margin-bottom: 20px; }
.login-kutu button {
    width: 100%; padding: 12px; margin-top: 20px;
    background: var(--ana-renk); color: #fff; border: none; border-radius: 5px;
    font-weight: bold; transition: 0.3s;
}
.login-kutu button:hover { background: var(--ana-renk-koyu); }
.login-logo {
    width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
    border: 4px solid var(--ana-renk); box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px; animation: girisEfekti 1s ease-out;
}
@keyframes girisEfekti { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* --- LOGIN SAYFASI EKSTRALARI --- */
.login-input-label { color: #ccc; font-size: 12px; margin-bottom: 5px; display: block; text-align: left; }
.login-input { background: #f1f2f6; border: 1px solid #ddd; color: #333; padding: 12px; border-radius: 6px; width: 100%; box-sizing: border-box; outline: none; transition: 0.3s; }
.login-input:focus { border-color: var(--ana-renk, #e67e22); box-shadow: 0 0 5px rgba(255,255,255,0.1); }
.login-btn { margin-top: 20px; padding: 12px; width: 100%; background: var(--ana-renk, #e67e22); color: #fff; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 16px; transition: 0.3s; }
.login-btn:hover { background: #d35400; }
.login-btn:disabled { background: #7f8c8d; cursor: not-allowed; }

/* --- SIDEBAR --- */
.sidebar {
    width: 260px; background: var(--sidebar-bg); color: var(--sidebar-text);
    display: flex; flex-direction: column; padding: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.15); z-index: 1000;
}
.app-logo { font-size: 22px; font-weight: bold; color: var(--ana-renk); margin-bottom: 40px; display: flex; align-items: center; gap: 10px; }
.menu-item {
    padding: 12px 15px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 12px;
    font-size: 15px; color: #bdc3c7; transition: all 0.3s; margin-bottom: 8px;
}
.menu-item:hover, .menu-item.active { background: var(--ana-renk); color: #fff; transform: translateX(5px); }
.user-box { margin-top: auto; padding: 15px; background: rgba(0,0,0,0.2); border-radius: 10px; font-size: 13px; }

/* --- İÇERİK ALANI --- */
.content-area { flex: 1; overflow-y: auto; padding: 20px; position: relative; }
.page-section { display: none; animation: fadeIn 0.3s; }
.page-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- SİPARİŞ FORMU --- */
.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.theme-selector { display: flex; gap: 10px; }
.theme-btn { width: 20px; height: 20px; border-radius: 50%; cursor: pointer; border: 2px solid #ddd; }
.theme-btn:hover { transform: scale(1.2); }

.form-container {
    background: var(--kutu-bg); padding: 25px; border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); margin-bottom: 30px;
}
.form-frame {
    border: 1px solid #eee; border-radius: 8px; padding: 20px; margin-bottom: 30px; position: relative;
}
.frame-title {
    position: absolute; top: -12px; left: 20px; background: var(--kutu-bg);
    padding: 0 10px; color: var(--ana-renk); font-weight: bold; font-size: 13px; text-transform: uppercase;
}
.form-row { display: flex; gap: 15px; margin-bottom: 15px; }
.form-group { flex: 1; }
label { display: block; font-size: 12px; font-weight: bold; color: #7f8c8d; margin-bottom: 5px; }

/* --- BUTONLAR --- */
.btn-save {
    width: 100%; padding: 15px; background: var(--ana-renk); color: white;
    font-size: 16px; font-weight: bold; border: none; border-radius: 8px; cursor: pointer; transition: 0.3s;
}
.btn-save:hover { background: var(--ana-renk-koyu); }
.btn-save:disabled { background-color: #ccc !important; cursor: not-allowed; }

/* --- TABLO & FİLTRE & ARAMA --- */
.filter-bar { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.filter-btn {
    background: transparent; border: 1px solid var(--ana-renk); color: var(--ana-renk);
    padding: 5px 15px; border-radius: 15px; font-size: 13px; transition: 0.3s; white-space: nowrap;
}
.filter-btn:hover, .filter-btn.active { background: var(--ana-renk); color: #fff; }

.table-container { background: var(--kutu-bg); padding: 20px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 12px; border-bottom: 2px solid #eee; color: var(--ana-renk); font-size: 14px; }
td { padding: 12px; border-bottom: 1px solid #f1f1f1; font-size: 14px; color: #333; }

/* Arama Kutusu */
.search-bar-container { display: flex; gap: 10px; flex: 1; margin-right: 20px; }
.main-search-input { width: 100%; padding: 10px 15px; border-radius: 20px; border: 1px solid #ddd; background: #fff; outline: none; transition: 0.3s; font-size: 14px; box-sizing: border-box; }
.main-search-input:focus { border-color: var(--ana-renk); box-shadow: 0 0 8px rgba(0,0,0,0.1); }
.btn-search { background: var(--ana-renk); color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.btn-search:hover { transform: scale(1.1); }

/* --- LİSTE MODU GİZLEME --- */
body.sadece-liste-modu .form-container { display: none !important; }
body.sadece-liste-modu .top-bar { margin-bottom: 10px; }

/* --- TAHSİLAT PANELİ (OFF-CANVAS) --- */
.side-panel-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2000; display: none; }
.side-panel { position: fixed; top: 0; right: -450px; width: 400px; height: 100vh; background: #fff; z-index: 2001; transition: right 0.3s ease-in-out; box-shadow: -5px 0 15px rgba(0,0,0,0.2); display: flex; flex-direction: column; }
.side-panel.acik { right: 0; }
.panel-header { background: var(--ana-renk); color: #fff; padding: 20px; display: flex; justify-content: space-between; align-items: center; font-weight: bold; font-size: 18px; }
.panel-body { padding: 25px; flex: 1; overflow-y: auto; }
.panel-footer { padding: 20px; border-top: 1px solid #eee; background: #f9f9f9; text-align: right; }

.tahsilat-info { background: #f1f2f6; padding: 15px; border-radius: 8px; margin-bottom: 20px; border: 1px solid #e1e1e1; }
.t-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; color: #555; }
.t-val { font-weight: bold; color: #2c3e50; }
.t-kalan { font-size: 18px; color: #c0392b; font-weight: bold; border-top: 1px solid #ccc; padding-top: 8px; margin-top: 8px; }

/* Ödeme Geçmişi Listesi Stili */
.history-list { list-style: none; padding: 0; margin-top: 10px; }
.history-item { display: flex; justify-content: space-between; align-items: center; padding: 10px; border-bottom: 1px solid #eee; font-size: 13px; }
.history-item:last-child { border-bottom: none; }
.h-tarih { color: #888; font-size: 11px; display: block; }
.h-tutar { font-weight: bold; color: #27ae60; }

/* --- MÜŞTERİ MODÜLÜ (CRM) --- */
.crm-layout { display: flex; gap: 25px; height: calc(100vh - 100px); }
.crm-list { flex: 1; min-width: 300px; background: transparent; padding-right: 5px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.customer-card { background: #fff; padding: 15px; border-radius: 12px; cursor: pointer; display: flex; align-items: center; gap: 15px; border-left: 4px solid transparent; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: 0.2s; }
.customer-card:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.customer-card.active { border-left-color: var(--ana-renk); background: #fdfaff; border: 1px solid var(--ana-renk); }

.avatar { width: 45px; height: 45px; background: var(--ana-renk); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 16px; flex-shrink: 0; text-transform: uppercase; }
.card-info h4 { margin: 0; color: #2c3e50; font-size: 15px; font-weight: 600; }
.card-info p { margin: 3px 0 0; font-size: 12px; color: #7f8c8d; }

.crm-detail { flex: 2; background: #fff; border-radius: 15px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); display: none; flex-direction: column; overflow-y: auto; }
.profile-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eee; padding-bottom: 20px; margin-bottom: 25px; }
.big-avatar { width: 70px; height: 70px; background: var(--ana-renk); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: bold; box-shadow: 0 5px 15px rgba(155, 89, 182, 0.3); text-transform: uppercase; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 25px; }
.info-box { background: #f8f9fa; padding: 15px; border-radius: 10px; border: 1px solid #eee; }
.info-box label { font-size: 11px; text-transform: uppercase; color: #95a5a6; letter-spacing: 0.5px; display: block; margin-bottom: 5px; }
.info-box div { font-size: 15px; font-weight: 600; color: #2c3e50; }

.btn-whatsapp-large { background: linear-gradient(45deg, #25D366, #128C7E); color: #fff; padding: 12px 25px; border-radius: 30px; text-decoration: none; font-weight: bold; box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3); transition: 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.btn-whatsapp-large:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4); }

/* --- RESİM & MODAL & BASKI --- */
.preview-container { display: flex; gap: 10px; margin-top: 10px; }
.preview-box { width: 60px; height: 60px; border-radius: 8px; border: 2px solid #eee; overflow: hidden; }
.preview-box img { width: 100%; height: 100%; object-fit: cover; }

.thumb-img { width: 45px; height: 45px; border-radius: 6px; object-fit: cover; margin-right: 12px; float: left; cursor: pointer; transition: transform 0.2s; }
.thumb-img:hover { transform: scale(2); z-index: 999; position:relative; }

/* TABLO BUTONLARI */
.btn-action { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; margin: 0; border: none; border-radius: 6px; cursor: pointer; margin-right: 4px; color: #fff; font-size: 13px; }
.btn-sevk { background: #00b894; } .btn-edit { background: #0984e3; } .btn-del { background: #d63031; } .btn-print { background: #6c5ce7; }
table td:last-child { white-space: nowrap; display: flex; gap: 5px; align-items: center; }

/* --- HATIRLATMA SAYFASI --- */
.reminder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.reminder-card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border-left: 5px solid var(--ana-renk); display: flex; flex-direction: column; justify-content: space-between; }
.reminder-date { font-size: 12px; color: #e67e22; font-weight: bold; margin-bottom: 5px; text-transform: uppercase; }
.btn-whatsapp-full { background: #25D366; color: #fff; border: none; padding: 10px; border-radius: 5px; width: 100%; margin-top: 15px; cursor: pointer; font-weight: bold; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: 0.2s; }
.btn-whatsapp-full:hover { background: #128C7E; transform: scale(1.02); }

/* İşlem Yapılmış Hatırlatma Kartı */
.reminder-card.islem-tamam { opacity: 0.6; background-color: #f9f9f9; border-left-color: #95a5a6; }
.reminder-card.islem-tamam .btn-whatsapp-full { background-color: #7f8c8d; cursor: pointer; pointer-events: auto; }
.reminder-card.islem-tamam .btn-whatsapp-full:hover { background-color: #25D366; }

/* ================================================= */
/* --- ROYAL SP PRO - YENİ EKLENEN ÖZELLİKLER --- */
/* ================================================= */

/* 1. SAYFA ORTASI BAŞLIK (GELEN SİPARİŞLER) */
.sayfa-baslik-orta {
    flex-grow: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sayfa-baslik-orta h2 {
    margin: 0;
    font-size: 24px;
    color: #2c3e50;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   🎯 KURUMSAL MERKEZİ MODAL STİLLERİ (SİPARİŞ DETAY)
   ========================================================================== */
.modal-root {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9999; display: none; align-items: center; justify-content: center;
}
.modal-backdrop {
    position: absolute; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}
.modal-container {
    position: relative; background: #fff; width: 90%; max-width: 850px;
    max-height: 90vh; border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex; flex-direction: column; overflow: hidden;
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    padding: 16px 24px; background: #fff; color: var(--text-main);
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #f1f5f9;
}
.modal-header h3 { 
    margin: 0; font-size: 18px; font-weight: 600; color: #1e293b; 
    display: flex; align-items: center; gap: 8px; 
}
.modal-header h3 i { color: var(--ana-renk); }
.modal-close-btn {
    background: #f1f5f9; border: none; color: #64748b;
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; font-size: 20px;
}
.modal-close-btn:hover { background: #fee2e2; color: #ef4444; }

.modal-body { padding: 24px; overflow-y: auto; background: #f8fafc; }
.modal-footer {
    padding: 16px 24px; border-top: 1px solid #f1f5f9;
    display: flex; justify-content: flex-end; gap: 12px; background: #fff;
}

.btn-modal-close {
    padding: 8px 16px; border: 1px solid #cbd5e1; background: #fff;
    border-radius: 6px; cursor: pointer; font-weight: 500; color: #475569; transition: 0.2s;
}
.btn-modal-close:hover { background: #f1f5f9; }
.btn-modal-print {
    padding: 8px 16px; border: none; background: var(--ana-renk, #3498db);
    color: #fff; border-radius: 6px; cursor: pointer; font-weight: 500;
    display: flex; align-items: center; gap: 6px; transition: 0.2s;
    box-shadow: 0 4px 6px -1px rgba(52, 152, 219, 0.2);
}
.btn-modal-print:hover { filter: brightness(1.1); transform: translateY(-1px); }

.detail-grid-images { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.detail-img-box {
    background: #fff; padding: 12px; border-radius: 10px;
    border: 1px solid #e2e8f0; text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.detail-img-box label { display: block; margin-bottom: 12px; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.detail-img-box.ref-box label { color: #8b5cf6; } 
.detail-img-box.prod-box label { color: #10b981; } 
.detail-img-box img { width: 100%; height: 220px; object-fit: contain; border-radius: 6px; background: #f8fafc; }

.detail-grid-info { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.detail-info-card {
    background: #fff; padding: 20px; border-radius: 10px;
    border: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.detail-info-card h4 { margin: 0 0 16px 0; color: #334155; font-size: 15px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #f1f5f9; padding-bottom: 12px; }
.detail-info-card h4 i { color: #94a3b8; }
.detail-info-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.detail-info-row strong { color: #64748b; font-weight: 500; }
.detail-info-row span { color: #1e293b; font-weight: 500; text-align: right; }
.highlight-text { color: #8b5cf6; font-family: monospace; font-size: 15px; font-weight: bold; background: #f3e8ff; padding: 4px 8px; border-radius: 4px; display: inline-block; }


/* ==========================================================================
   🖨️ YAZDIRMA (PRINT) MODALI VE BUTONLARI
   ========================================================================== */
.print-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 10000; display: none; align-items: center; justify-content: center;
}
.print-dialog {
    background: #fff; padding: 30px; border-radius: 12px; text-align: center; width: 350px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.print-btn-group { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.print-btn-group button { 
    padding: 12px; border: none; border-radius: 6px; font-size: 15px; font-weight: bold; cursor: pointer; color: #fff; transition: 0.2s;
}
.btn-p-price { background: #27ae60; } .btn-p-price:hover { background: #219a52; }
.btn-p-noprice { background: #34495e; } .btn-p-noprice:hover { background: #2c3e50; }
.btn-p-close { background: #e74c3c; margin-top: 10px; } .btn-p-close:hover { background: #c0392b; }


/* ==========================================================================
   🖨️ YAZDIRMA (PRINT) MOTORU - HAYALET BOŞLUKLAR GİDERİLDİ
   ========================================================================== */
#print-area { display: none; }
@media print {
    /* Print alanı dışındaki HER ŞEYİ DOM'dan geçici olarak buharlaştır */
    body > *:not(#print-area) { 
        display: none !important; 
    }
    
    /* Arkaplanı bembeyaz yap, margin ve paddingleri sıfırla ki gri alan kalmasın */
    html, body { 
        background: #ffffff !important; 
        margin: 0 !important; 
        padding: 0 !important; 
        height: auto !important; 
    }
    
    #print-area {
        display: block !important;
        position: static !important;
        width: 100% !important;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        color: #000; 
        padding: 20px; 
        box-sizing: border-box;
    }

    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

    .p-header { text-align: center; font-size: 16px; margin-bottom: 25px; color: #000; }
    
    .p-row { display: flex !important; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
    .p-col { flex: 1; border: 1px solid #ccc; border-radius: 8px; padding: 15px; background: #fff; }
    
    .p-title { font-weight: bold; color: #7f8c8d; font-size: 13px; border-bottom: 2px solid #eee; padding-bottom: 5px; margin-bottom: 15px; text-transform: uppercase; }
    
    .p-info-line { display: flex !important; margin-bottom: 8px; font-size: 14px; }
    .p-info-line strong { width: 100px; color: #000; }
    .p-info-line span { flex: 1; color: #333; }

    .p-product-box { border: 2px solid #8e44ad; border-radius: 8px; padding: 15px; margin-bottom: 20px; }
    .p-product-title { text-align: center; font-weight: bold; color: #7f8c8d; border-bottom: 2px solid #eee; padding-bottom: 5px; margin-bottom: 15px; text-transform: uppercase; }
    
    .p-yazi-box { border: 1px solid #8e44ad; border-radius: 6px; padding: 10px; margin: 15px 0; min-height: 60px; font-weight: bold; }
    
    .p-img-container { width: 150px; height: 150px; border: 1px solid #ddd; display: flex !important; align-items: center; justify-content: center; color: #ccc; }
    .p-img-container img { width: 100%; height: 100%; object-fit: contain; }

    .p-totals { float: right; border: 2px solid #000; padding: 15px; width: 250px; text-align: right; margin-bottom: 30px;}
    .p-totals-line { display: flex !important; justify-content: space-between; font-size: 16px; font-weight: bold; margin-bottom: 8px; border-bottom: 1px dashed #ccc; padding-bottom: 5px;}
    .p-totals-line:last-child { border-bottom: none; font-size: 18px; margin-bottom: 0; padding-bottom: 0; }
    .p-totals-tip { font-size: 11px; text-align: center; margin-top: 10px; color: #555; }

    .p-footer { clear: both; text-align: center; font-size: 11px; color: #7f8c8d; border-top: 1px solid #eee; padding-top: 10px; margin-top: 40px; }
}

/* ==========================================================================
   🔥 ÖZEL ŞIK BİLDİRİMLER (TOAST) 🔥
   ========================================================================== */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.royal-toast {
    background: #fff;
    border-left: 5px solid var(--ana-renk); /* Temaya duyarlı MOR/Ana renk */
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    padding: 15px 20px;
    border-radius: 6px;
    color: #2c3e50;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
    animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.royal-toast.success { border-left-color: #27ae60; }
.royal-toast.error { border-left-color: #e74c3c; }

.royal-toast i {
    font-size: 20px;
    color: var(--ana-renk);
}
.royal-toast.success i { color: #27ae60; }
.royal-toast.error i { color: #e74c3c; }

@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOutUp {
    to { transform: translateY(-20px); opacity: 0; }
}

/* ==========================================================================
   🔥 PRO ÇIKIŞ MODALI TASARIMI (TEMA UYUMLU GÜNCELLEME) 🔥
   ========================================================================== */
.pro-modal-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(4px); 
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.pro-modal-box {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    border-top: 5px solid var(--ana-renk); /* 🔥 Temaya uyumlu şık üst çerçeve */
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 380px;
    width: 90%;
    animation: proFadeIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.pro-modal-icon {
    font-size: 45px;
    color: var(--ana-renk); /* 🔥 Kırmızı yerine temanın ana rengi */
    margin-bottom: 15px;
}

.pro-modal-box h3 {
    margin: 0 0 10px;
    color: #2c3e50;
    font-size: 22px;
}

.pro-modal-box p {
    color: #7f8c8d;
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.5;
}

.pro-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.pro-modal-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-cancel { background: #f1f2f6; color: #576574; }
.btn-cancel:hover { background: #dfe4ea; transform: translateY(-2px); }

/* 🔥 Onay butonu da tamamen temaya bağlandı */
.btn-confirm { background: var(--ana-renk); color: white; }
.btn-confirm:hover { 
    background: var(--ana-renk-koyu); 
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px var(--border-renk); 
}

@keyframes proFadeIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}