/* ========== DEĞİŞKENLER ========== */
:root {
  --bg-base: #0b0e13;
  --bg-soft: #11151c;
  --surface: #11151c;
  --surface-soft: #161b23;
  --input-bg: #0f1319;
  --glass-border: #232a35;
  --glass-border-hi: #2f3846;
  --text: #e6eaf0;
  --text-muted: #8b95a5;
  --accent: #22c55e;
  --accent-hover: #16a34a;
  --accent-glow: rgba(34,197,94,0.18);
  --accent-soft: rgba(34,197,94,0.12);
  --accent-border: rgba(34,197,94,0.32);
  --header-bg: rgba(11,14,19,0.85);
  --danger: #ef4444;
  --radius: 10px;
  --radius-lg: 14px;
}

.light {
  --bg-base: #edf1f8;
  --bg-soft: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #f1f3f7;
  --input-bg: #ffffff;
  --glass-border: #e4e7ec;
  --glass-border-hi: #d0d5dd;
  --text: #111827;
  --text-muted: #667085;
  --accent: #16a34a;
  --accent-hover: #15803d;
  --accent-glow: rgba(22,163,74,0.15);
  --accent-soft: rgba(22,163,74,0.1);
  --accent-border: rgba(22,163,74,0.32);
  --header-bg: rgba(255,255,255,0.85);
}

/* ========== GENEL ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Pixelify Sans', 'Courier New', Consolas, monospace;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  min-height: 100vh;
  background: var(--bg-base);
  transition: background 0.3s ease, color 0.3s ease;
  letter-spacing: 0;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.glass-card { content-visibility: auto; contain-intrinsic-size: 0 300px; }

/* Arka plan parçacıkları kapatıldı — sade görünüm. */
.bg-steam-canvas,
.steam-container,
.steam-canvas { display: none !important; }

/* Arka plan: lime + cyan yumuşak geçiş (görsel yok, saf CSS) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 540px at 6% -12%, rgba(163, 230, 53, 0.15) 0%, transparent 62%),
    radial-gradient(820px 580px at 96% 112%, rgba(34, 211, 238, 0.15) 0%, transparent 62%);
}

.light body::before {
  background:
    radial-gradient(900px 540px at 6% -12%, rgba(132, 204, 22, 0.18) 0%, transparent 62%),
    radial-gradient(820px 580px at 96% 112%, rgba(6, 182, 212, 0.16) 0%, transparent 62%);
}

/* ========== ARKA PLAN SERBEST BUHAR ========== */
.bg-steam-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  pointer-events: none;
  transform: translateZ(0);
}

.steam-container {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -4;
  pointer-events: none;
  overflow: hidden;
}

.steam-blob {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 66%);
  filter: blur(46px);
  opacity: 0.16;
  animation: floatBlob 40s ease-in-out infinite;
  transform: translateZ(0);
  will-change: transform;
}

/* 8 bulut: merkezleri ekranın solundan sağına eşit aralıklarla dağıtıldı.
   left değerleri calc(...) ile kaydırılıyor ki bulutun MERKEZİ hedeflenen
   yüzdeye gelsin; böylece sağ ve sol kenarda boşluk kalmıyor. */
.blob-1 { width: 620px; height: 620px; top: 0%;  left: calc(6%  - 310px); animation-delay: -3s;  animation-duration: 38s; }
.blob-2 { width: 540px; height: 540px; top: 46%; left: calc(19% - 270px); animation-delay: -15s; animation-duration: 44s; }
.blob-3 { width: 660px; height: 660px; top: 66%; left: calc(32% - 330px); animation-delay: -27s; animation-duration: 40s; }
.blob-4 { width: 500px; height: 500px; top: 10%; left: calc(45% - 250px); animation-delay: -9s;  animation-duration: 46s; }
.blob-5 { width: 640px; height: 640px; top: 58%; left: calc(58% - 320px); animation-delay: -21s; animation-duration: 36s; }
.blob-6 { width: 520px; height: 520px; top: 18%; left: calc(71% - 260px); animation-delay: -33s; animation-duration: 48s; }
.blob-7 { width: 600px; height: 600px; top: 74%; left: calc(84% - 300px); animation-delay: -6s;  animation-duration: 42s; }
.blob-8 { width: 480px; height: 480px; top: 32%; left: calc(97% - 240px); animation-delay: -18s; animation-duration: 50s; }

