:root {
    --bg: #0f1115;
    --surface: #171a21;
    --surface-2: #1f242e;
    --border: #2a3140;
    --text: #e8eaed;
    --muted: #98a0ad;
    --primary: #6ea8fe;
    --primary-700: #3d7bf0;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --radius: 14px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--primary); }
.text-muted { color: var(--muted) !important; }

/* ---- Marka ---- */
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none;
}
.brand .logo {
    width: 30px; height: 30px; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), #b388ff);
    display: grid; place-items: center; font-size: 16px;
}

/* ---- Admin yerleşimi ---- */
.admin-shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 240px; flex-shrink: 0; background: var(--surface);
    border-right: 1px solid var(--border); padding: 18px 14px; position: sticky; top: 0; height: 100vh;
}
.sidebar .nav-link {
    color: var(--muted); border-radius: 10px; padding: 10px 12px; margin-bottom: 4px;
    display: flex; align-items: center; gap: 10px; font-weight: 500;
}
.sidebar .nav-link:hover { background: var(--surface-2); color: var(--text); }
.sidebar .nav-link.active { background: var(--primary-700); color: #fff; }
.admin-main { flex: 1; min-width: 0; padding: 24px 28px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }

/* ---- Kartlar ---- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card .card-body { color: var(--text); }
.stat-card { padding: 18px 20px; }
.stat-card .stat-value { font-size: 1.9rem; font-weight: 700; }
.stat-card .stat-label { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }

/* ---- Tablolar ---- */
.table { color: var(--text); }
.table > :not(caption) > * > * { border-bottom-color: var(--border); }
.table thead th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }

/* ---- Formlar ---- */
.form-control, .form-select {
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
}
.form-control:focus, .form-select:focus {
    background: var(--surface-2); color: var(--text);
    border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(110,168,254,.18);
}
.form-control::placeholder { color: #6b7280; }
.input-group-text { background: var(--surface); border-color: var(--border); color: var(--muted); }

.btn-primary { background: var(--primary-700); border-color: var(--primary-700); }
.btn-primary:hover { background: #356fd6; border-color: #356fd6; }

/* ---- Rozetler ---- */
.badge.bg-success { background: rgba(52,211,153,.18) !important; color: var(--success); }
.badge.bg-warning { background: rgba(251,191,36,.18) !important; color: var(--warning); }
.badge.bg-secondary { background: rgba(152,160,173,.18) !important; color: var(--muted); }
.badge.bg-primary { background: rgba(110,168,254,.18) !important; color: var(--primary); }

/* ---- Public hero ---- */
.hero { text-align: center; padding: 64px 16px; }
.hero h1 { font-size: 2.6rem; font-weight: 800; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 18px; }
.product-card img, .product-card .ph {
    width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--surface-2);
    display: grid; place-items: center; color: var(--muted);
}
