/* Bu dosya SADECE token kullanır (var(--...)). Sabit renk yazma! */

/* --- Bootstrap'i token'lara bağla: Bootstrap bileşenleri de temayı izler --- */
:root, [data-bs-theme] {
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-body-font-family: var(--font-body);
  --bs-secondary-color: var(--text-muted);
  --bs-emphasis-color: var(--text);
  --bs-border-color: var(--border);
  --bs-secondary-bg: var(--surface-2);
  --bs-tertiary-bg: var(--surface-2);
  --bs-link-color: var(--accent);
  --bs-link-hover-color: var(--accent-hover);
  --bs-link-color-rgb: var(--accent-rgb, 124, 92, 255);
  --bs-border-radius: var(--radius-sm);
  --bs-form-control-bg: var(--surface-2);
}
body { background: var(--bg); color: var(--text); font-family: var(--font-body); }
code { color: var(--accent); }

.btn { border-radius: var(--radius-sm); transition: var(--transition); }
.btn-primary {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-color: var(--accent-contrast);
  --bs-btn-hover-bg: var(--accent-hover);
  --bs-btn-hover-border-color: var(--accent-hover);
  --bs-btn-hover-color: var(--accent-contrast);
  --bs-btn-active-bg: var(--accent-hover);
  --bs-btn-active-border-color: var(--accent-hover);
  --bs-btn-active-color: var(--accent-contrast);
  --bs-btn-focus-shadow-rgb: var(--accent-rgb);
}
.form-control, .form-select {
  background-color: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}
.form-control:focus, .form-select:focus {
  background-color: var(--surface-2);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--accent) 25%, transparent);
}

/* --- Yerleşim (layout) --- */
.app-shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1.25rem 1rem;
  display: flex; flex-direction: column; gap: 1rem;
  position: sticky; top: 0; height: 100vh;
}
.app-main { padding: 2rem; min-width: 0; }
@media (max-width: 768px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .app-main { padding: 1.25rem; }
}

.brand { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.35rem; font-weight: var(--heading-weight, 700);
  letter-spacing: var(--heading-tracking, .02em); text-decoration: none; color: var(--text); }
.brand .brand-logo { width: 34px; height: 34px; flex-shrink: 0; border-radius: 4px; }
.brand .accent { color: var(--accent); text-shadow: var(--glow-text); }

.nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.nav-item a, .nav-item span.disabled {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .75rem; border-radius: var(--radius-sm);
  color: var(--text-muted); text-decoration: none; transition: var(--transition);
}
.nav-item a:hover { background: var(--surface-2); color: var(--text); }
.nav-item a.active { background: var(--surface-2); color: var(--accent); text-shadow: var(--glow-text); box-shadow: inset 3px 0 0 var(--accent-2); }
.nav-item span.disabled { opacity: .45; cursor: not-allowed; }
.nav-item .soon { margin-left: auto; font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; }

/* --- Sayfa başlığı --- */
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.page-title { font-size: 1.6rem; font-weight: var(--heading-weight, 700); letter-spacing: var(--heading-tracking, normal); margin: 0; text-shadow: var(--glow-text); }
.page-subtitle { margin: .25rem 0 0; color: var(--text-muted); }

/* --- Kart --- */
.card {
  --bs-card-bg: var(--surface);
  --bs-card-border-color: var(--border);
  --bs-card-border-radius: var(--radius);
  --bs-card-color: var(--text);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--card-hover-shadow); border-color: var(--accent); }

/* --- Durum rozeti --- */
.status { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--text-muted); }
.status-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--text-muted); }
.status-running  .status-dot { background: var(--success); box-shadow: 0 0 8px var(--success); }
.status-starting .status-dot { background: var(--warning); }
.status-crashed  .status-dot { background: var(--danger); }
.status-running  { color: var(--success); }
.status-crashed  { color: var(--danger); }

/* --- Boş durum --- */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.empty-state i { font-size: 2.5rem; color: var(--accent); display: block; margin-bottom: .75rem; text-shadow: var(--glow-text); }

/* --- Konsol (Faz 1'de kullanılacak) --- */
.console {
  background: var(--console-bg, var(--bg));
  color: var(--console-text, var(--text));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: .85rem;
  padding: .75rem 1rem; height: 420px; overflow-y: auto; white-space: pre-wrap;
}