/* Bulutlar yerinde nabız atmıyor: yatayda ~240px yol alıyorlar */
@keyframes floatBlob {
  0%   { transform: translate3d(-110px, 0, 0) scale(1); }
  22%  { transform: translate3d(60px, -44px, 0) scale(1.09); }
  46%  { transform: translate3d(130px, 26px, 0) scale(0.94); }
  70%  { transform: translate3d(-20px, 34px, 0) scale(1.06); }
  100% { transform: translate3d(-110px, 0, 0) scale(1); }
}

.steam-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  transform: translateZ(0);
}

/* ========== ÜST ÇUBUK ==========
   Eskiden yüzen hap biçimli "ada"ydı; tam genişlikte sabit bir başlığa çevrildi. */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-left { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.back-btn {
  background: var(--surface-soft);
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 7px 11px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.back-btn:hover { background: var(--accent); color: white; }

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  color: var(--accent);
  cursor: pointer;
  transition: transform 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo:hover { transform: scale(1.03); }
.logo-img { width: 32px; height: 32px; border-radius: 8px; }

.nav-links {
  display: flex;
  gap: 5px;
  flex-wrap: nowrap;
  align-items: center;
  flex: 1;
  /* 'safe center': butonlar sığmadığında ortalamak yerine baştan hizalar,
     böylece ilk butonlar kırpılıp erişilemez hâle gelmez. Desteklemeyen
     tarayıcı üstteki 'center' değerini kullanır. */
  justify-content: center;
  justify-content: safe center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-links button {
  background: var(--surface-soft);
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links button:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
}

.user-area {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.user-area button {
  background: var(--surface-soft);
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.user-area button:hover { background: var(--accent); color: white; }

.btn-green {
  background: var(--accent) !important;
  color: white !important;
  border: none !important;
}

.btn-green:hover { background: var(--accent-hover) !important; }

.profile-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--accent);
  transition: transform 0.15s;
  flex-shrink: 0;
  object-fit: cover;
}

.profile-icon:hover { transform: scale(1.08); }

.username-label {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: bold;
  white-space: nowrap;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logout-btn {
  background: var(--danger) !important;
  color: white !important;
  border: none !important;
}

/* ========== MAIN ========== */
#content {
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  min-height: 60vh;
}

#content.page-enter {
  animation: fadeInUp 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ========== KART ========== */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  transition: border-color 0.18s, background 0.18s;
}

.glass-card:hover {
  border-color: var(--glass-border-hi);
  background: var(--surface-soft);
}

.glass-card h1,
.glass-card h2,
.glass-card h3 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-card { text-align: center; }
.hero-card h1 { font-size: 1.8rem; margin-bottom: 1rem; }
.hero-card p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1rem; }

/* ========== ADMIN FORM ========== */
.glass-card input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.glass-card textarea,
.glass-card select,
.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  display: block;
  padding: 14px 16px;
  margin: 10px 0;
  border-radius: 12px;
  border: 1.5px solid var(--glass-border);
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.glass-card input::placeholder,
.glass-card textarea::placeholder,
.admin-form input::placeholder,
.admin-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.glass-card input:focus,
.glass-card textarea:focus,
.glass-card select:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.glass-card textarea,
.admin-form textarea {
  min-height: 180px;
  resize: vertical;
  font-family: inherit;
}

.glass-card label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 14px;
  margin-bottom: 4px;
  font-weight: 600;
}

.glass-card button:not(.logout-btn):not(.copy-btn):not(.ip-box):not(.inline-copy):not(.refresh-btn) {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 26px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  margin-top: 12px;
}

