:root {
  --bg: #10141a;
  --bg-sidebar: #0b0e13;
  --grid-line: rgba(148,180,209,0.055);
  --panel: rgba(23,28,35,0.78);
  --panel-solid: #171c23;
  --border: rgba(148,180,209,0.14);
  --border-strong: rgba(201,162,91,0.38);
  --text: #e8ecef;
  --muted: #8b93a0;
  --muted-2: #5c6470;
  --accent: #c9a25b;
  --accent-2: #e2bd7f;
  --accent-grad: linear-gradient(135deg, #b58a4a 0%, #d9b471 100%);
  --ok: #5aab86;
  --err: #d1705f;
  --amber: #c9a25b;
  --input-bg: #0a0c10;
  --mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", sans-serif;
}

/* AÇIK TEMA (Light Mode) - Ayarlar sayfasından seçilebilir. Tüm renkler
   zaten CSS değişkeni olduğu için, sadece bu değişkenlerin değerlerini
   [data-theme="light"] altında override etmek yeterli - hiçbir başka CSS
   kuralını değiştirmemize gerek yok. */
[data-theme="light"] {
  --bg: #f5f3ee;
  --bg-sidebar: #ffffff;
  --grid-line: rgba(60,50,30,0.045);
  --panel: rgba(255,255,255,0.86);
  --panel-solid: #ffffff;
  --border: rgba(30,25,15,0.12);
  --border-strong: rgba(160,120,50,0.45);
  --text: #21252b;
  --muted: #6b7280;
  --muted-2: #8a92a0;
  --accent: #a9752e;
  --accent-2: #c68f42;
  --accent-grad: linear-gradient(135deg, #a9752e 0%, #c68f42 100%);
  --ok: #2f7a56;
  --err: #c14b3a;
  --amber: #a9752e;
  --input-bg: #fbfaf7;
}
[data-theme="light"] .brand-logo,
[data-theme="light"] img[src*="logo"] {
  filter: none;
}
* { box-sizing: border-box; }
body {
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(0deg, var(--grid-line) 0px, var(--grid-line) 1px, transparent 1px, transparent 44px),
    repeating-linear-gradient(90deg, var(--grid-line) 0px, var(--grid-line) 1px, transparent 1px, transparent 44px),
    radial-gradient(1200px 640px at 10% -12%, rgba(201,162,91,0.09), transparent 58%),
    radial-gradient(900px 560px at 100% 0%, rgba(90,130,160,0.10), transparent 55%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  margin: 0;
  display: flex;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: 244px;
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 22px 0 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 22px 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
  position: relative;
}
.brand::after {
  content: "";
  position: absolute;
  left: 22px; right: 22px; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0, var(--accent) 24px, transparent 24px);
  opacity: 0.7;
}
@keyframes brand-logo-heartbeat {
  0%   { transform: scale(1); }
  14%  { transform: scale(1.15); }
  28%  { transform: scale(1); }
  42%  { transform: scale(1.15); }
  70%  { transform: scale(1); }
  100% { transform: scale(1); }
}
@keyframes brand-logo-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.brand-logo {
  height: 100px;   /* önceki 150px'ten küçültüldü */
  width: auto;
  max-width: 200px; /* güvenlik sınırı: sidebar'daki mevcut genişliği asla aşmaz */
  /* Sembol (X yaprak işareti) içindeki koyu/siyah tonlar, koyu sidebar
     zemininde neredeyse görünmez olduğu için (kontrast 1.06:1) sitenin
     paletine uyan görünür bir koyu griye (~3.26:1 kontrast) kaydırıldı -
     hem PDF'lerdeki beyaz zeminde hem burada koyu zeminde net görünüyor. */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  transform-origin: center center;
  /* Varsayılan: kalp atışı gibi nabız - üzerine gelince (hover) bunun yerine
     ÇOK HIZLI bir dönüş devreye girer (aşağıdaki :hover kuralı). */
  animation: brand-logo-heartbeat 1.6s ease-in-out infinite;
  cursor: pointer;
}
.brand-logo:hover {
  animation: brand-logo-spin 0.5s linear infinite;
}

.nav-group-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  padding: 18px 22px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-group-label::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--accent);
  opacity: 0.55;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 18px;
  margin: 0 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 5px;
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
}
.nav-item:hover { color: var(--text); background: rgba(201,162,91,0.05); }
.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(201,162,91,0.16), rgba(201,162,91,0.02));
  border-left: 2px solid var(--accent);
  font-weight: 600;
}
.icon-badge {
  width: 25px; height: 25px;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px;
  background: rgba(255,255,255,0.05);
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.icon-blue { background: rgba(84,138,167,0.14); }
.icon-violet { background: rgba(155,130,201,0.13); }
.icon-amber { background: rgba(201,162,91,0.16); }
.icon-green { background: rgba(76,175,138,0.13); }
.icon-slate { background: rgba(255,255,255,0.05); }

.nav-item .badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--muted-2);
  background: rgba(255,255,255,0.06);
  padding: 3px 6px;
  letter-spacing: 0.02em;
}

