/* Quantum Nano Technology — Neon 3D Premium Design System
   Kullanıcı paneli, admin paneli ve giriş ekranı ortak teması. */
:root {
  --bg-deep: #04060f;
  --bg-mid: #0a1020;
  --bg-card: linear-gradient(160deg, rgba(22, 30, 52, 0.86) 0%, rgba(10, 15, 30, 0.92) 100%);
  --bg-card-solid: rgba(12, 18, 34, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.035);
  --border: rgba(120, 160, 255, 0.14);
  --border-strong: rgba(120, 190, 255, 0.28);

  --primary: #19e6ff;
  --primary-2: #0aa6ff;
  --primary-glow: rgba(25, 230, 255, 0.35);
  --green: #2bffb0;
  --green-2: #00d68a;
  --green-glow: rgba(43, 255, 176, 0.32);
  --red: #ff3d7f;
  --red-2: #d61c5c;
  --red-glow: rgba(255, 61, 127, 0.32);
  --amber: #ffc233;
  --amber-glow: rgba(255, 194, 51, 0.3);
  --purple: #b36bff;
  --purple-glow: rgba(179, 107, 255, 0.32);

  --text-main: #eef4ff;
  --text-muted: #9db0d3;
  --text-dim: #6a7ca3;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --depth-1: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 -1px 0 rgba(0, 0, 0, 0.5) inset,
             0 10px 24px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.5);
  --depth-2: 0 1px 0 rgba(255, 255, 255, 0.09) inset, 0 -1px 0 rgba(0, 0, 0, 0.6) inset,
             0 22px 50px rgba(0, 0, 0, 0.6), 0 6px 12px rgba(0, 0, 0, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 3D SAHNE ARKAPLANI ---------- */
.fx-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(25, 120, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, rgba(179, 107, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #050816 0%, #04060f 100%);
}
.fx-grid {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -35%;
  height: 90%;
  background-image:
    linear-gradient(rgba(25, 230, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 230, 255, 0.35) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(64deg);
  transform-origin: 50% 100%;
  animation: gridMove 5s linear infinite;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  opacity: 0.55;
}
@keyframes gridMove {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 64px, 0 0; }
}
.fx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: orbFloat 16s ease-in-out infinite alternate;
}
.fx-orb.o1 { width: 420px; height: 420px; left: -120px; top: 8%; background: rgba(25, 230, 255, 0.28); }
.fx-orb.o2 { width: 360px; height: 360px; right: -100px; top: 30%; background: rgba(179, 107, 255, 0.26); animation-delay: -6s; }
.fx-orb.o3 { width: 300px; height: 300px; left: 35%; bottom: 5%; background: rgba(43, 255, 176, 0.18); animation-delay: -11s; }
@keyframes orbFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, -50px, 0) scale(1.18); }
}
.fx-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary-2), var(--purple));
  border-radius: 6px;
}

/* ---------- ÜST ÇUBUK ---------- */
.portal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: linear-gradient(180deg, rgba(14, 20, 40, 0.92), rgba(8, 12, 26, 0.82));
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(25, 230, 255, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}
.portal-topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--purple), var(--green), transparent);
  background-size: 200% 100%;
  animation: neonSweep 6s linear infinite;
  filter: drop-shadow(0 0 6px var(--primary));
}
@keyframes neonSweep { to { background-position: 200% 0; } }

.portal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main);
}
/* Marka amblemi (gerçek logo görseli) */
.portal-logo-mark {
  height: 40px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(25, 110, 255, 0.45));
  animation: logoFloat 5s ease-in-out infinite;
}
.portal-logo-mark.lg { height: 64px; margin: 0 auto 16px; }

/* Dönen gradyan halka içinde amblem */
.portal-emblem {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}
.portal-emblem::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
      transparent 0deg,
      rgba(17, 99, 255, 0.06) 60deg,
      #1163ff 150deg,
      #29d8ff 215deg,
      #d4def0 258deg,
      transparent 310deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  animation: portalRingSpin 3.4s linear infinite;
}
.portal-emblem img {
  width: 68px;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 5px 18px rgba(25, 120, 255, 0.5));
}
@keyframes portalRingSpin { to { transform: rotate(360deg); } }

