/* Hostlariz uygulama stilleri. Renkler ve fontlar theme.css'teki NeoUI değişkenlerinden gelir. */

/* Öğe varsayılanları NeoUI ile aynı katmanda: bileşenlerin yardımcı sınıfları bunları ezer. */
@layer base {
  * { box-sizing: border-box; }
  html, body { margin: 0; }
  body { background: var(--background); color: var(--foreground); font: 14px/1.5 var(--font-sans); -webkit-font-smoothing: antialiased; }
  a { color: inherit; text-decoration: none; }
  a:where(:not([class])), a:where(.link) { color: var(--primary); }
  a:hover { text-decoration: underline; text-underline-offset: 3px; }
  h1, h2, h3 { font-family: var(--font-heading); letter-spacing: -.025em; }
  h1 { font-size: 1.875rem; line-height: 1.1; font-weight: 500; margin: 0 0 .5rem; }
  h2 { font-size: 1.05rem; line-height: 1.3; font-weight: 500; margin: 0 0 .75rem; }
  h3 { font-size: .95rem; font-weight: 500; margin: 1.5rem 0 .5rem; }
  p { margin: 0 0 .75rem; }
  ul, ol { padding-left: 1.25rem; }
  code, .mono { font-family: var(--font-mono); font-size: .85em; }
  :focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
  h1:focus, h1:focus-visible { outline: none; }
  label { display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; font-weight: 500; color: var(--foreground); }
  label.check { flex-direction: row; align-items: center; gap: .5rem; font-weight: 400; }
  input, select, textarea { background: var(--background); color: var(--foreground); border: 1px solid var(--input); border-radius: calc(var(--radius) - 2px); padding: .5rem .7rem; font: inherit; font-size: .95rem; width: 100%; min-height: 2.35rem; transition: border-color .12s, box-shadow .12s; }
  :root.dark input, :root.dark select, :root.dark textarea { background: color-mix(in oklab, var(--input) 30%, transparent); }
  input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--primary); }
  input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 25%, transparent); }
  input:disabled, select:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; }
  input.narrow { width: 70px; }
  input[readonly] { opacity: .75; cursor: default; }
  textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; resize: vertical; }
}
.muted { color: var(--muted-foreground); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.page { padding: 2rem 16px; }

/* Site */
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--border); background: color-mix(in oklab, var(--background) 88%, transparent); backdrop-filter: blur(8px); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--foreground); font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; flex: none; border-radius: 8px; }
.brand-tag { font-family: var(--font-sans); font-size: .75rem; font-weight: 600; color: var(--secondary-foreground); background: var(--secondary); border-radius: 999px; padding: .1rem .55rem; }
.site-nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.site-nav .nav-link { color: var(--muted-foreground); font-weight: 500; padding: .4rem .7rem; border-radius: calc(var(--radius) - 2px); }
.site-nav .nav-link:hover { color: var(--foreground); background: var(--muted); text-decoration: none; }
.site-nav .nav-link.active { color: var(--foreground); }
.site-footer { border-top: 1px solid var(--border); color: var(--muted-foreground); padding: 2rem 0; margin-top: 4rem; font-size: .9rem; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.theme-toggle { background: none; border: 1px solid var(--border); color: var(--muted-foreground); border-radius: calc(var(--radius) - 2px); width: 36px; height: 36px; display: inline-grid; place-items: center; cursor: pointer; }
.theme-toggle:hover { color: var(--foreground); background: var(--muted); }
.theme-toggle .when-dark { display: none; }
:root.dark .theme-toggle .when-dark { display: block; }
:root.dark .theme-toggle .when-light { display: none; }

/* Ana sayfa */
.hero { padding: 4.5rem 0 3.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); line-height: 1.02; font-weight: 700; letter-spacing: -.02em; max-width: 14ch; }
.lead { font-size: 1.15rem; color: var(--muted-foreground); max-width: 34rem; }
.hero-actions { display: flex; gap: .75rem; margin-top: 1.75rem; flex-wrap: wrap; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } .hero { padding-top: 2.5rem; } }

