/* ===== SMM Panel X — Müşteri Paneli Stilleri ===== */
/* admin.css'ten tamamen bağımsız, panel'e özgü CSS dosyası */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Tailwind v4 SVG Koruma ──
   Tailwind v4 preflight SVG'leri display:block yapar ama max-width vermez.
   viewBox'lu ama width/height attribute'suz SVG'ler container kadar büyür.
   Bu kural taşmayı engeller, explicit boyut class'ları (w-4, w-6 vb.) geçerli kalır. */
svg {
    max-width: 100%;
    height: auto;
}

/* ── CSS Değişkenleri — Dark Tema (Varsayılan) ── */
:root {
    --bg-primary: #0f1117;
    --bg-secondary: #161a26;
    --bg-card: #1c2233;
    --bg-card-hover: #232b3e;
    --bg-sidebar: #111520;
    --bg-header: #141822;
    --bg-input: #161a26;
    --bg-table-head: #161a26;
    --bg-table-row-hover: rgba(99, 102, 241, 0.07);

    --border-primary: rgba(255, 255, 255, 0.10);
    --border-secondary: rgba(255, 255, 255, 0.06);
    --border-focus: #6366f1;

    --accent-indigo: #6366f1;
    --accent-violet: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --accent-cyan: #06b6d4;

    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-heading: #f1f5f9;

    --glow-indigo: rgba(99, 102, 241, 0.15);
    --glow-violet: rgba(139, 92, 246, 0.12);

    --sidebar-width: 260px;
    --header-height: 60px;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
}

/* ── Light Tema Değişkenleri ── */
[data-theme="light"] {
    --bg-primary: #f5f7fa;
    --bg-secondary: #edf0f5;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fb;
    --bg-sidebar: #ffffff;
    --bg-header: #ffffff;
    --bg-input: #f5f7fa;
    --bg-table-head: #f5f7fa;
    --bg-table-row-hover: rgba(99, 102, 241, 0.05);
    --border-primary: rgba(0, 0, 0, 0.10);
    --border-secondary: rgba(0, 0, 0, 0.06);
    --border-focus: #6366f1;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-heading: #0f172a;
    --glow-indigo: rgba(99, 102, 241, 0.10);
    --glow-violet: rgba(139, 92, 246, 0.08);
}

/* ── Temel Ayarlar ── */
* {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Özel Scrollbar ── */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.15);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.3);
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: #edf0f5;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.3);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.5);
}

/* ═══════════════════════════════════════════════
   LAYOUT — SIDEBAR
   ═══════════════════════════════════════════════ */

.sidebar {
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-primary);
}

[data-theme="light"] .sidebar {
    background: #fafbfc;
    box-shadow: 1px 0 4px rgba(0, 0, 0, 0.06);
}

@media (max-width: 1023px) {
    .sidebar {
        box-shadow: 4px 0 25px -5px rgba(0, 0, 0, 0.5);
    }
}

/* Sidebar logo alanı */
.sidebar-logo {
    position: relative;
    overflow: hidden;
}

.sidebar-logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-primary), transparent);
}

/* Sidebar logo metni */
.sidebar-logo-text {
    color: var(--text-heading);
}

[data-theme="light"] .sidebar-logo-text {
    color: var(--text-heading);
}

/* Sidebar bakiye metni */
.sidebar-balance-text {
    color: var(--text-heading);
}

[data-theme="light"] .sidebar-balance-text {
    color: var(--text-heading);
}

/* Sidebar navigasyon linkleri */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    letter-spacing: 0.01em;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
    color: #a5b4fc;
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.15);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 55%;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--accent-indigo), var(--accent-violet));
}

.sidebar-link svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 200ms;
}

.sidebar-link:hover svg,
.sidebar-link.active svg {
    opacity: 1;
}

/* Sidebar alt link (ana menü öğesinin altında) */
.sidebar-sublink {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem 0.4rem 2.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 200ms ease;
    text-decoration: none;
}

.sidebar-sublink:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-sublink svg {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
    opacity: 0.6;
}

.sidebar-sublink:hover svg {
    opacity: 0.9;
}

[data-theme="light"] .sidebar-sublink:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* Sidebar navigasyon bölüm etiketi */
.sidebar-section-label {
    display: block;
    padding: 0.5rem 0.85rem 0.35rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    opacity: 0.6;
}

