/**
 * ÇOKLU MARKA KARALİSTE SİSTEMİ v6.2
 * Aether / Obsidian Luxury Design System
 * Inspired by Linear, Vercel & Apple Pro Interfaces
 */

/* ========== DESIGN TOKENS ========== */
:root {
  /* Canvas & Obsidian Surfaces */
  --bg-deep: #060709;
  --bg-base: #0a0b10;
  --bg-surface: #0f1118;
  --bg-card: rgba(16, 19, 28, 0.72);
  --bg-card-hover: rgba(23, 27, 40, 0.82);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-bright: #ffffff;

  /* Accent Brand - Royal Champagne Gold */
  --gold: #c9a84c;
  --gold-glow: #e8c97a;
  --gold-dark: #96782c;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f3e5ab 50%, #aa771c 100%);
  --accent: var(--gold);
  --accent-glow: var(--gold-glow);

  /* Semantic State Accents */
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --crimson: #f43f5e;
  --crimson-glow: rgba(244, 63, 94, 0.25);
  --sapphire: #3b82f6;
  --sapphire-glow: rgba(59, 130, 246, 0.25);
  --amber: #f59e0b;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 255, 255, 0.25);
  --border-focus: rgba(201, 168, 76, 0.55);

  /* High-end Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px -4px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px -8px rgba(0, 0, 0, 0.8), 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px -5px rgba(201, 168, 76, 0.2);

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
  overflow-x: hidden;
  background-color: var(--bg-deep);
  color-scheme: dark;
}

body {
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* ========== ULTRA-SMOOTH SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: rgba(6, 7, 9, 0.95);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.4);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ========== AMBIENT LUMINESCENT MESH BACKGROUND ========== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 800px at 85% 10%, rgba(201, 168, 76, 0.08), transparent 70%),
    radial-gradient(circle 700px at 15% 40%, rgba(59, 130, 246, 0.04), transparent 70%),
    radial-gradient(circle 900px at 50% 90%, rgba(16, 185, 129, 0.03), transparent 70%),
    radial-gradient(circle 500px at 20% 10%, rgba(255, 255, 255, 0.02), transparent 60%);
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
  opacity: 0.28;
  animation: floatOrb 28s ease-in-out infinite alternate;
}

.bg-orb-1 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.25), transparent 70%);
  top: -8%; left: 15%;
}

.bg-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
  top: 45%; right: 5%;
  animation-delay: -9s;
}

.bg-orb-3 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.18), transparent 70%);
  bottom: -15%; left: 35%;
  animation-delay: -18s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(45px, -35px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(0.96); }
}

/* ========== WRAPPER & LAYOUT ========== */
.wrap {
  max-width: 1260px;
  margin: 28px auto 60px;
  padding: 0 28px;
  position: relative;
  z-index: 2;
  animation: pageEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== HEADER & COMMAND BAR ========== */
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 18px;
}

.brand-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-logo-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald);
  animation: pulseLight 2s infinite ease-in-out;
}

@keyframes pulseLight {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.3); opacity: 0.5; box-shadow: 0 0 18px var(--emerald); }
}

.logo-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 40%, rgba(255, 255, 255, 0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.version-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: var(--gold-glow);
  text-transform: uppercase;
}

h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  color: #fff;
}

.sub {
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-logout:hover {
  color: #fff;
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.2);
  transform: translateY(-1px);
}

/* ========== ULTRA-PREMIUM CARDS (AETHER GLASS) ========== */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow-md), inset 0 1px 0 0 rgba(255, 255, 255, 0.07);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 12px;
}

.quick-hint-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

/* ========== BRAND SELECTOR DECK ========== */
.brand-deck-card {
  margin-bottom: 24px;
}

.brand-selector {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.brand-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  position: relative;
}

.brand-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.brand-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-width: 1.5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 18px var(--brand-glow, rgba(255, 255, 255, 0.15));
  transform: translateY(-2px);
}

.brand-btn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.brand-sep {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.14);
  margin: 0 6px;
}