.glass-card button:not(.logout-btn):not(.copy-btn):not(.ip-box):not(.inline-copy):not(.refresh-btn):hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* ========== IP BOX ========== */
.ip-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-soft);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 14px 24px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  font-size: 1rem;
  font-weight: bold;
  margin: 1rem 0;
  user-select: none;
}

.ip-box:hover {
  background: var(--accent);
  color: white;
  transform: scale(1.02);
}

.copy-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
}

.ip-box:hover .copy-btn { background: white; color: var(--accent); }

.click-info { font-size: 0.85rem; color: var(--text-muted); }

/* ========== FEATURES ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.feature-item {
  background: var(--surface-soft);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
  will-change: transform;
}

.feature-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.feature-item i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.feature-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-item p { font-size: 0.9rem; color: var(--text-muted); }

/* ========== STATUS ========== */
.status-info p { margin: 8px 0; font-size: 1rem; }

/* ========== FOOTER ========== */
.footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.license-text {
  margin-top: 6px;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ========== MODAL ========== */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.15s ease;
}

.modal.hidden { display: none; }

.modal-content {
  background: var(--bg-soft);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: modalIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.modal-content h3 { font-size: 1.15rem; color: var(--accent); }

.modal-content input,
.modal-content textarea,
.modal-content select {
  width: 100%;
  padding: 13px 15px;
  margin: 8px 0;
  border-radius: 10px;
  border: 1.5px solid var(--glass-border);
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.modal-content input::placeholder { color: var(--text-muted); opacity: 0.7; }

.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.modal-content button {
  font-family: inherit;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--surface-soft);
  color: var(--text);
  transition: background 0.15s, color 0.15s;
  font-size: 0.95rem;
  padding: 11px 16px;
}

.modal-content button:hover { background: var(--accent); color: white; }

.auth-error {
  min-height: 1.2em;
  margin: 6px 0 0;
  color: #ff8a8a;
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: center;
}

/* Telefon: klavye açıldığında giriş formu kırpılmasın, kaydırılabilsin. */
@media (max-width: 640px) {
  .modal {
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }
  .modal-content {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 20px 16px;
    border-radius: 16px;
  }
  .modal-content h3 { font-size: 1.05rem; }
  .modal-content input,
  .modal-content textarea,
  .modal-content select {
    font-size: 16px;
    padding: 12px 13px;
    margin: 7px 0;
  }
  .modal-content button { min-height: 46px; }
  .oauth-btn { min-height: 46px; }
}

/* ========== TEMA BUTONU ========== */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  font-size: 1rem;
  z-index: 9998;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  font-family: inherit;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--glass-border-hi);
  background: var(--surface-soft);
}

/* ========== PROFİL ========== */
.profile-card { max-width: 500px; margin: 2rem auto; }
.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 1rem 0;
}
.profile-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  object-fit: cover;
}
.profile-field { margin: 12px 0; }
.profile-field label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.profile-field input,
.profile-field select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--glass-border);
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s;
}
.profile-field input:focus,
.profile-field select:focus { outline: none; border-color: var(--accent); }

.small-btn {
  padding: 9px 18px;
  border-radius: 10px;
  border: 1.5px solid var(--glass-border);
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}
.small-btn:hover { background: var(--accent); color: white; }