/* ---------- Main content ---------- */
.main {
  flex: 1;
  padding: 44px 48px 72px;
  max-width: 980px;
}

/* ---------- Sağ Bildirim Sidebar'ı ---------- */
.right-sidebar {
  width: 260px;
  flex-shrink: 0;
  padding: 44px 32px 72px 0;
}
.right-sidebar h3 {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
}
.rsidebar-card {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.rsidebar-card-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.rsidebar-card-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.rsidebar-card-link {
  font-size: 12.5px;
  color: var(--accent);
  text-decoration: none;
}
.rsidebar-card-link:hover {
  text-decoration: underline;
}
h1 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.subtitle {
  color: var(--muted);
  font-size: 14px;
  margin: -8px 0 28px;
  line-height: 1.5;
  padding-bottom: 18px;
  position: relative;
}
.subtitle::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 64px; height: 1px;
  background: var(--accent);
}
.subtitle::before {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 1px; height: 7px;
  background: var(--accent);
}

.panel {
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px 26px;
  margin-bottom: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.30);
  position: relative;
}
.panel::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 14px; height: 14px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  opacity: 0.55;
}
.panel h2 {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 16px;
}

label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; font-weight: 500; }
.field { margin-bottom: 16px; }

.address-bar {
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0 14px;
  transition: border-color 0.15s;
}
.address-bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,162,91,0.12); }
.address-bar .icon { color: var(--muted); margin-right: 9px; font-size: 14px; }
.address-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  padding: 13px 0;
  font-family: var(--mono);
}

input[type=text], input[type=number], select {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  font-family: var(--sans);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type=text]:focus, input[type=number]:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,162,91,0.12);
}
input:disabled { opacity: 0.5; }

.row { display: flex; gap: 16px; }
.row > div { flex: 1; }

.checkbox-row {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--muted); margin-top: 6px;
}
.checkbox-row input { width: auto; accent-color: var(--accent); }

button {
  background: var(--accent-grad);
  color: #1c1408;
  border: none;
  border-radius: 5px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
  box-shadow: 0 4px 16px rgba(201,162,91,0.22);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
button:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(201,162,91,0.32); }
button:active { transform: translateY(0); }
button:disabled { background: #2a2822; color: var(--muted-2); box-shadow: none; cursor: not-allowed; opacity: 0.6; transform: none; clip-path: none; }

.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--border);
  clip-path: none;
}
.btn-secondary:hover {
  background: rgba(201,162,91,0.08);
  box-shadow: none;
  border-color: var(--border-strong);
}

.status-line { font-family: var(--mono); font-size: 12.5px; margin-top: 12px; min-height: 18px; font-weight: 500; }
.status-line.ok { color: var(--ok); }
.status-line.err { color: var(--err); }
.status-line.running { color: var(--accent); }

