/*
 * Admin Panel - Stil Dosyasi
 * Kaynak: Tailwind CSS yardimci siniflari + ozel bilessenler
 * Tema: Ikas benzeri koyu sidebar / acik icerik alani
 */

/* ═══════════════════════════════════════════════════════
   1. RESET & TEMEL AYARLAR
   ═══════════════════════════════════════════════════════ */
 *,
 *::before,
 *::after  {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

}

:root  {
    
/* ── Renkler ── */
 --c-primary: #ff5802;
    
/* brand orange */
 --c-primary-h: #e04e02;
    
/* darker orange */
 --c-primary-light: #fff0e8;
    
/* light orange */
 --c-primary-50: #fff7f3;
    
/* lightest orange */
 --c-primary-ring: rgba(255, 88, 2, .18);
    --c-sidebar: #000000;
    
/* siyah */
 --c-sidebar-h: #1a1a1a;
    
/* koyu gri hover */
 --c-sidebar-act: #2d1200;
    
/* aktif öğe tonu */
 --c-sidebar-brd: #222222;
    
/* ince ayraç */
 --c-sidebar-text: #e5e5e5;
    
/* beyaza yakın metin */
 --c-sidebar-muted: #6b6b6b;
    
/* slate-500  */
 --c-bg: #f8f9fc;
    
/* biraz mavi-gri ton */
 --c-white: #ffffff;
    --c-border: #e4e7ec;
    
/* grişim kenar */
 --c-border-d: #d0d5dd;
    
/* koyu kenar   */
 --c-text: #101828;
    
/* slate-900 tonu */
 --c-text-2: #344054;
    
/* slate-700 tonu */
 --c-text-3: #667085;
    
/* slate-500 tonu */
 --c-text-4: #98a2b3;
    
/* slate-400 tonu */
 --c-green-bg: #d1fae5;
    --c-green-text: #065f46;
    --c-green-brd: #6ee7b7;
    --c-orange-bg: #ffedd5;
    --c-orange-text: #9a3412;
    --c-orange-brd: #fdba74;
    --c-danger: #dc2626;
    --c-red-bg: #fee2e2;
    --c-red-text: #991b1b;
    --c-blue-bg: #dbeafe;
    --c-blue-text: #1e40af;
    --c-yellow-bg: #fef9c3;
    --c-yellow-text: #854d0e;
    
/* ── Boyutlar ── */
 --sidebar-w: 220px;
    
/* biraz daha geniş */
 --topbar-h: 60px;
    
/* biraz daha yüksek */
 
/* ── Tipografi ── */
 --font: "Inter",
 -apple-system,
 BlinkMacSystemFont,
 "Segoe UI Variable",
 "Segoe UI",
 system-ui,
 sans-serif;
    --font-mono: "JetBrains Mono",
 "Fira Code",
 "Cascadia Code",
 ui-monospace,
 monospace;
    
/* ── Gölge (daha zengin) ── */
 --shadow-xs: 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, .07),
 0 1px 2px rgba(16,
24, 40, .04);
    --shadow: 0 2px 8px rgba(16, 24, 40, .08),
 0 1px 2px rgba(16,
24, 40, .04);
    --shadow-md: 0 4px 16px rgba(16, 24, 40, .1),
 0 2px 4px rgba(16,
24, 40, .05);
    --shadow-lg: 0 12px 32px rgba(16, 24, 40, .12),
 0 4px 8px rgba(16,
24, 40, .06);
    
/* ── Geçiş ── */
 --transition: 150ms cubic-bezier(.4, 0, .2, 1);
    --transition-slow: 250ms cubic-bezier(.4, 0, .2, 1);
    
/* ── Radius ── */
 --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;

}

html  {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;

}

body  {
    font-family: var(--font);
    background-color: var(--c-bg);
    color: var(--c-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv11",
 "ss01",
 "ss03";
    font-variant-ligatures: normal;
    text-rendering: optimizeLegibility;

}

a  {
    color: inherit;
    text-decoration: none;

}

button  {
    cursor: pointer;
    font-family: inherit;

}

img,
 svg  {
    display: block;

}

input,
 select,
 textarea,
 button  {
    font-family: inherit;
    font-size: inherit;

}

ul,
 ol  {
    list-style: none;

}

/* ═══════════════════════════════════════════════════════
   2. ADMIN LAYOUT (Sidebar + Topbar + Content)
   ═══════════════════════════════════════════════════════ */
 
/* Sayfa kapsayıcı: sidebar solda, içerik sağda */
 .admin-shell  {
    display: flex;
    height: 100vh;
    overflow: hidden;

}


/* ── Sidebar ── */
 .sidebar  {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background-color: var(--c-sidebar);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 30;

}


/* Kaydırma çubuğu gizle (sidebar) */
 .sidebar::-webkit-scrollbar       { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--c-sidebar-brd); border-radius: 4px; }


/* Logo alanı */
 .sidebar-logo  {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 18px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    flex-shrink: 0;

}

.sidebar-logo-text  {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.025em;

}


/* Navigation ana kapsayıcı */
 .sidebar-nav  {
    flex: 1;
    padding: 8px 0;

}



/* Navigasyon item */
 .sidebar-item  {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin: 1px 6px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--c-sidebar-text);
    cursor: pointer;
    user-select: none;
    transition: background-color var(--transition),
 color var(--transition);
    position: relative;
    letter-spacing: -0.005em;

}

