/* Poppins: sayfa/header üzerinden yüklenir (bloklayan @import kaldırıldı — mobil performans) */
:root {
  --primary: linear-gradient(135deg, #eb7725, #ff7b1f);
  --primary-solid: #ff7b1f;
  --primary-2: #ff7e25;
  --bg: #180b01;
  --surface: #2b190e;
  --card-bg: #281910;
  --text: #fcf9f8;
  --text-color: #f6ede9;
  --text-muted: #94a3b8;
  --muted-text-color: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.10);
  --accent-orange: #ff7b1f;
  --accent-gold: #fbbf24;
  --shadow-soft: 0 10px 30px rgba(24, 11, 1, 0.35);
  --ring: rgba(255, 123, 31, 0.35);
}

/* dark theme uses :root variables by default */

[data-theme="light"] {
  --primary: linear-gradient(135deg, #eb7725, #ff7e25);
  --primary-solid: #eb7725;
  --primary-2: #ff7e25;
  --bg: #f4ebe6;
  --surface: #ffffff;
  --card-bg: #ffffff;
  --text: #151a27;
  --text-color: #151a27;
  --text-muted: #47516a;
  --muted-text-color: #47516a;
  --border-color: #dde2ee;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: radial-gradient(1200px 500px at 10% -10%, rgba(255, 123, 31,0.08), transparent 50%), var(--bg); color: var(--text-color); font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji"; }

/* Links */
a { 
    color: var(--text-color); 
    text-decoration: none; 
    transition: color 0.2s ease;
}
a:hover { 
    color: var(--primary-solid); 
    text-decoration: underline;
}
a:visited { 
    color: var(--text-color); 
}

/* Info/Warning box links - keep same color as text */
.info-box a,
.warning-box a,
.help-text a {
    color: var(--text-color) !important;
    text-decoration: underline;
}
.info-box a:hover,
.warning-box a:hover,
.help-text a:hover {
    color: var(--primary-solid) !important;
}

.header { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--border-color); background: rgba(43, 25, 14, 0.88); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; box-shadow: 0 8px 24px rgba(24, 11, 1, 0.28); }
.header .logo { font-weight: 700; }
.header .right { display: flex; align-items: center; gap: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-decoration: none; color: var(--text-color); background: var(--surface); transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: white; border: none; box-shadow: 0 8px 18px rgba(255, 123, 31, 0.28); }
.btn-secondary { background: transparent; border-color: #334155; }
.btn-save { background: linear-gradient(135deg, #10b981, #059669); color: #fff; border: none; box-shadow: 0 8px 18px rgba(16, 185, 129, 0.28); }
.btn-save:hover { filter: brightness(1.06); }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; border: none; box-shadow: 0 8px 18px rgba(239, 68, 68, 0.25); }
.btn-danger:hover { filter: brightness(1.06); }
.btn-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(43, 25, 14, 0.6); border: 1px solid #334155; }

.layout { display: grid; grid-template-columns: 248px 1fr; }
.sidebar { background: rgba(19, 24, 38, 0.85); border-right: none; min-height: calc(100vh - 61px); padding: 16px 12px 24px; position: sticky; top: 61px; max-height: calc(100vh - 61px); overflow: auto; backdrop-filter: blur(16px); font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans"; }
.sidebar nav { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nav-item { border-bottom: none; }
.nav-link { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: #cbd5e1; background: transparent; border: 1px solid transparent; border-radius: 12px; text-decoration: none; cursor: pointer; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans"; font-size: 14px; line-height: 1.25; transition: background .2s ease, color .2s ease, transform .2s ease; }
.nav-link:hover { background: rgba(255,255,255,0.05); color: #fff; text-decoration: none; }
.nav-link .caret { margin-left: auto; color: #64748b; font-size: 12px; }
.nav-link svg, .nav-link i { width: 18px; height: 18px; color: #94a3b8; stroke: currentColor; flex: 0 0 auto; }
.nav-link.active { background: rgba(255, 123, 31,0.16); border-color: transparent; color: #fff; }
.nav-link.active svg, .nav-link.active i { color: #ff7e25; }
.submenu { display: none; padding: 4px 0 8px 18px; border-left: none; margin: 4px 0 4px 20px; }
.submenu .submenu { padding-left: 16px; }
.submenu-link { display: block; padding: 8px 10px; color: #94a3b8; text-decoration: none; border-radius: 10px; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans"; font-size: 13.5px; line-height: 1.25; transition: background .2s ease, color .2s ease; }
.submenu-link:hover { color: #fff; background: rgba(255,255,255,0.05); text-decoration: none; }
.submenu-link.active { color: #fff; font-weight: 600; background: rgba(255, 123, 31,0.14); }
.nav-item.open > .submenu { display: block; }
.sidebar-footer { margin-top: 16px; padding: 10px 12px; font-size: 12px; color: var(--muted-text-color); border-top: none; }

.content { padding: 24px; }
.content > * { animation: adminRise .5s cubic-bezier(.22,1,.36,1) both; }
.content > *:nth-child(2) { animation-delay: .04s; }
.content > *:nth-child(3) { animation-delay: .08s; }
.content > *:nth-child(4) { animation-delay: .12s; }
.content > *:nth-child(5) { animation-delay: .16s; }
@keyframes adminRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 24px; }
.card { background: rgba(43, 25, 14, 0.72); border: 1px solid rgba(255,255,255,0.10); border-radius: 20px; padding: 24px; position: relative; overflow: hidden; box-shadow: 0 16px 40px rgba(24, 11, 1, 0.28); backdrop-filter: blur(16px); }
.card .card-row { display: flex; align-items: flex-start; gap: 16px; }
.card .card-icon { width: 42px; height: 42px; border-radius: 14px; background: rgba(255, 123, 31,0.12); border: 1px solid rgba(255, 123, 31,0.22); display: grid; place-items: center; color: #ff7e25; flex: 0 0 auto; }
.card .card-icon svg, .card .card-icon i { width: 18px; height: 18px; color: #ff7e25; }
.card-title { color: rgba(255,255,255,0.60); font-size: 13px; letter-spacing: .01em; }
.card-value { font-size: 26px; font-weight: 700; margin-top: 8px; letter-spacing: -0.03em; }
.card-diff { font-size: 12px; margin-top: 4px; color: #81e6a8; }
.card-diff.negative { color: #ff9b9b; }
.progress { height: 6px; background: rgba(255,255,255,0.06); border-radius: 999px; margin-top: 10px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: 999px; width: 0; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.metric { background: rgba(43, 25, 14, 0.72); border: 1px solid rgba(255,255,255,0.10); border-radius: 20px; padding: 24px; box-shadow: 0 16px 40px rgba(24, 11, 1, 0.28); backdrop-filter: blur(16px); }
.metric-title { font-size: 12px; color: var(--muted-text-color); }
.metric-value { margin-top: 6px; font-weight: 700; }

.panel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 24px; }
.panel .panel-card { background: rgba(43, 25, 14, 0.72); border: 1px solid rgba(255,255,255,0.10); border-radius: 20px; padding: 24px; box-shadow: 0 16px 40px rgba(24, 11, 1, 0.28); backdrop-filter: blur(16px); }
.panel .panel-title { font-size: 12px; color: var(--muted-text-color); }
.panel .panel-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.panel .panel-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(0,0,0,0.18); display: grid; place-items: center; }
.panel .panel-icon i { color: var(--text-color); opacity: .9; font-size: 18px; }
.panel .panel-main { display: grid; }
.panel .panel-value { font-weight: 800; }
.panel .panel-diff { font-size: 12px; color: #81e6a8; }
.panel .panel-diff.negative { color: #ff9b9b; }

.chart-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.chart-card { background: rgba(43, 25, 14, 0.72); border: 1px solid rgba(255,255,255,0.10); border-radius: 20px; padding: 24px; box-shadow: 0 16px 40px rgba(24, 11, 1, 0.28); backdrop-filter: blur(16px); }
.chart-title { font-size: 12px; color: var(--muted-text-color); margin-bottom: 6px; }

/* Last lists */
.lists-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.list-card { background: rgba(43, 25, 14, 0.72); border: 1px solid rgba(255,255,255,0.10); border-radius: 20px; padding: 24px; box-shadow: 0 16px 40px rgba(24, 11, 1, 0.28); backdrop-filter: blur(16px); }
.list-title { font-size: 12px; color: var(--muted-text-color); margin-bottom: 8px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 12px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.12)); }
.list-item .li-left { display: grid; gap: 2px; }
.list-item .li-wrap { display: flex; align-items: center; gap: 10px; }
.list-item .li-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.list-item .li-icon i { color: white; font-size: 18px; }
.list-item .li-title { font-weight: 600; }
.list-item .li-sub { font-size: 12px; color: var(--muted-text-color); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; border: 1px solid transparent; color: white; font-weight: 600; }
.badge-success { background: linear-gradient(135deg, #22c55e, #16a34a); }
.badge-warning { background: linear-gradient(135deg, #f59e0b, #d97706); }
.badge-info { background: linear-gradient(135deg, #fd5d11, #f26212); }
.badge-danger { background: linear-gradient(135deg, #ff7b1f, #eb7725); }

/* Icon background helpers */
.bg-blue { background: linear-gradient(135deg, #ff5e1b, #fd5d11); }
.bg-green { background: linear-gradient(135deg, #34d399, #10b981); }
.bg-orange { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.bg-red { background: linear-gradient(135deg, #ff7e25, #ff7b1f); }

/* Breadcrumb */
.breadcrumb { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; box-shadow: var(--shadow-soft); }
.breadcrumb-list { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb-item { display: flex; align-items: center; gap: 8px; }
.bc-row { display: inline-flex; align-items: center; gap: 8px; }
.bc-icon { width: 26px; height: 26px; border-radius: 8px; background: rgba(0,0,0,0.18); display: grid; place-items: center; }
.bc-icon i { color: var(--text-color); opacity: .9; font-size: 16px; }
.bc-link { color: var(--text-color); text-decoration: none; }
.bc-link:hover { text-decoration: underline; }
.bc-current { color: var(--muted-text-color); }
.bc-sep { color: var(--muted-text-color); }

.login-page { display: grid; place-items: center; min-height: 100vh; }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border-color); border-radius: 14px; padding: 18px; }
.brand { font-weight: 800; font-size: 22px; margin-bottom: 10px; }
.form-group { display: block; gap: 6px; margin-bottom: 12px; }
label { font-size: 14px; color: var(--muted-text-color); }
/* Form Inputs - All types */
input, textarea, select { 
    width: 100%; 
    padding: 10px 12px; 
    border-radius: 10px; 
    border: 1px solid #334155; 
    background: #180b01; 
    color: var(--text-color); 
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans";
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #ff7b1f;
    box-shadow: 0 0 0 3px var(--ring);
}
input[type="checkbox"], input[type="radio"] {
    width: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

/* Specific input types */
input[type="email"], 
input[type="password"], 
input[type="text"], 
input[type="url"], 
input[type="tel"], 
input[type="number"], 
input[type="color"],
input[type="file"] { 
    width: 100%; 
    padding: 10px 12px; 
    border-radius: 10px; 
    border: 1px solid var(--border-color); 
    background: var(--surface); 
    color: var(--text-color); 
}

/* Textarea */
textarea { 
    width: 100%; 
    padding: 10px 12px; 
    border-radius: 10px; 
    border: 1px solid var(--border-color); 
    background: var(--surface); 
    color: var(--text-color); 
    resize: vertical;
    min-height: 80px;
}

/* Select */
select { 
    width: 100%; 
    padding: 10px 12px; 
    border-radius: 10px; 
    border: 1px solid var(--border-color); 
    background: var(--surface); 
    color: var(--text-color); 
    cursor: pointer;
}

select[multiple] { 
    min-height: 120px; 
    padding: 8px; 
}

select option { 
    background: var(--surface); 
    color: var(--text-color); 
    padding: 8px 12px;
}

/* Focus states */
select:focus, 
input:focus, 
textarea:focus { 
    outline: none; 
    border-color: var(--primary-solid); 
    box-shadow: 0 0 0 3px rgba(232,103,27,0.15); 
    background: var(--surface);
}

/* Placeholder styling */
input::placeholder, 
textarea::placeholder { 
    color: var(--muted-text-color); 
    opacity: 0.7;
}

/* Disabled state */
input:disabled,
textarea:disabled,
select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--bg);
}

/* File Upload Styles */
.file-upload-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
    text-align: center;
}

.file-upload-label:hover {
    border-color: var(--primary-solid);
    background: rgba(232, 103, 27, 0.05);
}

.file-upload-icon {
    font-size: 32px;
    color: var(--muted-text-color);
    margin-bottom: 8px;
}

.file-upload-text {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.file-upload-hint {
    color: var(--muted-text-color);
    font-size: 12px;
}

.file-upload-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.file-upload-preview img {
    max-width: 100%;
    max-height: 80px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.file-upload-actions {
    display: flex;
    gap: 8px;
}

.file-upload-remove {
    background: var(--surface);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-upload-remove:hover {
    background: #ff7b1f;
    color: white;
    border-color: #ff7b1f;
}

/* Modal form layout polish */
.modal .form-group { margin-bottom: 14px; }
.modal .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) {
  .modal .form-row { grid-template-columns: 1fr; }
}
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid rgba(255,255,255,0.10); border-radius: 20px; background: rgba(43, 25, 14, 0.72); backdrop-filter: blur(16px); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 16px 20px; text-align: left; vertical-align: middle; }
.table tbody tr:hover { background: rgba(148, 163, 184, 0.06); }
.table thead th { color: var(--muted-text-color); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; background: rgba(43, 25, 14, 0.65); padding: 12px 16px; }
.table-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.table-actions { display: flex; gap: 8px; }

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    transition: all 0.25s ease;
    border-radius: 24px;
    border: 1px solid #475569;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: all 0.4s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background-color: #10b981;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

input:checked + .slider:before {
    transform: translateX(26px);
    background-color: white;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* Icon Grid Layout */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--surface);
}

.icon-item:hover {
    background: var(--primary-solid);
    color: white;
    border-color: var(--primary-solid);
}

.icon-item.selected {
    background: var(--primary-solid);
    color: white;
    border-color: var(--primary-solid);
}

.icon-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.icon-item span {
    font-size: 10px;
    text-align: center;
    word-break: break-all;
}

/* Menu Item Layout */
.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--surface);
}

.menu-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.menu-item .content {
    flex: 1;
}

.menu-item .title {
    font-weight: 600;
    margin-bottom: 2px;
}

.menu-item .url {
    font-size: 12px;
    color: var(--muted-text-color);
}

.menu-item .actions {
    display: flex;
    gap: 8px;
}

/* Info and Warning Boxes */
.info-box {
    background: rgba(253, 93, 17, 0.1);
    border: 1px solid rgba(253, 93, 17, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    color: var(--text-color);
}

.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    color: var(--text-color);
}

.success-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    color: var(--text-color);
}

/* Tabs */
.tabs { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 16px; 
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0;
}

.tab { 
    padding: 12px 16px; 
    border-radius: 10px 10px 0 0; 
    background: var(--surface); 
    color: var(--text-color);
    cursor: pointer; 
    border: 1px solid var(--border-color); 
    border-bottom: none;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans";
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: -1px;
}

.tab:hover {
    background: var(--card-bg);
    color: var(--text-color);
}

.tab.active { 
    background: var(--primary); 
    color: white; 
    border-color: var(--primary-solid);
    border-bottom: 1px solid var(--primary-solid);
    z-index: 1;
}

.tab-content { 
    display: none; 
    padding: 20px 0;
}

.tab-content.active { 
    display: block; 
}

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 100; }
.modal { width: min(680px, 92vw); background: var(--surface); border: 1px solid var(--border-color); border-radius: 14px; padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.modal-title { font-weight: 800; }
.modal-close { width: 36px; height: 36px; border-radius: 10px; background: transparent; border: 1px solid var(--border-color); color: var(--text-color); cursor: pointer; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }

/* SweetAlert theme tweaks */
.swal2-popup { background: var(--surface) !important; color: var(--text-color) !important; border: 1px solid var(--border-color); }
.swal2-title { color: var(--text-color) !important; font-family: Inter, system-ui, -apple-system; }
.swal2-html-container { color: var(--muted-text-color) !important; }
.swal2-confirm { background: var(--primary-solid) !important; }
.swal2-cancel { background: transparent !important; color: var(--text-color) !important; border: 1px solid var(--border-color) !important; }


.alert { padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }
.alert-error { background: rgba(255,0,0,0.08); border: 1px solid rgba(255,0,0,0.22); color: #ff9b9b; }

.dropdown { position: relative; }
.avatar { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-color); background: transparent; color: var(--text-color); }
.menu { position: absolute; right: 0; top: 42px; background: var(--surface); border: 1px solid var(--border-color); border-radius: 10px; min-width: 180px; display: none; }
.menu .menu-header { padding: 10px 12px; font-weight: 600; border-bottom: 1px solid var(--border-color); }
.menu .menu-item { display: block; width: 100%; padding: 10px 12px; text-align: left; background: none; border: none; color: var(--text-color); text-decoration: none; }
.menu .menu-item:hover { background: rgba(255,255,255,0.04); }
.dropdown:focus-within .menu, #profileMenuBtn:focus + .menu { display: block; }

/* Responsive düzenlemeler - Mobil görünüm için */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; min-height: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: 1fr; }
  .panel { grid-template-columns: repeat(2, 1fr); }
  .chart-row { grid-template-columns: 1fr; }
  .lists-row { grid-template-columns: 1fr; }
  
  /* Tablo responsive düzenlemeleri */
  .table-responsive {
    width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100% !important;
  }
  
  .table {
    width: 100%;
    min-width: 800px; /* Minimum genişlik tanımla */
  }
  
  /* Table header genel düzenlemeler */
  div.table-header, .table-header, .list-card .table-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 15px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  div.list-title, .list-title, .table-header .list-title {
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    font-size: 1.2rem !important;
    line-height: 36px !important; /* Buton yüksekliği ile aynı */
  }
  
  div.table-actions, .table-actions, .table-header .table-actions {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
  }
  
  /* Özel düzenleme - Sunucular ve benzer yapılar için */
  .table-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  
  .table-header .list-title {
    display: flex !important;
    align-items: center !important;
    height: 36px !important;
  }
  
  .table-header .table-actions {
    display: flex !important;
    align-items: center !important;
  }
  
  .table-header .table-actions .btn {
    display: inline-flex !important;
    align-items: center !important;
    height: 36px !important;
  }
  
  /* Breadcrumb responsive düzenlemeleri */
  .breadcrumb {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE and Edge */
  }
  
  .breadcrumb::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari and Opera */
  }
  
  .breadcrumb-list {
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    width: max-content !important;
    min-width: 100% !important;
  }
  
  .breadcrumb-item {
    flex-shrink: 0 !important;
  }
  
  /* Form responsive düzenlemeleri */
  .form-row, .form-row-3 {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  
  /* Daha küçük ekranlar için ek düzenlemeler */
  div.table-header, .table-header, .list-card .table-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important; /* Tek satırda kalması için */
    gap: 10px !important;
    width: 100% !important;
    padding: 10px 15px !important;
  }
  
  div.list-title, .list-title, .table-header .list-title {
    font-size: 1.1rem !important;
    flex-shrink: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 50% !important;
    display: flex !important;
    align-items: center !important;
    height: 36px !important;
  }
  
  div.table-actions, .table-actions, .table-header .table-actions {
    display: flex !important;
    justify-content: flex-end !important;
    flex-shrink: 0 !important;
    gap: 5px !important;
    margin-left: auto !important;
    align-items: center !important;
    height: 36px !important;
  }
  
  /* Butonlar için özel düzenleme */
  .table-header .table-actions .btn {
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
  }
  
  /* Modal düzenlemeleri */
  .modal {
    width: 95% !important;
    padding: 12px !important;
  }
  
  .modal-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .modal-actions button {
    width: 100%;
  }
}

/* OVERRIDE: Tüm sayfalarda taşmaları önlemek için agresif düzenlemeler */
@media screen and (max-width: 991px) {
  /* Tab düzenlemeleri */
  .tabs {
    overflow-x: auto !important;
    white-space: nowrap !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding-bottom: 5px !important;
  }
  
  .tabs::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
  }
  
  .tab {
    flex-shrink: 0 !important;
  }
  
  /* Görsel önizleme düzenlemeleri */
  .visual-settings-grid {
    grid-template-columns: 1fr !important;
  }
  
  .image-preview {
    max-width: 100% !important;
    height: auto !important;
    min-height: 150px !important;
  }
  
  /* Sidebar scroll düzeltmesi */
  .sidebar {
    overflow-y: auto !important;
    max-height: calc(100vh - 60px) !important;
    position: fixed !important;
    left: 0 !important;
    top: 60px !important;
    bottom: 0 !important;
    z-index: 1000 !important;
    width: 250px !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease !important;
    pointer-events: auto !important;
  }
  
  .sidebar.active {
    transform: translateX(0) !important;
  }
  
  .sidebar-overlay {
    z-index: 90 !important;
    pointer-events: auto !important;
  }
  
  /* Buton düzenlemeleri */
  .btn, button.btn {
    padding: 8px 12px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    user-select: none !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin: 2px !important;
  }
  
  @media (max-width: 640px) {
    .btn, button.btn {
      padding: 5px 10px !important;
      font-size: 0.85rem !important;
    }
    
    .btn i, button.btn i {
      margin-right: 4px !important;
      font-size: 0.9rem !important;
    }
    
    .table-actions .btn {
      flex-shrink: 0 !important;
    }
  }
  
  .btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: white !important;
    border: none !important;
  }
  
  .btn-danger:hover {
    filter: brightness(1.06);
  }

  .btn-save {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    border: none !important;
  }
  
  .btn-secondary {
    background-color: #6c757d !important;
    color: white !important;
    border: 1px solid #6c757d !important;
  }
  
  .btn-secondary:hover {
    background-color: #5a6268 !important;
    border-color: #545b62 !important;
  }
  
  /* Badge düzenlemeleri */
  .badge {
    display: inline-block !important;
    padding: 0.25em 0.6em !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
    vertical-align: baseline !important;
    border-radius: 0.25rem !important;
    margin: 1px !important;
  }
  /* Breadcrumb için agresif override */
  nav.breadcrumb, .breadcrumb, .breadcrumb-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    max-width: 100vw !important;
    padding-bottom: 5px !important;
  }
  
  nav.breadcrumb::-webkit-scrollbar, .breadcrumb::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
  }
  
  .breadcrumb-list, nav.breadcrumb ul, .breadcrumb ul {
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    width: max-content !important;
    min-width: 100% !important;
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .breadcrumb-item, nav.breadcrumb li, .breadcrumb li {
    flex-shrink: 0 !important;
    display: inline-block !important;
  }
  
  /* Tablo için agresif override */
  .table-responsive, div[class*="table-"] {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100% !important;
    display: block !important;
  }
  
  .table, table {
    width: 100% !important;
    min-width: 800px !important;
    max-width: none !important;
    table-layout: auto !important;
  }
  
  /* İçerik alanı için override */
  main.content, .content {
    padding: 15px !important;
    width: 100% !important;
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
}

/* Admin Login Page Styles */
.admin-login-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-login-main {
  width: 100%;
  max-width: 1000px;
}

.admin-login-container {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  min-height: 600px;
}

.admin-login-left {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.admin-login-right {
  flex: 1;
  position: relative;
  display: flex;
  align-items: stretch;
}

.admin-login-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(232, 103, 27, 0.8), rgba(255, 125, 28, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-overlay-content {
  text-align: center;
  color: white;
}

.admin-overlay-content h3 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px 0;
}

.admin-overlay-content p {
  font-size: 16px;
  margin: 0;
  opacity: 0.9;
}

.admin-site-info {
  margin-bottom: 30px;
  text-align: center;
}

.admin-logo {
  max-height: 60px;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 15px;
}

.admin-site-title {
  color: var(--text-color);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px 0;
}

.admin-site-description {
  color: #eb7725;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 5px 0;
}

.admin-site-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.admin-login-form-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.admin-login-title {
  color: var(--text-color);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 30px 0;
  text-align: center;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-form-field label {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.admin-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #0f131e;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  height: 48px;
  padding: 0 16px;
  gap: 12px;
  transition: border-color 0.2s ease;
}

.admin-input-wrap:focus-within {
  border-color: #eb7725;
  box-shadow: 0 0 0 3px rgba(232, 103, 27, 0.1);
}

.admin-input-wrap i {
  color: #a3a3a3;
  font-size: 16px;
}

.admin-input-wrap input {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-color);
  font-size: 15px;
}

.admin-input-wrap input::placeholder {
  color: #666;
}

.admin-input-with-action {
  padding-right: 52px;
}

.admin-icon-action {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background: #11151e;
  color: var(--text-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-icon-action:hover {
  background: #1d2333;
  border-color: #eb7725;
}

.admin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.admin-btn-primary {
  background: linear-gradient(135deg, #e8671b, #eb7725);
  color: white;
  height: 48px;
  margin-top: 10px;
}

.admin-btn-primary:hover {
  background: linear-gradient(135deg, #cf5418, #e8671b);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232, 103, 27, 0.4);
}

.admin-footer-info {
  margin-top: 30px;
  text-align: center;
}

.admin-footer-info p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.admin-footer-info i {
  color: #10b981;
}

.admin-recaptcha-spacer {
  height: 10px;
}

.g-recaptcha {
  margin: 10px 0;
  width: fit-content;
}

/* Light theme adjustments */
[data-theme="light"] .admin-input-wrap {
  background: #f9fafb;
}

[data-theme="light"] .admin-icon-action {
  background: #f3f4f6;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-login-container {
    flex-direction: column;
    min-height: auto;
  }
  
  .admin-login-right {
    display: none;
  }
  
  .admin-login-left {
    padding: 30px 20px;
  }
  
  .admin-site-title {
    font-size: 24px;
  }
  
  .admin-login-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .admin-login-page {
    padding: 10px;
  }
  
  .admin-login-left {
    padding: 20px;
  }
}


/* --------- Modal: görünümü koruyup içeriği kaydırılabilir yapar --------- */



/* Modal kutusu: orijinal genişliğini koru, ancak yüksekliği sınırla */
.modal {
  width: min(680px, 92vw);     /* orijinal genişlik */
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0;                   /* iç bloklara bırakıyoruz */
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px); /* ekranın içinden biraz boşluk */
  overflow: hidden;            /* header/footer sabit, body scroll olacak */
  box-sizing: border-box;
}

/* Modal içeriğini (body) kaydırılabilir yap */
.modal > form,
.modal > .modal-body,
.modal > .content-wrapper {
  /* Forma göre seçici ekledim: form kullandığın için form'u hedef alıyor */
  overflow-y: auto;
  padding: 16px; /* iç boşluk */
  max-height: calc(100vh - 170px); /* header + footer yüksekliğine göre ayarla */
  box-sizing: border-box;
}

/* Modal header sabit üstte */
.modal .modal-header {
  padding: 16px;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--border-color);
}

/* Modal footer (butonlar) sabit altta */
.modal .modal-actions {
  padding: 12px 16px;
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.02)); /* hafif ayırıcı */
}

.live-activity-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(340px, calc(100vw - 24px));
  pointer-events: none;
}
.live-activity-toast {
  pointer-events: auto;
  background: linear-gradient(180deg, #281910, #21120a);
  color: #fcf9f8;
  border: 1px solid #fbbf24;
  border-left: 3px solid #ff7b1f;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 14px 32px rgba(24, 11, 1, 0.55), 0 0 0 1px rgba(255, 123, 31, 0.15);
  animation: liveToastIn .35s ease;
}
.live-activity-toast.is-out {
  animation: liveToastOut .28s ease forwards;
}
.live-activity-title {
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.35;
}
.live-activity-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.3;
}
@keyframes liveToastIn {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes liveToastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(18px); }
}

[data-theme="light"] .header { background: rgba(255,255,255,0.92); box-shadow: 0 8px 24px rgba(43, 25, 14, 0.06); }
[data-theme="light"] .sidebar { background: #ffffff; }
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select { background: #ffffff; border-color: #dde2ee; }

@media (max-width: 768px) {
  .table th, .table td { padding: 12px 10px; font-size: 13px; }
  .cards { grid-template-columns: 1fr; }
  .content { padding: 12px; }
}
.modal .form-group:last-child { margin-bottom: 0; }

/* Responsive: küçük ekranlarda modal biraz daha dolu olsun */
@media (max-width: 640px) {
  .modal {
    width: 95%;
    max-height: calc(100vh - 24px);
  }
  .modal > form,
  .modal > .modal-body,
  .modal > .content-wrapper {
    max-height: calc(100vh - 160px);
  }
}

.sf-feed {
  margin: 24px 0 0;
  background: rgba(19, 24, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(24, 11, 1, 0.28);
  backdrop-filter: blur(16px);
}
.sf-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.sf-note {
  margin: 0;
  max-width: 640px;
  color: #e2e8f0;
  font-size: 13.5px;
  line-height: 1.45;
}
.sf-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sf-btn { height: 36px; padding: 0 12px; }
.sf-btn-pending { background: rgba(255, 123, 31, 0.12); border: 1px solid rgba(251, 191, 36, 0.45); color: #fde68a; }
.sf-badge {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: #ff7b1f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
}
.sf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.sf-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(19, 24, 38, 0.85);
  color: inherit;
  font: inherit;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(24, 11, 1, 0.28);
}
.sf-card:hover { border-color: rgba(251, 191, 36, 0.55); transform: translateY(-1px); }
.sf-card-in { animation: sfIn .35s ease; }
.sf-media { position: relative; height: 112px; background: #180b01; }
.sf-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-media-empty { background: linear-gradient(135deg, #1e293b, #2b190e); }
.sf-source {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #ff7b1f;
}
.sf-source-gamesatis { background: #f36018; }
.sf-source-kabasakal { background: #d97706; }
.sf-source-itemsatis { background: #eb7725; }
.sf-body { padding: 10px 10px 12px; display: grid; gap: 4px; }
.sf-title {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sf-price { color: #ff7e25; font-weight: 700; font-size: 13px; }
.sf-seller { color: #94a3b8; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eb7725, #ff7b1f);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.sf-go:hover { color: #fff; text-decoration: none; filter: brightness(1.06); }
.sf-go-disabled { opacity: 0.45; pointer-events: none; }
.sf-empty { color: #94a3b8; font-size: 13px; padding: 8px 2px 2px; }
@keyframes sfIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 1200px) {
  .sf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-actions { flex-wrap: wrap; }
}

/* Dashboards V3 — cam kart standardı */
html, body {
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(255, 123, 31, 0.10), transparent 55%),
    #150c06;
}
.card,
.widget,
.stat-box,
.metric,
.chart-card,
.list-card,
.panel .panel-card,
.sf-feed,
.sf-card,
.breadcrumb,
.modal,
.login-card,
.table-responsive {
  background: rgba(19, 24, 38, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(24, 11, 1, 0.28);
}
.cards,
.metrics,
.chart-row,
.panel,
.lists-row {
  gap: 24px !important;
}
.card,
.metric,
.chart-card,
.list-card,
.panel .panel-card,
.sf-feed {
  padding: 24px !important;
}
.sidebar {
  border-right: none !important;
  box-shadow: none !important;
}
.nav-link:hover,
.submenu-link:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}
.nav-link.active,
.submenu-link.active {
  background: rgba(255, 123, 31, 0.16) !important;
  color: #fff !important;
}
.content > * {
  animation: adminRise .5s cubic-bezier(.22, 1, .36, 1) both;
}

/* Koyu admin yüzeyleri: tablo, liste ve buton yazıları her zaman açık */
html, body,
.content,
.list-card,
.card,
.card-value,
.table,
.table th,
.table td,
.breadcrumb,
.breadcrumb a,
.modal,
.modal label {
  color: #f6ede9;
}
.table thead th,
.list-title,
.text-muted,
.text-muted small,
small.text-muted,
.form-text,
.card-title {
  color: #cbd5e1 !important;
}
.table a:not(.btn) {
  color: #e2e8f0;
}
.table a:not(.btn):hover {
  color: #ff9348;
}
.btn,
button.btn,
a.btn,
.btn-secondary,
a.btn-secondary,
button.btn-secondary {
  color: #fcf9f8 !important;
}
.btn-secondary,
a.btn-secondary,
button.btn-secondary {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
}
.btn-secondary:hover,
a.btn-secondary:hover,
button.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}
.btn-primary,
.btn-danger,
.btn-save {
  color: #ffffff !important;
}
.modal input,
.modal textarea,
.modal select,
.table input,
.table select {
  color: #fcf9f8 !important;
  background: #2b190e !important;
}

#scrapedFeed .sf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
#scrapedFeed .sf-tab {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(43, 25, 14, .8);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
#scrapedFeed .sf-tab.is-active { color: #fff; border-color: transparent; background: #334155; }
#scrapedFeed .sf-tab[data-source="gamesatis"].is-active { background: #f36018; }
#scrapedFeed .sf-tab[data-source="kabasakal"].is-active { background: #dc2626; }
#scrapedFeed .sf-tab[data-source="itemsatis"].is-active { background: #eb7725; }
#scrapedFeed .sf-tab-count {
  display: inline-block;
  margin-left: 6px;
  min-width: 1.2em;
  color: inherit;
  opacity: .9;
}
#scrapedFeed .sf-head { align-items: center; margin-bottom: 10px; }
#scrapedFeed .sf-note { color: #cbd5e1; font-size: 13px; }
#scrapedFeed .sf-actions { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
#scrapedFeed .sf-pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #4ade80;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
#scrapedFeed .sf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}
#scrapedFeed .sf-updated { color: #94a3b8; font-size: 13px; white-space: nowrap; }
#scrapedFeed .sf-btn { height: 34px; padding: 0 14px; border-radius: 8px !important; font-weight: 700; }
#scrapedFeed .sf-btn-refresh {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}
#scrapedFeed .sf-btn-clear {
  background: #dc2626 !important;
  border: 1px solid #dc2626 !important;
  color: #fff !important;
}
#scrapedFeed .sf-btn-test {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #cbd5e1 !important;
}
#scrapedFeed .sf-watch {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(94, 47, 28, 0.58);
  border: 1px solid rgba(255, 94, 27, 0.32);
  color: #ffc7af;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.4;
}
#scrapedFeed .sf-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
#scrapedFeed a.sf-card {
  color: inherit;
  text-decoration: none;
}
#scrapedFeed .sf-card {
  background: #12151e !important;
  border: 1px solid #22c55e !important;
  border-radius: 12px !important;
  padding: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  backdrop-filter: none;
}
#scrapedFeed .sf-card:hover { border-color: #4ade80 !important; transform: translateY(-2px); }
#scrapedFeed .sf-card-viewed {
  border-color: #64748b !important;
}
#scrapedFeed .sf-card-viewed:hover { border-color: #94a3b8 !important; }
#scrapedFeed .sf-card-viewed .sf-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(43, 25, 14, 0.34);
  z-index: 2;
  pointer-events: none;
}
#scrapedFeed .sf-viewed {
  position: absolute;
  top: 28px;
  left: -38px;
  z-index: 4;
  width: 168px;
  padding: 6px 0;
  transform: rotate(-32deg);
  background: #fcf9f8;
  color: #2b190e;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
#scrapedFeed .sf-card-viewed .sf-yeni { display: none; }
#scrapedFeed .sf-media { height: 124px; }
#scrapedFeed .sf-yeni {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 6px;
  background: #16a34a;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
#scrapedFeed .sf-body { padding: 10px 10px 12px; gap: 6px; }
#scrapedFeed .sf-source-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
#scrapedFeed .sf-source {
  position: static;
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  background: #dc2626;
  font-size: 11px;
  line-height: 1.3;
}
#scrapedFeed .sf-source-itemsatis { background: #eb7725; }
#scrapedFeed .sf-source-gamesatis { background: #f36018; }
#scrapedFeed .sf-source-kabasakal { background: #dc2626; }
#scrapedFeed .sf-host {
  color: #94a3b8;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 900px) {
  #scrapedFeed .sf-head { align-items: flex-start; flex-direction: column; }
  #scrapedFeed .sf-actions { width: 100%; justify-content: flex-start; }
  #scrapedFeed .sf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  #scrapedFeed { padding: 16px !important; }
  #scrapedFeed .sf-actions { gap: 7px; }
  #scrapedFeed .sf-updated { width: 100%; }
  #scrapedFeed .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #scrapedFeed .sf-btn { padding: 0 10px; font-size: 12px; }
}

/* Super admin user-to-user message review */
.um-shell { display: grid; gap: 18px; }
.um-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: #2c1c12; }
.um-heading h1 { margin: 4px 0; font-size: 24px; }
.um-heading p { margin: 0; color: #9ca8bb; }
.um-kicker { color: #ff7e25; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.um-count, .um-readonly { white-space: nowrap; color: #cbd5e1; background: #202a3d; border: 1px solid #344156; border-radius: 999px; padding: 7px 11px; font-size: 12px; font-weight: 700; }
.um-privacy { display: flex; align-items: flex-start; gap: 10px; padding: 12px 15px; border: 1px solid rgba(255,94,27,.28); border-radius: 10px; background: rgba(94,47,28,.4); color: #ffc7af; font-size: 13px; }
.um-privacy svg { width: 18px; height: 18px; flex: 0 0 auto; }
.um-error { padding: 12px 15px; border-radius: 9px; border: 1px solid #ef444466; background: #7f1d1d55; color: #fecaca; }
.um-search { display: grid; gap: 7px; padding: 16px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: #2c1c12; }
.um-search label { color: #cbd5e1; font-size: 13px; font-weight: 700; }
.um-search > div { display: flex; gap: 8px; }
.um-search input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid #344156; border-radius: 8px; background: #21130b; color: #fcf9f8; }
.um-layout { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.4fr); gap: 16px; align-items: start; }
.um-conversation-panel, .um-detail-panel { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: #281910; }
.um-panel-title { display: flex; justify-content: space-between; padding: 15px 16px; color: #fcf9f8; border-bottom: 1px solid rgba(255,255,255,.09); font-weight: 800; }
.um-panel-title span { color: #94a3b8; font-size: 12px; font-weight: 600; }
.um-conversation { display: block; padding: 13px 15px; color: inherit; border-bottom: 1px solid rgba(255,255,255,.07); text-decoration: none; }
.um-conversation:hover, .um-conversation.is-selected { background: #3e271c; color: #fff; }
.um-people { display: flex; gap: 8px; align-items: center; min-width: 0; font-size: 13px; }
.um-people strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-people span, .um-detail-head h2 span { color: #ff7e25; }
.um-conversation p { overflow: hidden; margin: 8px 0; color: #9ca8bb; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.um-meta { display: flex; justify-content: space-between; gap: 8px; color: #778399; font-size: 11px; }
.um-meta time, .um-message-meta time { font-variant-numeric: tabular-nums; }
.um-pagination { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; color: #9ca8bb; font-size: 12px; }
.um-pagination a { color: #ff9348; text-decoration: none; }
.um-empty { padding: 24px 16px; color: #9ca8bb; text-align: center; }
.um-detail-empty { display: grid; justify-items: center; align-content: center; min-height: 320px; padding: 24px; text-align: center; }
.um-detail-empty h2 { margin: 12px 0 5px; color: #fcf9f8; font-size: 18px; }
.um-detail-empty p { max-width: 320px; margin: 0; color: #9ca8bb; font-size: 13px; }
.um-detail-icon { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 16px; background: rgba(255, 123, 31,.14); color: #ff7e25; }
.um-detail-icon svg { width: 25px; height: 25px; }
.um-detail-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 17px 19px; border-bottom: 1px solid rgba(255,255,255,.09); }
.um-detail-head h2 { margin: 4px 0 0; color: #fcf9f8; font-size: 16px; overflow-wrap: anywhere; }
.um-readonly { color: #86efac; background: rgba(22,101,52,.2); border-color: rgba(74,222,128,.25); }
.um-message-list { display: grid; gap: 12px; max-height: 650px; overflow: auto; padding: 18px; }
.um-message { max-width: 90%; padding: 12px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: #362217; }
.um-message.from-first { justify-self: start; border-top-left-radius: 4px; }
.um-message.from-second { justify-self: end; border-top-right-radius: 4px; background: #202b40; }
.um-message-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #ff7e25; font-size: 11px; }
.um-message-meta time { color: #8290a5; }
.um-message p { margin: 8px 0 0; color: #e5e7eb; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.um-attachment { display: flex; align-items: center; gap: 6px; margin-top: 9px; color: #ff672c; font-size: 12px; overflow-wrap: anywhere; }
.um-attachment svg { width: 14px; height: 14px; flex: 0 0 auto; }
.um-limit-note { padding: 0 18px 14px; color: #8290a5; font-size: 11px; }
@media (max-width: 900px) { .um-layout { grid-template-columns: 1fr; } .um-conversation-panel { max-height: 420px; overflow: auto; } }
@media (max-width: 600px) { .um-heading { align-items: flex-start; flex-direction: column; padding: 17px; } .um-search > div { flex-wrap: wrap; } .um-search input { flex-basis: 100%; } .um-message { max-width: 100%; } }
.admin-permissions-picker { max-height: 42vh; overflow-y: auto; margin: 18px 0; padding: 14px; border: 1px solid var(--border-color); border-radius: 10px; background: rgba(43,25,14,.72); }
.admin-permissions-title { display: grid; gap: 4px; margin-bottom: 12px; }
.admin-permissions-title small { color: var(--muted-text-color); }
.admin-permission-group { min-width: 0; margin: 0 0 10px; padding: 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; }
.admin-permission-group legend { padding: 0 6px; color: #ff9348; font-size: 12px; font-weight: 800; }
.admin-permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.admin-permission-option { display: flex; gap: 8px; align-items: flex-start; min-width: 0; padding: 6px; border-radius: 6px; color: #dcbbab; font-size: 12px; cursor: pointer; }
.admin-permission-option:hover { background: rgba(255,255,255,.05); }
.admin-permission-option input { flex: 0 0 auto; margin-top: 2px; accent-color: #ff7e25; }
@media (max-width: 640px) { .admin-permission-grid { grid-template-columns: 1fr; } }
#scrapedFeed .sf-title { color: #fcf9f8; font-size: 13px; font-weight: 700; min-height: 2.6em; }
#scrapedFeed .sf-price { color: #4ade80; font-size: 16px; font-weight: 800; }
#scrapedFeed .sf-seller-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
#scrapedFeed .sf-pill { display: inline-flex; align-items: center; max-width: 100%; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
#scrapedFeed .sf-seller { color: #e2e8f0; background: rgba(148, 163, 184, 0.16); overflow: hidden; text-overflow: ellipsis; }
#scrapedFeed .sf-sales {
  flex: 0 0 auto;
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
}
#scrapedFeed .sf-age {
  flex: 0 0 auto;
  background: rgba(255, 57, 15, 0.16);
  color: #ff4c25;
}
@media (max-width: 1500px) {
  #scrapedFeed .sf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  #scrapedFeed .sf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  #scrapedFeed .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}



.admin-permission-option.is-sensitive { color: #fecaca; border: 1px solid rgba(248,113,113,.4); background: rgba(127,29,29,.16); }