/* Sidebar overlay (mobil) */
.sidebar-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* Sidebar mobil toggle butonu */
.sidebar-mobile-toggle {
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all 150ms ease;
}

.sidebar-mobile-toggle:hover {
    color: var(--text-heading);
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .sidebar-mobile-toggle:hover {
    color: var(--text-heading);
    background: rgba(0, 0, 0, 0.05);
}

/* ═══════════════════════════════════════════════
   LAYOUT — HEADER
   ═══════════════════════════════════════════════ */

.header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-primary);
    backdrop-filter: blur(12px);
}

[data-theme="light"] .header {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Header başlık metni */
.header-title {
    color: var(--text-heading);
}

[data-theme="light"] .header-title {
    color: var(--text-heading);
}

/* Tema toggle butonu */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-primary);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    color: var(--accent-indigo);
    border-color: var(--accent-indigo);
    background: var(--glow-indigo);
}

/* ═══════════════════════════════════════════════
   LAYOUT — ANA İÇERİK
   ═══════════════════════════════════════════════ */

/* Grid çizgi deseni arka plan */
.grid-pattern {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

[data-theme="light"] .grid-pattern {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

/* ═══════════════════════════════════════════════
   DROPDOWN — KULLANICI MENÜSÜ
   ═══════════════════════════════════════════════ */

/* Dropdown container — menünün konumlandırma referans noktası */
#panel-user-dropdown {
    position: relative;
}

/* Dropdown menü paneli — sağ üst köşeye hizalı, butonun altında açılır */
#panel-user-menu {
    position: absolute !important;
    right: 0 !important;
    top: 100% !important;
    margin-top: 0.5rem !important;
    min-width: 13rem !important;
    width: max-content;
    max-width: 16rem;
    z-index: 50 !important;
    white-space: nowrap;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 10px 40px -8px rgba(0, 0, 0, 0.5),
        0 4px 12px -2px rgba(0, 0, 0, 0.3);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    /* Açılma animasyonu */
    animation: dropdown-fade-in 0.15s ease-out;
}

/* Dropdown menü gizliyken */
#panel-user-menu.hidden {
    display: none;
}

@keyframes dropdown-fade-in {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

[data-theme="light"] #panel-user-menu {
    box-shadow:
        0 10px 40px -8px rgba(0, 0, 0, 0.15),
        0 4px 12px -2px rgba(0, 0, 0, 0.08);
}

/* Kullanıcı adı gösterimi */
.user-display-name {
    color: var(--text-heading);
}

[data-theme="light"] .user-display-name {
    color: var(--text-heading);
}

/* Panel dropdown linkleri */
.panel-dropdown-link:hover {
    color: var(--text-heading);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .panel-dropdown-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* ═══════════════════════════════════════════════
   KART BİLEŞENİ
   ═══════════════════════════════════════════════ */

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.admin-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Kart bölüm başlığı */
.card-section-title {
    color: var(--text-heading);
}

[data-theme="light"] .card-section-title {
    color: var(--text-heading);
}

/* ═══════════════════════════════════════════════
   STAT CARD — DASHBOARD İSTATİSTİK KARTLARI
   ═══════════════════════════════════════════════ */

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0.8;
    transition: opacity 300ms;
}

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.4);
}

.stat-card:hover::before {
    opacity: 1;
}

/* Stat card renk varyantları */
.stat-card-blue::before {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
}

.stat-card-emerald::before,
.stat-card-green::before {
    background: linear-gradient(90deg, var(--accent-emerald), #34d399);
}

.stat-card-violet::before {
    background: linear-gradient(90deg, var(--accent-violet), var(--accent-indigo));
}

.stat-card-amber::before,
.stat-card-yellow::before {
    background: linear-gradient(90deg, var(--accent-amber), #fbbf24);
}

/* Stat card ikon kutusu */
.stat-icon-box {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-box svg {
    width: 20px;
    height: 20px;
}

.stat-icon-blue {
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-blue);
}

.stat-icon-emerald,
.stat-icon-green {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-emerald);
}

.stat-icon-violet {
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent-violet);
}

.stat-icon-amber,
.stat-icon-yellow {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-amber);
}

.stat-icon-rose {
    background: rgba(244, 63, 94, 0.12);
    color: var(--accent-rose);
}