#log {
  background: #07080b;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: #b8bfcc;
  height: 320px;
  overflow-y: auto;
  white-space: pre-wrap;
  display: none;
  margin-top: 14px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--ok);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  background: rgba(90,171,134,0.10);
  padding: 9px 16px;
  border-radius: 5px;
  border: 1px solid rgba(90,171,134,0.25);
  transition: background 0.15s;
}
.download-link:hover { background: rgba(90,171,134,0.18); }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--border); }
th { font-family: var(--mono); color: var(--muted-2); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
tr:hover td { background: rgba(201,162,91,0.03); }
td a { color: var(--accent); text-decoration: none; font-weight: 500; }
td a:hover { text-decoration: underline; }
.empty-hint { color: var(--muted); font-size: 13px; padding: 10px 0; }

/* ---------- Placeholder ("yakında") pages ---------- */
.coming-soon {
  border: 1px dashed var(--border-strong);
  border-radius: 6px;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,0.012);
}
.coming-soon .big-icon {
  font-size: 36px; margin-bottom: 14px;
  filter: drop-shadow(0 4px 12px rgba(201,162,91,0.22));
}
.coming-soon h3 { font-family: var(--display); color: var(--text); margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.coming-soon p { font-size: 13px; max-width: 440px; margin: 0 auto; line-height: 1.7; }

.info-note {
  font-size: 12.5px;
  color: var(--muted);
  background: rgba(201,162,91,0.05);
  border: 1px solid rgba(201,162,91,0.16);
  border-radius: 5px;
  padding: 6px 10px;
  margin-top: 6px;
  line-height: 1.6;
}
.info-note[open] {
  padding: 10px 14px;
}
.info-note summary {
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  outline: none;
  user-select: none;
}
.info-note summary::-webkit-details-marker {
  display: none;
}
.info-note summary::after {
  content: "ℹ️";
}
.info-note[open] summary::after {
  content: "ℹ️ ▲";
}
.info-note .info-note-body {
  margin-top: 8px;
}

/* --- Kimlik doğrulama: sidebar kullanıcı bilgisi --- */
.sidebar-user {
  margin-top: auto;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
}
.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.sidebar-user-org {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}
.sidebar-logout {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
}
.sidebar-logout:hover {
  text-decoration: underline;
}

/* --- Kimlik doğrulama: giriş/kayıt sayfaları --- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
}
.auth-card img.auth-logo {
  height: 70px;
  width: auto;
  display: block;
  margin: 0 auto 22px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.auth-card h1 {
  font-family: var(--display);
  font-size: 19px;
  color: var(--text);
  text-align: center;
  margin: 0 0 26px;
  font-weight: 600;
}
.auth-field {
  margin-bottom: 14px;
}
.auth-field label {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 5px;
}
.auth-field input {
  width: 100%;
  box-sizing: border-box;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 13.5px;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--accent);
}
.auth-submit {
  width: 100%;
  margin-top: 8px;
  padding: 11px;
  border: none;
  border-radius: 6px;
  background: var(--accent-grad);
  color: #1c1408;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.auth-submit:hover {
  opacity: 0.92;
}
.auth-error {
  background: rgba(224,96,96,0.1);
  border: 1px solid rgba(224,96,96,0.3);
  color: #e08080;
  font-size: 12.5px;
  border-radius: 5px;
  padding: 10px 12px;
  margin-bottom: 16px;
}
.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--muted);
}
.auth-switch a {
  color: var(--accent);
  text-decoration: none;
}
.auth-switch a:hover {
  text-decoration: underline;
}

/* --- Kimlik doğrulama: mod seçici (yeni firma / davet koduyla katıl) --- */
.auth-mode-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 4px;
}
.auth-mode-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 5px;
  padding: 8px 6px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.auth-mode-btn.active {
  background: var(--accent-grad);
  color: #1c1408;
  font-weight: 600;
}
.auth-hint {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
}
.invite-code-box {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 4px;
  text-align: center;
  color: var(--accent-2);
  background: rgba(201,162,91,0.08);
  border: 1px solid rgba(201,162,91,0.25);
  border-radius: 8px;
  padding: 16px;
}

/* --- Kimlik doğrulama: sidebar davet gönderme --- */
.sidebar-invite {
  margin: 14px 22px 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.sidebar-invite-btn {
  width: 100%;
  background: rgba(201,162,91,0.08);
  border: 1px solid rgba(201,162,91,0.25);
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--accent-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.sidebar-invite-btn:hover {
  background: rgba(201,162,91,0.14);
}
#inviteForm {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#inviteForm input {
  width: 100%;
  box-sizing: border-box;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 12.5px;
}
#inviteForm button {
  background: var(--accent-grad);
  border: none;
  border-radius: 5px;
  padding: 8px;
  color: #1c1408;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
}
#inviteResult {
  font-size: 11.5px;
  margin-top: 6px;
  line-height: 1.5;
}

/* Firma seçici açılır listesi (native <datalist> yerine - tarayıcının
   "değer doluyken tekrar tıklayınca açılmama" sınırlamasını önlemek için) */
.company-picker {
  position: relative;
}
.company-dropdown {
  display: none;
  position: fixed;
  max-height: 340px;
  overflow-y: auto;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  z-index: 9999;
}
.company-dropdown.open {
  display: block;
}
.company-dropdown-item {
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}
.company-dropdown-item:hover,
.company-dropdown-item.highlighted {
  background: rgba(201,162,91,0.12);
}
.company-dropdown-empty {
  padding: 9px 14px;
  font-size: 12.5px;
  color: var(--muted);
}