/* ORTAK HAVUZ BUTONU (GOLD CROWN TIER) */
.brand-btn.shared {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.12), rgba(232, 201, 122, 0.05));
  border: 1.5px solid rgba(201, 168, 76, 0.45);
  color: var(--gold-glow);
  font-weight: 700;
  box-shadow: 0 0 16px rgba(201, 168, 76, 0.12);
}

.brand-btn.shared:hover {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.22), rgba(232, 201, 122, 0.1));
  border-color: var(--gold-glow);
  box-shadow: 0 0 24px rgba(201, 168, 76, 0.3);
}

.brand-btn.shared.active {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.3), rgba(232, 201, 122, 0.15));
  border-color: #fff;
  color: #ffffff;
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.4), inset 0 0 12px rgba(232, 201, 122, 0.2);
}

.pool-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* ========== STATS DASHBOARD (METRICS DECK) ========== */
.stats-deck-card {
  margin-bottom: 28px;
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.brand-indicator {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: var(--gold-glow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stats, .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.stat, .stat-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.stat:hover, .stat-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  transform: translateY(-2px);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.stat .k, .stat-meta .k {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.stat .v, .stat-meta .v {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
}

/* Origin Breakdown Pills */
.origin-pills-wrap {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.origin-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-glow);
}

.origin-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.origin-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-main);
}

.origin-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.origin-sub {
  color: var(--text-dim);
  font-size: 11px;
  font-family: var(--font-mono);
}

/* ========== SEGMENTED TABS (LINEAR STYLE) ========== */
.tabs-container {
  margin-top: 28px;
  margin-bottom: 20px;
}

.tabs {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  padding: 5px;
  border-radius: var(--radius-lg);
  gap: 6px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.tab.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.tab-icon {
  font-size: 16px;
}

/* ========== WORKSPACE BENTO GRID ========== */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 980px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

/* ========== FORM CONTROLS & INPUTS ========== */
label.title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 8px;
}

p.help {
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.5;
  margin-top: 6px;
  margin-bottom: 8px;
}

input[type=file],
input[type=text],
input[type=password],
select,
textarea {
  display: block;
  width: 100%;
  padding: 13px 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-bright);
  font-family: var(--font-sans);
  font-size: 13.5px;
  transition: all 0.2s ease;
}

textarea {
  font-family: var(--font-mono);
  font-size: 13px;
  min-height: 120px;
  line-height: 1.5;
  resize: vertical;
  background: rgba(0, 0, 0, 0.4);
}

input[type=file] {
  padding: 10px 14px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
}

input:hover, select:hover, textarea:hover {
  border-color: var(--border-hover);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.14);
}

/* Clean Filters Accordion */
details.clean-filters {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 16px 0;
  transition: all 0.2s ease;
}

details.clean-filters[open] {
  border-color: var(--border);
  background: rgba(0, 0, 0, 0.35);
}

details.clean-filters summary {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  outline: none;
}

details.clean-filters summary:hover {
  color: #fff;
}

.filter-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.filter-checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-main);
  cursor: pointer;
}

.filter-checks input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  border-radius: 4px;
  cursor: pointer;
}

/* ========== BUTTONS ========== */
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn.primary {
  background: var(--gold-gradient);
  color: #08090d;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.25);
}

.btn.primary:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.4);
  transform: translateY(-1.5px);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn.ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-hover);
  color: #fff;
  transform: translateY(-1.5px);
}

.btn.danger {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fda4af;
}