.portal-logo-glow {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: #02131a;
  position: relative;
  transform: perspective(300px) rotateX(14deg) rotateY(-16deg);
  box-shadow: 4px 6px 0 rgba(0, 120, 160, 0.55), 8px 12px 18px rgba(0, 0, 0, 0.6), 0 0 24px var(--primary-glow);
  animation: logoFloat 5s ease-in-out infinite;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
@keyframes logoFloat {
  0%, 100% { transform: perspective(300px) rotateX(14deg) rotateY(-16deg) translateY(0); }
  50% { transform: perspective(300px) rotateX(8deg) rotateY(14deg) translateY(-3px); }
}
.portal-brand-text h1 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: linear-gradient(90deg, #fff, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.portal-brand-text span {
  font-size: 10.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
.portal-top-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- ROZETLER ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
  border: 1px solid transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 4px 10px rgba(0, 0, 0, 0.35);
}
.badge-green  { background: rgba(43, 255, 176, 0.1);  color: var(--green);  border-color: rgba(43, 255, 176, 0.4);  text-shadow: 0 0 8px var(--green-glow); }
.badge-cyan   { background: rgba(25, 230, 255, 0.1);  color: var(--primary); border-color: rgba(25, 230, 255, 0.4);  text-shadow: 0 0 8px var(--primary-glow); }
.badge-amber  { background: rgba(255, 194, 51, 0.1);  color: var(--amber);  border-color: rgba(255, 194, 51, 0.4);  text-shadow: 0 0 8px var(--amber-glow); }
.badge-red    { background: rgba(255, 61, 127, 0.1);  color: var(--red);    border-color: rgba(255, 61, 127, 0.4);  text-shadow: 0 0 8px var(--red-glow); }
.badge-purple { background: rgba(179, 107, 255, 0.1); color: var(--purple); border-color: rgba(179, 107, 255, 0.4); text-shadow: 0 0 8px var(--purple-glow); }

.dot-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 10px currentColor, 0 0 18px currentColor;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

/* ---------- 3D BUTONLAR ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.2s ease;
  font-family: var(--font-sans);
  text-decoration: none;
  position: relative;
  transform: translateY(0);
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.12); }
.btn:active:not(:disabled) { transform: translateY(3px); }

.btn-primary {
  background: linear-gradient(180deg, #5cf0ff 0%, var(--primary-2) 100%);
  color: #021218;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 0 #04618f, 0 8px 18px rgba(0, 0, 0, 0.5), 0 0 22px var(--primary-glow);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 6px 0 #04618f, 0 12px 22px rgba(0, 0, 0, 0.55), 0 0 30px var(--primary-glow); }
.btn-primary:active:not(:disabled) { box-shadow: 0 1px 0 #04618f, 0 3px 8px rgba(0, 0, 0, 0.5), 0 0 16px var(--primary-glow); }

.btn-green {
  background: linear-gradient(180deg, #66ffc8 0%, var(--green-2) 100%);
  color: #02140d;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 0 #057a50, 0 8px 18px rgba(0, 0, 0, 0.5), 0 0 22px var(--green-glow);
}
.btn-green:hover:not(:disabled) { box-shadow: 0 6px 0 #057a50, 0 12px 22px rgba(0, 0, 0, 0.55), 0 0 30px var(--green-glow); }
.btn-green:active:not(:disabled) { box-shadow: 0 1px 0 #057a50, 0 3px 8px rgba(0, 0, 0, 0.5), 0 0 16px var(--green-glow); }

.btn-danger {
  background: linear-gradient(180deg, rgba(255, 61, 127, 0.28), rgba(214, 28, 92, 0.18));
  color: #ff7aa6;
  border-color: rgba(255, 61, 127, 0.5);
  box-shadow: 0 4px 0 rgba(120, 10, 50, 0.8), 0 8px 16px rgba(0, 0, 0, 0.45), 0 0 14px rgba(255, 61, 127, 0.18);
}
.btn-danger:hover:not(:disabled) {
  background: linear-gradient(180deg, #ff5c95, var(--red-2));
  color: #fff;
  box-shadow: 0 6px 0 rgba(120, 10, 50, 0.9), 0 12px 20px rgba(0, 0, 0, 0.5), 0 0 26px var(--red-glow);
}
.btn-danger:active:not(:disabled) { box-shadow: 0 1px 0 rgba(120, 10, 50, 0.9), 0 3px 8px rgba(0, 0, 0, 0.5); }

.btn-secondary {
  background: linear-gradient(180deg, rgba(60, 80, 130, 0.35), rgba(25, 35, 65, 0.55));
  color: var(--text-main);
  border-color: var(--border-strong);
  box-shadow: 0 4px 0 rgba(8, 14, 32, 0.95), 0 8px 16px rgba(0, 0, 0, 0.4);
}
.btn-secondary:hover:not(:disabled) {
  border-color: var(--primary);
  box-shadow: 0 6px 0 rgba(8, 14, 32, 0.95), 0 10px 18px rgba(0, 0, 0, 0.45), 0 0 18px var(--primary-glow);
}
.btn-secondary:active:not(:disabled) { box-shadow: 0 1px 0 rgba(8, 14, 32, 0.95), 0 3px 8px rgba(0, 0, 0, 0.4); }

.btn-sm { padding: 7px 12px; font-size: 11.5px; border-radius: 10px; }

/* ---------- DÜZEN ---------- */
.portal-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 22px 70px 22px;
  width: 100%;
  perspective: 1600px;
}