/* ========== ÇOCUK HEDİYELERİ ========== */
.cocuk-hediye {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  margin: 10px 0;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--surface-soft);
}
.cocuk-hediye > i {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft, rgba(34,197,94,.14));
  color: var(--accent);
  font-size: 1rem;
}
.cocuk-hediye b { display: block; font-size: 1rem; }
.cocuk-hediye p {
  margin: 6px 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.hediye-odul {
  display: inline-block;
  margin-top: 9px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent-soft, rgba(34,197,94,.14));
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ========== DUYURU / HABER / KAMPANYA ========== */
.announcement-item,
.news-item {
  padding: 16px;
  background: var(--surface-soft);
  border-radius: 10px;
  margin: 10px 0;
  border-left: 3px solid var(--accent);
}

.announcement-item h3,
.news-item h3 {
  color: var(--accent);
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.announcement-item p,
.news-item p { font-size: 0.95rem; }

.announcement-item small,
.news-item small { color: var(--text-muted); font-size: 0.8rem; }

.campaign-active { border-left: 3px solid #22c55e; }
.campaign-expired { border-left: 3px solid #ef4444; opacity: 0.7; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .navbar { padding: 9px 14px; gap: 8px; width: calc(100% - 16px); }
  .logo { font-size: 0.9rem; }
  .logo-img { width: 28px; height: 28px; }
  .nav-links button { padding: 6px 10px; font-size: 0.72rem; }
  .user-area button { padding: 6px 10px; font-size: 0.72rem; }
  .profile-icon { width: 28px; height: 28px; }
  .username-label { display: none; }
  .back-btn { padding: 6px 9px; font-size: 0.8rem; }
}

@media (max-width: 768px) {
  .navbar { padding: 8px 10px; gap: 6px; width: calc(100% - 10px); }
  .logo { font-size: 0.82rem; }
  .logo-img { width: 24px; height: 24px; }
  .nav-links { gap: 4px; justify-content: flex-start; }
  .nav-links button { padding: 5px 8px; font-size: 0.68rem; }
  .user-area button { padding: 5px 8px; font-size: 0.68rem; }
  .profile-icon { width: 26px; height: 26px; }
  .back-btn { padding: 5px 7px; font-size: 0.75rem; }
  .hero-card h1 { font-size: 1.3rem; }
  .ip-box { font-size: 0.85rem; padding: 12px 18px; }
  .theme-toggle { width: 48px; height: 48px; font-size: 1.1rem; }
  body { font-size: 14px; }
  .glass-card { padding: 18px; }
  .glass-card textarea,
  .admin-form textarea { min-height: 140px; }
}

@media (max-width: 480px) {
  .navbar { padding: 7px 8px; width: calc(100% - 6px); }
  .logo { font-size: 0.75rem; gap: 5px; }
  .logo-img { width: 22px; height: 22px; }
  .nav-links button { padding: 4px 7px; font-size: 0.62rem; }
  .user-area button { padding: 4px 7px; font-size: 0.62rem; }
  .profile-icon { width: 24px; height: 24px; }
}

/* ========== SAYFA GEÇİŞ ANİMASYONU ========== */
.glass-card,
.feature-item {
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.feature-item:nth-child(1) { animation-delay: 0.04s; }
.feature-item:nth-child(2) { animation-delay: 0.08s; }
.feature-item:nth-child(3) { animation-delay: 0.12s; }

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========== ERİŞİLEBİLİRLİK ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .steam-blob { animation: none; }
  .steam-canvas, .bg-steam-canvas { display: none; }
}

/* ========== DUVAR KAĞIDI MODU (macOS Big Sur) ==========
   Tema butonuyla açılır. Görsel yalnızca bu mod etkinken indirilir:
   CSS arka plan resimleri sadece eşleşen kural aktifken çekilir. */


/* Görselin üstüne hafif bir perde: renkler görünsün ama yazı okunur kalsın */
/* ========== MANZARA: her mod kendi SVG'sini kullanır ========== */
/* ========== ARKA PLAN: Minecraft dünyası ==========
   background-size: cover + no-repeat ZORUNLU; yoksa SVG dogal boyutunda
   cizilip kendini tekrar eder ve katman sirasi donguye girer. */
body {
  background-color: var(--bg-base);
  background-image: url('../img/mcdunya-gece.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

.light body {
  background-color: #ffffff;
  background-image: url('../img/mcdunya.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Bedrock landing page: readable typography and a calm, consistent world. */
body {
  font-family: system-ui, "Segoe UI", Arial, sans-serif;
  background-color: #0b1118;
  background-image:
    radial-gradient(ellipse at 8% 0%, rgba(34, 197, 94, 0.12), transparent 34rem),
    radial-gradient(ellipse at 92% 12%, rgba(6, 182, 212, 0.10), transparent 38rem),
    linear-gradient(180deg, #111a22, #0b1118 44rem, #101820);
  background-repeat: no-repeat;
  background-attachment: fixed;
  image-rendering: auto;
}

.light body {
  background-color: #edf3f6;
  background-image:
    radial-gradient(ellipse at 8% 0%, rgba(34, 197, 94, 0.09), transparent 34rem),
    radial-gradient(ellipse at 92% 12%, rgba(6, 182, 212, 0.08), transparent 38rem),
    linear-gradient(180deg, #edf3f6, #e6edf0 44rem, #f1f4f5);
}

.navbar {
  padding: 10px clamp(14px, 3vw, 30px);
  background: rgba(11, 17, 24, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

.light .navbar {
  background: rgba(246, 249, 250, 0.88);
  border-bottom-color: var(--glass-border);
}

#content {
  width: min(100% - 36px, 1080px);
  margin: 32px auto 0;
}

#content > .glass-card {
  padding: clamp(22px, 4vw, 36px);
  margin-bottom: 18px;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: rgba(17, 25, 33, 0.88);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.light #content > .glass-card {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 38px rgba(37, 61, 70, 0.08);
}

#content > .hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  padding: clamp(34px, 7vw, 70px) clamp(24px, 7vw, 76px);
  text-align: left;
  background:
    radial-gradient(ellipse at 84% 8%, rgba(163, 230, 53, 0.19), transparent 22rem),
    linear-gradient(135deg, #1b3542, #172a34 58%, #1d352d);
  border-color: rgba(170, 220, 175, 0.2);
}

.light #content > .hero-card {
  background:
    radial-gradient(ellipse at 84% 8%, rgba(163, 230, 53, 0.15), transparent 22rem),
    linear-gradient(135deg, #e4f0e7, #e8f0f2 58%, #dcebe0);
  border-color: #cdded0;
}

.hero-card h1 {
  max-width: 24ch;
  margin-bottom: 14px;
  color: var(--text);
  font-family: "Pixelify Sans", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 3.1rem);
  line-height: 1.18;
  text-shadow: none;
}

.hero-card > p {
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  text-shadow: none;
}

.hero-card .ip-box {
  width: min(100%, 540px);
  min-height: 64px;
  margin: 0;
  border-radius: 14px;
  background: rgba(7, 13, 17, 0.56);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.light .hero-card .ip-box { background: rgba(255, 255, 255, 0.72); }
.hero-card .click-info { margin: 10px 0 0; color: var(--text-muted); text-shadow: none; }

#features h2,
#durum h2 {
  text-align: left !important;
  color: var(--text) !important;
  margin-bottom: 20px !important;
  font-size: 1.3rem;
}

#features .features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

#features .feature-item {
  min-height: 168px;
  padding: 22px;
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.light #features .feature-item { background: rgba(255, 255, 255, 0.72); }
#features .feature-item:hover { transform: translateY(-3px); border-color: var(--accent-border); }
#features .feature-item i { font-size: 1.5rem; color: var(--accent); }
#features .feature-item h3 { margin: 15px 0 7px; font-size: 1rem; }
#features .feature-item p { color: var(--text-muted); font-size: 0.9rem; }

#durum .status-info { text-align: left !important; }
#durum .status-info p { padding: 10px 0; border-bottom: 1px solid var(--glass-border); }
#durum .status-info p:last-child { border-bottom: 0; }

.footer {
  padding: 20px 10px 34px;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.86rem;
}

@media (max-width: 700px) {
  #content { width: min(100% - 24px, 1080px); margin-top: 18px; }
  #content > .glass-card { border-radius: 16px; }
  #features .features-grid { grid-template-columns: 1fr; }
  #features .feature-item { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #features .feature-item { transition: none; }
}

/* Thoughtful details across the whole Bedrock experience. */
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 72%, white);
  outline-offset: 3px;
}

.navbar { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08); }
.nav-links button,
.user-area button,
.back-btn,
.theme-toggle,
.copy-btn,
.small-btn,
.modal-content button,
.glass-card button {
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease, transform 160ms ease;
}

.nav-links button:active,
.user-area button:active,
.back-btn:active,
.theme-toggle:active,
.copy-btn:active,
.small-btn:active,
.modal-content button:active,
.glass-card button:active { transform: translateY(1px) scale(0.98); }

.glass-card h2 { letter-spacing: -0.025em; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px !important;
  color: #a3e6b4 !important;
  font-size: 0.82rem !important;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.light .hero-kicker { color: #267846 !important; }
.hero-kicker i { font-size: 0.9rem; }

.section-note {
  margin: -10px 0 22px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.empty-note {
  max-width: 62ch;
  padding: 18px 20px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-card .ip-box {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12), inset 0 1px rgba(255, 255, 255, 0.06);
}

.hero-card .ip-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18), 0 0 0 4px var(--accent-soft);
}

#features .feature-item {
  position: relative;
  overflow: hidden;
}

#features .feature-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transform: scaleY(0.35);
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

#features .feature-item:hover::before { opacity: 1; transform: scaleY(1); }
#features .feature-item i { transition: transform 180ms ease; }
#features .feature-item:hover i { transform: translateY(-2px) scale(1.06); }

.glass-card input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.glass-card textarea,
.glass-card select,
.admin-form input,
.admin-form textarea,
.admin-form select,
.modal-content input,
.modal-content textarea,
.modal-content select {
  border-radius: 12px;
}

.glass-card input:focus,
.glass-card textarea:focus,
.glass-card select:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.modal-content {
  border-radius: 20px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.announcement-item,
.news-item,
.campaign-active,
.campaign-expired {
  border-radius: 12px;
  transition: transform 160ms ease, background-color 160ms ease;
}

.announcement-item:hover,
.news-item:hover,
.campaign-active:hover { transform: translateX(3px); }

.profile-avatar { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); }
.footer { line-height: 1.8; }

@media (max-width: 700px) {
  .hero-kicker { font-size: 0.72rem !important; }
  .section-note { font-size: 0.88rem; }
  #content > .hero-card { padding: 30px 22px; }
  .hero-card .ip-box { gap: 8px; padding-inline: 14px; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   BEDROCK 2026 UPGRADE
   ============================================================ */

#content > .glass-card {
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

.noscript-note {
  max-width: 760px;
  margin: 20px auto;
  padding: 18px 20px;
  border: 1px solid var(--accent-border);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--text);
  font-family: system-ui, "Segoe UI", Arial, sans-serif;
  text-align: center;
  line-height: 1.65;
}

/* ---------- HERO ---------- */
#content > .hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
}

#content > .hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse at 78% 30%, black, transparent 68%);
  mask-image: radial-gradient(ellipse at 78% 30%, black, transparent 68%);
}

.light #content > .hero-card::after {
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.045) 1px, transparent 1px);
}

.hero-copy,
.hero-panel { position: relative; z-index: 1; }

.hero-copy { min-width: 0; }

.hero-card h1 {
  max-width: 26ch;
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 4.2vw, 3rem);
  line-height: 1.14;
}