.sidebar-item:hover  { background-color: rgba(255, 255, 255, .07); color: #ffffff; }
.sidebar-item.active { background-color: var(--c-primary-ring); color: #ffffff; }

.sidebar-item.active::before  {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 16px;
    width: 3px;
    background: var(--c-primary);
    border-radius: 0 3px 3px 0;
    margin-left: -6px;

}

.sidebar-item svg  {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
    opacity: 0.85;

}

.sidebar-item.active svg,
 .sidebar-item:hover svg { opacity: 1; }


/* Sub-menu */
 .sidebar-submenu  {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;

}

.sidebar-submenu.open { max-height: 400px; }

.sidebar-submenu-item  {
    display: flex;
    align-items: center;
    padding: 6px 16px 6px 44px;
    font-size: 13px;
    color: var(--c-sidebar-muted);
    cursor: pointer;
    transition: color var(--transition),
 background-color var(--transition);

}

.sidebar-submenu-item:hover  { color: #ffffff; background-color: var(--c-sidebar-h); }
.sidebar-submenu-item.active { color: var(--c-primary); font-weight: 500; }

.sidebar-chevron  {
    margin-left: auto;
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
    opacity: 0.6;

}

.sidebar-item.open .sidebar-chevron { transform: rotate(180deg); }


/* Kullanıcı alanı (alt) */
 .sidebar-user  {
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin: 0 6px 6px;
    border-radius: var(--radius);
    transition: background var(--transition);
    cursor: pointer;

}

.sidebar-user:hover { background: rgba(255, 255, 255, .07); }

.sidebar-user-avatar  {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg,  #a78bfa 0%,  #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
    letter-spacing: -0.01em;

}

.sidebar-user-info { min-width: 0; flex: 1; }

.sidebar-user-name  {
    font-size: 12.5px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;

}

.sidebar-user-role { font-size: 10.5px; color: var(--c-sidebar-muted); letter-spacing: 0.01em; }

.sidebar-user-menu-btn  {
    color: var(--c-sidebar-muted);
    background: none;
    border: none;
    padding: 4px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: color var(--transition);

}

.sidebar-user-menu-btn:hover { color: #ffffff; }

.sidebar-user-menu-btn svg { width: 16px; height: 16px; }


/* ── Ana İçerik Wrapper ── */
 .main-wrapper  {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;

}


/* ── Topbar ── */
 .topbar  {
    height: var(--topbar-h);
    background-color: var(--c-white);
    border-bottom: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
    gap: 16px;

}

.topbar-title  {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
    letter-spacing: -0.015em;
    display: flex;
    align-items: center;
    gap: 8px;

}

.topbar-actions  {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;

}


/* ── İçerik Alanı ── */
 .main-content  {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;

}

.main-content::-webkit-scrollbar       { width: 6px; }
.main-content::-webkit-scrollbar-track { background: transparent; }
.main-content::-webkit-scrollbar-thumb { background: var(--c-border-d); border-radius: 4px; }

/* ═══════════════════════════════════════════════════════
   3. BUTONLAR
   ═══════════════════════════════════════════════════════ */
 .btn  {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    user-select: none;
    transition: background-color var(--transition),
 color var(--transition),
 border-color var(--transition),
 box-shadow var(--transition);
    white-space: nowrap;
    line-height: 1.4;
    text-decoration: none;
    letter-spacing: -0.005em;

}

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn svg { width: 15px; height: 15px; flex-shrink: 0; }


/* Primary (mor) */
 .btn-primary  {
    background-color: var(--c-primary);
    color: #ffffff;
    border-color: var(--c-primary);
    box-shadow: 0 1px 3px rgba(109, 40, 217, .25),
 0 1px 2px rgba(109, 40, 217, .15);

}

.btn-primary:hover:not(:disabled)  {
    background-color: var(--c-primary-h);
    border-color: var(--c-primary-h);
    box-shadow: 0 2px 8px rgba(109, 40, 217, .35);

}


/* Secondary (beyaz / border) */
 .btn-secondary  {
    background-color: #ffffff;
    color: var(--c-text-2);
    border-color: var(--c-border-d);
    box-shadow: var(--shadow-sm);

}

.btn-secondary:hover:not(:disabled) { background-color: var(--c-bg); border-color: #9ca3af; }


/* Danger (kırmızı) */
 .btn-danger  {
    background-color: #dc2626;
    color: #ffffff;
    border-color: #dc2626;

}

.btn-danger:hover:not(:disabled) { background-color: #b91c1c; border-color: #b91c1c; }


/* Ghost (saydam) */
 .btn-ghost  {
    background-color: transparent;
    color: var(--c-text-3);
    border-color: transparent;

}

.btn-ghost:hover:not(:disabled) { background-color: var(--c-bg); color: var(--c-text); }


/* Boyutlar */
 .btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn-sm svg { width: 13px; height: 13px; }

/* ═══════════════════════════════════════════════════════
   4. FORMLAR
   ═══════════════════════════════════════════════════════ */
 .form-group { margin-bottom: 16px; }

.form-label  {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--c-text-2);
    margin-bottom: 6px;
    letter-spacing: -0.005em;

}

.form-label .required { color: #ef4444; margin-left: 2px; }

.form-input,
 .form-select,
 .form-textarea  {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 13.5px;
    color: var(--c-text);
    background-color: #ffffff;
    border: 1px solid var(--c-border-d);
    border-radius: var(--radius);
    transition: border-color var(--transition),
 box-shadow var(--transition);
    line-height: 1.5;
    letter-spacing: -0.005em;

}

.form-input::placeholder,
 .form-textarea::placeholder  {
    color: var(--c-text-4);

}

.form-input:focus,
 .form-select:focus,
 .form-textarea:focus  {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px var(--c-primary-ring);

}

.form-textarea  {
    resize: vertical;
    min-height: 80px;

}

.form-select  {
    appearance: none;
    background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 36px;

}

.form-input.is-invalid,
 .form-select.is-invalid,
 .form-textarea.is-invalid { border-color: #ef4444; }

.form-error { font-size: 12px; color: #ef4444; margin-top: 4px; }
.form-hint  { font-size: 12px; color: var(--c-text-4); margin-top: 4px; }


/* Checkbox / Radio */
 .form-check  {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;

}

.form-check-input  {
    width: 16px;
    height: 16px;
    accent-color: var(--c-primary);
    cursor: pointer;
    flex-shrink: 0;

}

.form-check-label { font-size: 13.5px; color: var(--c-text-2); cursor: pointer; }


/* Switch toggle */
 .switch  {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;

}

.switch input { opacity: 0; width: 0; height: 0; }

.switch-slider  {
    position: absolute;
    inset: 0;
    background-color: #d1d5db;
    border-radius: 22px;
    cursor: pointer;
    transition: background-color 0.2s;

}

.switch-slider::before  {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: var(--shadow-sm);

}

.switch input:checked + .switch-slider  {
    background-color: var(--c-primary);

}

.switch input:checked + .switch-slider::before  {
    transform: translateX(18px);

}

/* ═══════════════════════════════════════════════════════
   5. TABLO
   ═══════════════════════════════════════════════════════ */
 .table-wrap  {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border);
    overflow: hidden;
    box-shadow: var(--shadow);

}

.table-toolbar  {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--c-border);
    flex-wrap: wrap;
    background: #fff;

}

.table-search  {
    position: relative;
    min-width: 220px;
    max-width: 320px;

}

.table-search svg  {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--c-text-4);
    pointer-events: none;

}

.table-search input  {
    width: 100%;
    padding: 6px 10px 6px 32px;
    font-size: 13px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background-color: #fff;
    color: var(--c-text);
    transition: border-color var(--transition),
 box-shadow var(--transition);
    letter-spacing: -0.005em;

}

.table-search input::placeholder  {
    color: var(--c-text-4);

}

.table-search input:focus  {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px var(--c-primary-ring);

}


/* ── Filtre butonu (ikas tarzı) ── */
 .btn-filter  {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--c-text-2);
    background: #fff;
    border: 1px solid var(--c-border-d);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color var(--transition),
 color var(--transition);
    white-space: nowrap;
    text-decoration: none;

}

.btn-filter:hover { border-color: var(--c-primary); color: var(--c-primary); }

.btn-filter svg { width: 14px; height: 14px; flex-shrink: 0; }

.data-table  {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    letter-spacing: -0.005em;

}

.data-table thead tr  {
    background-color: var(--c-bg);
    border-bottom: 1px solid var(--c-border);

}

.data-table th  {
    padding: 9px 14px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--c-text-3);
    text-align: left;
    white-space: nowrap;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    user-select: none;

}

.data-table th.sortable { cursor: pointer; }
.data-table th.sortable:hover { color: var(--c-text); }

.data-table tbody tr  {
    border-bottom: 1px solid var(--c-border);
    transition: background-color var(--transition);

}

.data-table tbody tr:last-child { border-bottom: none; }

.data-table tbody tr:hover { background-color: var(--c-primary-50); }

.data-table td  {
    padding: 11px 14px;
    color: var(--c-text-2);
    vertical-align: middle;
    font-size: 13px;

}


/* Checkbox sütunu */
 .data-table th:first-child,
 .data-table td:first-child  {
    padding-left: 16px;
    width: 40px;

}


/* ── Kategori Ağacı ──────────────────────────────────────────────── */
.cat-tree-toggle {
    border-radius: 4px;
    transition: background .15s;
}
.cat-tree-toggle:hover {
    background: var(--c-bg-2);
}
.cat-tree-toggle.is-open svg {
    transform: rotate(90deg);
}

/* ── Ürün Formu Kategori Ağacı ──────────────────────────────────── */
.cat-tree-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 250;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    margin-top: 4px;
    max-height: 320px;
    overflow-y: auto;
}
.cat-tree-dropdown-header {
    padding: 8px 10px;
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    background: var(--c-bg);
    z-index: 1;
}
.cat-tree-dropdown-body {
    padding: 6px 8px;
}
.cat-tree-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: var(--c-bg);
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    color: var(--c-text);
    min-height: 40px;
}
.cat-tree-btn:hover {
    border-color: var(--c-primary);
}
.cat-tree-btn-text {
    flex: 1;
    color: var(--c-text-3);
    overflow: hidden;
}
.cat-tree-item {
    border-radius: 4px;
}
.cat-tree-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
}
.cat-tree-label:hover {
    background: var(--c-bg-2);
}
.cat-tree-check {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: var(--c-primary);
    flex-shrink: 0;
}
.cat-tree-arrow {
    transition: color .15s;
    color: var(--c-text-3);
}
.cat-tree-arrow:hover {
    color: var(--c-text);
}
.cat-tree-arrow.is-open svg {
    transform: rotate(90deg);
}

/* Ürün hücresi (thumbnail + ad) */
 .product-cell  {
    display: flex;
    align-items: center;
    gap: 10px;

}

.product-thumb  {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--c-border);
    flex-shrink: 0;
    background-color: var(--c-bg);

}