/* Stat kart etiket ve değer */
.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1;
    margin-bottom: 0.375rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
}

/* Light tema stat card */
[data-theme="light"] .stat-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .stat-card::before {
    opacity: 0.6;
}

[data-theme="light"] .stat-card:hover {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .stat-card:hover::before {
    opacity: 0.85;
}

[data-theme="light"] .stat-label {
    color: #64748b;
}

[data-theme="light"] .stat-value {
    color: #1e293b;
}

[data-theme="light"] .stat-icon-green,
[data-theme="light"] .stat-icon-blue,
[data-theme="light"] .stat-icon-emerald,
[data-theme="light"] .stat-icon-violet,
[data-theme="light"] .stat-icon-amber,
[data-theme="light"] .stat-icon-yellow,
[data-theme="light"] .stat-icon-rose {
    background: rgba(0, 0, 0, 0.05);
}

/* ═══════════════════════════════════════════════
   TABLO
   ═══════════════════════════════════════════════ */

.admin-table {
    width: 100%;
    font-size: 0.8125rem;
    text-align: left;
    border-collapse: collapse;
}

.admin-table thead tr {
    background: var(--bg-table-head);
}

.admin-table th {
    padding: 0.7rem 1.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.admin-table td {
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
}

.admin-table tbody tr {
    border-top: 1px solid var(--border-secondary);
    transition: background-color 200ms;
}

.admin-table tbody tr:hover {
    background: var(--bg-table-row-hover);
}

/* Light tema tablo */
[data-theme="light"] .admin-table thead tr {
    background: var(--bg-secondary);
}

[data-theme="light"] .admin-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] th.text-slate-400 {
    color: #64748b !important;
}

/* ═══════════════════════════════════════════════
   BADGE
   ═══════════════════════════════════════════════ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-green {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.2);
}

.badge-yellow {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.2);
}

.badge-red {
    background: rgba(244, 63, 94, 0.12);
    color: #fb7185;
    box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.2);
}

.badge-blue {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.badge-orange {
    background: rgba(249, 115, 22, 0.12);
    color: #fb923c;
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.2);
}

.badge-gray {
    background: rgba(100, 116, 139, 0.12);
    color: #94a3b8;
    box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.2);
}

/* Eksik badge renkleri — panel'e özgü */
.badge-indigo {
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.badge-purple {
    background: rgba(139, 92, 246, 0.12);
    color: #c4b5fd;
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.2);
}

/* ═══════════════════════════════════════════════
   FORM — INPUT, SELECT, LABEL
   ═══════════════════════════════════════════════ */

/* Admin input */
.admin-input {
    display: block;
    width: 100%;
    padding: 0.65rem 0.9rem;
    font-size: 0.875rem;
    font-family: inherit;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    color: var(--text-primary);
    transition: border-color 200ms, box-shadow 200ms;
    outline: none;
}

.admin-input::placeholder {
    color: var(--text-muted);
}

.admin-input:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 3px var(--glow-indigo);
}

/* Select olarak kullanılan admin-input */
select.admin-input {
    padding-right: 2.2rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 1.25rem;
    appearance: none;
}

/* Light tema admin-input */
[data-theme="light"] .admin-input {
    background: var(--bg-input);
    border-color: var(--border-primary);
    color: var(--text-primary);
}

[data-theme="light"] .admin-input:focus {
    border-color: var(--border-focus);
    background: #ffffff;
}

[data-theme="light"] .admin-input::placeholder {
    color: #94a3b8;
}

[data-theme="light"] select.admin-input {
    appearance: auto;
}

/* Admin select (filtre dropdown'ları) */
.admin-select {
    appearance: none;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    padding: 0.3rem 2rem 0.3rem 0.75rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 14px;
    outline: none;
}

.admin-select:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.06);
}

.admin-select:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.admin-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Admin label — eksik class, panel template'lerinde kullanılıyor */
.admin-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    margin-bottom: 0.375rem;
}

/* Autofill override */
.admin-input:-webkit-autofill,
.admin-input:-webkit-autofill:hover,
.admin-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-input) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: var(--text-primary);
}

[data-theme="light"] .admin-input:-webkit-autofill,
[data-theme="light"] .admin-input:-webkit-autofill:hover,
[data-theme="light"] .admin-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #f5f7fa inset !important;
    -webkit-text-fill-color: #1e293b !important;
}