/* ---------- KPI KARTLARI (3D) ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
  transform-style: preserve-3d;
}
.kpi-card, .card, .auth-box, .modal-content {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 0%;
}
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--depth-1);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.kpi-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(25, 230, 255, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.kpi-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--green));
  box-shadow: 0 0 16px var(--primary), 0 0 32px var(--primary-glow);
}
.kpi-card:nth-child(2)::after { background: linear-gradient(90deg, var(--purple), var(--primary)); box-shadow: 0 0 16px var(--purple), 0 0 32px var(--purple-glow); }
.kpi-card:nth-child(3)::after { background: linear-gradient(90deg, var(--amber), #ff8a3d); box-shadow: 0 0 16px var(--amber), 0 0 32px var(--amber-glow); }
.kpi-card:nth-child(4)::after { background: linear-gradient(90deg, var(--green), var(--primary)); box-shadow: 0 0 16px var(--green), 0 0 32px var(--green-glow); }
.kpi-card:hover {
  border-color: rgba(25, 230, 255, 0.55);
  box-shadow: var(--depth-2), 0 0 40px rgba(25, 230, 255, 0.14);
}
.kpi-card:hover::before { opacity: 1; }

.kpi-title {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}
.kpi-value {
  font-size: 30px;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.5px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5), 0 0 18px currentColor;
}
.kpi-sub { font-size: 12px; color: var(--text-dim); margin-top: 8px; }

/* ---------- KARTLAR (3D PANEL) ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
  position: relative;
  box-shadow: var(--depth-1);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(25, 230, 255, 0.55), transparent 35%, transparent 65%, rgba(179, 107, 255, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  opacity: 0.7;
}
.card:hover { box-shadow: var(--depth-2), 0 0 44px rgba(25, 230, 255, 0.08); }
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}
.card-title {
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.2px;
}
.card-title span:first-child { filter: drop-shadow(0 0 8px var(--primary-glow)); }

/* ---------- FORM ---------- */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.form-input, .form-select {
  width: 100%;
  padding: 11px 14px;
  background: linear-gradient(180deg, rgba(3, 6, 16, 0.9), rgba(10, 16, 32, 0.8));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 14px;
  font-family: var(--font-mono);
  outline: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.55) inset, 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.55) inset, 0 0 0 3px rgba(25, 230, 255, 0.14), 0 0 22px var(--primary-glow);
}
.form-select option { background: #0b1226; color: var(--text-main); }

/* ---------- ÇALIŞMA MODU KARTLARI ---------- */
.mode-card {
  background: linear-gradient(160deg, rgba(20, 28, 50, 0.8), rgba(8, 12, 24, 0.9));
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  position: relative;
  box-shadow: var(--depth-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.mode-card:hover { border-color: var(--border-strong); }
.mode-card.active {
  border-color: var(--primary);
  background: linear-gradient(160deg, rgba(25, 230, 255, 0.14), rgba(10, 20, 40, 0.92));
  box-shadow: var(--depth-2), 0 0 0 1px rgba(25, 230, 255, 0.3), 0 0 36px var(--primary-glow);
}

/* ---------- TABLOLAR ---------- */
.table-responsive { width: 100%; overflow-x: auto; border-radius: var(--radius-md); }
.portal-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  text-align: left;
  font-size: 13px;
}
.portal-table th {
  padding: 8px 14px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--primary);
  font-family: var(--font-mono);
  white-space: nowrap;
  text-shadow: 0 0 8px var(--primary-glow);
}
.portal-table td {
  padding: 13px 14px;
  background: rgba(14, 20, 40, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  font-family: var(--font-sans);
  transition: background 0.2s;
}
.portal-table td:first-child { border-radius: 10px 0 0 10px; border-left: 1px solid rgba(255, 255, 255, 0.04); }
.portal-table td:last-child { border-radius: 0 10px 10px 0; border-right: 1px solid rgba(255, 255, 255, 0.04); }
.portal-table tbody tr:hover td { background: rgba(25, 230, 255, 0.08); border-top-color: rgba(25, 230, 255, 0.25); }

/* ---------- RENK YARDIMCILARI ---------- */
.text-green { color: var(--green) !important; }
.text-red { color: var(--red) !important; }
.text-cyan { color: var(--primary) !important; }
.text-amber { color: var(--amber) !important; }
.text-mono { font-family: var(--font-mono); }

/* ---------- GİRİŞ / KAYIT ---------- */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  perspective: 1600px;
}
.auth-box {
  width: 100%;
  max-width: 450px;
  background: var(--bg-card);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 36px 30px;
  position: relative;
  box-shadow: var(--depth-2), 0 0 80px rgba(25, 230, 255, 0.1);
  animation: authIn 0.5s ease backwards;
}
@keyframes authIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.auth-box::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  padding: 2px;
  background: conic-gradient(from var(--spin, 0deg), var(--primary), var(--purple), var(--green), var(--primary));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 7s linear infinite;
  pointer-events: none;
  filter: drop-shadow(0 0 8px var(--primary-glow));
}
@property --spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --spin: 360deg; } }

