/* ============================================
   İŞLETME TAKİP SİSTEMİ — Premium Dark Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-base: #0a0c13;
    --bg-surface: #12151f;
    --bg-elevated: #1a1e2e;
    --bg-hover: #222738;
    --accent: #818cf8;
    --accent-hover: #6366f1;
    --accent-glow: rgba(129, 140, 248, 0.15);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --success: #34d399;
    --success-dim: rgba(52, 211, 153, 0.1);
    --danger: #f87171;
    --danger-dim: rgba(248, 113, 113, 0.1);
    --warning: #fbbf24;
    --warning-dim: rgba(251, 191, 36, 0.1);
    --info: #60a5fa;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.4);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --sidebar-width: 260px;
    --topbar-height: 64px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; -webkit-font-smoothing: antialiased; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

/* --- Sidebar --- */
.sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}
.sidebar-header { padding: 20px 20px 16px; border-bottom: 1px solid var(--border); }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; color: #fff;
}
.logo-text { font-size: 16px; font-weight: 700; color: var(--text-primary); }

.sidebar-nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: 13.5px; font-weight: 500;
    transition: all var(--transition); margin-bottom: 2px;
}
.nav-item i, .nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active {
    background: var(--accent-glow); color: var(--accent);
    font-weight: 600;
}
.nav-divider { height: 1px; background: var(--border); margin: 12px 14px; }

.sidebar-footer { padding: 12px 10px; border-top: 1px solid var(--border); }
.user-info { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 4px; }
.user-avatar {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; color: #fff; flex-shrink: 0;
}
.user-details { display: flex; flex-direction: column; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.user-role { font-size: 11px; color: var(--text-muted); }
.logout-btn { color: var(--danger) !important; }
.logout-btn:hover { background: var(--danger-dim) !important; }

/* --- Main Content --- */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}
.top-bar {
    position: sticky; top: 0; z-index: 50;
    height: var(--topbar-height);
    background: rgba(10, 12, 19, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
    padding: 0 28px; gap: 16px;
}
.menu-toggle {
    display: none; background: none; border: none;
    color: var(--text-secondary); cursor: pointer; padding: 6px;
}
.page-title { font-size: 18px; font-weight: 700; }
.top-bar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.current-date { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }

.content-area { padding: 28px; }

/* --- Dashboard Top Layout (Metrikler & Ortaklar) --- */
.dashboard-top-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.dashboard-big-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.metrics-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    justify-content: center;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.metric-item:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
}

.metric-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.metric-icon i, .metric-icon svg { width: 28px; height: 28px; }
.metric-content { display: flex; flex-direction: column; gap: 4px; }
.metric-label { font-size: 13px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.metric-value { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }

.metric-curo .metric-icon { background: rgba(99, 102, 241, 0.15); color: var(--accent); }
.metric-curo .metric-value { color: var(--accent); }

.metric-profit .metric-icon { background: var(--success-dim); color: var(--success); }
.metric-profit .metric-value { color: var(--success); }

.metric-expense .metric-icon { background: var(--danger-dim); color: var(--danger); }
.metric-expense .metric-value { color: var(--danger); }

.metric-ratio .metric-icon { background: var(--warning-dim); color: var(--warning); }

.partners-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.partner-list-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    transition: all var(--transition);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.partner-list-item:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
}

/* --- Month Selector --- */
.month-selector { margin-bottom: 28px; }
.month-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* --- Partner Cards --- */
.section-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 16px; font-weight: 700; margin-bottom: 16px;
}
.section-title i, .section-title svg { width: 20px; height: 20px; color: var(--accent); }
.partner-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-bottom: 28px; }
.partner-card {
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
    transition: all var(--transition);
}
.partner-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow); }
.partner-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.partner-avatar {
    width: 44px; height: 44px; border-radius: var(--radius);
    background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px; color: #fff;
}
.partner-header h3 { font-size: 16px; font-weight: 700; }
.partner-share { font-size: 12px; color: var(--text-muted); }
.partner-stats { display: flex; flex-direction: column; gap: 0; }
.stat-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--border);
}
.stat-row:last-child { border-bottom: none; }
.stat-label { font-size: 13px; color: var(--text-secondary); }
.stat-value { font-size: 14px; font-weight: 700; }
.stat-highlight { background: var(--success-dim); margin: 4px -12px 0; padding: 10px 12px !important; border-radius: var(--radius-sm); border-bottom: none !important; }

/* --- Info Grid --- */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 28px; }
.info-card {
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
}
.info-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; margin-bottom: 16px;
    padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.info-title i, .info-title svg { width: 18px; height: 18px; color: var(--accent); }
.info-rows { display: flex; flex-direction: column; }
.info-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.info-row:last-child { border-bottom: none; }
.info-row span:first-child { color: var(--text-secondary); }
.info-row span:last-child { font-weight: 600; }