/* Bağlantı şeridi: sunucuya bağlanma satırı (ana sayfa ve sunucu sayfası). */
.connect-strip { background: var(--brand); color: #fff; border-radius: calc(var(--radius) + 6px); padding: 1.25rem 1.25rem 1rem; box-shadow: 0 18px 40px -18px color-mix(in oklab, var(--brand) 70%, transparent); }
.connect-strip .cs-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .9rem; opacity: .9; margin-bottom: .75rem; }
.connect-strip .cs-line { display: flex; align-items: center; gap: .75rem; background: rgba(0,0,0,.22); border-radius: var(--radius); padding: .7rem .75rem .7rem 1rem; font-family: var(--font-mono); font-size: clamp(.9rem, 2.2vw, 1.05rem); }
.connect-strip .cs-line code { font-size: inherit; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connect-strip .cs-cmd { opacity: .65; }
.connect-strip .cs-copy { flex: none; background: #fff; color: var(--brand); border: 0; border-radius: calc(var(--radius) - 2px); font: 600 .85rem var(--font-sans); padding: .4rem .75rem; cursor: pointer; }
.connect-strip .cs-copy:hover { background: #E8EFFE; }
.connect-strip .cs-meta { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: .85rem; font-size: .9rem; }
.connect-strip .cs-meta b { font-weight: 600; }
.live-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: #3BE59A; box-shadow: 0 0 0 3px rgba(59,229,154,.25); margin-right: .4rem; vertical-align: middle; }
.connect-strip .cs-players { height: 6px; border-radius: 99px; background: rgba(255,255,255,.2); overflow: hidden; margin-top: .9rem; }
.connect-strip .cs-players span { display: block; height: 100%; background: #fff; border-radius: inherit; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 1rem auto 4rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.feature h3 { margin: 0 0 .35rem; font-size: 1.15rem; }
.feature p { color: var(--muted-foreground); margin: 0; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; gap: 1.25rem; } }
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.game-card-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; }
.game-card.muted { opacity: .75; }
.auth-box { max-width: 420px; padding: 4rem 16px; }

/* Yüzeyler: NeoUI Card ile aynı görünüm (henüz bileşene geçmemiş eski işaretlemeler için). */
.card, .feature-card, .game-card, .stat, .empty-state { background: var(--card); color: var(--card-foreground); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: 1.25rem; box-shadow: 0 1px 2px rgba(10,20,51,.04); }

/* NeoUI Card'ın flex/gap/py düzenini eski içerik için düz akışa çevir. */
.card { display: block; }
.stat { display: flex; flex-direction: column; gap: .25rem; }
.brand-sidebar { padding: .5rem .5rem 0; }

/* Formlar: NeoUI Input ile aynı görünüm (statik SSR formları düz input kullanır). */
.label { font-size: .9rem; font-weight: 500; margin-bottom: .35rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
.inline-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; min-width: 140px; }
.actions { display: flex; gap: .5rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }
form.inline { display: inline; margin: 0; }
.validation-message { color: var(--destructive); font-size: .85rem; font-weight: 400; }

/* Düğmeler: NeoUI Button ile aynı görünüm (statik formlar ve eski işaretleme için). */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid transparent; border-radius: calc(var(--radius) - 2px); height: 2.25rem; padding: 0 1rem; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap; color: var(--secondary-foreground); background: var(--secondary); transition: background .12s, color .12s, border-color .12s; }
.btn:hover { text-decoration: none; background: color-mix(in oklab, var(--secondary) 80%, var(--primary) 20%); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: var(--brand-strong); }
:root.dark .btn-primary:hover { background: color-mix(in oklab, var(--primary) 85%, white); }
.btn-ghost { background: var(--background); border-color: var(--border); color: var(--foreground); }
.btn-ghost:hover { background: var(--muted); }
.btn-danger { background: transparent; border-color: color-mix(in oklab, var(--destructive) 45%, transparent); color: var(--destructive); }
.btn-danger:hover { background: color-mix(in oklab, var(--destructive) 10%, transparent); }
.btn-sm { height: 2rem; padding: 0 .7rem; font-size: .85rem; }
.btn-lg { height: 2.75rem; padding: 0 1.4rem; font-size: 1rem; }
.btn-block { width: 100%; }
.link-button { background: none; border: none; color: var(--primary); cursor: pointer; font: inherit; padding: 0; }
.link-button:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Yönetim ve panel kabuğu (NeoUI Sidebar) */
.app-main { padding: 1.5rem; min-width: 0; width: 100%; max-width: 1536px; }
.app-topbar { display: flex; align-items: center; gap: .5rem; height: 48px; padding: 0 1.5rem 0 1rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; background: color-mix(in oklab, var(--background) 70%, transparent); backdrop-filter: blur(12px); }
.app-topbar .spacer { flex: 1; }
.topbar-sep { width: 1px; height: 1rem; background: var(--border); margin: 0 .25rem; }
.topbar-title { font-size: .875rem; font-weight: 500; }
.topbar-link { display: inline-flex; align-items: center; gap: .3rem; font-size: .8125rem; color: var(--muted-foreground); padding: .3rem .55rem; border-radius: calc(var(--radius) - 2px); }
.topbar-link:hover { color: var(--foreground); background: var(--accent); text-decoration: none; }
.app-topbar .theme-toggle { width: 32px; height: 32px; }
/* Yan menü: marka satırı ve alttaki kullanıcı bloğu */
.sb-brand { display: flex; align-items: center; gap: .55rem; padding: .4rem .5rem; border-radius: calc(var(--radius) - 2px); font-weight: 600; font-size: 1rem; color: var(--sidebar-foreground); }
.sb-brand:hover { background: var(--sidebar-accent); text-decoration: none; }
.sb-brand img { border-radius: 6px; }
.sb-user { display: flex; align-items: center; gap: .6rem; padding: .4rem .5rem; border-radius: calc(var(--radius) - 2px); }
.sb-avatar { flex: none; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--sidebar-accent); color: var(--sidebar-accent-foreground); font-weight: 600; font-size: .85rem; }
.sb-user-text { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.sb-user-name { font-size: .875rem; font-weight: 500; }
.sb-user-mail { font-size: .75rem; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: calc(var(--radius) - 2px); background: none; border: 0; color: var(--muted-foreground); cursor: pointer; }
.icon-btn:hover { background: var(--accent); color: var(--foreground); }
.admin-main { padding: 2rem; min-width: 0; }
.app-main .card, .app-main .empty-state, .app-main .empty-panel, .app-main .table, .app-main .stat-row, .admin-main .card, .admin-main .empty-state, .admin-main .table, .admin-main .stat-row { margin-bottom: 1.25rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.page-head select { width: auto; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.card-head h2 { margin: 0; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); overflow: hidden; display: table; }
.card .table { background: transparent; }
.table th, .table td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { color: var(--muted-foreground); font-weight: 500; font-size: .85rem; background: var(--muted); }
.table tr:last-child td { border-bottom: none; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover, .table tr.selected { background: var(--muted); }
.nowrap { white-space: nowrap; }
.badge:not(.inline-flex) { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--muted); color: var(--muted-foreground); border: 1px solid var(--border); vertical-align: middle; }
.badge-published { color: var(--success); border-color: color-mix(in oklab, var(--success) 35%, transparent); background: color-mix(in oklab, var(--success) 10%, transparent); }
.badge-draft { color: var(--warning); border-color: color-mix(in oklab, var(--warning) 35%, transparent); background: color-mix(in oklab, var(--warning) 10%, transparent); }
.badge-revoked { color: var(--destructive); border-color: color-mix(in oklab, var(--destructive) 35%, transparent); background: color-mix(in oklab, var(--destructive) 10%, transparent); }
.alert { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid; }
.alert ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.alert-error { border-color: var(--destructive); background: color-mix(in oklab, var(--destructive) 10%, transparent); }
.alert-ok { border-color: var(--success); background: color-mix(in oklab, var(--success) 10%, transparent); }
.code { background: var(--muted); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem; overflow-x: auto; font-family: var(--font-mono); font-size: .82rem; white-space: pre; }
.upload { display: flex; align-items: center; gap: 1rem; margin-top: .75rem; flex-wrap: wrap; }
.upload input[type=file] { width: auto; }
.plain-list { list-style: none; padding: 0; margin: 0 0 .75rem; }
.plain-list li { padding: .25rem 0; }
.empty-state { color: var(--muted-foreground); }

@media (max-width: 800px) {
  .admin-main, .app-main { padding: 1.25rem 16px; }
  .table { display: block; overflow-x: auto; }
}

/* Müşteri paneli */
.server-card-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .25rem; }
.badge-state-running { color: var(--success); border-color: var(--success); }
.badge-state-starting, .badge-state-stopping, .badge-state-installing { color: var(--primary); border-color: var(--primary); }
.badge-state-offline { color: var(--muted-foreground); }
.page .card { margin-bottom: 1.25rem; }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin: 0 0 1.25rem; }
.tab { background: none; border: none; color: var(--muted-foreground); font: inherit; font-weight: 600; padding: .6rem 1rem; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--foreground); border-bottom-color: var(--primary); }
.alert-info { border-color: var(--primary); background: color-mix(in oklab, var(--primary) 8%, transparent); }
.catalog { display: grid; gap: .75rem; }
.catalog-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--muted); }
.catalog-item p { margin: .35rem 0 0; }
.catalog-title { font-weight: 600; margin-bottom: .3rem; }
label.invalid input, label.invalid select { border-color: var(--destructive); }
span.check { display: flex; align-items: center; gap: .5rem; color: var(--foreground); }