/* ═══════════════════════════════════════════════
   BUTONLAR
   ═══════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-shadow: 0 2px 10px -2px rgba(99, 102, 241, 0.4);
    text-decoration: none;
}

.btn-primary:hover {
    box-shadow: 0 4px 16px -2px rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #5558e6, var(--accent-violet));
}

.btn-primary:active {
    transform: translateY(0);
}

/* admin-btn-primary — panel template'lerinde kullanılan alias */
.admin-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-shadow: 0 2px 10px -2px rgba(99, 102, 241, 0.4);
    text-decoration: none;
    width: 100%;
}

.admin-btn-primary:hover {
    box-shadow: 0 4px 16px -2px rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
}

.admin-btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    box-shadow: inset 0 0 0 1px var(--border-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

[data-theme="light"] .btn-secondary {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
}

.btn-danger {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.2);
}

.btn-danger:hover {
    background: rgba(244, 63, 94, 0.25);
}

.btn-sm {
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
}

/* ═══════════════════════════════════════════════
   SAYFALAMA
   ═══════════════════════════════════════════════ */

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

.pagination-btn-active {
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px -2px rgba(99, 102, 241, 0.4);
}

.pagination-btn-active:hover {
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
    color: #fff;
}

.pagination-btn-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════
   FİLTRE CHIP'LERİ
   ═══════════════════════════════════════════════ */

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9999px;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.filter-chip:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.filter-chip.active,
.filter-chip-active {
    color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.25);
}

.filter-chip.active:hover,
.filter-chip-active:hover {
    color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.15);
}

.filter-chip-count {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.05rem 0.375rem;
    border-radius: 9999px;
    min-width: 1.25rem;
    text-align: center;
}

.filter-chip.active .filter-chip-count,
.filter-chip-active .filter-chip-count {
    color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.15);
}

/* Light tema filtre chip */
[data-theme="light"] .filter-chip {
    background: var(--bg-secondary);
    border-color: var(--border-primary);
    color: var(--text-secondary);
}

[data-theme="light"] .filter-chip.active,
[data-theme="light"] .filter-chip-active,
[data-theme="light"] .filter-chip:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366f1;
}

/* ═══════════════════════════════════════════════
   BOŞ DURUM
   ═══════════════════════════════════════════════ */

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    opacity: 0.3;
}

[data-theme="light"] .empty-state {
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════
   ANİMASYONLAR
   ═══════════════════════════════════════════════ */

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.animate-fade-in-up {
    animation: fade-in-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fade-in 0.4s ease-out forwards;
    opacity: 0;
}

/* Kademeli gecikmeler */
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.2s; }
.delay-5 { animation-delay: 0.25s; }

/* Bildirim noktası */
.notification-dot {
    width: 7px;
    height: 7px;
    background: var(--accent-rose);
    border-radius: 50%;
    position: absolute;
    top: 6px;
    right: 6px;
    box-shadow: 0 0 6px rgba(244, 63, 94, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════
   YARDIMCI SINIFLAR
   ═══════════════════════════════════════════════ */

.text-gradient {
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════════════
   AUTH SAYFALARI — AURORA FLOW
   ═══════════════════════════════════════════════ */

/* Ana container — split-screen layout */
.auth-container {
    min-height: 100vh;
    display: flex;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* Sol dekoratif panel */
.auth-showcase {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Aurora gradient mesh arka plan */
.auth-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(99, 102, 241, 0.35), transparent 60%),
        radial-gradient(ellipse 70% 50% at 70% 70%, rgba(139, 92, 246, 0.3), transparent 55%),
        radial-gradient(ellipse 90% 40% at 50% 10%, rgba(59, 130, 246, 0.2), transparent 50%),
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(6, 182, 212, 0.15), transparent 50%);
    animation: auth-aurora-shift 12s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes auth-aurora-shift {
    0% {
        filter: hue-rotate(0deg) brightness(1);
        transform: scale(1) rotate(0deg);
    }
    33% {
        filter: hue-rotate(15deg) brightness(1.1);
        transform: scale(1.05) rotate(1deg);
    }
    66% {
        filter: hue-rotate(-10deg) brightness(0.95);
        transform: scale(0.98) rotate(-1deg);
    }
    100% {
        filter: hue-rotate(20deg) brightness(1.05);
        transform: scale(1.03) rotate(0.5deg);
    }
}

/* Geometrik desen overlay */
.auth-showcase::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
    background-size: 32px 32px;
    z-index: 1;
    pointer-events: none;
}

/* Dekoratif yüzen orb'lar */
.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.auth-orb-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-indigo);
    top: 10%;
    left: -5%;
    animation: auth-orb-drift 18s ease-in-out infinite alternate;
}