.product-thumb-placeholder  {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid var(--c-border);
    background-color: var(--c-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

}

.product-thumb-placeholder svg  {
    width: 18px;
    height: 18px;
    color: var(--c-text-4);

}

.product-name { font-size: 13.5px; font-weight: 500; color: var(--c-text); }
.product-sku  { font-size: 12px; color: var(--c-text-4); margin-top: 1px; }


/* Tablo alt footer — ikas tarzı */
 .table-footer  {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid var(--c-border);
    font-size: 12.5px;
    color: var(--c-text-3);
    flex-wrap: wrap;
    gap: 8px;
    background: #fff;

}

.table-footer-info  {
    display: flex;
    align-items: center;
    gap: 8px;

}


/* "Satır Adedi: [20 ▾]" seçici */
 .per-page-select  {
    padding: 3px 24px 3px 8px;
    font-size: 12.5px;
    border: 1px solid var(--c-border-d);
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    color: var(--c-text-2);
    appearance: none;
    background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 13px;
    cursor: pointer;

}


/* Sayfalama */
 .pagination  {
    display: flex;
    align-items: center;
    gap: 3px;

}

.page-btn  {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 5px;
    font-size: 12.5px;
    border: 1px solid var(--c-border);
    background-color: #ffffff;
    color: var(--c-text-3);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;

}

.page-btn:hover:not(.disabled)  {
    border-color: var(--c-primary);
    color: var(--c-primary);

}

.page-btn.active  {
    background-color: var(--c-primary);
    border-color: var(--c-primary);
    color: #ffffff;
    font-weight: 600;

}

.page-btn.disabled { opacity: 0.4; cursor: not-allowed; }

.page-btn svg { width: 13px; height: 13px; }


/* Sayfa bilgisi ("1 - 1 / 5 Ürün") */
 .page-info  {
    font-size: 12.5px;
    color: var(--c-text-3);
    padding: 0 8px;
    white-space: nowrap;
    letter-spacing: -0.005em;

}

/* ═══════════════════════════════════════════════════════
   6. BADGE / ETİKET
   ═══════════════════════════════════════════════════════ */
 .badge  {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    font-size: 11.5px;
    font-weight: 500;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.01em;

}

.badge svg  {
    width: 12px;
    height: 12px;

}

.badge-green  { background-color: var(--c-green-bg);       color: var(--c-green-text); }
.badge-success { background-color: var(--c-green-bg);      color: var(--c-green-text); border: 1px solid #6ee7b7; }
.badge-orange { background-color: var(--c-orange-bg);      color: var(--c-orange-text); border: 1px solid var(--c-orange-brd); }
.badge-red    { background-color: var(--c-red-bg);         color: var(--c-red-text); }
.badge-blue   { background-color: var(--c-blue-bg);        color: var(--c-blue-text); }
.badge-yellow { background-color: var(--c-yellow-bg);      color: var(--c-yellow-text); }
.badge-gray   { background-color: #f3f4f6;                 color: var(--c-text-3); }
.badge-violet { background-color: var(--c-primary-light);  color: var(--c-primary); }
.badge-purple { background-color: #faf5ff;                 color: #7c3aed; }


/* Noktalı renk indikatörü */
 .badge-dot::before  {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    flex-shrink: 0;

}

/* ═══════════════════════════════════════════════════════
   7. KART
   ═══════════════════════════════════════════════════════ */
.card, .ayar-card, .pf-section  {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.ayar-card { margin-bottom: 16px; }

/* Kart içinde dropdown/popover kullanan durumlarda overflow: visible gerekir.
   .card öğesine bu sınıfı ekle: <div class="card card-overflow-visible"> */
.card-overflow-visible {
    overflow: visible !important;
}

/* Tüm section header'ları ortak flex yapısı kullanır.
   .card-header → 16px, diğerleri (dash/pf/ayar) → 14px dikey padding. */
.card-header,
.dash-section-header,
.pf-section-head,
.ayar-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--c-border);
}
.card-header                                           { padding: 16px 20px; }
.dash-section-header, .pf-section-head, .ayar-card-header { padding: 14px 20px; }

.card-title  {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--c-text);
    letter-spacing: -0.01em;
}

/* Tüm section body'leri aynı padding → tek kural */
.card-body, .pf-section-body, .dash-section-body, .ayar-card-body { padding: 20px; }

/* ═══════════════════════════════════════════════════════
   8. DASHBOARD — İSTATİSTİK KARTLARI
   ═══════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════
   9. ALERT / BİLDİRİM
   ═══════════════════════════════════════════════════════ */
 .alert  {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    margin-bottom: 16px;
    border-width: 1px;
    border-style: solid;

}

.alert svg  {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;

}

.alert-success { background-color: var(--c-green-bg);  color: var(--c-green-text);  border-color: var(--c-green-brd); }
.alert-error   { background-color: var(--c-red-bg);    color: var(--c-red-text);    border-color: #fca5a5; }
.alert-warning { background-color: var(--c-orange-bg); color: var(--c-orange-text); border-color: var(--c-orange-brd); }
.alert-info    { background-color: var(--c-blue-bg);   color: var(--c-blue-text);   border-color: #93c5fd; }


/* Toast (floating) */
 .toast-container  {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;

}

.toast  {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    pointer-events: all;
    animation: slideInRight 0.25s ease;
    min-width: 260px;
    max-width: 400px;

}

.toast-success { background-color: #064e3b; color: #d1fae5; }
.toast-error   { background-color: #7f1d1d; color: #fee2e2; }
.toast-info    { background-color: #1e3a5f; color: #dbeafe; }

@keyframes slideInRight  {
    from  {
        opacity: 0;
        transform: translateX(24px);

    }
 to  {
        opacity: 1;
        transform: translateX(0);

    }

}

/* ═══════════════════════════════════════════════════════
   10. MODAL
   ═══════════════════════════════════════════════════════ */
 .modal-overlay  {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, .45);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.15s ease;

}

.modal  {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: scaleIn 0.15s ease;

}

.modal-header  {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--c-border);
    flex-shrink: 0;

}

.modal-title { font-size: 16px; font-weight: 600; color: var(--c-text); }

.modal-close  {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--c-text-4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition),
 color var(--transition);

}

.modal-close:hover { background-color: var(--c-bg); color: var(--c-text); }

.modal-close svg { width: 18px; height: 18px; }

.modal-body  {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;

}

.modal-footer  {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid var(--c-border);
    flex-shrink: 0;

}

@keyframes fadeIn  {
    from  {
        opacity: 0 
    }
 to  {
        opacity: 1 
    }

}

@keyframes scaleIn  {
    from  {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.96) 
    }
 to  {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) 
    }

}

/* ═══════════════════════════════════════════════════════
   12. LOGİN SAYFASI
   ═══════════════════════════════════════════════════════ */
 .login-page  {
    min-height: 100vh;
    display: flex;
    background-color: var(--c-bg);
    font-family: 'Inter', sans-serif;

}

/* ─── Sol marka paneli ─────────────────────────────────── */
.login-brand  {
    display: none; /* mobilde gizli */
    flex-direction: column;
    justify-content: space-between;
    width: 420px;
    flex-shrink: 0;
    background: linear-gradient(160deg, #111 0%, #1a1a1a 60%, #2a1000 100%);
    padding: 48px 44px;
    position: relative;
    overflow: hidden;

}

.login-brand::before  {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 20%, rgba(255,88,2,.18) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 80% 80%, rgba(255,88,2,.10) 0%, transparent 70%);
    pointer-events: none;

}

.login-brand::after  {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255,88,2,.25) 40%, rgba(255,88,2,.25) 60%, transparent);

}

.login-brand-inner  {
    position: relative;
    z-index: 1;

}

.login-brand-ident  {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;

}

.login-brand-icon  {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: block;

}

.login-brand-name  {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;

}

.login-brand-tagline  {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 32px;
    letter-spacing: -.025em;

}

.login-brand-features  {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;

}

.login-brand-features li  {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,.75);

}

.login-feature-icon  {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,88,2,.25);
    border: 1px solid rgba(255,88,2,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

}

.login-feature-icon svg  {
    width: 12px;
    height: 12px;
    color: var(--c-primary);

}

.login-brand-footer  {
    position: relative;
    z-index: 1;
    font-size: 12px;
    color: rgba(255,255,255,.3);

}

/* ─── Sağ form paneli ──────────────────────────────────── */
.login-form-panel  {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    overflow-y: auto;

}

.login-card  {
    background-color: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--c-border);
    box-shadow: 0 8px 40px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.05);
    padding: 44px 40px;
    width: 100%;
    max-width: 420px;

}

/* Logo (sadece form kartında görünür — masaüstünde sol panelde logo var) */
.login-card-logo  {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;

}

.login-card-icon  {
    width: 40px;
    height: 40px;
    display: block;
    flex-shrink: 0;

}

.login-card-name  {
    font-size: 18px;
    font-weight: 800;
    color: var(--c-text);
    letter-spacing: -0.03em;

}

.login-title  {
    font-size: 21px;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 6px;
    text-align: center;
    letter-spacing: -0.025em;

}

.login-subtitle  {
    font-size: 13.5px;
    color: var(--c-text-3);
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.5;

}

/* Input ikonlu sarmalayıcı */
.login-input-wrap  {
    position: relative;

}

.login-input-icon  {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--c-text-4);
    pointer-events: none;

}

.login-input-icon-pad  {
    padding-left: 38px;

}

/* Şifre göster/gizle butonu */
.login-pw-toggle  {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--c-text-4);
    display: flex;
    align-items: center;
    transition: color .15s;

}

.login-pw-toggle:hover  {
    color: var(--c-text-2);

}

.login-pw-toggle svg  {
    width: 17px;
    height: 17px;

}

/* Submit butonu */
.login-submit-btn  {
    justify-content: center;
    gap: 8px;
    padding-top: 11px;
    padding-bottom: 11px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .01em;

}

.login-submit-btn svg  {
    width: 16px;
    height: 16px;
    transition: transform .2s;

}

.login-submit-btn:hover svg  {
    transform: translateX(3px);

}

/* Masaüstünde sol paneli göster, kart logosunu gizle */
@media (min-width: 900px) {
    .login-brand { display: flex; }
    .login-card-logo { display: none; }
}

/* Küçük ekranda kart dolu genişlik */
@media (max-width: 480px) {
    .login-card { padding: 32px 24px; box-shadow: none; border: none; background: transparent; }
    .login-form-panel { padding: 24px 16px; align-items: flex-start; padding-top: 48px; }
}

/* ═══════════════════════════════════════════════════════
   13. BREADCRUMB
   ═══════════════════════════════════════════════════════ */
 .breadcrumb  {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--c-text-3);
    margin-bottom: 16px;

}

/* ═══════════════════════════════════════════════════════
   14. YÜKLENME İNDİKATÖRÜ
   ═══════════════════════════════════════════════════════ */
 .spinner  {
    width: 20px;
    height: 20px;
    border: 2px solid var(--c-border);
    border-top-color: var(--c-primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;

}

.spinner-sm  {
    width: 14px;
    height: 14px;

}

@keyframes spin  {
    to  {
        transform: rotate(360deg) 
    }

}


/* Sayfa yüklenme çubuğu (üstte) */
 #page-loader  {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg,  var(--c-primary),
 #a78bfa);
    z-index: 9999;
    transition: width 0.2s ease;
    border-radius: 0 2px 2px 0;

}

/* ═══════════════════════════════════════════════════════
   15. YARDIMCI / LAYOUT SINIFLAR (Tailwind subset)
   ═══════════════════════════════════════════════════════ */
/* Display */
.flex           { display: flex; }
.inline-flex    { display: inline-flex; }
.grid           { display: grid; }
.block          { display: block; }
.inline-block   { display: inline-block; }
.hidden         { display: none !important; }

/* Flex */
.flex-wrap      { flex-wrap: wrap; }
.items-center   { align-items: center; }

/* Grid */
.gap-3 { gap: 12px; }

/* Padding */
.p-3 { padding: 12px; }