.hero-card h1 > i {
  margin-right: 6px;
  color: var(--accent);
  font-size: 0.58em;
  vertical-align: 0.08em;
}

.hero-title-accent { color: #8ee6a8; }
.light .hero-title-accent { color: #15803d; }

.hero-card .hero-lead {
  max-width: 56ch;
  margin: 0 0 26px;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-join { max-width: 500px; }

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-card .hero-join .ip-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 62px;
  margin: 0;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(5, 12, 16, 0.62);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 10px 28px rgba(0, 0, 0, 0.12);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.hero-card .hero-join .ip-box:hover {
  border-color: var(--accent);
  background: rgba(9, 23, 25, 0.82);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18), 0 0 0 4px var(--accent-soft);
  transform: translateY(-2px);
}

.hero-card .hero-join .ip-box.is-copied {
  border-color: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}

.light .hero-card .hero-join .ip-box {
  border-color: #cfe0d4;
  background: rgba(255, 255, 255, 0.78);
}

.light .hero-card .hero-join .ip-box:hover {
  border-color: var(--accent);
  background: #ffffff;
}

.ip-text {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-family: "Pixelify Sans", "Segoe UI", sans-serif;
  font-size: clamp(0.88rem, 2.5vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-card .copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--accent);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.hero-card .hero-join .ip-box:hover .copy-btn {
  background: #ffffff;
  color: var(--accent);
}

.hero-card .hero-join .click-info {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.alt-ip-info:empty { display: none; }

.copy-result {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.6;
}

.copy-result > i { margin-top: 3px; color: var(--accent); }
.copy-result strong { display: block; margin-bottom: 2px; }
.copy-result span { color: var(--text-muted); }

.glass-card .inline-copy {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  cursor: pointer;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.light .hero-chips span {
  border-color: #d5e3d8;
  background: rgba(255, 255, 255, 0.68);
}

/* ---------- HERO PANEL ---------- */
.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-self: center;
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(7, 15, 19, 0.76), rgba(9, 24, 21, 0.6));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 16px 34px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.light .hero-panel {
  border-color: #cfe0d4;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(240, 248, 243, 0.76));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.7), 0 16px 34px rgba(37, 61, 70, 0.08);
}

.hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-panel-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hero-panel-brand img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
}

.hero-panel-brand span {
  display: block;
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-panel-brand strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

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

.live-pill.is-loading .live-dot { animation: livePulse 1.2s ease-in-out infinite; }
.live-pill.is-online { border-color: rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.live-pill.is-online .live-dot { animation: livePulse 2s ease-out infinite; }
.live-pill.is-offline { border-color: rgba(239, 68, 68, 0.32); background: rgba(239, 68, 68, 0.1); color: #ef4444; }

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.78); }
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hero-stat {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
}

.light .hero-stat {
  border-color: #dbe6de;
  background: rgba(255, 255, 255, 0.7);
}

.hero-stat span {
  display: block;
  margin-bottom: 3px;
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-stat strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-meter {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.light .player-meter { background: rgba(17, 24, 39, 0.08); }

.player-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #67e8f9);
  transition: width 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-panel .hero-panel-note {
  min-height: 2.5em;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.panel-link i { transition: transform 180ms ease; }
.panel-link:hover i { transform: translateX(3px); }

/* ---------- SECTION HEADINGS ---------- */
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-head > div { min-width: 0; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px !important;
  color: var(--accent) !important;
  font-size: 0.7rem !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#content .section-head h2 {
  margin: 0 0 6px !important;
  color: var(--text) !important;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  letter-spacing: -0.02em;
}

.section-head .section-note {
  max-width: 62ch;
  margin: 0;
  font-size: 0.88rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 6px 10px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- STEPS ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.step-card {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  padding: 22px;
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.light .step-card { background: rgba(255, 255, 255, 0.72); }
.step-card:hover { border-color: var(--accent-border); background: rgba(255, 255, 255, 0.055); transform: translateY(-3px); }
.light .step-card:hover { background: #ffffff; }

.step-num {
  position: absolute;
  top: 16px;
  right: 18px;
  color: var(--accent);
  font-family: "Pixelify Sans", "Segoe UI", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.28;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 15px;
  border: 1px solid var(--accent-border);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.05rem;
}

.step-card h3 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 1rem;
}

.step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.step-card p strong { color: var(--text); font-weight: 700; }

.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

.platform-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

/* ---------- FEATURES ---------- */
#features .features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

#features .feature-item {
  min-height: 172px;
  padding: 22px;
  text-align: left;
}

#features .feature-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--accent-border);
  border-radius: 11px;
  background: var(--accent-soft);
  font-size: 1.15rem;
}

#features .feature-item h3 { margin: 15px 0 7px; font-size: 1rem; }
#features .feature-item p { font-size: 0.88rem; line-height: 1.65; }

/* ---------- STATUS ---------- */
.refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  margin-top: 0;
  padding: 9px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.refresh-btn:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-1px);
}

.refresh-btn.is-spinning i { animation: statusSpin 0.8s linear infinite; }

@keyframes statusSpin { to { transform: rotate(360deg); } }

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.status-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.light .status-tile { background: rgba(255, 255, 255, 0.72); }

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--accent-border);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.95rem;
}

.status-tile div { min-width: 0; }

.status-tile div > span {
  display: block;
  margin-bottom: 3px;
  color: var(--text-muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-tile strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-online { color: #22c55e; }
.status-offline { color: #ef4444; }
.status-online i,
.status-offline i { margin-right: 4px; font-size: 0.55rem; vertical-align: middle; }

.status-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.status-foot p { margin: 0; }
.status-time { flex-shrink: 0; white-space: nowrap; opacity: 0.8; }

.connection-help {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
}

.connection-help summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.connection-help summary::-webkit-details-marker { display: none; }
.connection-help summary::marker { content: ""; }
.connection-help summary > span { display: inline-flex; align-items: center; gap: 7px; }
.connection-help summary > i { color: var(--text-muted); font-size: 0.72rem; transition: transform 200ms ease; }
.connection-help[open] summary > i { transform: rotate(180deg); }

.connection-body {
  padding-top: 12px;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.connection-body p { margin: 0; }
.connection-body p + p { margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }

.faq-item {
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.light .faq-item { background: rgba(255, 255, 255, 0.72); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 0.68rem;
  transition: transform 200ms ease, background-color 200ms ease, color 200ms ease;
}

.faq-item[open] .faq-icon {
  background: var(--accent);
  color: #ffffff;
  transform: rotate(45deg);
}

.faq-body {
  padding: 0 18px 16px;
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.7;
}

.faq-body p { margin: 0; }
.faq-body strong { color: var(--text); }

.faq-item[open] .faq-body { animation: faqIn 220ms ease; }

@keyframes faqIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- FOOTER ---------- */
.footer {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 4px 40px;
  color: var(--text-muted);
  text-align: left;
  font-size: 0.84rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--glass-border);
}

.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 9px; }
.footer-brand strong { display: block; color: var(--text); font-size: 0.92rem; }
.footer-brand span { display: block; color: var(--text-muted); font-size: 0.76rem; }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }

.footer-links a {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-links a:hover { color: var(--accent); }

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.footer-meta p { margin: 0; }

/* ---------- TOAST ---------- */
.site-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border: 1px solid var(--glass-border-hi);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-family: system-ui, "Segoe UI", Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.site-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.site-toast i { color: var(--accent); }

/* ---------- SCROLL REVEAL ---------- */
[data-reveal].reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 550ms ease, transform 550ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-reveal].reveal.is-visible { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  #content > .hero-card { grid-template-columns: 1fr; }
  .hero-panel { max-width: 560px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 0; }
  #features .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .section-head { flex-direction: column; }
  .section-badge { align-self: flex-start; }
  .status-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-meta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  #features .features-grid { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: 1fr; }
  #content > .hero-card { padding: 26px 20px; }
  .hero-card .hero-join .ip-box { gap: 8px; padding: 10px 10px 10px 14px; }
  .ip-text { font-size: 0.78rem; letter-spacing: 0; }
  .hero-card .copy-btn { padding: 6px 8px; font-size: 0.72rem; }
  .hero-chips span { font-size: 0.7rem; }
  .hero-panel { padding: 18px; }
  .hero-stat strong { font-size: 0.88rem; }
  .status-foot { flex-direction: column; gap: 4px; }
}

@media (max-width: 380px) {
  .hero-card .hero-join .ip-box {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
  }
  .ip-text { font-size: 0.8rem; text-align: center; }
  .hero-card .copy-btn { justify-content: center; }
}