/* --- Durum: durduruluyor --- */
.status-stopping .status-dot { background: var(--warning); }

/* --- Konsol satır renkleri --- */
.console > div { min-height: 1.2em; }
.console .log-warn  { color: var(--warning); }
.console .log-error { color: var(--danger); }
.console .log-cmd   { color: var(--accent); }
.console .log-panel { color: var(--text-muted); font-style: italic; }

/* --- Hover efekti istemeyen kartlar (formlar vb.) --- */
.card.static:hover { box-shadow: var(--card-shadow); border-color: var(--border); }

/* --- Durum: hazırlanıyor --- */
.status-preparing .status-dot { background: var(--warning); animation: vulu-pulse 1s ease-in-out infinite; }
@keyframes vulu-pulse { 50% { opacity: .35; } }

/* --- İlerleme çubuğu --- */
.progress-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .8rem 1rem;
  margin-bottom: .75rem;
}
.progress-title { font-weight: 600; }
.progress-percent { font-family: var(--font-mono); color: var(--accent); text-shadow: var(--glow-text); }
.progress {
  --bs-progress-bg: var(--surface-2);
  --bs-progress-bar-bg: var(--accent);
  --bs-progress-border-radius: var(--radius-sm);
  height: .6rem;
}
.progress-bar { transition: width .2s ease; box-shadow: var(--progress-glow, none); }
.progress-panel[data-state="done"]  .progress-bar { background: var(--success); }
.progress-panel[data-state="error"] .progress-bar { background: var(--danger); }
.progress-panel[data-state="error"] .progress-message { color: var(--danger) !important; }

/* --- Java durum kutusu (yeni sunucu formu) --- */
.java-status {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  padding: .65rem .85rem;
}
.java-status[data-kind="ok"]    { border-left-color: var(--success); }
.java-status[data-kind="warn"]  { border-left-color: var(--warning); }
.java-status[data-kind="error"] { border-left-color: var(--danger); }
.java-status[data-kind="muted"] { border-left-color: var(--border); }

/* --- İzleme kutucukları ve grafikler --- */
.stat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .65rem .9rem; height: 100%; }
.stat-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.stat-value { font-size: 1.35rem; font-weight: 700; font-family: var(--font-mono); text-shadow: var(--glow-text); }
.stat-sub { font-size: .75rem; color: var(--text-muted); min-height: 1em; overflow-wrap: anywhere; }
.stat-value[data-level="ok"]   { color: var(--success); }
.stat-value[data-level="warn"] { color: var(--warning); }
.stat-value[data-level="bad"]  { color: var(--danger); }
.chart-box { position: relative; height: 180px; }

/* --- Mod tarayıcı --- */
.mod-icon { width: 48px; height: 48px; flex: none; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-2); }
.mod-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mods-table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--border); }

/* --- Dosya yöneticisi --- */
.file-editor { min-height: 420px; resize: vertical; font-size: .85rem; background: var(--console-bg, var(--bg)); color: var(--text); }
.file-editor:focus { box-shadow: none; }
.breadcrumb { --bs-breadcrumb-divider-color: var(--text-muted); --bs-breadcrumb-item-active-color: var(--text); }

/* --- Açılır pencere (modal) --- */
body.vmodal-open { overflow: hidden; }
.vmodal-backdrop {
  position: fixed; inset: 0; z-index: 1050; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .6); backdrop-filter: blur(2px); padding: 2vh 2vw;
}
.vmodal {
  width: min(1200px, 96vw); height: min(90vh, 1000px); display: flex; flex-direction: column;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5), var(--card-hover-shadow); overflow: hidden;
}
.vmodal-md { width: min(880px, 96vw); }
.vmodal-sm { width: min(640px, 96vw); height: auto; max-height: 90vh; }
.vmodal-head {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .6rem .9rem; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.vmodal-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: var(--glow-text); }
.vmodal-tools { display: flex; gap: .4rem; flex: none; align-items: center; }
.vmodal-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; }
.vmodal-frame { flex: 1; width: 100%; border: 0; background: var(--bg); }