/* Width */
.w-full { width: 100%; }    .w-auto { width: auto; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }

/* Metin taşma */
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Metin renkleri */
.text-white { color: #ffffff; }

/* Border */
.border    { border: 1px solid var(--c-border); }

/* Renk yardımcıları */
.text-red { color: #dc2626; }

/* ═══════════════════════════════════════════════════════
   17. RESPONSİF
   ═══════════════════════════════════════════════════════ */
 @media (max-width: 768px)  {
    .sidebar  {
        position: fixed;
        left: -200px;
        top: 0;
        bottom: 0;
        transition: left 0.25s ease;
        z-index: 100;

    }
 .sidebar.open  {
        left: 0;

    }

}

@media (max-width: 480px)  {
 .main-content  {
        padding: 16px;

    }

}

/* ═══════════════════════════════════════════════════════
   18. PRİNT AYARLARI
   ═══════════════════════════════════════════════════════ */
 @media print  {
    .sidebar,
 .topbar,
 .sidebar-user  {
        display: none;

    }
 .main-wrapper  {
        margin: 0;

    }
 .main-content  {
        padding: 0;
        overflow: visible;

    }

}

/* ═══════════════════════════════════════════════════════
   ICON SIZING UTILITIES (w-* h-*)
   Her boyut için .w-N / .h-N, svg.w-N ve i[data-lucide].w-N
   kuralları tek selector grubunda birleştirildi.
   ═══════════════════════════════════════════════════════ */
i[data-lucide] { display:inline-flex; vertical-align:middle; flex-shrink:0; }
.w-3,  .h-3,  svg.w-3,  i.w-3[data-lucide],  i[data-lucide].w-3  { width:.75rem;  height:.75rem;  flex-shrink:0; }
.w-4,  .h-4,  svg.w-4,  i.w-4[data-lucide],  i[data-lucide].w-4  { width:1rem;    height:1rem;    flex-shrink:0; }
.w-5,  .h-5,  svg.w-5,  i.w-5[data-lucide],  i[data-lucide].w-5  { width:1.25rem; height:1.25rem; flex-shrink:0; }
.w-6,  .h-6,  svg.w-6,  i.w-6[data-lucide],  i[data-lucide].w-6  { width:1.5rem;  height:1.5rem;  flex-shrink:0; }
.w-8,  .h-8,  svg.w-8,  i.w-8[data-lucide],  i[data-lucide].w-8  { width:2rem;    height:2rem;    flex-shrink:0; }
.w-10,         svg.w-10, i.w-10[data-lucide], i[data-lucide].w-10 { width:2.5rem;  height:2.5rem;  flex-shrink:0; }

/* ── Dashboard grafik bölümü — premium ── */
 .dash-section  {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;

}

/* .dash-section-header ve .dash-section-body → bkz. .card-header / .card-body kuralları */
.dash-section-title { font-size: 13px; font-weight: 600; color: var(--c-text); letter-spacing: -0.01em; }


/* ── Dark Topbar ─────────────────────────────────────────────────────────── */
 .topbar-dark  {
    background: #16171a;
    border-bottom: 1px solid #2a2b2e;

}

.topbar-dark .topbar-title,
 .topbar-dark .bc-current  {
    color: #f0f0f0;

}

.topbar-dark .btn-ghost  {
    color: rgba(255, 255, 255, .55);

}

.topbar-dark .btn-ghost:hover  {
    background: rgba(255, 255, 255, .08);
    color: #fff;

}

.topbar-dark .btn-secondary  {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .15);
    color: rgba(255,
255, 255, .8);

}

.topbar-dark .btn-secondary:hover  {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .25);

}


/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
 .topbar-breadcrumb  {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 500;

}

.bc-link  {
    color: rgba(255, 255, 255, .45);
    text-decoration: none;
    transition: color .15s;

}

.bc-link:hover  {
    color: rgba(255, 255, 255, .8);

}

.bc-current  {
    color: #f0f0f0;

}

.bc-sep  {
    color: rgba(255, 255, 255, .25);
    font-size: 15px;
    line-height: 1;

}


/* Light breadcrumb (beyaz topbar için) */
 .topbar:not(.topbar-dark) .bc-link  {
    color: var(--c-text-2);

}

.topbar:not(.topbar-dark) .bc-link:hover  {
    color: var(--c-text-1);

}

.topbar:not(.topbar-dark) .bc-current  {
    color: var(--c-text-1);

}

.topbar:not(.topbar-dark) .bc-sep  {
    color: var(--c-border-d);

}

.main-content.no-pad-top  {
    padding-top: 0;

}


/* ── Ürün Form: Sekme Navigasyonu ────────────────────────────────────────── */
 .pf-tabs  {
    position: sticky;
    top: 0;
    z-index: 89;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -24px;
    padding-left: 8px;

}

.pf-tabs::-webkit-scrollbar  {
    display: none;

}

.pf-tab  {
    display: inline-flex;
    align-items: center;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text-2);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: color .15s,
 border-color .15s;
    user-select: none;

}

.pf-tab:hover  {
    color: var(--c-text-1);

}

.pf-tab.is-active  {
    color: var(--c-primary);
    border-bottom-color: var(--c-primary);

}


/* ── Ürün Form: Genel Section Yapısı ────────────────────────────────────── */
 .pf-wrap  {
    max-width: 100%;
    margin: 0;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;

}

/* .pf-section → bkz. .card kuralı. .pf-section-head ve .pf-section-body → bkz. .card-header / .card-body */
.pf-section-title { font-size: 13.5px; font-weight: 600; color: var(--c-text-1); display: flex; align-items: center; gap: 6px; }
.pf-section-title svg { color: var(--c-text-3); flex-shrink: 0; }


/* ── Fiyat giriş grubu ───────────────────────────────────────────────────── */
 .pf-price-row  {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;

}

.pf-price-box  {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color .15s;

}

.pf-price-box:focus-within { border-color: var(--c-primary); }

.pf-price-pfx  {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: var(--c-bg-2);
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-2);
    border-right: 1px solid var(--c-border);
    user-select: none;

}

.pf-price-input  {
    flex: 1;
    border: none !important;
    outline: none !important;
    padding: 9px 10px;
    font-size: 13.5px;
    background: transparent;
    min-width: 0;

}

.pf-price-input:focus { box-shadow: none !important; }


/* ── Fiyat Listesi tablosu ───────────────────────────────────────────────── */
/* Fiyat ve stok tablosu — ortak base */
.pf-price-table, .pf-stock-table { width:100%; border-collapse:collapse; font-size:13px; }
.pf-price-table th, .pf-stock-table th { text-align:left; font-weight:500; color:var(--c-text-2); background:var(--c-bg-2); border-bottom:1px solid var(--c-border); }
.pf-price-table td, .pf-stock-table td { border-bottom:1px solid var(--c-border); }
.pf-price-table tr:last-child td, .pf-stock-table tr:last-child td { border-bottom:none; }
/* Fiyat tablosu padding */
.pf-price-table th { padding:9px 12px; }
.pf-price-table td { padding:10px 12px; color:var(--c-text-1); }

.pf-empty-row td  {
    text-align: center;
    color: var(--c-text-3);
    padding: 24px;
    font-size: 13px;

}


/* ── Medya / Dosya yükleme ───────────────────────────────────────────────── */
 .pf-media-grid  {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

}

.pf-media-thumb  {
    width: 88px;
    height: 88px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    background: var(--c-bg-2);
    cursor: grab;

}