/* =====================================================================
   MOBİL / RESPONSIVE TASARIM
   Masaüstünde hiçbir görsel değişiklik yapmaz - sadece 768px ve altı
   ekranlarda (telefon/küçük tablet) devreye girer.
   ===================================================================== */

/* Mobil üst çubuk (hamburger menü) - varsayılan olarak GİZLİ, sadece
   mobilde (aşağıdaki media query içinde) görünür yapılır. */
.mobile-topbar {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.mobile-menu-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 20px;
  width: 40px;
  height: 40px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-topbar-logo {
  height: 32px;
  width: auto;
}
.sidebar-overlay {
  display: none;
}

@media (max-width: 768px) {
  body { flex-direction: column; }

  /* Sağ bildirim sidebar'ı dar ekranlarda yer kaplamasın diye gizleniyor -
     içerik zaten Takip Listesi ve Ayarlar sayfalarından erişilebilir. */
  .right-sidebar { display: none; }

  /* Hamburger üst çubuğu göster */
  .mobile-topbar { display: flex; }

  /* Sidebar: varsayılan olarak ekran dışına gizli, "open" class'ı ile
     ekranın soluna kayarak açılır (overlay ile birlikte). */
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 78vw;
    max-width: 300px;
    z-index: 300;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: 0 0 40px rgba(0,0,0,0.4);
  }
  .sidebar.open { transform: translateX(0); }

  .sidebar-overlay.open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 250;
  }

  /* Ana içerik: kenar boşlukları küçültülür, üstte hamburger çubuğu
     zaten kendi alanını aldığı için ekstra üst boşluğa gerek yok. */
  .main {
    padding: 20px 16px 48px;
    max-width: 100%;
  }

  h1 { font-size: 21px; }

  /* Yan yana duran alanlar (örn. "Konum" + "Yarıçap") mobilde alt alta */
  .row { flex-direction: column; gap: 0; }

  /* Panel iç boşlukları biraz daraltılır */
  .panel { padding: 18px 16px; }

  /* Tablolar: ekrandan taşarsa yatay kaydırılabilir olsun, sayfa
     genişliğini bozmasın */
  table { display: block; overflow-x: auto; white-space: nowrap; }

  /* Butonlar mobilde parmakla rahat basılabilecek kadar büyük olsun */
  button, .btn-secondary, input[type=text], input[type=number], select,
  .address-bar input {
    font-size: 16px; /* iOS Safari'nin input'a otomatik zoom yapmasını önler */
  }

  /* Ayarlar/form sayfalarındaki yan yana duran butonlar da alt alta
     daha rahat kullanılsın */
  .checkbox-row { align-items: flex-start; }

  .auth-card { padding: 28px 22px; }
  .auth-page { padding: 16px; }
}

/* =====================================================================
   GİZLİ MİNİ OYUN (kabarcık patlatma) - logoya çift tıklanınca açılır.
   Sistemin hiçbir işlevine bağlı değil, saf bir easter egg / stres atma
   aracı. Marka renkleriyle (altın/antrasit) tutarlı, ciddi bir görsel
   dilden kasıtlı olarak sapmıyor.
   ===================================================================== */
.brand-logo { cursor: pointer; }

._secret-game-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}
._secret-game-overlay.open { display: flex; }

._secret-game-box {
  position: relative;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 480px;
  width: 90vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  text-align: center;
}
._secret-game-close {
  position: absolute;
  top: 12px; right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%;
}
._secret-game-close:hover { background: rgba(255,255,255,0.06); color: var(--text); }

._secret-game-title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
._secret-game-msg {
  min-height: 20px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 10px;
}
._secret-game-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  margin: 14px 0 20px;
}
@media (max-width: 480px) {
  ._secret-game-grid { grid-template-columns: repeat(8, 1fr); }
}

._secret-bubble {
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(201,162,91,0.9), rgba(201,162,91,0.25) 70%);
  border: 1px solid rgba(201,162,91,0.4);
  cursor: pointer;
  transition: transform 0.08s ease;
}
._secret-bubble:hover { transform: scale(1.08); }
._secret-bubble:active { transform: scale(0.85); }
._secret-bubble._popped {
  background: transparent;
  border-color: var(--border);
  transform: scale(0.3);
  opacity: 0;
  pointer-events: none;
}

._secret-game-refill {
  background: var(--accent);
  color: #14161a;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
._secret-game-refill:hover { opacity: 0.9; }