.auth-orb-2 {
    width: 250px;
    height: 250px;
    background: var(--accent-violet);
    bottom: 15%;
    right: -8%;
    animation: auth-orb-drift 22s ease-in-out infinite alternate-reverse;
}

.auth-orb-3 {
    width: 180px;
    height: 180px;
    background: var(--accent-cyan);
    top: 55%;
    left: 30%;
    animation: auth-orb-drift 15s ease-in-out infinite alternate;
    animation-delay: -5s;
}

@keyframes auth-orb-drift {
    0% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.1); }
    50% { transform: translate(-20px, 30px) scale(0.9); }
    75% { transform: translate(15px, 15px) scale(1.05); }
    100% { transform: translate(-10px, -25px) scale(0.95); }
}

/* Sol panel içerik */
.auth-showcase-content {
    position: relative;
    z-index: 2;
    max-width: 420px;
    text-align: left;
}

/* Logo alanı */
.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.auth-logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.4);
}

.auth-logo-icon svg {
    width: 26px;
    height: 26px;
    color: #fff;
}

.auth-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.auth-logo-text span {
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sol panel başlık */
.auth-showcase-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.auth-showcase-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* Özellik listesi */
.auth-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.auth-feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.auth-feature-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent-indigo);
}

.auth-feature-text h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
}

.auth-feature-text p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

/* Sağ form paneli */
.auth-form-panel {
    width: 520px;
    min-width: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
    z-index: 2;
    background: var(--bg-primary);
    border-left: 1px solid var(--border-primary);
}

/* Form kartı */
.auth-card {
    width: 100%;
    max-width: 380px;
}

/* Kart başlık */
.auth-card-header {
    margin-bottom: 2rem;
}

.auth-card-title {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.auth-card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Hata mesajı */
.auth-error {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    animation: auth-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.auth-error svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
    color: #f43f5e;
}

.auth-error span {
    font-size: 0.8125rem;
    color: #f43f5e;
    font-weight: 500;
}

@keyframes auth-shake {
    0%, 100% { transform: translateX(0); }
    10%, 50%, 90% { transform: translateX(-4px); }
    30%, 70% { transform: translateX(4px); }
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Form grubu */
.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.auth-form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

/* Input wrapper */
.auth-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 0.875rem;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 200ms ease;
    z-index: 1;
}

.auth-input {
    width: 100%;
    padding: 0.75rem 0.875rem 0.75rem 2.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    outline: none;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-input::placeholder {
    color: var(--text-muted);
}

.auth-input:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12), 0 1px 2px rgba(0, 0, 0, 0.1);
    background: var(--bg-card);
}

.auth-input:focus ~ .auth-input-icon,
.auth-input-group:focus-within .auth-input-icon {
    color: var(--accent-indigo);
}

/* Şifre input */
.auth-input-password {
    padding-right: 2.75rem;
}

.auth-pwd-toggle {
    position: absolute;
    right: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 150ms ease;
    z-index: 1;
}

.auth-pwd-toggle:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
}

.auth-pwd-toggle svg {
    width: 18px;
    height: 18px;
}

/* Submit butonu */
.auth-btn {
    position: relative;
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    overflow: hidden;
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px -4px rgba(99, 102, 241, 0.4);
    margin-top: 0.5rem;
}

.auth-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-indigo));
    opacity: 0;
    transition: opacity 300ms ease;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.5);
}

.auth-btn:hover::before {
    opacity: 1;
}

.auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px -2px rgba(99, 102, 241, 0.4);
}

.auth-btn-text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn-text svg {
    width: 18px;
    height: 18px;
    transition: transform 200ms ease;
}

.auth-btn:hover .auth-btn-text svg {
    transform: translateX(3px);
}

/* Buton loading durumu */
.auth-btn.is-loading {
    pointer-events: none;
    opacity: 0.8;
}