.pf-media-thumb img  {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

.pf-media-thumb-del  {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    border: none;
    opacity: 0;
    transition: opacity .15s;

}

.pf-media-thumb:hover .pf-media-thumb-del { opacity: 1; }

.pf-media-thumb.media-drag-over {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
    border-radius: 6px;
    transform: scale(1.05);
    transition: transform 0.15s, outline 0.15s;
}

.pf-media-thumb:active { cursor: grabbing; }

/* Varyant sürükle-bırak */
.var-type-row { cursor: default; }
.var-type-row[draggable="true"] { cursor: grab; }
.var-type-row.var-drag-over {
    outline: 2px solid var(--c-primary);
    outline-offset: -2px;
    border-radius: 4px;
    background: var(--c-primary-bg, #eef2ff);
}

.pf-media-add  {
    width: 88px;
    height: 88px;
    border: 1.5px dashed var(--c-border-d);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    color: var(--c-text-3);
    font-size: 11px;
    font-weight: 500;
    transition: border-color .15s,
 color .15s;
    background: transparent;

}

.pf-media-add:hover { border-color: var(--c-primary); color: var(--c-primary); }


/* Dosya drop zone */
 .pf-dropzone  {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1.5px dashed var(--c-border-d);
    border-radius: var(--radius-sm);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s,
 background .15s;

}

.pf-dropzone:hover,
 .pf-dropzone.drag-over  {
    border-color: var(--c-primary);
    background: #f5f3ff;

}

.pf-dropzone svg  { color: var(--c-text-3); margin-bottom: 8px; }
.pf-dropzone p    { font-size: 12.5px; color: var(--c-text-2); margin: 4px 0; }
.pf-dropzone span { font-size: 11.5px; color: var(--c-text-3); }


/* ── Stok / Lokasyon tablosu ─────────────────────────────────────────────── */
/* pf-stock-table base → bkz. .pf-price-table, .pf-stock-table ortak kuralları */
/* Stok tablosu padding (fiyat tablosundan farklı) */
.pf-stock-table th { padding:9px 14px; }
.pf-stock-table td { padding:11px 14px; }

.pf-stock-input  {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    text-align: right;

}

.pf-stock-input:focus  {
    outline: none;
    border-color: var(--c-primary);

}


/* ── SEO Önizleme ────────────────────────────────────────────────────────── */
 .pf-seo-wrap  {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    align-items: start;

}

.pf-seo-wrap .seo-preview {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;

}

.seo-preview-url   { font-size: 12px; color: #1a73e8; margin-bottom: 4px; word-break: break-all; }
.seo-preview-title { font-size: 18px; color: #1a0dab; font-weight: 400; margin-bottom: 4px; line-height: 1.3; }
.seo-preview-desc  { font-size: 13px; color: #4d5156; line-height: 1.5; }


/* ── RTE (Rich Text Editor) ──────────────────────────────────────────────── */
 .rte-wrap  {
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    overflow: hidden;

}

.rte-wrap:focus-within { border-color: var(--c-primary); }

.rte-toolbar  {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    background: var(--c-bg-2);
    border-bottom: 1px solid var(--c-border);
    flex-wrap: wrap;

}

.rte-toolbar button  {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    border-radius: 4px;
    cursor: pointer;
    color: var(--c-text-2);
    font-size: 13px;
    transition: background .1s,
 color .1s;

}

.rte-toolbar button:hover  { background: var(--c-bg-3); color: var(--c-text-1); }
.rte-toolbar button.rte-active { background: var(--c-primary-light); color: var(--c-primary); }
.rte-toolbar .rte-sep { width: 1px; height: 18px; background: var(--c-border); margin: 0 4px; }

.rte-editor h1, .rte-editor h2, .rte-editor h3 { font-weight: 700; margin: .5em 0; line-height: 1.3; }
.rte-editor h1 { font-size: 1.6em; }  .rte-editor h2 { font-size: 1.3em; }  .rte-editor h3 { font-size: 1.1em; }
.rte-editor ul, .rte-editor ol { padding-left: 20px; margin: .4em 0; }
.rte-editor a { color: var(--c-primary); }
.rte-editor blockquote { border-left: 3px solid var(--c-primary); padding-left: 12px; color: var(--c-text-2); margin: .4em 0; }


/* ═══════════════════════════════════════════════════════
   Manuel Sipariş Formu
   ═══════════════════════════════════════════════════════ */
 #product-results,
 #customer-results  {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    z-index: 999;
    max-height: 320px;
    overflow-y: auto;
    display: none;

}

.search-result-item  {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background .12s;

}

.search-result-item:hover { background: var(--c-bg); }

.search-result-item img  {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--c-border);
    flex-shrink: 0;

}

.sri-img-placeholder  {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: var(--c-bg-2, #f4f4f5);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-4);

}

.sri-name  { font-size: 13px; font-weight: 500; color: var(--c-text); }
.sri-sku   { font-size: 12px; color: var(--c-text-3); }
.sri-price { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--c-text); white-space: nowrap; }

.search-result-empty  {
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--c-text-3);

}

.qty-control  {
    display: flex;
    align-items: center;
    gap: 4px;

}

.qty-btn  {
    width: 28px;
    height: 28px;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    background: #f4f4f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    color: var(--c-text-2);
    transition: background .1s;

}

.qty-btn:hover  {
    background: var(--c-bg);

}

.qty-input  {
    width: 52px;
    text-align: center;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    padding: 4px;
    font-size: 13px;

}

.summary-row  {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    color: var(--c-text-2);

}

.summary-row.total  {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
    border-top: 1px solid var(--c-border);
    margin-top: 4px;
    padding-top: 10px;

}

.summary-link  {
    color: var(--c-primary);
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;

}

.summary-link:hover { text-decoration: underline; }

.summary-adj  {
    display: none;
    margin: 8px 0;
    padding: 10px 12px;
    background: var(--c-bg);
    border-radius: 8px;

}

.summary-adj label  {
    font-size: 12px;
    color: var(--c-text-3);
    margin-bottom: 4px;
    display: block;

}

.tag-chip  {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--c-bg-2, #f4f4f5);
    border: 1px solid var(--c-border);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 12px;
    color: var(--c-text-2);
    cursor: pointer;

}

.tag-chip:hover { background: var(--c-bg); }

#customer-selected  {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--c-bg);
    border-radius: 8px;
    margin-top: 8px;

}

.cs-avatar  {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;

}

.cs-info  { flex: 1; min-width: 0; }
.cs-name  { font-size: 13px; font-weight: 500; color: var(--c-text); }
.cs-email { font-size: 12px; color: var(--c-text-3); }

/* ═══════════════════════════════════════════════════════
   Müşteri Detay Sayfası (ikas layout)
   ═══════════════════════════════════════════════════════ */
 .cust-header  {
    background-color: #ffffff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 12px;

}

.cust-header-top  {
    padding: 20px 24px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--c-border);

}

.cust-header-top h2  {
    font-size: 18px;
    font-weight: 700;
    color: var(--c-text);
    margin: 0;

}

.cust-no-account  {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--c-text-3);
    background: var(--c-bg-2, #f4f4f5);
    border: 1px solid var(--c-border);
    border-radius: 20px;
    padding: 2px 10px;

}

.cust-has-account  {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 2px 10px;

}

.cust-info-grid  {
    display: grid;
    grid-template-columns: repeat(5,  1fr);

}

.cust-info-item  {
    padding: 16px 24px;
    border-right: 1px solid var(--c-border);

}

.cust-info-item:last-child  {
    border-right: none;

}

.cust-info-label  {
    font-size: 11px;
    font-weight: 600;
    color: var(--c-text-3);
    text-transform: uppercase;
    letter-spacing: .05em;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;

}

.cust-info-value  {
    font-size: 13px;
    color: var(--c-text);
    font-weight: 500;

}

.cust-info-value a  {
    color: var(--c-text);
    text-decoration: none;

}

.cust-email-badge  {
    display: inline-block;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 2px 8px;

}

.cust-stats  {
    display: grid;
    grid-template-columns: repeat(4,  1fr);
    background-color: #ffffff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 20px;

}

.cust-stat  {
    padding: 20px 24px;
    border-right: 1px solid var(--c-border);

}

.cust-stat:last-child { border-right: none; }

.cust-stat-label  {
    font-size: 12px;
    color: var(--c-text-3);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;

}

.cust-stat-value  {
    font-size: 22px;
    font-weight: 700;
    color: var(--c-text);

}

.cust-orders-tab  {
    padding: 0 20px;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    align-items: center;

}

.cust-orders-tab span  {
    display: block;
    padding: 14px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-primary);
    border-bottom: 2px solid var(--c-primary);

}

.cust-timeline  {
    border-top: 1px solid var(--c-border);

}

.cust-timeline-header  {
    padding: 16px 20px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);

}

.cust-timeline-input  {
    padding: 0 20px 16px;
    display: flex;
    align-items: center;
    gap: 10px;

}

.cust-timeline-avatar  {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

}

.cust-timeline-field  {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-bg);
    padding: 0 10px;
    gap: 8px;

}

.cust-timeline-field input  {
    flex: 1;
    border: none;
    background: transparent;
    padding: 9px 0;
    font-size: 13px;
    color: var(--c-text);
    outline: none;

}

.cust-timeline-field-actions  {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--c-text-3);
    font-size: 13px;

}

.cust-timeline-privacy  {
    padding: 0 20px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--c-text-4);

}

/* ═══════════════════════════════════════════════════════
   STOK SAYIMI
   ═══════════════════════════════════════════════════════ */
 
/* İçerik layout */
 .sc-body  {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 16px;
    align-items: start;

}


/* Ürün satırı */
 .sc-item-row  {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--c-border);

}

.sc-item-row:last-child { border-bottom: none; }


/* Miktar input */
 .sc-qty-input  {
    width: 80px;
    padding: 6px 10px;
    border: 1px solid var(--c-border);
    border-radius: 7px;
    font-size: 13.5px;
    text-align: center;
    transition: border-color .15s;

}

.sc-qty-input:focus { outline: none; border-color: var(--c-primary); }


/* "Kaydedildi" etiketi */
 .sc-qty-saved  {
    color: var(--c-primary);
    font-size: 11px;
    display: none;
    margin-top: 3px;

}


/* Ürün arama dropdown */
 .sc-product-search  {
    position: relative;

}

.sc-search-results  {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 9px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    display: none;

}

.psr-item  {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--c-border);
    font-size: 13px;
    transition: background .1s;

}

.psr-item:last-child { border-bottom: none; }
.psr-item:hover     { background: var(--c-bg-2); }

.psr-thumb  {
    width: 36px;
    height: 36px;
    border-radius: 7px;
    object-fit: cover;
    border: 1px solid var(--c-border);
    flex-shrink: 0;

}

.psr-no-img  {
    width: 36px;
    height: 36px;
    border-radius: 7px;
    flex-shrink: 0;
    background: var(--c-bg-2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--c-border);

}

/* ═══════════════════════════════════════════════════════
   ÜLKE SEÇİCİ (Country Picker) — layout/app.php
   ═══════════════════════════════════════════════════════ */