/* --- Gömülü (pencere içi) sayfa --- */
body.embed .app-main { padding: 1.25rem 1.5rem; }
body.embed .page-header .page-title, body.embed .page-header .page-subtitle, body.embed .back-link { display: none; }
body.embed .page-header { margin-bottom: .75rem; }

/* --- Dosya düzenleyici penceresi --- */
.vmodal .file-editor { flex: 1; min-height: 0; height: 100%; resize: none; border: 0; border-radius: 0; padding: 1rem;
  font-family: var(--font-mono); font-size: .86rem; line-height: 1.5; tab-size: 4; white-space: pre; overflow: auto; }
.editor-status { font-size: .75rem; color: var(--text-muted); }
/* pencere içindeki sayfada açılan pencere (ör. dosya düzenleyici) tüm alanı kaplasın */
body.embed .vmodal-backdrop { padding: 0; background: var(--bg); backdrop-filter: none; }
body.embed .vmodal { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
/* pencere içinde dar formlar ortalansın */
.crash-card .crash-item { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: .4rem; margin-top: .4rem; }
body.embed #players-root { max-width: 1000px; margin: 0 auto; }
.player-head { width: 24px; height: 24px; border-radius: 4px; image-rendering: pixelated; background: var(--surface-2); }
.playit-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .55rem .8rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.playit-strip[hidden] { display: none; }
.playit-addr { font-family: var(--bs-font-monospace, monospace); font-weight: 600; user-select: all; }
.auth-main { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.auth-card { width: min(420px, 100%); }
.auth-card .brand { font-size: 1.6rem; font-weight: 700; text-decoration: none; color: var(--text); }
.sidebar-update { display: flex; align-items: center; gap: .45rem; margin: 0 0 .5rem; padding: .45rem .6rem;
  border: 1px solid var(--accent); border-radius: var(--radius); color: var(--accent); font-size: .85rem; text-decoration: none; }
.sidebar-update:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.sidebar-user { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 0;
  padding: .45rem .6rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .875rem; }
.wizard { max-width: 860px; margin: 0 auto; }
.wizard-lead { font-weight: 600; font-size: 1.05rem; margin: .25rem 0 1rem; }
.wizard-back { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .75rem; font-size: .875rem;
  color: var(--text-muted); text-decoration: none; }
.wizard-back:hover { color: var(--accent); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.choice-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition); }
.choice-card:hover, .choice-card:focus-visible { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--card-hover-shadow); color: var(--text); }
.choice-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-sm);
  background: rgba(var(--accent-rgb), .14); color: var(--accent); font-size: 1.35rem; }
.choice-title { font-weight: 700; font-size: 1.1rem; }
.choice-text { color: var(--text-muted); font-size: .875rem; line-height: 1.45; }
.choice-meta { margin-top: auto; font-size: .75rem; color: var(--text-muted); }
.nf { max-width: 760px; }
.nf-steps { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0 0 1rem; }
.nf-steps li { display: flex; align-items: center; gap: .5rem; padding: .4rem .75rem; border-radius: 999px; font-size: .85rem;
  color: var(--text-muted); border: 1px solid var(--border); cursor: pointer; }
.nf-steps li span { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; font-size: .75rem;
  background: var(--surface-2); }
.nf-steps li.active { color: var(--text); border-color: var(--accent); }
.nf-steps li.active span { background: var(--accent); color: var(--accent-contrast); }
.nf[data-step="1"] .nf-step[data-step="2"], .nf[data-step="2"] .nf-step[data-step="1"],
.nf[data-step="1"] .nf-only-2, .nf[data-step="2"] .nf-only-1 { display: none !important; }
.loader-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: .6rem; }
.loader-card { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; text-align: left; padding: .75rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text);
  transition: border-color var(--transition), background var(--transition); }