/* Anahtar (açık/kapalı) */
span.switch { display: flex; align-items: center; gap: .6rem; color: var(--foreground); cursor: pointer; position: relative; min-height: 1.5rem; }
span.switch input { position: absolute; opacity: 0; width: 2.4rem; height: 1.4rem; margin: 0; cursor: pointer; }
span.switch .slider { flex: none; width: 2.4rem; height: 1.4rem; border-radius: 999px; background: var(--muted); border: 1px solid var(--border); position: relative; transition: background .15s; }
span.switch .slider::after { content: ""; position: absolute; top: 2px; left: 2px; width: calc(1.4rem - 6px); height: calc(1.4rem - 6px); border-radius: 50%; background: var(--muted-foreground); transition: transform .15s, background .15s; }
span.switch input:checked + .slider { background: var(--primary); border-color: var(--primary); }
span.switch input:checked + .slider::after { transform: translateX(1rem); background: #fff; }
span.switch input:focus-visible + .slider { outline: 2px solid var(--primary); outline-offset: 2px; }
.input-row { display: flex; gap: .4rem; align-items: center; }
.input-row input { flex: 1; min-width: 0; }
.input-row .btn { flex: none; }
.lock { font-size: .8em; }

/* Konsol */
.console-card { padding: 0; overflow: hidden; }
.console { display: flex; flex-direction: column-reverse; height: 28rem; overflow-y: auto; background: #0a0c10; padding: .75rem 1rem; }
.console-lines { font: 13px/1.45 ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace; color: #cfd3dc; white-space: pre-wrap; overflow-wrap: anywhere; }
.console-line.install { color: var(--muted-foreground); }
.console-line.daemon { color: var(--primary); }
.console-line.error { color: var(--destructive); }
.console-status { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 1rem; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: .9rem; }
.console-input { display: flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-top: 1px solid var(--border); background: var(--card); }
.console-input input { font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace; }
.console-prompt { color: var(--primary); font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; }
@media (max-width: 640px) { .console { height: 20rem; } }

/* Yönetim: sunucular */
.actions .spacer { flex: 1; }
.actions-cell { white-space: nowrap; text-align: right; }
label.invalid textarea { border-color: var(--destructive); }

/* Dosya yöneticisi */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-family: var(--font-mono); font-size: .9rem; }
.breadcrumb span { color: var(--muted-foreground); }
.actions.tight { margin-top: 0; }
.table.files td { padding-top: .4rem; padding-bottom: .4rem; }
.check-col { width: 2rem; }
.selection-bar { margin-bottom: .75rem; }
.code-editor { width: 100%; min-height: 50vh; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; line-height: 1.45; tab-size: 4; white-space: pre; }
.path-title { font-size: 1rem; word-break: break-all; }
label.upload { position: relative; overflow: hidden; cursor: pointer; display: inline-flex; flex-direction: row; color: var(--foreground); }
label.upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.nowrap { white-space: nowrap; }

/* Yapılandırma */
.config-layout { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: 1rem; align-items: start; }
@media (max-width: 800px) { .config-layout { grid-template-columns: 1fr; } }
.config-list h3 { margin-top: .5rem; }
.config-list ul { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .25rem; }
.config-list .link-button { color: var(--foreground); text-align: left; }
.config-list .link-button.active { color: var(--primary); font-weight: 600; }
.config-list .link-button.missing { color: var(--muted-foreground); }
.cfg-table input { padding: .3rem .5rem; }
.cfg-table tr.managed td { opacity: .65; }
.small { font-size: .8rem; }
.say-form { margin-top: 1rem; }
.card.nested { background: var(--muted); margin-top: 1rem; }
.flag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem 1rem; margin-top: .75rem; }
.presets { margin-top: 1rem; }
.sftp-card summary { cursor: pointer; }
.sftp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem 1rem; margin-top: 1rem; }
.sftp-grid code { word-break: break-all; }