/* --- Table --- */
.table-card {
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px;
}
.table-header {
    padding: 20px 24px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.table-header h3 { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.table-header h3 i, .table-header h3 svg { width: 18px; height: 18px; color: var(--accent); }
.table-wrapper { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    padding: 12px 16px; text-align: left;
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-muted); background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.data-table td {
    padding: 10px 16px; border-bottom: 1px solid var(--border);
    font-size: 13px; white-space: nowrap;
}
.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover { background: var(--bg-hover); }
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }

/* --- Text Colors --- */
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted { color: var(--text-muted) !important; }

/* --- Chart --- */
.chart-container { position: relative; height: 200px; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600; font-family: inherit;
    border: none; cursor: pointer; transition: all var(--transition);
    text-decoration: none;
}
.btn-primary { background: var(--gradient-primary); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); color: #fff; }
.btn-success { background: var(--gradient-success); color: #fff; }
.btn-danger { background: var(--gradient-danger); color: #fff; }
.btn-ghost {
    background: var(--bg-elevated); color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-sm i, .btn-sm svg { width: 16px; height: 16px; }
.btn-block { width: 100%; }

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 12px; font-weight: 600;
    color: var(--text-muted); margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: 0.5px;
}

input[type="text"], input[type="password"], input[type="email"],
input[type="number"], input[type="date"], textarea, .select-input {
    width: 100%; padding: 12px 16px;
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-size: 14px; font-family: inherit;
    transition: all var(--transition);
}
input:focus, textarea:focus, .select-input:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.select-input { cursor: pointer; appearance: none; }

/* --- Input Wrapper with Icons --- */
.input-wrapper {
    position: relative; display: flex; align-items: center;
}
.input-wrapper svg {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); pointer-events: none;
    transition: color var(--transition);
}
.input-wrapper input[type="text"],
.input-wrapper input[type="password"],
.input-wrapper input[type="email"],
.input-wrapper input[type="number"],
.input-wrapper input[type="date"] {
    padding-left: 48px !important;
}
.input-wrapper:focus-within svg { color: var(--accent); }

/* --- Alerts --- */
.alert {
    padding: 12px 16px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 500; margin-bottom: 20px;
    display: flex; align-items: center; gap: 8px;
    animation: slideDown 0.3s ease;
}
.alert-success { background: var(--success-dim); color: var(--success); border: 1px solid rgba(52,211,153,0.2); }
.alert-error { background: var(--danger-dim); color: var(--danger); border: 1px solid rgba(248,113,113,0.2); }
.alert-warning { background: var(--warning-dim); color: var(--warning); border: 1px solid rgba(251,191,36,0.2); }

/* --- Badge --- */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600;
}
.badge-warning { background: var(--warning-dim); color: var(--warning); }
.badge-success { background: var(--success-dim); color: var(--success); }

/* --- Empty State --- */
.empty-state {
    text-align: center; padding: 60px 20px;
    display: flex; flex-direction: column;
    align-items: center; gap: 12px;
}
.empty-state h3 { font-size: 18px; color: var(--text-secondary); }
.empty-state p { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }

/* --- Login Page --- */
.login-page {
    min-height: 100vh; display: flex;
    align-items: center; justify-content: center;
    background: var(--bg-base); position: relative; overflow: hidden;
}
.login-bg { position: fixed; inset: 0; z-index: 0; }
.login-bg-orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}
.login-bg-orb-1 { width: 400px; height: 400px; background: #667eea; top: -100px; left: -100px; animation-delay: 0s; }
.login-bg-orb-2 { width: 350px; height: 350px; background: #764ba2; bottom: -80px; right: -80px; animation-delay: 2s; }
.login-bg-orb-3 { width: 250px; height: 250px; background: #10b981; top: 50%; left: 60%; animation-delay: 4s; }

.login-container { position: relative; z-index: 1; width: 100%; max-width: 420px; padding: 20px; }
.login-card {
    background: rgba(18, 21, 31, 0.85);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.login-header { text-align: center; margin-bottom: 32px; }
.login-logo {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--gradient-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 20px; color: #fff;
    margin-bottom: 16px;
}
.login-header h1 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.login-header p { font-size: 14px; color: var(--text-muted); }
.login-form .btn { margin-top: 8px; padding: 14px; font-size: 15px; }

/* --- Animations --- */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Partner Section --- */
.partner-section { margin-bottom: 28px; }

/* --- Modals --- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
    z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box {
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); width: 100%; max-width: 600px;
    box-shadow: var(--shadow-lg); transform: translateY(20px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh; display: flex; flex-direction: column;
}
.modal-overlay.active .modal-box { transform: translateY(0); }
/* Modal içeriği bir <form> ile sarılıysa, flex zincirini koru:
   form, header'dan kalan yüksekliği doldurur; body kayar, footer sabit kalır. */
.modal-box > form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.modal-header h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; border-radius: 4px; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--bg-hover); color: var(--text-primary); }
.modal-body { padding: 24px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 12px; background: var(--bg-elevated); border-radius: 0 0 var(--radius-lg) var(--radius-lg); flex-shrink: 0; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .dashboard-top-layout { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay {
        position: fixed; inset: 0; background: rgba(0,0,0,0.5);
        z-index: 99; opacity: 0; visibility: hidden;
        transition: all 0.3s;
    }
    .sidebar-overlay.active { opacity: 1; visibility: visible; }
    .main-content { margin-left: 0; }
    .menu-toggle { display: flex; }
    .content-area { padding: 16px; }
    .top-bar { padding: 0 16px; }

    /* Grid/flex hücreleri içeriğinden dar olabilsin.
       Varsayılan min-width:auto yüzünden hücre içeriğinin altına inemiyor,
       bu da .table-wrapper'ın kaydırma yapmak yerine şişmesine ve
       taşmanın bütün sayfaya yayılmasına yol açıyordu. */
    .settings-grid > *, .info-grid > *, .dashboard-top-layout > *,
    .card, .table-card, .table-wrapper { min-width: 0; }
    .table-wrapper { max-width: 100%; }

    /* POS sayfası: 1fr 2fr ikili düzen mobilde tek sütuna insin
       (satır içi style ile yazıldığı için !important gerekiyor) */
    .pos-split { grid-template-columns: 1fr !important; gap: 16px !important; }
    .pos-split > * { min-width: 0; }

    /* Taksit/Kredi arşivi: width:fit-content kutuyu içeriğe göre şişiriyordu */
    .archive-section { width: auto !important; min-width: 0 !important; }

    /* Başlık satırları: nowrap + uzun rozet taşmaya yol açıyordu */
    .table-header { flex-wrap: wrap; gap: 12px !important; }
    .table-header h3 { white-space: normal !important; flex-wrap: wrap; }
    .table-header .badge { white-space: normal; }

    /* Dashboard görev şeridi: içerik kırpılmasın, alt satıra taşsın */
    .db-task-strip, .db-task-strip-left { flex-wrap: wrap; }

    /* Personel detay paneli: 1fr + sabit 280px sütun mobilde sığmıyor */
    .staff-detail-split { grid-template-columns: 1fr !important; gap: 14px !important; }
    .staff-detail-split > * { min-width: 0; }

    /* ── Tablolar: yatay kaydırma yerine kart listesi ──────────
       thead gizlenir, her satır kendi kartı olur, her hücre
       "başlık : değer" biçiminde alt alta dizilir.
       Başlıklar layout.php'deki script tarafından data-label
       olarak hücrelere kopyalanır. */
    .table-wrapper table.mobile-cards { border-collapse: separate; border-spacing: 0; }
    table.mobile-cards thead { display: none; }
    table.mobile-cards, table.mobile-cards tbody,
    table.mobile-cards tr, table.mobile-cards td { display: block; width: 100%; }
    table.mobile-cards tr {
        border: 1px solid var(--border); border-radius: var(--radius-md);
        background: var(--bg-surface);
        margin-bottom: 10px; padding: 10px 13px;
    }
    table.mobile-cards td {
        border: 0; padding: 5px 0;
        display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
        text-align: right;
    }
    table.mobile-cards td[data-label]::before {
        content: attr(data-label);
        flex: 0 0 auto; text-align: left;
        color: var(--text-muted); font-size: 10px;
        text-transform: uppercase; letter-spacing: .4px;
    }
    /* Boş hücreler (işlem butonu sütunları vb.) yer kaplamasın */
    table.mobile-cards td:empty { display: none; }
    /* Toplam satırları tam genişlik kalsın */
    table.mobile-cards td[colspan] { justify-content: flex-start; text-align: left; }
}

/* --- Version Badge & Changelog Dropdown --- */
.version-badge-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(99,102,241,0.12);
    color: #818cf8;
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 20px;
    padding: 3px 10px 3px 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.version-badge:hover {
    background: rgba(99,102,241,0.22);
    border-color: rgba(99,102,241,0.45);
    color: #a5b4fc;
}
.changelog-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 500;
    overflow: hidden;
    animation: slideDown 0.18s ease;
}
.changelog-dropdown.open { display: block; }
.changelog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-elevated);
}
.changelog-body {
    max-height: 380px;
    overflow-y: auto;
    padding: 8px 0;
}
.cl-version-block {
    padding: 8px 14px;
    border-bottom: 1px solid var(--border);
}
.cl-version-block:last-child { border-bottom: none; }
.cl-current { background: rgba(99,102,241,0.05); }
.cl-version-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}
.cl-version-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}
.cl-type-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.cl-date {
    font-size: 10px;
    color: var(--text-muted);
    margin-left: auto;
}
.cl-items {
    margin: 0;
    padding-left: 14px;
    list-style: disc;
}
.cl-items li {
    font-size: 10px;
    color: var(--text-secondary);
    line-height: 1.6;
}