.cp-wrap { position: relative; width: 100%; }
.cp-btn { display: flex; align-items: center; gap: 8px; width: 100%; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 6px; padding: 8px 12px; cursor: pointer; font-size: 13px; color: var(--c-text); text-align: left; box-sizing: border-box; transition: border-color .15s; }
.cp-btn:hover, .cp-btn:focus { border-color: var(--c-primary); outline: none; }
.cp-btn .fi { flex-shrink: 0; font-size: 16px; }
.cp-dd { position: fixed; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.15); z-index: 9999; overflow: hidden; }
.cp-search { display: block; width: 100%; border: none; border-bottom: 1px solid var(--c-border); padding: 8px 12px; font-size: 13px; color: var(--c-text); background: transparent; box-sizing: border-box; outline: none; }
.cp-list { max-height: 220px; overflow-y: auto; }
.cp-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; font-size: 13px; color: var(--c-text); }
.cp-item:hover { background: var(--c-bg-2); }
.cp-item .fi { font-size: 16px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════
   CUSTOM SELECT — layout/app.php
   ═══════════════════════════════════════════════════════ */
.cs-wrap { position: relative; width: 100%; }
.cs-btn { display: flex; align-items: center; width: 100%; padding: 8px 12px; font-size: 13.5px; color: var(--c-text); background: #fff; border: 1px solid var(--c-border-d); border-radius: var(--radius); cursor: pointer; line-height: 1.5; letter-spacing: -.005em; transition: border-color var(--transition), box-shadow var(--transition); user-select: none; box-sizing: border-box; }
.cs-btn:hover, .cs-wrap.is-open .cs-btn { border-color: var(--c-primary); }
.cs-wrap.is-open .cs-btn { box-shadow: 0 0 0 3px var(--c-primary-ring); }
.cs-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.cs-label.ph { color: var(--c-text-4); }
.cs-arr { width: 16px; height: 16px; flex-shrink: 0; color: #6b7280; margin-left: 8px; transition: transform var(--transition); }
.cs-wrap.is-open .cs-arr { transform: rotate(180deg); }
.cs-dd { position: fixed; background: #fff; border: 1px solid var(--c-border-d); border-radius: var(--radius); box-shadow: var(--shadow-md); z-index: 9999; max-height: 220px; overflow-y: auto; display: none; }
.cs-wrap.is-open .cs-dd { display: block; }
.cs-opt { padding: 9px 12px; font-size: 13.5px; color: var(--c-text); cursor: pointer; transition: background var(--transition); }
.cs-opt:hover { background: var(--c-primary-50); color: var(--c-primary); }
.cs-opt.sel { color: var(--c-primary); font-weight: 500; background: var(--c-primary-50); }
.cs-opt.dis { opacity: .5; pointer-events: none; }

/* ═══════════════════════════════════════════════════════
   TOPBAR — Mobil sidebar toggle (_topbar.php)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    #sidebar-toggle { display: inline-flex !important; }
}

/* ═══════════════════════════════════════════════════════
   MARKA FORMU — brands/form.php
   ═══════════════════════════════════════════════════════ */
.brand-form-body { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .brand-form-body { grid-template-columns: 1fr; } }

#brand-quill-editor { min-height: 220px; }

/* ═══════════════════════════════════════════════════════
   KATEGORİ FORMU — categories/form.php
   ═══════════════════════════════════════════════════════ */
.cat-form-body { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .cat-form-body { grid-template-columns: 1fr; } }
.seo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .seo-grid { grid-template-columns: 1fr; } }
.img-dropzone { border: 2px dashed var(--c-border); border-radius: 12px; padding: 24px 16px; text-align: center; cursor: pointer; transition: border-color .15s; min-height: 120px; max-height: 200px; display: flex; align-items: center; justify-content: center; }
.img-dropzone:hover { border-color: var(--c-primary); }
.img-dropzone.has-image { padding: 0; border-style: solid; overflow: hidden; max-height: 200px; }
.img-dropzone.has-image img { width: 100%; height: 200px; object-fit: cover; display: block; }
.img-dropzone svg { width: 36px; height: 36px; display: block; margin: 0 auto 8px; color: var(--c-text-4); }
.seo-preview { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; font-family: Arial, sans-serif; }
.seo-preview .sp-title { color: #1a0dab; font-size: 18px; text-decoration: underline; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seo-preview .sp-url { color: #006621; font-size: 13px; margin: 2px 0 4px; }
.seo-preview .sp-desc { color: #545454; font-size: 13px; line-height: 1.5; }
.char-counter { font-size: 11px; color: var(--c-text-4); text-align: right; margin-top: 3px; }
.char-counter.over { color: var(--c-danger); }
/* ── Quill (Birleşik Stil — ürün / kategori / marka) ───────────────── */
.ql-toolbar.ql-snow {
    border-radius: var(--radius) var(--radius) 0 0;
    border-color: var(--c-border-d) !important;
    background: var(--c-bg-2);
    font-family: inherit;
}
.ql-container.ql-snow {
    border-color: var(--c-border-d) !important;
    border-radius: 0 0 var(--radius) var(--radius);
    font-family: inherit;
    font-size: 13.5px;
}
.ql-editor {
    min-height: 220px;
    line-height: 1.7;
    color: var(--c-text);
}
.ql-editor.ql-blank::before {
    color: var(--c-text-4);
    font-style: normal;
}
/* Focus ring */
.ql-container.ql-snow:focus-within {
    border-color: var(--c-primary) !important;
    box-shadow: 0 0 0 3px var(--c-primary-ring);
}
/* Toolbar buton rengi */
.ql-snow .ql-stroke { stroke: var(--c-text-2); }
.ql-snow .ql-fill  { fill:   var(--c-text-2); }
.ql-snow .ql-picker-label { color: var(--c-text-2); }
.ql-snow .ql-toolbar button:hover .ql-stroke,
.ql-snow .ql-toolbar button.ql-active .ql-stroke { stroke: var(--c-primary); }
.ql-snow .ql-toolbar button:hover .ql-fill,
.ql-snow .ql-toolbar button.ql-active .ql-fill  { fill:   var(--c-primary); }
.ql-snow .ql-picker-label:hover,
.ql-snow .ql-picker-label.ql-active { color: var(--c-primary); }
/* İçerik tipografisi */
.ql-editor h2 { font-size: 1.35em; font-weight: 700; margin: .6em 0 .3em; }
.ql-editor h3 { font-size: 1.15em; font-weight: 600; margin: .5em 0 .25em; }
.ql-editor h4 { font-size: 1.05em; font-weight: 600; margin: .4em 0 .2em; }
.ql-editor h5 { font-size: 1em;    font-weight: 600; margin: .35em 0 .15em; }
.ql-editor h6 { font-size: .9em;   font-weight: 600; margin: .3em 0 .1em; color: var(--c-text-2); }
.ql-editor ul, .ql-editor ol { padding-left: 1.5em; margin: .4em 0; }
.ql-editor blockquote {
    border-left: 3px solid var(--c-primary);
    padding-left: 12px;
    color: var(--c-text-2);
    margin: .5em 0;
}
.ql-editor a { color: var(--c-primary); text-decoration: underline; }

/* HTML kaynak butonu */
.ql-html-btn {
    padding: 2px 7px !important;
    font-size: 11px !important;
    font-family: monospace;
    font-weight: 700;
    color: var(--c-text-2) !important;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1.6;
    background: none;
    transition: color .15s, border-color .15s, background .15s;
}
.ql-html-btn:hover { color: var(--c-primary) !important; background: var(--c-primary-50); border-color: var(--c-primary-ring); }
.ql-html-btn.is-active { color: var(--c-primary) !important; background: var(--c-primary-light); border-color: var(--c-primary); }

/* HTML kaynak textarea */
.ql-html-source {
    display: none;
    width: 100%;
    min-height: 220px;
    padding: 14px 16px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--c-text);
    background: #fafafa;
    border: none;
    border-top: 1px solid var(--c-border);
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════
   DASHBOARD — Dropdown ve stat item (dashboard/index.php)
   ═══════════════════════════════════════════════════════ */
.dash-dropdown { display: none; position: absolute; top: calc(100% + 4px); left: 0; background: #fff; border: 1px solid var(--c-border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.1); min-width: 160px; z-index: 50; padding: 4px; }
.dash-dropdown.open { display: block; }
.dash-dropdown-item { display: block; padding: 8px 12px; font-size: 13px; color: var(--c-text-2); text-decoration: none; border-radius: 5px; }
.dash-dropdown-item:hover, .dash-dropdown-item.active { background: var(--c-bg-2); color: var(--c-primary); font-weight: 500; }
.dash-stat-item:hover { background: var(--c-bg-2); }

/* ═══════════════════════════════════════════════════════
   AYARLAR HUB — settings/hub.php
   ═══════════════════════════════════════════════════════ */
.sh-page { padding: 32px 32px 48px; }
.sh-page-title { font-size: 20px; font-weight: 700; color: var(--c-text); margin: 0 0 28px; }
.sh-group { margin-bottom: 36px; }
.sh-group-label { font-size: 12px; font-weight: 600; color: var(--c-text-2); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
.sh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .sh-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sh-grid { grid-template-columns: 1fr; } }
.sh-card { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--c-border); border-radius: 10px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .1s; cursor: pointer; }
.sh-card:hover { border-color: var(--c-primary, #4f46e5); box-shadow: 0 2px 12px rgba(0,0,0,.07); transform: translateY(-1px); }
.sh-card-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: var(--c-bg-2, #f5f6f8); flex-shrink: 0; color: var(--c-primary, #4f46e5); }
.sh-card-icon svg, .sh-card-icon i[data-lucide] { width: 18px; height: 18px; }
.sh-card-title { font-size: 13px; font-weight: 600; color: var(--c-text); margin: 0 0 3px; line-height: 1.3; }
.sh-card-desc { font-size: 12px; color: var(--c-text-2); line-height: 1.5; margin: 0; }

/* ═══════════════════════════════════════════════════════
   LİSANS BANNERI
   ═══════════════════════════════════════════════════════ */
.lic-banner {
    display: flex;
    align-items: stretch;
    background: linear-gradient(135deg, #1e1033 0%, #2d1b69 50%, #1a1040 100%);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 32px;
    min-height: 160px;
    box-shadow: 0 4px 24px rgba(109,40,217,.18);
}

/* Sol dekoratif alan */
.lic-banner-deco {
    position: relative;
    flex: 0 0 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    overflow: hidden;
}

.lic-banner-deco::before {
    content: '';
    position: absolute;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139,92,246,.35) 0%, transparent 70%);
    top: -40px; left: -40px;
    pointer-events: none;
}

.lic-deco-screen {
    width: 160px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 14px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.lic-deco-bar {
    height: 6px;
    background: rgba(255,255,255,.18);
    border-radius: 4px;
    width: 80%;
}

.lic-deco-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 48px;
    margin-top: 4px;
}

.lic-deco-col {
    flex: 1;
    background: linear-gradient(180deg, #a78bfa 0%, #7c3aed 100%);
    border-radius: 3px 3px 0 0;
    opacity: .75;
}

/* Floating tag kartları */
.lic-deco-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(255,255,255,.95);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #1e1b2e;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
    white-space: nowrap;
    z-index: 2;
}

.lic-deco-card--a {
    top: 20px;
    left: 10px;
}

.lic-deco-card--b {
    bottom: 20px;
    right: 8px;
}

/* Sağ bilgi alanı */
.lic-banner-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 32px 28px 20px;
    gap: 10px;
}

.lic-banner-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.lic-banner-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lic-status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.lic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.lic-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: rgba(255,255,255,.75);
}

.lic-meta-item i[data-lucide] { opacity: .7; }

.lic-banner-sub {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,.6);
}

.lic-banner-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.lic-banner-actions .btn-primary {
    background: #ffffff;
    color: #2d1b69;
    border-color: #ffffff;
    font-weight: 600;
}

.lic-banner-actions .btn-primary:hover:not(:disabled) {
    background: rgba(255,255,255,.9);
    border-color: rgba(255,255,255,.9);
    box-shadow: 0 2px 12px rgba(255,255,255,.2);
}

.lic-banner-actions a[style] {
    color: rgba(255,255,255,.75) !important;
}

.lic-banner-actions a[style]:hover {
    color: #ffffff !important;
}

/* ═══════════════════════════════════════════════════════
   AYARLAR — Genel kartlar ve tablo (settings/index.php)
   ═══════════════════════════════════════════════════════ */
/* .ayar-card → bkz. .card kuralı + margin-bottom override */
/* .ayar-card-header ve .ayar-card-body → bkz. .card-header / .card-body kuralları */
.ayar-card-header h3 { font-size: 13px; font-weight: 600; color: var(--c-text); margin: 0; }
.ayar-card-footer { padding: 14px 20px; border-top: 1px solid var(--c-border); background: var(--c-bg-2); display: flex; align-items: center; gap: 10px; }
.ayar-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ayar-table th { text-align: left; padding: 8px 12px; font-size: 11px; font-weight: 600; color: var(--c-text-2); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--c-border); background: var(--c-bg-2); }
.ayar-table td { padding: 12px; border-bottom: 1px solid var(--c-border); color: var(--c-text); vertical-align: middle; }
.ayar-table tr:last-child td { border-bottom: none; }
.ayar-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--c-border); }
.ayar-row:last-child { border-bottom: none; }
.ayar-row-label { font-size: 13px; color: var(--c-text); font-weight: 500; }
.ayar-row-desc { font-size: 12px; color: var(--c-text-2); margin-top: 2px; }
.badge-pasif { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 500; background: #fee2e2; color: #dc2626; }
.badge-aktif { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 500; background: #dcfce7; color: #16a34a; }
.badge-hazir { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 500; background: #dbeafe; color: #1d4ed8; }
.bglanti-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--c-border); }
.bglanti-item:last-child { border-bottom: none; }
.bglanti-logo { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--c-text); }
.bglanti-logo-icon { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.settings-select {
    font-size: 13px;
    padding: 8px 12px;
    border: 1px solid var(--c-border-d);
    border-radius: var(--radius);
    color: var(--c-text);
    background: #fff;
    cursor: pointer;
    width: 280px;
    max-width: 100%;
    appearance: none;
    background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 36px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.settings-select:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px var(--c-primary-ring);
}

/* ═══════════════════════════════════════════════════════
   VERGİ PANEL / MODAL — settings/index.php
   ═══════════════════════════════════════════════════════ */
.vb-overlay, .ks-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 9990; display: none; }
.vb-overlay.open, .ks-overlay.open { display: block; }
.vb-panel, .ks-panel { position: fixed; top: 0; right: 0; bottom: 0; background: #fff; z-index: 9991; display: flex; flex-direction: column; box-shadow: -4px 0 24px rgba(0,0,0,.12); transform: translateX(100%); transition: transform .25s cubic-bezier(.4,0,.2,1); }
.vb-panel { width: 440px; }
.ks-panel { width: 480px; }
.vb-panel.open, .ks-panel.open { transform: translateX(0); }
.vb-panel-head, .ks-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--c-border); flex-shrink: 0; }
.vb-panel-head h2, .ks-panel-head h2 { font-size: 14px; font-weight: 600; margin: 0; }
.vb-panel-body, .ks-panel-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.vb-panel-foot, .ks-panel-foot { padding: 14px 20px; border-top: 1px solid var(--c-border); display: flex; gap: 8px; justify-content: flex-end; flex-shrink: 0; }
.vb-calc-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--c-border); }
.vb-calc-row:last-child { border-bottom: none; }
.vb-calc-left { display: flex; align-items: center; gap: 12px; }
.vb-calc-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--c-bg-2); display: flex; align-items: center; justify-content: center; color: var(--c-primary, #4f46e5); flex-shrink: 0; }
.vb-calc-label { font-size: 13px; font-weight: 500; color: var(--c-text); }
.vb-tax-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; color: var(--c-text); }
.vb-tax-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; }
.vb-tax-badge.exclusive::before { background: #f59e0b; }
.vb-calc-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 9992; display: none; align-items: center; justify-content: center; }
.vb-calc-modal-overlay.open { display: flex; }
.vb-calc-modal { background: #fff; border-radius: 12px; width: 400px; box-shadow: 0 8px 32px rgba(0,0,0,.15); overflow: hidden; }
.vb-calc-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--c-border); }
.vb-calc-modal-head h3 { font-size: 14px; font-weight: 600; margin: 0; }
.vb-calc-modal-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.vb-calc-modal-foot { padding: 14px 20px; border-top: 1px solid var(--c-border); display: flex; gap: 8px; justify-content: flex-end; }
.vb-radio-option { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--c-border); border-radius: 8px; cursor: pointer; transition: border-color .15s; }
.vb-radio-option:has(input:checked) { border-color: var(--c-primary, #4f46e5); background: #f5f3ff; }
.vb-radio-option input { margin-top: 2px; accent-color: var(--c-primary, #4f46e5); }
.vb-radio-label { font-size: 13px; font-weight: 500; color: var(--c-text); }
.vb-radio-desc { font-size: 12px; color: var(--c-text-2); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════
   KARGO PANEL — settings/index.php
   ═══════════════════════════════════════════════════════ */
.ks-brackets { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.ks-bracket-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 6px; align-items: center; }
.ks-bracket-row input { padding: 6px 8px; border: 1px solid var(--c-border); border-radius: 6px; font-size: 12px; width: 100%; }
.ks-empty { text-align: center; padding: 32px 16px; color: var(--c-text-2); font-size: 13px; }

/* ═══════════════════════════════════════════════════════
   STOK SAYIMI — stock-counts/create.php
   ═══════════════════════════════════════════════════════ */
.sc-method-card { flex: 1; background: #fff; border: 2px solid var(--c-border); border-radius: 14px; padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 16px; transition: border-color .15s, box-shadow .15s; cursor: default; }
.sc-method-card:hover { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(0,0,0,.04); }
.sc-method-card .sc-feat { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--c-text-3); line-height: 1.5; }
.sc-feat-icon { width: 26px; height: 26px; border-radius: 6px; background: var(--c-bg-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sc-method-btn { display: block; width: 100%; padding: 12px; background: var(--c-primary); color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; text-align: center; transition: opacity .15s; }
.sc-method-btn:hover { opacity: .88; }
#filterModal { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.45); align-items: center; justify-content: center; }
#filterModal.open { display: flex; }
.sc-modal-box { background: #fff; border-radius: 14px; padding: 28px; width: 640px; max-width: 96vw; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.sc-modal-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.sc-modal-row select { flex: 1; padding: 9px 12px; border: 1px solid var(--c-border); border-radius: 8px; font-size: 13.5px; }

/* ═══════════════════════════════════════════════════════════════
   KAMPANYALAR — Campaign form & type modal
   ═══════════════════════════════════════════════════════════════ */

/* ── Tip Seçim Modalı ────────────────────────────────────────── */
.ctype-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
}
.ctype-modal {
  background: #fff;
  border-radius: var(--radius, 12px);
  width: 520px; max-width: calc(100vw - 32px);
  box-shadow: var(--shadow-md, 0 8px 32px rgba(0,0,0,.18));
  overflow: hidden;
}
.ctype-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--c-border, #e5e7eb);
}
.ctype-modal-title { font-size: 16px; font-weight: 600; margin: 0; }
.ctype-modal-close {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  border: none; background: none; cursor: pointer; color: var(--c-text-4, #9ca3af);
  transition: background .15s, color .15s;
}
.ctype-modal-close:hover { background: var(--c-hover, #f3f4f6); color: var(--c-text, #111827); }
.ctype-modal-close svg { width: 18px; height: 18px; }
.ctype-modal-body { padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 10px; }

.ctype-option {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  border: 1.5px solid var(--c-border, #e5e7eb);
  border-radius: var(--radius, 12px);
  text-decoration: none; color: var(--c-text, #111827);
  transition: border-color .15s, background .15s;
}
.ctype-option:hover {
  border-color: var(--c-primary, #6d28d9);
  background: #faf5ff;
}
.ctype-option-icon {
  flex-shrink: 0; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-hover, #f3f4f6); border-radius: 10px;
  color: var(--c-primary, #6d28d9);
}
.ctype-option-icon svg { width: 22px; height: 22px; }
.ctype-option-text { display: flex; flex-direction: column; gap: 2px; }
.ctype-option-text strong { font-size: 14px; font-weight: 600; }
.ctype-option-text span { font-size: 13px; color: var(--c-text-4, #9ca3af); }

/* ── Kampanya Formu — Sticky sekmeler ───────────────────────── */
.cf-tabs {
  position: sticky; top: 0; z-index: 90;
  display: flex; align-items: center; gap: 0;
  background: #fff;
  border-bottom: 1.5px solid var(--c-border, #e5e7eb);
  padding: 0 8px;
  margin: 0 -24px 24px;
  overflow-x: auto; scrollbar-width: none;
}
.cf-tabs::-webkit-scrollbar { display: none; }
.cf-tab {
  display: inline-flex; align-items: center;
  padding: 12px 16px;
  font-size: 13px; font-weight: 500;
  color: var(--c-text-4, #9ca3af);
  text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  transition: color .15s, border-color .15s;
}
.cf-tab:hover { color: var(--c-text, #111827); }
.cf-tab.active { color: var(--c-primary, #6d28d9); border-bottom-color: var(--c-primary, #6d28d9); }

/* ── Kampanya Formu — Section ───────────────────────────────── */
.cf-section {
  margin-bottom: 16px;
  padding: 24px;
  scroll-margin-top: 120px;
}
.cf-section-title {
  font-size: 15px; font-weight: 600;
  margin: 0 0 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--c-border, #e5e7eb);
  color: var(--c-text, #111827);
  display: flex; flex-direction: column; gap: 4px;
}
.cf-section-hint {
  font-size: 13px; font-weight: 400; color: var(--c-text-4, #9ca3af);
}

/* ── Option card (radio tile) ───────────────────────────────── */
.cf-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.cf-option-card {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border: 1.5px solid var(--c-border, #e5e7eb);
  border-radius: var(--radius, 12px);
  cursor: pointer; font-size: 13px; font-weight: 500;
  color: var(--c-text-2, #6b7280);
  transition: border-color .15s, background .15s, color .15s;
  user-select: none;
}
.cf-option-card input[type="radio"] { display: none; }
.cf-option-card:hover { border-color: var(--c-primary, #6d28d9); color: var(--c-primary, #6d28d9); }
.cf-option-card.selected {
  border-color: var(--c-primary, #6d28d9);
  background: #faf5ff;
  color: var(--c-primary, #6d28d9);
}
.cf-option-check {
  display: none; position: absolute; top: 8px; right: 8px;
  width: 18px; height: 18px;
  background: var(--c-primary, #6d28d9); border-radius: 50%;
  color: #fff; align-items: center; justify-content: center;
}
.cf-option-check svg { width: 11px; height: 11px; }
.cf-option-card.selected .cf-option-check { display: flex; }

/* ── Toggle satırı (checkbox) ───────────────────────────────── */
.cf-toggle-row {
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer; padding: 12px 0;
}
.cf-toggle-row input[type="checkbox"] {
  flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px;
  accent-color: var(--c-primary, #6d28d9);
}
.cf-toggle-row span { display: flex; flex-direction: column; gap: 2px; }
.cf-toggle-row strong { font-size: 14px; font-weight: 500; color: var(--c-text, #111827); }
.cf-toggle-row em { font-size: 13px; font-style: normal; color: var(--c-text-4, #9ca3af); }

/* ── Toggle blok (gruplu togglelar) ─────────────────────────── */
.cf-toggle-block {
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: var(--radius, 12px);
  overflow: hidden;
}
.cf-toggle-item { padding: 4px 16px; }
.cf-toggle-item:not(:last-child) { border-bottom: 1px solid var(--c-border, #e5e7eb); }
.cf-toggle-divider {
  display: flex; align-items: center; justify-content: center;
  padding: 4px 0; font-size: 11px; font-weight: 700;
  color: var(--c-text-4, #9ca3af);
  letter-spacing: .05em;
  border-bottom: 1px solid var(--c-border, #e5e7eb);
  background: var(--c-hover, #f9fafb);
}
.cf-toggle-sub { padding: 0 0 16px 30px; }

/* ── Kupon input satırı ──────────────────────────────────────── */
.cf-coupon-wrap { display: flex; align-items: center; gap: 10px; }
.cf-coupon-input { flex: 1; max-width: 320px; }

/* ── İndirim değeri input ──────────────────────────────────── */
.cf-value-input-wrap {
  display: flex; align-items: center;
  border: 1.5px solid var(--c-border, #e5e7eb);
  border-radius: var(--radius, 12px);
  overflow: hidden; width: 160px;
}
.cf-value-input-wrap:focus-within { border-color: var(--c-primary, #6d28d9); }
.cf-value-prefix {
  padding: 0 12px; font-size: 14px; font-weight: 600;
  color: var(--c-text-4, #9ca3af);
  background: var(--c-hover, #f9fafb);
  border-right: 1.5px solid var(--c-border, #e5e7eb);
  height: 40px; display: flex; align-items: center;
}
.cf-value-input {
  border: none !important; border-radius: 0 !important;
  flex: 1; height: 40px; padding: 0 12px;
}
.cf-value-input:focus { outline: none; box-shadow: none; }

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 24px;
  gap: 12px;
}
.empty-state-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--c-hover, #f3f4f6);
  color: var(--c-text-4, #9ca3af);
  margin-bottom: 4px;
}
.empty-state-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text, #111827);
}
.empty-state-desc {
  font-size: 13px;
  color: var(--c-text-4, #9ca3af);
  max-width: 400px;
  line-height: 1.6;
  margin-bottom: 4px;
}

/* ── Table Empty Row ─────────────────────────────────────────── */
/* .tbl-empty → <td> içi basit boş durum. .empty-state → tam sayfa boş durum */
.tbl-empty {
  text-align: center;
  padding: 52px 24px;
  color: var(--c-text-4);
}
.tbl-empty-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--c-text); }
.tbl-empty-desc  { font-size: 13px; color: var(--c-text-4); margin-bottom: 16px; }

/* ── TagSelect bileşeni ──────────────────────────────────── */
.tag-select {
  position: relative;
  max-width: 640px;
}
.tag-select-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 6px 10px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  background: #fff;
  cursor: text;
  transition: border-color .15s;
}
.tag-select-box:focus-within {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(109,40,217,.1);
}
.tag-select-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--c-primary);
  color: #fff;
  font-size: 13px;
  padding: 2px 8px 2px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}
.tag-remove {
  background: none;
  border: none;
  color: rgba(255,255,255,.75);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0 1px;
  transition: color .1s;
}
.tag-remove:hover { color: #fff; }
.tag-select-input {
  flex: 1;
  min-width: 120px;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--c-text-1);
  background: transparent;
  padding: 2px 0;
}
.tag-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  max-height: 240px;
  overflow-y: auto;
  z-index: 200;
}
.tag-select-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .1s;
}
.tag-select-opt:hover { background: var(--c-hover); }
.ts-opt-label {
  flex: 1;
  font-size: 14px;
  color: var(--c-text-1);
}
.ts-opt-sub {
  font-size: 12px;
  color: var(--c-text-4);
}
.ts-opt-check {
  color: var(--c-primary);
  display: none;
}
.tag-select-opt.is-selected .ts-opt-check { display: block; }
.tag-select-empty {
  padding: 14px;
  font-size: 13px;
  color: var(--c-text-4);
  text-align: center;
}

.cf-bxgy-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.cf-bxgy-box {
    border: 1px solid var(--c-border, #e5e7eb);
    border-radius: var(--radius, 12px);
    background: #fff;
    padding: 16px;
}
.cf-bxgy-box-head {
    margin-bottom: 18px;
}
.cf-bxgy-box-head h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text, #111827);
}
.cf-bxgy-box-head p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--c-text-4, #9ca3af);
}
.cf-bxgy-mode-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    margin-bottom: 18px;
}
.cf-bxgy-panel-grid,
.cf-bxgy-reward-grid {
    border: 1px solid var(--c-border, #e5e7eb);
    border-radius: var(--radius, 12px);
    background: var(--c-bg-2, #fafafa);
    padding: 14px;
}
.cf-bxgy-panel {
    min-height: 86px;
}
@media (max-width: 960px) {
    .cf-bxgy-shell {
        grid-template-columns: 1fr;
    }
}