.auth-tabs {
  display: flex;
  margin-bottom: 24px;
  background: rgba(0, 0, 0, 0.45);
  padding: 5px;
  border-radius: var(--radius-md);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6) inset;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 9px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.auth-tab.active {
  background: linear-gradient(180deg, rgba(60, 90, 150, 0.55), rgba(25, 40, 80, 0.8));
  color: var(--text-main);
  box-shadow: 0 3px 0 rgba(4, 8, 20, 0.9), 0 6px 12px rgba(0, 0, 0, 0.45), 0 0 14px var(--primary-glow);
  transform: translateY(-1px);
}

/* ---------- MODAL ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 12, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  perspective: 1400px;
}
.modal-overlay.active { display: flex; }
.modal-overlay.active .modal-content { animation: modalIn 0.45s cubic-bezier(0.2, 0.9, 0.2, 1) both; }
@keyframes modalIn {
  from { opacity: 0; transform: perspective(1000px) rotateX(-16deg) translateY(30px) scale(0.95); }
  to { opacity: 1; transform: perspective(1000px) rotateX(0) translateY(0) scale(1); }
}
.modal-content {
  background: linear-gradient(160deg, #121a33, #0a1022);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  width: 92%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px;
  box-shadow: var(--depth-2), 0 0 60px rgba(25, 230, 255, 0.14);
}

/* ---------- BİLDİRİMLER (SAĞ ALT) ---------- */
.ra-host { position: fixed; right: 20px; bottom: 20px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.ra-stack { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.ra-sound { pointer-events: auto; cursor: pointer; font: 700 11px var(--font-mono); color: var(--text-muted); background: rgba(10, 15, 30, 0.85); border: 1px solid var(--border-strong); border-radius: 999px; padding: 6px 12px; backdrop-filter: blur(10px); }
.ra-sound:hover { color: var(--primary); border-color: var(--primary); }
.ra-sound.off { color: var(--red); }
.ra-toast {
  --c: var(--primary); --cg: var(--primary-glow);
  pointer-events: auto; position: relative; overflow: hidden;
  width: 340px; max-width: calc(100vw - 32px);
  display: grid; grid-template-columns: 40px 1fr 22px; gap: 12px; align-items: start;
  padding: 14px 14px 16px 14px;
  background: linear-gradient(160deg, rgba(20, 30, 54, 0.96), rgba(8, 13, 28, 0.97));
  border: 1px solid var(--c); border-left-width: 4px; border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 26px var(--cg);
  backdrop-filter: blur(14px);
  animation: raIn 0.32s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.ra-toast.out { animation: raOut 0.26s ease forwards; }
@keyframes raIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes raOut { to { opacity: 0; transform: translateX(40px); } }
.ra-buy, .ra-signal { --c: var(--green); --cg: var(--green-glow); }
.ra-sell, .ra-tp { --c: var(--primary); --cg: var(--primary-glow); }
.ra-loss, .ra-error { --c: var(--red); --cg: var(--red-glow); }
.ra-warn { --c: var(--amber); --cg: var(--amber-glow); }
.ra-success { --c: var(--green); --cg: var(--green-glow); }
.ra-info { --c: var(--purple); --cg: var(--purple-glow); }
.ra-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; font-weight: 900; color: #04101c; background: var(--c); box-shadow: 0 0 18px var(--cg); }
.ra-tag { font: 800 10px var(--font-mono); letter-spacing: 1.6px; color: var(--c); }
.ra-title { font-weight: 800; font-size: 15px; color: #fff; margin-top: 2px; }
.ra-msg { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; line-height: 1.45; word-break: break-word; }
.ra-x { background: none; border: 0; color: var(--text-dim); font-size: 20px; line-height: 1; cursor: pointer; padding: 0; }
.ra-x:hover { color: #fff; }
.ra-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--c); box-shadow: 0 0 10px var(--cg); transform-origin: left; animation: raBar var(--ttl) linear forwards; }
.ra-toast.hold .ra-bar { animation-play-state: paused; }
@keyframes raBar { to { transform: scaleX(0); } }
@media (max-width: 560px) {
  .ra-host { right: 10px; bottom: 10px; left: 10px; align-items: stretch; }
  .ra-stack { align-items: stretch; }
  .ra-toast { width: auto; }
  .ra-sound { align-self: flex-end; }
}

/* ---------- ZİNCİR SEKMELERİ ---------- */
.chain-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.chain-tab {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 12px 14px; border-radius: 14px; cursor: pointer; color: var(--text-main); font-family: var(--font-sans);
  background: linear-gradient(160deg, rgba(24, 34, 62, 0.9), rgba(10, 16, 32, 0.95));
  border: 1px solid var(--border); text-align: left;
  box-shadow: 0 4px 0 rgba(3, 6, 16, 0.9), 0 8px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.chain-tab:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.chain-tab.active {
  border-color: var(--primary);
  box-shadow: 0 4px 0 rgba(3, 6, 16, 0.9), 0 0 22px var(--primary-glow), inset 0 0 18px rgba(25, 230, 255, 0.1);
}
.chain-ico { font-size: 20px; }
.chain-name { font-weight: 800; font-size: 14px; }
.chain-state { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; padding: 2px 8px; border-radius: 999px; border: 1px solid; }
.chain-state.on { color: var(--green); border-color: rgba(43, 255, 176, 0.45); background: rgba(43, 255, 176, 0.1); }
.chain-state.watch { color: var(--amber); border-color: rgba(255, 194, 51, 0.45); background: rgba(255, 194, 51, 0.08); }
.chain-cnt { font-size: 11px; color: var(--text-dim); }

/* ---------- POZİSYON KARTLARI ---------- */
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.empty-note { color: var(--text-dim); text-align: center; padding: 26px; border: 1px dashed var(--border); border-radius: 14px; grid-column: 1 / -1; font-size: 13px; }
.pc {
  position: relative; padding: 16px; border-radius: 16px; border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(20, 30, 56, 0.92), rgba(8, 13, 28, 0.96));
  box-shadow: 0 5px 0 rgba(3, 6, 16, 0.9), 0 12px 24px rgba(0, 0, 0, 0.45);
}
.pc.pc-pos { border-color: rgba(43, 255, 176, 0.4); box-shadow: 0 5px 0 rgba(3, 6, 16, 0.9), 0 0 24px rgba(43, 255, 176, 0.16); }
.pc.pc-neg { border-color: rgba(255, 61, 127, 0.4); box-shadow: 0 5px 0 rgba(3, 6, 16, 0.9), 0 0 24px rgba(255, 61, 127, 0.14); }
.pc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.pc-sym { font-size: 17px; font-weight: 800; }
.pc-meta { font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); }
.pc-main { margin: 12px 0 10px; }
.pc-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.pc-big { font-size: 34px; font-weight: 800; font-family: var(--font-mono); line-height: 1.1; text-shadow: 0 0 16px currentColor; }
.pc-sub { font-family: var(--font-mono); font-size: 13px; }
.pc-sub small { color: var(--text-dim); font-family: var(--font-sans); }
.pc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pc-stats > div { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 10px; padding: 8px; }
.pc-stats span { display: block; font-size: 10px; color: var(--text-dim); margin-bottom: 3px; }
.pc-stats b { font-family: var(--font-mono); font-size: 12px; }
.pc-prices { display: flex; justify-content: space-between; margin: 10px 0; font-size: 11px; color: var(--text-dim); }
.pc-prices b { color: var(--text-main); font-family: var(--font-mono); }
.pc-tps { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; }
.tp-chip { font-size: 11px; font-family: var(--font-mono); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-muted); }
.tp-chip.done { color: var(--green); border-color: rgba(43, 255, 176, 0.5); background: rgba(43, 255, 176, 0.08); }
.tp-chip.runner { color: var(--purple); border-color: rgba(179, 107, 255, 0.5); background: rgba(179, 107, 255, 0.08); }
.pc-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ---------- ADAY TABLOSU ---------- */
.cand-table { table-layout: auto; }
.cand-table td, .cand-table th { white-space: nowrap; font-size: 11.5px; padding: 9px 7px; }
.cand-table th { position: sticky; top: 0; z-index: 2; background: #0b1226; font-size: 10px; letter-spacing: 0.6px; }
.cand-table tbody tr:hover { transform: none; filter: none; }
.cand-wrap { overflow: auto; max-height: 640px; scrollbar-width: thin; scrollbar-color: var(--primary) transparent; }
.cand-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
.cand-wrap::-webkit-scrollbar-thumb { background: rgba(25, 230, 255, 0.45); border-radius: 8px; }
.mono-sm { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); }
.dex-link { color: var(--primary); text-decoration: none; font-size: 12px; }
.chip { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; border: 1px solid; }
.chip-gem { color: #bff6ff; border-color: var(--primary); background: rgba(25, 230, 255, 0.14); box-shadow: 0 0 12px var(--primary-glow); }
.chip-star { color: var(--purple); border-color: rgba(179, 107, 255, 0.6); background: rgba(179, 107, 255, 0.12); }
.chip-ok { color: var(--green); border-color: rgba(43, 255, 176, 0.5); background: rgba(43, 255, 176, 0.1); }
.chip-warn { color: var(--amber); border-color: rgba(255, 194, 51, 0.5); background: rgba(255, 194, 51, 0.08); }
.row-gem td { background: rgba(25, 230, 255, 0.07) !important; }
.row-live td { background: rgba(43, 255, 176, 0.05) !important; }
.row-dim td { opacity: 0.55; }

/* ---------- AYARLAR (TP/SL) ---------- */
.section-sub { margin: 22px 0 12px; font-weight: 800; font-size: 14px; color: var(--primary); text-shadow: 0 0 10px var(--primary-glow); }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.tp-row { display: grid; grid-template-columns: 46px 1fr 1fr; gap: 8px; align-items: center; }
.tp-tag { font-weight: 800; font-family: var(--font-mono); color: var(--green); font-size: 13px; }
.note-line { font-size: 12px; color: var(--text-dim); margin: 12px 0 0; line-height: 1.5; }

/* ---------- DUYARLI ---------- */
@media (max-width: 860px) {
  .portal-topbar { padding: 12px 16px; }
  .portal-container { padding: 18px 12px 50px; }
  .kpi-value { font-size: 25px; }
  .card { padding: 18px; }
  .portal-brand-text span { display: none; }
}
@media (hover: none) {
  .kpi-card, .card, .auth-box { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