.auth-btn.is-loading .auth-btn-text {
    visibility: hidden;
}

.auth-btn.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 0.6s linear infinite;
    z-index: 2;
}

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

/* Ayırıcı çizgi */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-primary);
}

.auth-divider span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Alt link metni */
.auth-link-text {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

.auth-link-text a {
    color: var(--accent-indigo);
    font-weight: 600;
    text-decoration: none;
    transition: color 150ms ease;
}

.auth-link-text a:hover {
    color: var(--accent-violet);
    text-decoration: underline;
}

/* Tema toggle butonu (auth sayfaları) */
.auth-theme-toggle {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 200ms ease;
    z-index: 10;
}

.auth-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.auth-theme-toggle svg {
    width: 18px;
    height: 18px;
}

/* ── Giriş animasyonları ── */
.auth-animate-in {
    animation: auth-fade-in-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes auth-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-showcase-animate {
    animation: auth-slide-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes auth-slide-in {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Gecikme class'ları */
.auth-delay-1 { animation-delay: 0.1s; }
.auth-delay-2 { animation-delay: 0.2s; }
.auth-delay-3 { animation-delay: 0.3s; }
.auth-delay-4 { animation-delay: 0.4s; }
.auth-delay-5 { animation-delay: 0.5s; }
.auth-delay-6 { animation-delay: 0.6s; }
.auth-delay-7 { animation-delay: 0.7s; }

.auth-showcase-delay-1 { animation-delay: 0.15s; }
.auth-showcase-delay-2 { animation-delay: 0.3s; }
.auth-showcase-delay-3 { animation-delay: 0.45s; }
.auth-showcase-delay-4 { animation-delay: 0.6s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .auth-showcase {
        display: none;
    }

    .auth-form-panel {
        width: 100%;
        min-width: unset;
        border-left: none;
    }
}

@media (max-width: 640px) {
    .auth-form-panel {
        padding: 2rem 1.5rem;
    }

    .auth-card-title {
        font-size: 1.375rem;
    }

    .auth-showcase-title {
        font-size: 1.75rem;
    }
}

/* ═══════════════════════════════════════════════
   YENİ SİPARİŞ — SERVİS LİSTESİ SATIRLARI
   ═══════════════════════════════════════════════ */

/* Servis listesi satırı */
.service-row {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 150ms ease;
    border-bottom: 1px solid var(--border-secondary);
}

.service-row:last-child {
    border-bottom: none;
}

.service-row:hover {
    background: rgba(99, 102, 241, 0.05);
}

.service-row.selected {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
    border-left: 3px solid var(--accent-indigo);
    padding-left: calc(1rem - 3px);
}

[data-theme="light"] .service-row:hover {
    background: rgba(99, 102, 241, 0.04);
}

[data-theme="light"] .service-row.selected {
    background: rgba(99, 102, 241, 0.06);
}

/* ═══════════════════════════════════════════════
   YENİ SİPARİŞ — KATEGORİ TAB'LARI
   ═══════════════════════════════════════════════ */

/* Kategori tab butonu */
.category-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-secondary);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 200ms ease;
    white-space: nowrap;
}

.category-tab:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-primary);
}

.category-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
    border-color: transparent;
    box-shadow: 0 2px 8px -2px rgba(99, 102, 241, 0.4);
}

[data-theme="light"] .category-tab {
    background: var(--bg-secondary);
    border-color: var(--border-primary);
    color: var(--text-secondary);
}

[data-theme="light"] .category-tab:hover {
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.2);
    color: var(--accent-indigo);
}

[data-theme="light"] .category-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
    border-color: transparent;
}

/* ═══════════════════════════════════════════════
   YENİ SİPARİŞ — STİCKY ÖZET PANELİ
   ═══════════════════════════════════════════════ */

/* Sağ sütun sticky özet paneli */
.order-summary-panel {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
    align-self: start;
}

@media (max-width: 1023px) {
    .order-summary-panel {
        position: static;
    }
}

/* ═══════════════════════════════════════════════
   SİDEBAR — KULLANICI PROFİL KARTI
   ═══════════════════════════════════════════════ */

/* Sidebar kullanıcı profil mini kartı */
.sidebar-user-card {
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-secondary);
    transition: background 200ms ease;
}

