/* GAZIM Card — Seçenek A: Kurumsal Milli Kimlik Tasarım Sistemi
   Derin Gece Laciverti (#0b132b) + Al Kırmızı (#b91c1c) + Altın Vurgu (#d97706) */
:root {
    --gc-primary: #b91c1c;
    --gc-primary-hover: #991b1b;
    --gc-primary-soft: #fef2f2;
    --gc-gold: #d97706;
    --gc-gold-soft: #fffbeb;
    --gc-navy: #0b132b;
    --gc-navy-mid: #16213e;
    --gc-bg: #f8fafc;
    --gc-surface: #ffffff;
    --gc-border: #e2e8f0;
    --gc-text: #0f172a;
    --gc-muted: #64748b;
    --gc-success: #059669;
    --gc-warning: #d97706;
    --gc-danger: #dc2626;
    --gc-radius: 14px;
    --gc-shadow: 0 1px 3px rgba(11, 19, 43, 0.06), 0 6px 18px rgba(11, 19, 43, 0.04);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gc-bg);
    color: var(--gc-text);
    line-height: 1.5;
    min-height: 100vh;
}

.app-shell { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
    width: 276px;
    background: linear-gradient(180deg, #0b132b 0%, #111c3a 100%);
    color: #f8fafc;
    padding: 20px 14px;
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    z-index: 30;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-box {
    display: flex; align-items: center; gap: 12px;
    padding: 6px 10px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    margin-bottom: 12px;
    text-decoration: none; color: inherit;
}

.brand-mark {
    width: 42px; height: 42px; border-radius: 12px;
    background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.55);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px; color: #fff; flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(185, 28, 28, 0.35);
}

.brand-name { font-weight: 800; font-size: 16.5px; letter-spacing: -0.02em; color: #ffffff; }
.brand-sub { font-size: 10.5px; color: #94a3b8; line-height: 1.3; margin-top: 2px; }

.nav-section-label {
    font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.09em;
    color: #64748b; padding: 12px 12px 6px; font-weight: 700;
}

.nav-link {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 12px; color: #cbd5e1; text-decoration: none;
    border-radius: 10px; font-size: 13.5px; font-weight: 500; margin-bottom: 3px;
    transition: all 0.16s ease;
}
.nav-link-left { display: flex; align-items: center; gap: 11px; }
.nav-ico { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.85; }
.nav-link:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
.nav-link.active {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    color: #ffffff; font-weight: 600;
    box-shadow: 0 4px 14px rgba(185, 28, 28, 0.35);
}
.nav-link.active .nav-ico { opacity: 1; }
.nav-lock { width: 13px; height: 13px; color: #f59e0b; opacity: 0.85; }

.sidebar-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.plan-widget {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 12px; padding: 12px; font-size: 12px; color: #cbd5e1;
}
.plan-widget-title { font-weight: 700; color: #fff; margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; }
.progress-track { height: 6px; background: rgba(255, 255, 255, 0.12); border-radius: 999px; overflow: hidden; margin: 7px 0; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #b91c1c, #f59e0b); border-radius: 999px; }
.support-mini { margin-top: 10px; font-size: 11px; color: #94a3b8; text-align: center; line-height: 1.6; }
.support-mini a { color: #e2e8f0; text-decoration: none; }
.support-mini a:hover { text-decoration: underline; }

.main-area { flex: 1; margin-left: 276px; display: flex; flex-direction: column; min-width: 0; }

.topbar {
    min-height: 68px; background: var(--gc-surface); border-bottom: 1px solid var(--gc-border);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px 28px; position: sticky; top: 0; z-index: 20; flex-wrap: wrap;
}
.topbar-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.page-title { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--gc-navy); }

.mode-switcher {
    display: inline-flex; background: #f1f5f9; padding: 4px; border-radius: 10px; gap: 4px;
    border: 1px solid var(--gc-border);
}
.mode-chip { padding: 5px 12px; border-radius: 7px; font-size: 12px; font-weight: 600; text-decoration: none; color: #475569; transition: all 0.15s ease; }
.mode-chip:hover { color: var(--gc-text); }
.mode-chip.current { background: #ffffff; color: var(--gc-primary); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1); }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.content { padding: 26px 28px 44px; flex: 1; max-width: 1440px; width: 100%; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 9px 16px; border-radius: 9px; font-size: 13.5px; font-weight: 600;
    text-decoration: none; border: 1px solid transparent; cursor: pointer;
    transition: all 0.16s ease; font-family: inherit; line-height: 1.2;
}
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 7px; }
.btn-primary { background: var(--gc-primary); color: #ffffff; box-shadow: 0 2px 8px rgba(185, 28, 28, 0.22); }
.btn-primary:hover { background: var(--gc-primary-hover); transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); color: #ffffff; }
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-outline { background: #ffffff; color: var(--gc-text); border-color: var(--gc-border); }
.btn-outline:hover { background: #f8fafc; border-color: #cbd5e1; }
.btn-danger-outline { background: #ffffff; color: #dc2626; border-color: #fecaca; }
.btn-danger-outline:hover { background: #fef2f2; }
.btn-success { background: #059669; color: #ffffff; }
.btn-success:hover { background: #047857; }

/* Panels & Grids */
.panel { background: var(--gc-surface); border: 1px solid var(--gc-border); border-radius: var(--gc-radius); padding: 22px; box-shadow: var(--gc-shadow); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

.stat-card { background: var(--gc-surface); border: 1px solid var(--gc-border); border-radius: var(--gc-radius); padding: 18px 20px; box-shadow: var(--gc-shadow); }
.stat-label { font-size: 12px; font-weight: 600; color: var(--gc-muted); }
.stat-value { font-size: 28px; font-weight: 800; margin-top: 4px; letter-spacing: -0.02em; color: var(--gc-navy); }
.stat-sub { font-size: 11.5px; color: var(--gc-muted); margin-top: 4px; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--gc-primary-soft); color: var(--gc-primary); }
.pill-gold { background: var(--gc-gold-soft); color: #b45309; border: 1px solid #fde68a; }
.pill-green { background: #d1fae5; color: #065f46; }
.pill-amber { background: #fef3c7; color: #92400e; }
.pill-slate { background: #f1f5f9; color: #334155; }

.tabs-bar { display: flex; gap: 8px; border-bottom: 1px solid var(--gc-border); margin-bottom: 20px; flex-wrap: wrap; }
.tab-btn { padding: 10px 16px; font-size: 13.5px; font-weight: 600; color: var(--gc-muted); background: transparent; border: none; border-bottom: 2px solid transparent; cursor: pointer; text-decoration: none; }
.tab-btn.active { color: var(--gc-primary); border-bottom-color: var(--gc-primary); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 12.5px; font-weight: 600; color: #334155; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 9px; font-size: 13.5px; font-family: inherit; background: #ffffff; color: var(--gc-text); }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--gc-primary); box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12); }
.form-textarea { min-height: 80px; resize: vertical; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th { text-align: left; padding: 11px 14px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gc-muted); background: #f8fafc; border-bottom: 1px solid var(--gc-border); font-weight: 700; }
.data-table td { padding: 13px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.data-table tr:hover td { background: #fffafb; }

.upgrade-card {
    background: linear-gradient(135deg, #0b132b 0%, #450a0a 65%, #7f1d1d 100%);
    color: #ffffff; border-radius: 16px; padding: 24px 26px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    flex-wrap: wrap; margin-bottom: 22px; box-shadow: 0 12px 28px rgba(11, 19, 43, 0.22);
}
.upgrade-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.upgrade-card p { font-size: 13.5px; color: #e2e8f0; max-width: 680px; }
.upgrade-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.alert { padding: 12px 16px; border-radius: 10px; font-size: 13.5px; margin-bottom: 18px; border: 1px solid transparent; display: flex; align-items: center; justify-content: space-between; }
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }

.card-tile { background: #ffffff; border: 1px solid var(--gc-border); border-radius: 16px; overflow: hidden; box-shadow: var(--gc-shadow); display: flex; flex-direction: column; transition: transform 0.16s ease, box-shadow 0.16s ease; }
.card-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(11, 19, 43, 0.09); }
.card-tile-banner { height: 10px; }
.card-tile-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card-qr-box { width: 72px; height: 72px; border: 1px solid var(--gc-border); border-radius: 10px; padding: 4px; background: #fff; flex-shrink: 0; }
.card-qr-box img { width: 100%; height: 100%; display: block; }
.card-metrics { display: flex; gap: 16px; font-size: 12px; color: var(--gc-muted); padding: 10px 0; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; margin: 12px 0; }
.card-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }

.phone-preview { background: #0b132b; border-radius: 30px; padding: 12px; max-width: 348px; margin: 0 auto; box-shadow: 0 22px 48px rgba(11, 19, 43, 0.35); border: 1px solid rgba(255,255,255,0.12); }
.phone-screen { background: #ffffff; border-radius: 21px; overflow: hidden; }

#gc-toast {
    position: fixed; right: 24px; bottom: 24px; background: #0b132b; color: #ffffff;
    border-left: 4px solid #f59e0b; padding: 12px 18px; border-radius: 11px;
    font-size: 13px; font-weight: 600; box-shadow: 0 12px 28px rgba(11, 19, 43, 0.32);
    opacity: 0; transform: translateY(12px); pointer-events: none; transition: all 0.2s ease; z-index: 999;
}
#gc-toast.show { opacity: 1; transform: translateY(0); }

.bar-row { margin-bottom: 12px; }
.bar-meta { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 4px; }
.bar-track { height: 9px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; }

@media (max-width: 960px) {
    .sidebar { position: static; width: 100%; height: auto; }
    .app-shell { flex-direction: column; }
    .main-area { margin-left: 0; }
    .form-grid { grid-template-columns: 1fr; }
}