.btn.danger:hover:not(:disabled) {
  background: var(--crimson);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(244, 63, 94, 0.4);
  transform: translateY(-1.5px);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   SPECULAR BUTTONS - WebGL2 Reactive Glowing Shader Buttons
   ========================================================================== */

.specular-button {
  --sb-radius: 16px;
  --sb-tint: #ffffff;
  --sb-tint-opacity: 0.08;
  --sb-blur: 16px;
  --sb-text-color: #f5f5f5;
  --sb-glow-color: rgba(201, 168, 76, 0.4);

  position: relative !important;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--sb-radius);
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--sb-text-color) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%),
              color-mix(in srgb, var(--sb-tint) calc(var(--sb-tint-opacity) * 100%), #0c0f16) !important;
  box-shadow: 0 10px 28px -10px var(--sb-glow-color), 
              0 2px 6px rgba(0, 0, 0, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(var(--sb-blur));
  backdrop-filter: blur(var(--sb-blur));
  cursor: pointer;
  outline: none;
  overflow: visible !important;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), 
              box-shadow 0.25s ease, 
              border-color 0.25s ease,
              filter 0.25s ease;
  user-select: none;
}

.specular-button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 36px -8px var(--sb-glow-color),
              0 4px 14px rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  filter: brightness(1.08);
}

.specular-button:active:not(:disabled) {
  transform: scale(0.97) translateY(0);
}

.specular-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--sb-text-color) 60%, transparent);
  outline-offset: 3px;
}

.specular-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(0.5);
}

.specular-button--sm {
  padding: 9px 18px;
  font-size: 0.8125rem;
}

.specular-button--md {
  padding: 13px 26px;
  font-size: 0.9375rem;
}

.specular-button--lg {
  padding: 16px 36px;
  font-size: 1.0625rem;
  letter-spacing: 0.03em;
}

/* Prevent legacy .btn:before / .btn:after shining boxes from breaking out */
.specular-button::before,
.specular-button::after {
  display: none !important;
  content: none !important;
}

.specular-button__light {
  position: absolute;
  inset: -24px;
  z-index: 1;
  display: block;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  pointer-events: none;
  border-radius: inherit;
}

.specular-button__label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: inherit;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Color Presets */
.specular-clean {
  --sb-tint: #10b981;
  --sb-tint-opacity: 0.16;
  --sb-text-color: #ecfdf5;
  --sb-glow-color: rgba(16, 185, 129, 0.55);
  border-color: rgba(52, 211, 153, 0.35);
}