.sidebar-user-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .sidebar-user-card {
    background: var(--bg-secondary);
    border-color: var(--border-primary);
}

[data-theme="light"] .sidebar-user-card:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* ═══════════════════════════════════════════════
   SİDEBAR — ÇIKIŞ BUTONU
   ═══════════════════════════════════════════════ */

/* Sidebar çıkış butonu */
.sidebar-logout-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    color: #f87171;
    background: rgba(244, 63, 94, 0.06);
    border: 1px solid rgba(244, 63, 94, 0.12);
    text-decoration: none;
    transition: all 200ms ease;
    letter-spacing: 0.01em;
}

.sidebar-logout-btn:hover {
    color: #fca5a5;
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.2);
}

.sidebar-logout-btn svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    opacity: 0.8;
}

.sidebar-logout-btn:hover svg {
    opacity: 1;
}

[data-theme="light"] .sidebar-logout-btn {
    color: #ef4444;
    background: rgba(244, 63, 94, 0.05);
    border-color: rgba(244, 63, 94, 0.1);
}

[data-theme="light"] .sidebar-logout-btn:hover {
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.18);
}

/* ── Light Tema — Auth ── */
[data-theme="light"] .auth-showcase::before {
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(99, 102, 241, 0.2), transparent 60%),
        radial-gradient(ellipse 70% 50% at 70% 70%, rgba(139, 92, 246, 0.15), transparent 55%),
        radial-gradient(ellipse 90% 40% at 50% 10%, rgba(59, 130, 246, 0.12), transparent 50%),
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(6, 182, 212, 0.1), transparent 50%);
}

[data-theme="light"] .auth-showcase {
    background: linear-gradient(135deg, #f0f0ff 0%, #e8e0ff 50%, #dbeafe 100%);
}

[data-theme="light"] .auth-showcase::after {
    background-image:
        radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.05) 1px, transparent 0);
}

[data-theme="light"] .auth-showcase-title {
    color: #1e1b4b;
}

[data-theme="light"] .auth-showcase-subtitle {
    color: rgba(30, 27, 75, 0.6);
}

[data-theme="light"] .auth-logo-text {
    color: #1e1b4b;
}

[data-theme="light"] .auth-feature-icon {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .auth-feature-text h4 {
    color: #1e1b4b;
}

[data-theme="light"] .auth-feature-text p {
    color: rgba(30, 27, 75, 0.5);
}

[data-theme="light"] .auth-orb {
    opacity: 0.25;
}

[data-theme="light"] .auth-form-panel {
    background: var(--bg-primary);
    border-left-color: var(--border-primary);
}

[data-theme="light"] .auth-theme-toggle {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text-secondary);
}

[data-theme="light"] .auth-theme-toggle:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

[data-theme="light"] .auth-input:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .auth-pwd-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Autofill override (auth) */
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-input) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: var(--text-primary);
}

[data-theme="light"] .auth-input:-webkit-autofill,
[data-theme="light"] .auth-input:-webkit-autofill:hover,
[data-theme="light"] .auth-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #f5f7fa inset !important;
    -webkit-text-fill-color: #1e293b !important;
}

/* ═══════════════════════════════════════════════
   LIGHT TEMA — TAILWİND HARDCODED RENK OVERRIDE'LARI
   Panel template'lerinde hardcoded Tailwind class'ları için
   ═══════════════════════════════════════════════ */

[data-theme="light"] .text-slate-300 {
    color: #475569;
}

[data-theme="light"] .text-slate-400 {
    color: #64748b;
}

[data-theme="light"] .text-slate-200 {
    color: #334155 !important;
}

[data-theme="light"] .text-slate-500 {
    color: #64748b !important;
}

/* text-white → koyu metin */
[data-theme="light"] h1.text-white,
[data-theme="light"] h2.text-white,
[data-theme="light"] h3.text-white,
[data-theme="light"] p.text-white,
[data-theme="light"] span.text-white,
[data-theme="light"] a.text-white,
[data-theme="light"] label.text-white,
[data-theme="light"] div.text-white {
    color: var(--text-heading) !important;
}

/* bg-slate-800/50 → açık arka plan */
[data-theme="light"] .bg-slate-800\/50 {
    background: var(--bg-secondary) !important;
}

/* border-slate-700/30 → açık border */
[data-theme="light"] .border-slate-700\/30 {
    border-color: var(--border-primary) !important;
}