/* Faturalama */
.panel-nav { margin-bottom: 1.25rem; }
.panel-nav a.tab { color: var(--muted-foreground); }
.panel-nav a.tab.active, .panel-nav a.tab:hover { color: var(--foreground); text-decoration: none; }
.narrow-page { max-width: 760px; }
.plan-game { margin-top: 1.5rem; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.plan-card { padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; border-radius: calc(var(--radius) + 4px); }
.plan-card:hover { border-color: color-mix(in oklab, var(--primary) 45%, var(--border)); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.plan-card .badge { align-self: flex-start; }
.plan-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; }
.plan-price { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--primary); line-height: 1.1; }
.plan-price .muted { font-size: .9rem; font-weight: 400; }
.plan-specs { margin: 0 0 .5rem; flex: 1; }
.plan-specs li { display: flex; align-items: center; gap: .5rem; }
.plan-specs svg { color: var(--muted-foreground); }
.cycle-list { display: grid; gap: .5rem; margin-bottom: 1rem; }
label.cycle { display: flex; flex-direction: row; align-items: center; gap: .75rem; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
label.cycle.selected { border-color: var(--primary); background: var(--muted); }
label.cycle input { width: auto; margin: 0; }
.cycle-label { font-weight: 600; }
.cycle-price { margin-left: auto; font-weight: 700; }
.total { font-size: 1.05rem; }
.invoice-lines th { width: 40%; color: var(--muted-foreground); font-weight: 500; }
.invoice-lines .total-row th, .invoice-lines .total-row td { font-weight: 700; color: var(--foreground); }

/* Kartla ödeme ve fatura bilgileri */
.paytr-frame { width: 100%; min-height: 780px; border: 0; border-radius: 8px; background: #fff; }
.segmented { display: flex; gap: 1.25rem; margin-bottom: 1rem; }
.error-text { color: var(--destructive); }
.card hr { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; }
.game-card-neo.is-soon { opacity: .75; }
.auth-box h1 { font-size: 1.6rem; margin: 0; }
.auth-form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.auth-box .card-footer p, .auth-box p.muted { margin: 0; }

/* NeoUI geçişi: panel gezinmesi (TabsList görünümünde bağlantılar), sunucu kartı, istatistik */
.tabs.panel-nav { display: inline-flex; flex-wrap: wrap; gap: .25rem; border: 0; background: var(--muted); padding: .25rem; border-radius: calc(var(--radius) + 2px); margin: .5rem 0 1.5rem; }
.panel-nav a.tab { color: var(--muted-foreground); border: 0; margin: 0; padding: .4rem .85rem; border-radius: calc(var(--radius) - 2px); font-weight: 500; font-size: .92rem; }
.panel-nav a.tab:hover { color: var(--foreground); text-decoration: none; }
.panel-nav a.tab.active { background: var(--card); color: var(--foreground); box-shadow: 0 1px 2px rgba(10,20,51,.08); }
.server-card { display: flex; flex-direction: column; gap: .35rem; background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: 1.1rem 1.25rem; color: var(--foreground); transition: border-color .12s, box-shadow .12s; }
.server-card:hover { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 15%, transparent); text-decoration: none; }
.server-card-addr { display: flex; align-items: center; gap: .35rem; font-family: var(--font-mono); font-size: .85rem; color: var(--muted-foreground); }
.server-card .badge { align-self: flex-start; }
.stat { padding: 1.1rem 1.25rem; gap: .25rem; }
.stat-label { color: var(--muted-foreground); font-size: .9rem; }
.stat-value { font-family: var(--font-heading); font-size: 2.1rem; font-weight: 700; line-height: 1.1; }
.empty-panel { border: 1px dashed var(--border); border-radius: calc(var(--radius) + 4px); min-height: 0; padding: 2.5rem 1.5rem; gap: .5rem; }
.empty-panel h3 { margin: 0; }
.card .empty-panel { padding: 1.5rem; }
:root.dark .panel-nav a.tab.active { background: var(--accent); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .header-row { height: auto; flex-wrap: wrap; padding-top: .6rem; padding-bottom: .6rem; row-gap: .4rem; }
  .site-nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .site-nav .nav-link { flex: none; padding-left: .5rem; padding-right: .5rem; }
  .site-nav .nav-link:first-child { display: none; }
  .site-nav form.inline, .site-nav .theme-toggle, .site-nav > a.inline-flex { flex: none; }
  .connect-strip .cs-line { font-size: .85rem; padding-left: .75rem; }
  .connect-strip .cs-cmd { display: none; }
}

/* Server page header: compact connect line */
.connect-strip.compact { margin-top: .75rem; padding: 0; background: transparent; box-shadow: none; max-width: 520px; }
.connect-strip.compact .cs-line { background: var(--brand); padding: .45rem .5rem .45rem .9rem; font-size: .95rem; }
.breadcrumb button { font-family: inherit; }
.actions.tight label.upload { margin-top: 0; }
.inline-form input[type=checkbox], .inline-form input[type=radio] { min-width: 0; }

/* Yönetim ana sayfası: altyapı görünümü (studio-admin "Infrastructure" düzeni) */
.dash { display: flex; flex-direction: column; gap: 1rem; }
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.dash-title h1 { margin: 0 0 .25rem; }
.dash-title p { margin: 0; font-size: .875rem; }
.dash-meta { display: flex; align-items: center; gap: .5rem; font-size: .875rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: -.5rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--border); border-radius: calc(var(--radius) - 6px); padding: .125rem .4rem; font-size: .75rem; font-weight: 500; white-space: nowrap; }
.dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; flex: none; }
.dot-ok { background: oklch(0.627 0.194 149.214); }
.dot-bad { background: var(--destructive); }
.dash-tools { display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 1280px) { .dash-tools { flex-direction: row; flex-wrap: wrap; } .dash-tools .search-box { flex: 1 1 14rem; min-width: 12rem; } .dash-tools .dept-filter { min-width: 10rem; } }
.search-box { flex: 1 0 auto; min-height: 2.25rem; flex-direction: row; align-items: center; gap: .5rem; height: 2.25rem; padding: 0 .75rem; border: 1px solid var(--input); border-radius: calc(var(--radius) - 2px); color: var(--muted-foreground); background: transparent; font-weight: 400; }
:root.dark .search-box { background: color-mix(in oklab, var(--input) 30%, transparent); }
.search-box:focus-within { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent); }
.search-box input, :root.dark .search-box input { border: 0; background: transparent; padding: 0; min-height: 0; height: 100%; box-shadow: none; font-size: .875rem; color: var(--foreground); }
.search-box input:focus { box-shadow: none; }
.tool-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn-outline, .btn-icon-outline { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; height: 2.25rem; padding: 0 .75rem; border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px); background: var(--background); color: var(--foreground); font: 500 .875rem var(--font-sans); cursor: pointer; white-space: nowrap; box-shadow: 0 1px 2px rgb(0 0 0 / .04); }
:root.dark .btn-outline, :root.dark .btn-icon-outline { background: color-mix(in oklab, var(--input) 30%, transparent); border-color: var(--input); }
.btn-outline:hover, .btn-icon-outline:hover { background: var(--accent); text-decoration: none; }
.btn-icon-outline { width: 2rem; height: 2rem; padding: 0; }
.btn-ghost-sm { display: inline-flex; align-items: center; gap: .35rem; height: 2rem; padding: 0 .6rem; border-radius: calc(var(--radius) - 2px); font-size: .875rem; font-weight: 500; color: var(--foreground); }
.btn-ghost-sm:hover { background: var(--accent); text-decoration: none; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.env-card { background: var(--card); color: var(--card-foreground); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); overflow: hidden; }
.env-pad { padding: 1rem; }
.env-pad p { margin: .5rem 0; font-size: .875rem; }
.env-head { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; cursor: pointer; list-style: none; user-select: none; }
.env-head::-webkit-details-marker { display: none; }
.env-head .spacer { flex: 1; }
.env-chevron { transition: transform .15s; transform: rotate(-90deg); }
details[open] > .env-head .env-chevron { transform: none; }
.env-name { font-weight: 500; }
.env-sub { font-size: .875rem; }
.env-empty { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 6rem; border-top: 1px solid var(--border); background: color-mix(in oklab, var(--muted) 50%, transparent); font-size: .875rem; font-weight: 500; }
.env-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.env-table { width: 100%; min-width: 1040px; table-layout: fixed; border-collapse: collapse; font-size: .875rem; }
.env-table th { text-align: left; font-weight: 500; color: var(--foreground); height: 2.5rem; padding: 0 1.25rem; white-space: nowrap; background: color-mix(in oklab, var(--muted) 50%, transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.env-table td { padding: .65rem 1.25rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.env-table tr:last-child td { border-bottom: 0; }
.cell-strong { display: block; font-weight: 500; color: var(--foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.cell-strong:hover { text-decoration: underline; }
.cell-sub { display: block; font-size: .75rem; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-trunc { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-icon { display: inline-flex; align-items: center; gap: .375rem; font-variant-numeric: tabular-nums; }
.cell-end { text-align: right; }
.tag { display: inline-flex; align-items: center; gap: .35rem; border-radius: calc(var(--radius) - 6px); padding: .125rem .4rem; font-size: .75rem; font-weight: 500; white-space: nowrap; background: var(--secondary); color: var(--secondary-foreground); }
.tag .dot { width: .375rem; height: .375rem; }
.tag-ok { background: oklch(0.696 0.17 162.48 / 10%); color: oklch(0.596 0.145 163.225); }
.tag-ok .dot { background: oklch(0.696 0.17 162.48); }
.tag-info { background: oklch(0.685 0.169 237.323 / 10%); color: oklch(0.588 0.158 241.966); }
.tag-info .dot { background: oklch(0.685 0.169 237.323); }
.tag-bad { background: var(--destructive); color: #fff; }
.tag-bad .dot { background: #fff; }
.tag-muted { color: var(--muted-foreground); }
.tag-muted .dot { background: var(--muted-foreground); }
:root.dark .tag-ok { color: oklch(0.765 0.177 163.223); }
:root.dark .tag-info { color: oklch(0.746 0.16 232.661); }
.meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.meter { display: block; min-width: 0; }
.meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-size: .75rem; font-weight: 500; margin-bottom: .25rem; }
.meter-label { color: var(--muted-foreground); }
.meter-value { font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
.meter.ok .meter-value { color: oklch(0.596 0.145 163.225); }
.meter.warn .meter-value { color: oklch(0.666 0.179 58.318); }
.meter.bad .meter-value { color: var(--destructive); }
.meter-bar { display: block; height: .375rem; border-radius: 999px; overflow: hidden; background: color-mix(in oklab, var(--muted-foreground) 20%, transparent); }
.meter-bar span { display: block; height: 100%; border-radius: inherit; background: oklch(0.696 0.17 162.48); }
.meter.warn .meter-bar span { background: oklch(0.769 0.188 70.08); }
.meter.bad .meter-bar span { background: var(--destructive); }
:root.dark .meter.ok .meter-value { color: oklch(0.765 0.177 163.223); }
:root.dark .meter.warn .meter-value { color: oklch(0.828 0.189 84.429); }

.admin-sidebar ul, [data-sidebar="menu"] { padding-left: 0; margin: 0; }
.env-table th, .env-table td { padding-left: 1rem; padding-right: 1rem; }
.env-head .env-name { flex: none; }
@media (max-width: 640px) { .env-sub { display: none; } }
.usage { display: flex; align-items: center; gap: 1.25rem; }
.usage-item { display: inline-flex; align-items: center; gap: .375rem; color: var(--muted-foreground); font-variant-numeric: tabular-nums; white-space: nowrap; }
.env-table { min-width: 900px; }

/* Müşteri paneli (ClientLayout) */
.client-page { min-width: 0; }
.client-page > h1 { margin-bottom: 1rem; }
.client-page.narrow-page { max-width: 760px; }
.sb-balance { display: grid; gap: .1rem; margin: 0 .25rem .25rem; padding: .65rem .75rem; border: 1px solid var(--sidebar-border); border-radius: var(--radius); background: var(--background); color: var(--sidebar-foreground); }
.sb-balance:hover { text-decoration: none; border-color: var(--ring); }
.sb-balance-label { font-size: .75rem; color: var(--muted-foreground); }
.sb-balance-value { font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.sb-balance-sub { font-size: .72rem; color: var(--muted-foreground); }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.kpi { display: flex; flex-direction: column; gap: .35rem; background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: 1rem 1.1rem; min-width: 0; }
.kpi-label { display: inline-flex; align-items: center; gap: .4rem; font-size: .8125rem; color: var(--muted-foreground); font-weight: 500; }
.kpi-value { font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-value.mono { font-size: 1.35rem; letter-spacing: .02em; }
.kpi-sub { font-size: .75rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }
.env-pad { display: flex; flex-direction: column; gap: .75rem; }
.env-pad > p { margin: 0; }
.env-static { cursor: default; }
.preset-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.preset { height: 2rem; padding: 0 .75rem; border-radius: calc(var(--radius) - 2px); border: 1px solid var(--border); background: transparent; color: var(--foreground); font: 500 .8125rem var(--font-sans); cursor: pointer; font-variant-numeric: tabular-nums; }
.preset:hover { background: var(--accent); }
.preset.selected { border-color: var(--foreground); background: var(--accent); }
.method-list { display: grid; gap: .5rem; }
.method-list label.cycle { gap: .6rem; font-weight: 400; }
.method-list .cycle-label { font-weight: 500; }
.pending-item { display: grid; gap: .5rem; padding: .75rem; border: 1px solid var(--border); border-radius: var(--radius); }
.pending-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.pending-item .btn-outline { justify-self: start; }
.pending-item .link-button { justify-self: start; color: var(--destructive); }
.bank-info { display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; margin: 0; font-size: .8125rem; }
.bank-info dt { color: var(--muted-foreground); }
.bank-info dd { margin: 0; word-break: break-all; }
.amount { font-variant-numeric: tabular-nums; font-weight: 500; }
.amount.plus { color: oklch(0.596 0.145 163.225); }
.amount.minus { color: var(--foreground); }
:root.dark .amount.plus { color: oklch(0.765 0.177 163.223); }
.recipient { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in oklab, var(--muted) 50%, transparent); }
.recipient .ok-icon { color: oklch(0.696 0.17 162.48); }
.confirm-box { border: 1px solid var(--ring); border-radius: var(--radius); padding: .85rem; display: grid; gap: .5rem; }
.confirm-box p { margin: 0; }
.id-box { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem .75rem; border: 1px dashed var(--border); border-radius: var(--radius); font-size: 1.15rem; font-weight: 600; letter-spacing: .04em; }
.transfer-list li { display: flex; justify-content: space-between; gap: .75rem; padding: .45rem 0; border-bottom: 1px solid var(--border); font-size: .8125rem; }
.transfer-list li:last-child { border-bottom: 0; }
.transfer-list li > span:first-child { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-balance { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pay-balance > div { display: grid; gap: .15rem; }

/* Üst bar: bakiye çipleri ve kullanıcı menüsü */
.top-chip { display: inline-flex; align-items: center; gap: .4rem; height: 2rem; padding: 0 .65rem; border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px); background: transparent; color: var(--foreground); font: 400 .8125rem var(--font-sans); white-space: nowrap; cursor: pointer; }
.top-chip:hover { background: var(--accent); text-decoration: none; }
.top-chip svg { color: var(--muted-foreground); }
.top-chip strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.top-chip-label { color: var(--muted-foreground); }
.top-chip-bonus strong { color: oklch(0.596 0.145 163.225); }
:root.dark .top-chip-bonus strong { color: oklch(0.765 0.177 163.223); }
.top-chip-id strong { letter-spacing: .03em; }
.top-chip-id.copied { border-color: oklch(0.696 0.17 162.48); }
.top-chip-id.copied svg { color: oklch(0.696 0.17 162.48); }
.user-menu { position: relative; }
.user-menu > summary { list-style: none; }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-trigger { display: flex; align-items: center; gap: .55rem; height: 2.25rem; padding: 0 .4rem 0 .25rem; border-radius: calc(var(--radius) - 2px); cursor: pointer; user-select: none; }
.user-trigger:hover, .user-menu[open] > .user-trigger { background: var(--accent); }
.user-trigger .sb-avatar { width: 28px; height: 28px; border-radius: 7px; font-size: .8rem; }
.user-trigger-text { display: grid; line-height: 1.2; text-align: left; max-width: 12rem; }
.user-trigger-name { font-size: .8125rem; font-weight: 500; }
.user-trigger-mail { font-size: .72rem; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 14rem; padding: .3rem; background: var(--popover); color: var(--popover-foreground); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 30px -10px rgb(0 0 0 / .25); display: grid; }
.user-pop-head { display: grid; gap: .1rem; padding: .45rem .55rem .55rem; border-bottom: 1px solid var(--border); margin-bottom: .25rem; }
.user-pop a, .user-pop button { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .45rem .55rem; border: 0; border-radius: calc(var(--radius) - 4px); background: none; color: inherit; font: 400 .8125rem var(--font-sans); text-align: left; cursor: pointer; }
.user-pop a:hover, .user-pop button:hover { background: var(--accent); text-decoration: none; }
.user-pop svg { color: var(--muted-foreground); }
.user-pop hr { border: 0; border-top: 1px solid var(--border); margin: .25rem 0; }
.user-pop form { margin: 0; }
.user-pop button[type=submit] { color: var(--destructive); }
.user-pop button[type=submit] svg { color: var(--destructive); }
@media (max-width: 1100px) { .user-trigger-text { display: none; } }
@media (max-width: 860px) { .top-chip-label, .top-chip-id { display: none; } .topbar-title { display: none; } }
@media (max-width: 520px) { .top-chip-bonus { display: none; } .app-topbar { padding-right: .75rem; } }

/* Müşteri paneli: hizmetler, profil */
.btn-primary-sm { display: inline-flex; align-items: center; gap: .4rem; height: 2.25rem; padding: 0 .9rem; border-radius: calc(var(--radius) - 2px); background: var(--primary); color: var(--primary-foreground); font: 500 .875rem var(--font-sans); white-space: nowrap; border: 0; cursor: pointer; }
.btn-primary-sm:hover { text-decoration: none; background: color-mix(in oklab, var(--primary) 88%, var(--background)); }
.dash-head > .btn-primary-sm, .dash-head > .btn-outline { align-self: center; }
.btn-sm-h { height: 2rem; padding: 0 .65rem; font-size: .8125rem; }
.row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: .35rem; flex-wrap: wrap; }
.row-actions .btn-primary-sm { height: 2rem; padding: 0 .75rem; font-size: .8125rem; }
.crumb { display: flex; align-items: center; gap: .3rem; margin: 0 0 .35rem; font-size: .8125rem; color: var(--muted-foreground); }
.crumb a { color: var(--muted-foreground); }
.crumb a:hover { color: var(--foreground); }
.env-empty-tall { min-height: 14rem; }
.empty-stack { display: grid; justify-items: center; gap: .5rem; text-align: center; }
.empty-stack > svg { color: var(--muted-foreground); }
.empty-stack .btn-primary-sm { margin-top: .5rem; }
.profile-page .tabs.panel-nav { margin: -.25rem 0 0; align-self: flex-start; }
.panel-nav a.tab { display: inline-flex; align-items: center; gap: .4rem; }
.settings-row { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.settings-row:first-of-type { border-top: 0; padding-top: 0; }
.settings-info h2 { font-size: 1rem; margin: 0 0 .35rem; }
.settings-info p { margin: 0; font-size: .8125rem; }
.settings-row > .env-card { max-width: 640px; }
@media (max-width: 900px) { .settings-row { grid-template-columns: minmax(0, 1fr); gap: .75rem; } }
.facts { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.facts > div { display: grid; gap: .15rem; font-size: .8125rem; }
.facts strong { display: inline-flex; align-items: center; gap: .5rem; font-size: .9375rem; font-weight: 500; }
.stack-form { display: grid; gap: .75rem; }
.inline-stack { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
@media (max-width: 520px) { .inline-stack { grid-template-columns: minmax(0, 1fr); } }
.setup-steps { margin: 0; padding-left: 1.2rem; font-size: .875rem; }
.qr-row { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.qr { border-radius: var(--radius); border: 1px solid var(--border); background: #fff; padding: 6px; image-rendering: pixelated; }
.qr-key { display: grid; gap: .35rem; }
.qr-key code { font-size: .95rem; letter-spacing: .04em; word-break: break-all; }
.recovery { display: grid; gap: .4rem; padding: .85rem; border: 1px solid oklch(0.769 0.188 70.08); border-radius: var(--radius); background: oklch(0.769 0.188 70.08 / 8%); }
.recovery p { margin: 0; }
.code-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem 1rem; font-size: .9rem; }
.profile-page > .card { max-width: 860px; }

/* Destek */
.sb-badge { margin-left: auto; min-width: 1.25rem; height: 1.25rem; padding: 0 .35rem; border-radius: 999px; background: var(--destructive); color: #fff; font-size: .7rem; font-weight: 600; display: inline-grid; place-items: center; }
.unread-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: oklch(0.623 0.214 259.815); margin-right: .45rem; vertical-align: middle; }
tr.row-unread .cell-strong { font-weight: 600; }
.tag-warn { background: oklch(0.769 0.188 70.08 / 14%); color: oklch(0.555 0.163 48.998); }
:root.dark .tag-warn { color: oklch(0.828 0.189 84.429); }
.tab-count { margin-left: .35rem; font-size: .72rem; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
button.tab { background: none; border: 0; cursor: pointer; font: inherit; }
.panel-nav button.tab { color: var(--muted-foreground); padding: .4rem .85rem; border-radius: calc(var(--radius) - 2px); font-weight: 500; font-size: .875rem; margin: 0; }
.panel-nav button.tab.active { background: var(--card); color: var(--foreground); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
:root.dark .panel-nav button.tab.active { background: var(--accent); }
.dash-tools .panel-nav { margin: 0; flex: none; }
.dept-filter { width: auto; min-width: 12rem; height: 2.25rem; padding: 0 .6rem; font-size: .875rem; }
.ticket-form { gap: 1rem; max-width: 900px; }
.field-label { font-size: .9rem; font-weight: 500; margin-bottom: .5rem; }
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .5rem; }
.dept { flex-direction: row; align-items: center; gap: .55rem; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; font-weight: 500; font-size: .875rem; }
.dept input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dept svg { color: var(--muted-foreground); }
.dept:hover { background: var(--accent); }
.dept.selected { border-color: var(--foreground); background: var(--accent); }
.dept.selected svg { color: var(--foreground); }
textarea.plain-textarea { font-family: var(--font-sans); font-size: .9rem; line-height: 1.5; resize: vertical; }
.attach { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.attach-btn { position: relative; overflow: hidden; cursor: pointer; flex-direction: row; font-weight: 500; }
.attach-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.attach-list { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: .25rem; font-size: .8125rem; }
.attach-list li { display: flex; align-items: center; gap: .4rem; }
.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.thread-msg { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: .9rem 1rem; }
.thread-msg.staff { border-left: 3px solid oklch(0.623 0.214 259.815); }
.thread-msg.internal { background: oklch(0.769 0.188 70.08 / 7%); border-color: oklch(0.769 0.188 70.08 / 45%); border-left-width: 3px; }
.thread-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.thread-head .spacer { flex: 1; }
.thread-head .sb-avatar { width: 26px; height: 26px; font-size: .75rem; border-radius: 7px; }
.thread-author { font-weight: 500; font-size: .875rem; }
.thread-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; line-height: 1.55; }
.thread-files { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.thread-image img { display: block; max-width: 220px; max-height: 160px; border-radius: var(--radius); border: 1px solid var(--border); object-fit: cover; }
.thread-file { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .65rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .8125rem; color: var(--foreground); }
.thread-file:hover { background: var(--accent); text-decoration: none; }
.thread-system { display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: .78rem; color: var(--muted-foreground); }
.reply-box { gap: .75rem; }
.reply-box.internal { border-color: oklch(0.769 0.188 70.08 / 60%); }
.reply-box label { margin: 0; }
.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1rem; align-items: start; }
.ticket-main { display: grid; gap: 1rem; min-width: 0; }
.ticket-side { display: grid; gap: 1rem; position: sticky; top: 64px; }
@media (max-width: 1000px) { .ticket-layout { grid-template-columns: minmax(0, 1fr); } .ticket-side { position: static; } }
.facts.vertical { flex-direction: column; gap: .55rem; }
.facts.vertical strong { font-size: .875rem; overflow-wrap: anywhere; }
.ticket-side .btn-outline { align-self: flex-start; }
.thread-system.internal { color: oklch(0.666 0.179 58.318); }
.thread-head .tag svg { vertical-align: -1px; }
.canned-pick { display: flex; flex-direction: row; align-items: center; align-self: flex-start; gap: .5rem; font-size: .8125rem; font-weight: 500; color: var(--muted-foreground); }
.canned-pick select { width: auto; min-width: 14rem; height: 2rem; font-size: .8125rem; }
.canned-form { display: grid; gap: .75rem; }
.canned-vars { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.canned-vars .chip { cursor: pointer; background: transparent; color: var(--foreground); }
.canned-vars .chip:hover { background: var(--accent); }
.link-btn { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--primary); font: 500 .8125rem var(--font-sans); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.env-table th.center, .env-table td.center { text-align: center; }
.support-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1000px) { .support-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .support-stats { grid-template-columns: minmax(0, 1fr); } }
.stat-tile { display: grid; gap: .3rem; align-content: start; }
.stat-tile strong { display: flex; align-items: center; gap: .35rem; font-size: 1.5rem; font-weight: 600; }
.stat-tile strong .small { font-size: .75rem; font-weight: 400; }
.star-on, .rating-stars .on { color: oklch(0.769 0.188 70.08); fill: oklch(0.769 0.188 70.08); }
.rating-bars { display: grid; gap: .15rem; margin-top: .25rem; }
.rating-bar { display: grid; grid-template-columns: .75rem 1fr 1.75rem; align-items: center; gap: .4rem; font-size: .7rem; }
.rating-bar i { display: block; height: 5px; min-width: 2px; border-radius: 3px; background: oklch(0.769 0.188 70.08); }
.rating-box { display: grid; gap: .6rem; }
.rating-box label { margin: 0; }
.rating-stars { display: flex; gap: .2rem; color: var(--muted-foreground); }
.rating-stars button { background: none; border: 0; padding: .1rem; color: inherit; cursor: pointer; border-radius: 6px; }
.rating-stars button:hover, .rating-stars button.on { color: oklch(0.769 0.188 70.08); }
.rating-stars button.on svg { fill: currentColor; }
.rating-stars button:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
.rating-comment { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .875rem; }

/* Yönetim: node'lar */
.badge .dot { display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; margin-right: .2rem; vertical-align: .05rem; }
.install-command { display: flex; gap: .5rem; align-items: flex-start; margin: .5rem 0 1rem; }
.install-command .code { flex: 1; margin: 0; white-space: pre-wrap; word-break: break-all; }
.meter { min-width: 7.5rem; --meter-fill: var(--series-1); }
.meter.warning { --meter-fill: #e0a100; }
.meter.critical { --meter-fill: var(--destructive); }
.meter-text { font-size: .85rem; white-space: nowrap; }
.meter-track { height: 6px; border-radius: 3px; background: var(--muted); margin-top: .3rem; overflow: hidden; }
.meter-fill { height: 100%; border-radius: 3px; background: var(--meter-fill); }
.stat-value.net { font-size: 1.35rem; }
.range-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.range-switch button { background: none; border: none; color: var(--muted-foreground); font: inherit; font-size: .85rem; padding: .35rem .75rem; cursor: pointer; }
.range-switch button + button { border-left: 1px solid var(--border); }
.range-switch button.active { background: var(--muted); color: var(--foreground); }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.core-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: .75rem 1rem; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 1rem; }
.two-col .card { min-width: 0; overflow-x: auto; }

/* Zaman serisi grafiği. Seri renkleri doğrulanmış koyu tema paletinden (dataviz: mavi, turuncu). */
.metric-chart, .meter, .swatch { --series-1: #3987e5; --series-2: #d95926; }
.metric-chart { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1rem .6rem; min-width: 0; }
.metric-chart-head { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; margin-bottom: .5rem; }
.metric-chart-title { font-weight: 600; }
.metric-chart-now { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.metric-legend { display: inline-flex; gap: .75rem; color: var(--muted-foreground); font-size: .8rem; }
.metric-legend-item { display: inline-flex; align-items: center; gap: .3rem; }
.swatch { display: inline-block; width: .7rem; height: 2px; border-radius: 1px; }
.swatch.s1 { background: var(--series-1); }
.swatch.s2 { background: var(--series-2); }
.metric-chart svg { display: block; width: 100%; height: 140px; overflow: visible; }
.metric-chart .grid { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.metric-chart .line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.metric-chart .line.s1 { stroke: var(--series-1); }
.metric-chart .line.s2 { stroke: var(--series-2); }
.metric-chart .area.s1 { fill: var(--series-1); opacity: .14; }
.metric-chart .hit rect { fill: transparent; }
.metric-chart .hit line { stroke: var(--muted-foreground); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; }
.metric-chart .hit:hover line { opacity: .6; }
.metric-axis { display: flex; justify-content: space-between; color: var(--muted-foreground); font-size: .75rem; margin-top: .35rem; font-variant-numeric: tabular-nums; }
.metric-chart-empty { height: 140px; display: grid; place-items: center; color: var(--muted-foreground); font-size: .85rem; text-align: center; padding: 0 1rem; }
@media (max-width: 640px) { .install-command { flex-direction: column; } .chart-grid, .two-col { grid-template-columns: 1fr; } }

/* Yönetim: API anahtarları */
.api-secret { margin: .5rem 0 0; white-space: pre-wrap; word-break: break-all; user-select: all; }
.actions .grow { flex: 1; min-width: 14rem; }
.env-pad > .actions:first-child { margin-top: 0; align-items: flex-end; }