.specular-clean:hover:not(:disabled) {
  border-color: rgba(52, 211, 153, 0.65);
  box-shadow: 0 18px 45px -8px rgba(16, 185, 129, 0.65),
              0 0 25px rgba(52, 211, 153, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.specular-gold {
  --sb-tint: #f59e0b;
  --sb-tint-opacity: 0.14;
  --sb-text-color: #fffbeb;
  --sb-glow-color: rgba(245, 158, 11, 0.45);
  border-color: rgba(251, 191, 36, 0.32);
}

.specular-gold:hover:not(:disabled) {
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 0 18px 45px -8px rgba(245, 158, 11, 0.55),
              0 0 25px rgba(251, 191, 36, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.specular-danger {
  --sb-tint: #f43f5e;
  --sb-tint-opacity: 0.16;
  --sb-text-color: #fff1f2;
  --sb-glow-color: rgba(244, 63, 94, 0.55);
  border-color: rgba(244, 63, 94, 0.4);
}

.specular-danger:hover:not(:disabled) {
  border-color: rgba(244, 63, 94, 0.7);
  box-shadow: 0 18px 45px -8px rgba(244, 63, 94, 0.65),
              0 0 25px rgba(244, 63, 94, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ========== CLEANING REPORT BOX ========== */
.clean-report {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  font-size: 13px;
  animation: fadeInReport 0.3s ease;
}

@keyframes fadeInReport {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== DATA TABLES ========== */
.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  margin-top: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

tbody tr {
  transition: background 0.15s ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-badge.admin { background: rgba(201, 168, 76, 0.15); border: 1px solid rgba(201, 168, 76, 0.35); color: var(--gold-glow); }
.status-badge.operator { background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.3); color: #93c5fd; }
.status-badge.success { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.35); color: #6ee7b7; }
.status-badge.danger { background: rgba(244, 63, 94, 0.15); border: 1px solid rgba(244, 63, 94, 0.35); color: #fda4af; }
.status-badge.warning { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.35); color: #fde68a; }

/* ========== MODAL DIALOGS ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 6, 0.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 24px;
  overflow-y: auto;
}

.modal-content {
  background: #0f1118;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 34px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
  margin: auto;
}

/* ========== TOAST NOTIFICATIONS ========== */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #11131c;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  min-width: 290px;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  transform: translateX(450px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99999;
  font-weight: 600;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.success { border-left-color: var(--emerald); }
.toast.error { border-left-color: var(--crimson); }

/* ========== UTILITIES ========== */
.hidden { display: none !important; }
.text-danger { color: var(--crimson) !important; }
.text-success { color: var(--emerald) !important; }
.text-gold { color: var(--gold-glow) !important; }
.text-muted { color: var(--text-dim) !important; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .wrap { padding: 0 16px; margin: 16px auto; }
  .header-row { flex-direction: column; align-items: flex-start; }
  .header-actions { width: 100%; justify-content: space-between; }
  .brand-selector { flex-direction: column; align-items: stretch; }
  .brand-btn { justify-content: center; }
  .brand-sep { width: 100%; height: 1px; margin: 6px 0; }
}

/* ==========================================================================
   GHOST FIBERS BACKGROUND & DUAL-MODE TRANSITION
   ========================================================================== */

.ghost-fibers-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), filter 1s ease;
}

.ghost-fibers-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Giriş sayfasında: Canlı, parlak, göz alıcı 3D fiber aurası */
body.state-login .ghost-fibers-bg {
  opacity: 1;
  filter: contrast(1.15) brightness(1.2);
}

/* Ana panel / uygulama içi: Silik, dikkat dağıtmayan, lüks derinlik katan arka plan */
body.state-app .ghost-fibers-bg {
  opacity: 0.28;
  filter: brightness(0.68) blur(0.5px);
}

/* ==========================================================================
   LOGIN SCREEN & LUXURY TERMINAL CARD
   ========================================================================== */

.login-wrapper {
  position: fixed;
  inset: 0;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: transparent !important;
  overflow-y: auto;
}

.login-wrapper.hidden {
  display: none !important;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: rgba(11, 13, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 38px 34px 30px;
  box-shadow: 
    0 30px 80px -20px rgba(0, 0, 0, 0.85),
    0 0 50px -10px rgba(139, 92, 246, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  position: relative;
  overflow: visible;
  animation: loginAppear 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes loginAppear {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 26px;
}

.login-badge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.22) 0%, rgba(139, 92, 246, 0.22) 100%);
  border: 1px solid rgba(201, 168, 76, 0.4);
  box-shadow: 0 8px 24px -6px rgba(201, 168, 76, 0.35);
  margin-bottom: 14px;
}

.login-badge-glow {
  position: absolute;
  inset: -6px;
  border-radius: 26px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
  pointer-events: none;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.login-badge-icon {
  font-size: 26px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 8px rgba(201, 168, 76, 0.6));
}

.login-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.login-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseEmerald 2s ease-in-out infinite;
}

@keyframes pulseEmerald {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.login-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.login-sub {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
  font-weight: 500;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.login-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.login-hint {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: none;
  font-family: var(--font-mono);
}

.login-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 14px;
  font-size: 15px;
  opacity: 0.7;
  pointer-events: none;
}

.login-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius-md) !important;
  padding: 13px 16px 13px 42px !important;
  font-size: 14.5px !important;
  font-family: var(--font-sans) !important;
  color: #ffffff !important;
  transition: all 0.22s ease !important;
}

.login-input:focus {
  background: rgba(0, 0, 0, 0.65) !important;
  border-color: rgba(139, 92, 246, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.22), 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  outline: none !important;
}

.login-btn {
  width: 100% !important;
  height: 50px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
}

.login-msg {
  min-height: 18px;
  margin-top: 14px;
  font-size: 12.5px;
  text-align: center;
  font-weight: 600;
  transition: all 0.2s ease;
}

.login-msg.error {
  color: #fda4af;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