.loader-card i { font-size: 1.2rem; color: var(--text-muted); }
.loader-card .lc-name { font-weight: 600; }
.loader-card .lc-text { font-size: .75rem; color: var(--text-muted); line-height: 1.35; }
.loader-card:hover { border-color: rgba(var(--accent-rgb), .6); }
.loader-card.active { border-color: var(--accent); background: rgba(var(--accent-rgb), .1); }
.loader-card.active i { color: var(--accent); }
.nf-summary { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; margin-bottom: 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.nf-summary > i { font-size: 1.4rem; color: var(--accent); }
.ram-value { font-weight: 600; }
.nf-advanced { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: .75rem; }
.nf-advanced summary { cursor: pointer; font-weight: 500; }
.nf-footer { display: flex; align-items: center; gap: .5rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.form-range::-webkit-slider-thumb { background: var(--accent); }
.form-range::-moz-range-thumb { background: var(--accent); }
.form-range:focus::-webkit-slider-thumb { box-shadow: 0 0 0 .25rem rgba(var(--accent-rgb), .25); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-check-input:focus { border-color: var(--accent); box-shadow: 0 0 0 .25rem rgba(var(--accent-rgb), .25); }
.page-wrap { max-width: 1280px; margin: 0 auto; }
/* Dar içerikli sayfalarda başlık da içerikle aynı hizada dursun */
.page-wrap:has(#new-root), .page-wrap:has(#settings-root) { max-width: 760px; }
.page-wrap:has(#props-root) { max-width: 900px; }
/* Genişliği sınırlı kartlar ve formlar sayfada ortalansın */
.app-main [style*="max-width"], .nf { margin-left: auto; margin-right: auto; }
.min-w-0 { min-width: 0; }
.backup-stats { display: flex; gap: 1.5rem; padding: .6rem .8rem; border-radius: var(--radius-sm); background: var(--surface-2); }
.backup-stats .bs-value { font-size: 1.25rem; font-weight: 700; margin-right: .3rem; }
.backup-stats .bs-label { font-size: .8rem; color: var(--text-muted); }
.icon-pick { display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.icon-pick-btn { position: relative; width: 72px; height: 72px; padding: 3px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden; }
.icon-pick-btn img { width: 64px; height: 64px; image-rendering: pixelated; display: block; border-radius: 2px; }
.icon-pick-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55);
  color: #fff; font-size: 1.3rem; opacity: 0; transition: opacity var(--transition); }
.icon-pick-btn:hover .icon-pick-overlay, .icon-pick-btn:focus-visible .icon-pick-overlay { opacity: 1; }
.icon-pick-btn:hover { border-color: var(--accent); }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .9rem; }
.theme-card { padding: 0; border: 2px solid var(--border); border-radius: var(--radius); background: var(--surface-2);
  color: var(--text); overflow: hidden; text-align: left; transition: border-color var(--transition), transform var(--transition); }
.theme-card:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), .6); }
.theme-card.active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .2); }
.theme-name { padding: .5rem .7rem; font-weight: 600; font-size: .9rem; display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.theme-default { font-size: .7rem; font-weight: 500; color: var(--text-muted); }
/* önizleme: kendi data-theme değişkenleriyle boyanır */
.theme-preview { display: flex; height: 92px; background: var(--bg); }
.theme-preview .tp-side { width: 26%; background: var(--surface); border-right: 1px solid var(--border); padding: 8px 6px; display: flex; flex-direction: column; gap: 5px; }
.theme-preview .tp-side span { height: 6px; border-radius: 2px; background: var(--surface-2); }
.theme-preview .tp-side span.on { background: var(--accent); opacity: .85; }
.theme-preview .tp-main { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.theme-preview .tp-title { width: 45%; height: 7px; border-radius: 2px; background: var(--text); opacity: .85; }
.theme-preview .tp-card { flex: 1; border: 1px solid var(--border); border-radius: calc(var(--radius-sm) / 1.5); background: var(--surface);
  padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.theme-preview .tp-card i { width: 12px; height: 12px; border-radius: 3px; background: var(--accent-2, var(--accent)); }
.theme-preview .tp-card b { height: 4px; width: 80%; border-radius: 2px; background: var(--text-muted); opacity: .6; }
.theme-preview .tp-card b.short { width: 50%; }
.theme-preview .tp-btn { align-self: flex-end; width: 38%; height: 12px; border-radius: calc(var(--radius-sm) / 1.5); background: var(--accent); box-shadow: var(--progress-glow, none); }
/* Bootstrap durum renkleri de temayı izlesin */
.btn-outline-warning, .btn-outline-danger, .btn-outline-success {
  --bs-btn-color: var(--st); --bs-btn-border-color: var(--st); --bs-btn-hover-bg: var(--st); --bs-btn-hover-border-color: var(--st);
  --bs-btn-hover-color: var(--bg); --bs-btn-active-bg: var(--st); --bs-btn-active-border-color: var(--st); --bs-btn-active-color: var(--bg);
  --bs-btn-disabled-color: var(--st); --bs-btn-disabled-border-color: var(--st); }
.btn-outline-warning { --st: var(--warning); }
.btn-outline-danger { --st: var(--danger); }
.btn-outline-success { --st: var(--success); }
.text-bg-success { background-color: var(--success) !important; color: var(--bg) !important; }
.text-bg-warning { background-color: var(--warning) !important; color: var(--bg) !important; }
.text-bg-danger { background-color: var(--danger) !important; color: #fff !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
body.embed #new-root { max-width: 760px; margin: 0 auto; }
body.embed #settings-root { max-width: 760px; margin: 0 auto; }
body.embed #props-root { max-width: 900px; margin: 0 auto; }
body.embed #backups-root { max-width: 1000px; margin: 0 auto; }
body.embed #settings-root > *, body.embed #props-root > *, body.embed #backups-root > * { margin-left: auto; margin-right: auto; }

/* --- Bildirim (toast) --- */
.vtoast-box { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1100; display: flex; flex-direction: column; gap: .5rem; max-width: min(420px, 92vw); }
.vtoast {
  display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .9rem; border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-left: 4px solid var(--success);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .45); font-size: .9rem; animation: vtoast-in .2s ease-out; transition: opacity .3s, transform .3s;
}
.vtoast i { color: var(--success); margin-top: .1rem; }
.vtoast-danger { border-left-color: var(--danger); }
.vtoast-danger i { color: var(--danger); }
.vtoast.out { opacity: 0; transform: translateY(8px); }
@keyframes vtoast-in { from { opacity: 0; transform: translateY(8px); } }

/* --- Sunucu simgesi --- */
.server-icon {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; color: var(--accent);
}
.server-icon > i { font-size: 50%; }
.server-icon.has-img > i { display: none; }
.server-icon > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.server-icon-preview { width: 64px; height: 64px; border-radius: var(--radius-sm); border: 2px dashed var(--accent); image-rendering: pixelated; }
.min-w-0 { min-width: 0; }
body.embed #sched-root { max-width: 1000px; margin: 0 auto; }

/* --- Sayfa başlığı: taşmasın --- */
.page-header { align-items: center; flex-wrap: wrap; }
.page-heading { display: flex; align-items: center; gap: 1rem; min-width: 0; flex: 1 1 260px; }
.page-subtitle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.page-actions { flex: none; }
.server-icon > i { font-size: 1em; }

/* --- Güç düğmeleri --- */
.power-group { display: flex; gap: .5rem; flex-wrap: nowrap; }
@media (max-width: 1400px) { .power-group .label { display: none; } }   /* dar ekranda yalnız simge */

/* --- Sunucu araçları sekme çubuğu --- */
.instance-tabs {
  display: flex; gap: .35rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin;
  margin: -0.5rem 0 1.25rem; padding: .35rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.instance-tabs a {
  display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; flex: none;
  padding: .45rem .85rem; border-radius: var(--radius-sm); color: var(--text-muted); text-decoration: none;
  transition: var(--transition); font-size: .92rem;
}
.instance-tabs a:hover, .instance-tabs a:focus-visible { background: var(--surface-2); color: var(--accent); text-shadow: var(--glow-text); }

/* --- Sistem sayfası --- */
.disk-bar { display: flex; height: .9rem; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.disk-bar > span { display: block; height: 100%; min-width: 0; }
.legend-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; vertical-align: middle; }

.auth-lang { display: flex; justify-content: center; gap: .9rem; padding: 0 0 1rem; font-size: .85rem; }

.up-notes { max-height: 220px; overflow: auto; white-space: pre-wrap; padding: .5rem .65rem; border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-muted); font-size: .8rem; }
.vp-card { overflow: hidden; }
.vp-cover { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block; border-bottom: 1px solid var(--border); }