/* hover:bg-slate-800/30 → hover açık arka plan */
[data-theme="light"] tr.hover\:bg-slate-800\/30:hover,
[data-theme="light"] .hover\:bg-slate-800\/30:hover {
    background: rgba(0, 0, 0, 0.04) !important;
}

/* divide-slate-800/50 → açık ayırıcı çizgi */
[data-theme="light"] .divide-slate-800\/50 > * + * {
    border-color: var(--border-secondary) !important;
}

/* admin-card içindeki başlıklar */
[data-theme="light"] .admin-card h3 {
    color: var(--text-heading);
}

/* Sidebar alt bakiye bölümü */
[data-theme="light"] .sidebar .rounded-xl {
    background: rgba(99, 102, 241, 0.06) !important;
    border-color: rgba(99, 102, 241, 0.15) !important;
}

/* Bakiye Yükle butonu light tema */
[data-theme="light"] .sidebar a[href="/panel/add-funds"].flex {
    color: #6366f1 !important;
}

/* Yeni sipariş sayfası özet kutuları */
[data-theme="light"] #service-info .grid > div,
[data-theme="light"] .admin-card .grid > div.p-3.rounded-lg {
    background: var(--bg-secondary) !important;
    border-color: var(--border-primary) !important;
}

/* Sipariş özeti değer metinleri */
[data-theme="light"] #summary-rate,
[data-theme="light"] #summary-quantity,
[data-theme="light"] #info-min,
[data-theme="light"] #info-max,
[data-theme="light"] #info-avg-time {
    color: var(--text-primary) !important;
}

/* Checkbox ve radio light tema */
[data-theme="light"] input[type="checkbox"],
[data-theme="light"] input[type="radio"] {
    border-color: var(--border-primary);
    background: var(--bg-input);
}

/* ═══════════════════════════════════════════════
   YENİ SİPARİŞ SAYFASI — İKİ SÜTUNLU LAYOUT
   ═══════════════════════════════════════════════ */

/* İki sütunlu sipariş layout'u */
.order-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .order-layout {
        grid-template-columns: 1fr 340px;
    }
}

/* Sağ sütun sticky */
.order-summary-panel {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
}

/* Servis satırları */
.service-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-secondary);
    cursor: pointer;
    transition: all 150ms ease;
}

.service-row:last-child {
    border-bottom: none;
}

.service-row:hover {
    background: rgba(99, 102, 241, 0.04);
}

.service-row.selected {
    background: rgba(99, 102, 241, 0.08);
    border-left: 3px solid var(--accent-indigo);
}

[data-theme="light"] .service-row:hover {
    background: rgba(99, 102, 241, 0.05);
}

[data-theme="light"] .service-row.selected {
    background: rgba(99, 102, 241, 0.08);
}

/* Kategori tab'ları */
.category-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 200ms ease;
    white-space: nowrap;
    text-decoration: none;
}

.category-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.category-tab.active {
    color: #fff;
    background: var(--accent-indigo);
    border-color: var(--accent-indigo);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .category-tab {
    background: var(--bg-secondary);
    border-color: var(--border-primary);
}

[data-theme="light"] .category-tab:hover {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .category-tab.active {
    color: #fff;
    background: var(--accent-indigo);
    border-color: var(--accent-indigo);
}

/* Sidebar kullanıcı profil kartı */
.sidebar-user-card {
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-secondary);
}

[data-theme="light"] .sidebar-user-card {
    background: rgba(99, 102, 241, 0.04);
    border-color: rgba(99, 102, 241, 0.1);
}

/* Sidebar çıkış butonu */
.sidebar-logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent-rose);
    transition: all 200ms ease;
    text-decoration: none;
    opacity: 0.85;
}

.sidebar-logout-btn:hover {
    background: rgba(244, 63, 94, 0.08);
    opacity: 1;
}

.sidebar-logout-btn svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

/* ── Düzeltme: Radio buton dark temada daha belirgin ── */
input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
    cursor: pointer;
}

/* ── Düzeltme: Bakiye kartı light temada daha belirgin ── */
[data-theme="light"] .admin-card[style*="linear-gradient"] {
    border-color: rgba(99, 102, 241, 0.2) !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(139, 92, 246, 0.06)) !important;
}
