/* =====================================================
   Craftulus Extensions
   Yeni modüller (wiki, ticket, news, leaderboard, vb.)
   için bileşen CSS'i. Mevcut altın/koyu tema korunur.
   styles.css ve toxcraft.css'in üstüne yüklenir.
   ===================================================== */

/* Helper utility tokens (relative to existing theme vars) */
:root {
  --surface-1: rgba(15, 11, 5, 0.86);
  --surface-2: rgba(24, 18, 36, 0.9);
  --surface-3: rgba(5, 5, 8, 0.95);
  --border-soft: rgba(255, 255, 255, 0.06);
  --border-mid: rgba(255, 255, 255, 0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --gap-sm: 0.5rem;
  --gap-md: 1rem;
  --gap-lg: 1.5rem;
}

/* Quiet section subtitle */
.section-subtitle {
  font-family: "TASA Explorer", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 1rem;
  position: relative;
  padding-left: 16px;
}
.section-subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--theme-primary), var(--theme-accent));
}

/* ===========================================================
   HEADER additions: user auth row, notif bell, nav indicator
   =========================================================== */
.auth-buttons-guest,
.auth-buttons-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#notifBell { cursor: pointer; }
/* Header satırlarında overflow:hidden varsa dropdown kırpılmasın */
.header-topbar, .header-auth-row { overflow: visible !important; }

/* notifDropdown body altında, header-banner DIŞINDA bir element olduğu için
   absolute positioning anchor'ı yok → fixed viewport-relative kullanmak en güvenli. */
.notif-dropdown {
  position: fixed;
  top: 70px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: linear-gradient(165deg, rgba(15, 11, 5, 0.98), rgba(5, 5, 8, 0.98));
  border: 1px solid rgba(var(--theme-primary-rgb), 0.2);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  z-index: 9990;
  overflow: visible;
  animation: notifIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top right;
}
/* Bell'e işaret eden üçgen ok */
.notif-dropdown::before {
  content: '';
  position: absolute;
  top: -7px;
  right: 18px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, rgba(15, 11, 5, 0.98), rgba(15, 11, 5, 0.98));
  border-top: 1px solid rgba(var(--theme-primary-rgb), 0.25);
  border-left: 1px solid rgba(var(--theme-primary-rgb), 0.25);
  transform: rotate(45deg);
  z-index: 1;
}
/* İç kısım scroll edilebilsin, overflow:visible dış kart için */
.notif-dropdown__list { border-radius: 0; }
.notif-dropdown__head { border-radius: 16px 16px 0 0; }
.notif-dropdown__foot { border-radius: 0 0 16px 16px; }

@media (max-width: 880px) {
  .notif-dropdown {
    top: 64px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }
  /* Mobil full-width'te caret gereksiz */
  .notif-dropdown::before { display: none; }
}
@keyframes notifIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.notif-dropdown__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
}
.notif-dropdown__head h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}
.notif-mark-all {
  background: none;
  border: none;
  color: var(--theme-primary);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.notif-dropdown__list {
  max-height: 380px;
  overflow-y: auto;
}
.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  transition: background 0.18s ease;
  text-decoration: none;
  color: inherit;
}
.notif-item:hover {
  background: rgba(var(--theme-primary-rgb), 0.05);
}
.notif-item.unread {
  background: rgba(var(--theme-primary-rgb), 0.03);
}
.notif-item__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--theme-primary-rgb), 0.12);
  color: var(--theme-primary);
}
.notif-item__body {
  flex: 1;
  min-width: 0;
}
.notif-item__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.notif-item__desc {
  font-size: 0.78rem;
  color: var(--theme-muted);
  line-height: 1.4;
}
.notif-item__time {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}
.notif-dropdown__foot {
  padding: 12px 16px;
  text-align: center;
  border-top: 1px solid var(--border-soft);
}
.notif-dropdown__foot a {
  color: var(--theme-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}
.notif-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--theme-muted);
  font-size: 0.9rem;
}
.notif-empty i {
  font-size: 2.5rem;
  opacity: 0.4;
  display: block;
  margin-bottom: 0.5rem;
}

/* ===========================================================
   FOOTER additions: social icons
   =========================================================== */
.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.footer-social {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.25s ease;
}
.footer-social:hover {
  background: rgba(var(--theme-primary-rgb), 0.12);
  border-color: rgba(var(--theme-primary-rgb), 0.4);
  color: var(--theme-primary);
  transform: translateY(-2px);
}

/* ===========================================================
   HOME — features grid, modes grid, server status banner
   =========================================================== */
.features-section { padding: 60px 0 80px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.feature-card p {
  margin: 0;
  color: var(--theme-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.18), rgba(var(--theme-accent-rgb), 0.12));
  border: 1px solid rgba(var(--theme-primary-rgb), 0.3);
  color: var(--theme-primary);
  font-size: 1.4rem;
}

/* Modes */
.modes-section { padding: 80px 0; }
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.mode-card {
  background: linear-gradient(165deg, var(--surface-2), var(--surface-3));
  border: 1px solid rgba(var(--theme-primary-rgb), 0.12);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
}
.mode-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--theme-primary-rgb), 0.45);
  box-shadow: 0 26px 60px -20px rgba(var(--theme-primary-rgb), 0.32);
}
.mode-card__media {
  height: 180px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 16px;
}
.mode-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55));
  pointer-events: none;
}
.mode-survival  { background: linear-gradient(135deg, #1b4332, #2d6a4f); }
.mode-skyblock  { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.mode-pvp       { background: linear-gradient(135deg, #7f1d1d, #ef4444); }
.mode-card__badge {
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.mode-card__body {
  padding: 22px 24px 26px;
}
.mode-card__body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.mode-card__body > p {
  margin: 0 0 1rem;
  color: var(--theme-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.mode-card__feats {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mode-card__feats li {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mode-card__feats i {
  color: var(--theme-primary);
  font-size: 0.8rem;
}

/* Server status banner */
.server-status-section { padding: 40px 0 80px; }
.status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 22px 28px;
}
.status-banner__left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.status-banner__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.8);
  position: relative;
}
.status-banner__dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.5);
  animation: onlinePulse 1.8s ease-out infinite;
}
.status-banner__left h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}
.status-banner__left p {
  margin: 4px 0 0;
  color: var(--theme-muted);
  font-size: 0.85rem;
}
.status-banner__right {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ===========================================================
   STORE — toolbar, featured, goal bar, empty state
   =========================================================== */
.store-meta-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.store-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.2);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.store-meta-pill i { color: var(--theme-primary); }

.goal-bar {
  display: grid;
  grid-template-columns: 1.3fr 2fr 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 22px 26px;
}
.goal-bar__info h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}
.goal-bar__info h4 i {
  color: var(--theme-primary);
  margin-right: 6px;
}
.goal-bar__sub {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--theme-muted);
}
.goal-bar__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
}
.goal-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--theme-primary), var(--theme-accent), var(--theme-primary));
  background-size: 200% 100%;
  animation: progressShift 3s linear infinite;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(var(--theme-primary-rgb), 0.5);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.goal-bar__values {
  text-align: right;
  font-size: 0.95rem;
}
.goal-bar__values strong {
  font-family: "TASA Explorer", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--theme-primary);
  display: block;
}
.goal-bar__values span {
  font-size: 0.78rem;
  color: var(--theme-muted);
}

.store-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.store-tools {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.store-sort,
.store-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  font-size: 0.85rem;
}
.store-search {
  min-width: 220px;
}
.store-sort i,
.store-search i {
  color: var(--theme-muted);
  font-size: 0.85rem;
}
.store-sort select,
.store-search input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  width: 100%;
}
.store-sort select option { color: #000; }

.store-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.store-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}
.store-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--theme-primary-rgb), 0.4);
}
.store-feature__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--feat-grad, linear-gradient(135deg, var(--theme-primary), var(--theme-accent)));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1000;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.store-feature__body { flex: 1; min-width: 0; }
.store-feature__body h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: #fff;
}
.store-feature__body p {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--theme-muted);
  line-height: 1.5;
}
.store-feature__arrow {
  color: var(--theme-primary);
  font-size: 1rem;
  opacity: 0.6;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.store-feature:hover .store-feature__arrow {
  transform: translateX(4px);
  opacity: 1;
}

.store-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--theme-muted);
}
.store-empty i {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.4;
}
.store-empty h3 {
  color: #fff;
  margin: 0 0 0.5rem;
}

/* Cart additions */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}
.pm-btn {
  padding: 10px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.25s ease;
}
.pm-btn i { font-size: 1rem; }
.pm-btn:hover {
  background: rgba(var(--theme-primary-rgb), 0.06);
  color: #fff;
}
.pm-btn.active {
  background: rgba(var(--theme-primary-rgb), 0.15);
  border-color: var(--theme-primary);
  color: #fff;
}

.checkout-trust {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checkout-trust__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--theme-muted);
}
.checkout-trust__row i { color: #10b981; }

/* Checkout step labels */
.checkout-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none !important;
  height: auto !important;
  border-radius: 0;
  flex: 1;
}
.checkout-step::after {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 2px;
  background: rgba(255,255,255,0.08);
  transition: background 0.3s ease;
}
.checkout-step:last-child::after { display: none; }
.checkout-step.done::after,
.checkout-step.active::after {
  background: var(--theme-primary);
}
.checkout-step__num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  font-weight: 800;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}
.checkout-step.active .checkout-step__num,
.checkout-step.done .checkout-step__num {
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-accent));
  border-color: var(--theme-primary);
  color: #1a1000;
  box-shadow: 0 4px 14px -4px rgba(var(--theme-primary-rgb), 0.55);
}
.checkout-step__label {
  font-size: 0.78rem;
  color: var(--theme-muted);
  font-weight: 600;
}
.checkout-step.active .checkout-step__label,
.checkout-step.done .checkout-step__label {
  color: #fff;
}

/* ===========================================================
   AUTH — OAuth grid, password strength, hints
   =========================================================== */
.oauth-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 0.5rem;
}
.oauth-btn {
  padding: 10px 4px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.25s ease;
}
.oauth-btn i {
  font-size: 1.2rem;
}
.oauth-btn:hover {
  background: rgba(var(--theme-primary-rgb), 0.1);
  border-color: rgba(var(--theme-primary-rgb), 0.3);
  transform: translateY(-2px);
}
.oauth-discord i { color: #5865F2; }
.oauth-google i { color: #ea4335; }
.oauth-steam i { color: #66c0f4; }
.oauth-microsoft i { color: #00BCF2; }

.form-hint {
  font-size: 0.72rem;
  color: var(--theme-muted);
  margin-top: 4px;
}

.pw-strength {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.pw-strength__bar {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  transition: background 0.25s ease;
}
.pw-strength[data-level="1"] .pw-strength__bar:nth-child(-n+1) { background: #ef4444; }
.pw-strength[data-level="2"] .pw-strength__bar:nth-child(-n+2) { background: #f59e0b; }
.pw-strength[data-level="3"] .pw-strength__bar:nth-child(-n+3) { background: var(--theme-primary); }
.pw-strength[data-level="4"] .pw-strength__bar { background: #10b981; }

/* ===========================================================
   FORUM additions: toolbar, breadcrumb, view, reply form, profile
   =========================================================== */
.forum-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.forum-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.forum-tab {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--theme-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.forum-tab:hover {
  color: #fff;
  background: rgba(var(--theme-primary-rgb), 0.08);
}
.forum-tab.active {
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-accent));
  border-color: transparent;
  color: #1a1000;
}
.forum-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.forum-breadcrumb {
  font-size: 0.85rem;
  color: var(--theme-muted);
  margin-bottom: 1rem;
}
.forum-breadcrumb a {
  color: var(--theme-primary);
  text-decoration: none;
}
.forum-breadcrumb a:hover { text-decoration: underline; }

.forum-topic-view { padding: 32px; }
.forum-topic-view__head { margin-bottom: 1.5rem; }
.forum-topic-view__head h1 {
  font-family: "TASA Explorer", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 1rem;
  color: #fff;
  line-height: 1.2;
}
.forum-topic-view__meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--theme-muted);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-soft);
}
.forum-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.forum-author img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}
.forum-author strong { color: #fff; }
.forum-topic-tag {
  background: rgba(var(--theme-primary-rgb), 0.12);
  color: var(--theme-primary);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.forum-topic-view__actions {
  display: flex;
  gap: 8px;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.forum-react-btn {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}
.forum-react-btn:hover {
  background: rgba(var(--theme-primary-rgb), 0.1);
  border-color: rgba(var(--theme-primary-rgb), 0.3);
  color: #fff;
}
.forum-react-btn.active {
  background: rgba(var(--theme-primary-rgb), 0.18);
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}

.forum-content {
  margin-top: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
}
.forum-content h2, .forum-content h3 { color: #fff; margin: 1.4rem 0 0.6rem; }
.forum-content p { margin: 0.6rem 0; }
.forum-content blockquote {
  border-left: 3px solid var(--theme-primary);
  padding: 0.5rem 1rem;
  background: rgba(var(--theme-primary-rgb), 0.04);
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
  color: rgba(255,255,255,0.85);
}
.forum-content code {
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: 'Fira Code', monospace;
}
.forum-content pre {
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 14px;
  overflow-x: auto;
}

.forum-replies {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.forum-reply {
  background: var(--surface-2);
  border: 1px solid var(--border-mid);
  border-radius: 14px;
  padding: 18px 22px;
}
.forum-reply__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--theme-muted);
}
.forum-reply__head strong { color: #fff; }

.forum-reply-form {
  margin-top: 1.5rem;
  padding: 22px;
}
.forum-reply-form h4 {
  margin: 0 0 1rem;
  color: #fff;
}
.forum-reply-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.25s;
}
.forum-reply-form textarea:focus {
  border-color: var(--theme-primary);
}
.forum-reply-form__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 12px;
}
.forum-reply-form__bar label {
  font-size: 0.85rem;
  color: var(--theme-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  margin-top: 6px;
}
.rich-toolbar button {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.rich-toolbar button:hover {
  background: rgba(var(--theme-primary-rgb), 0.12);
  color: var(--theme-primary);
}
.rich-toolbar + textarea {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Profile head */
.profile-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 28px;
  margin-bottom: 1.5rem;
}
.profile-head__avatar {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1000;
  font-size: 2.2rem;
}
.profile-head h1 {
  margin: 0;
  font-family: "TASA Explorer", sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: #fff;
}
.profile-head__roles {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.profile-role {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.profile-head__stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.profile-head__stats > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--theme-muted);
}
.profile-head__stats strong {
  font-family: "TASA Explorer", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--theme-primary);
}
.profile-head__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.profile-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-soft);
}
.profile-tab {
  padding: 10px 18px;
  background: none;
  border: none;
  color: var(--theme-muted);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  position: relative;
  transition: color 0.25s;
}
.profile-tab:hover { color: #fff; }
.profile-tab.active {
  color: #fff;
}
.profile-tab.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--theme-primary), var(--theme-accent));
}

/* ===========================================================
   PANEL — sidebar + view
   =========================================================== */
.panel-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
}
.panel-aside {
  padding: 24px;
  position: sticky;
  top: 100px;
  height: max-content;
}
.panel-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 1rem;
}
.panel-user__avatar {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-accent));
  color: #1a1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.panel-user__meta strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}
.panel-user__meta span {
  font-size: 0.75rem;
  color: var(--theme-muted);
}
.panel-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.panel-nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.22s ease;
}
.panel-nav__link i {
  width: 18px;
  text-align: center;
  color: var(--theme-primary);
  opacity: 0.8;
}
.panel-nav__link:hover {
  background: rgba(var(--theme-primary-rgb), 0.06);
  color: #fff;
}
.panel-nav__link.active {
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.16), rgba(var(--theme-accent-rgb), 0.08));
  border-color: rgba(var(--theme-primary-rgb), 0.35);
  color: #fff;
}
.panel-view {
  background: linear-gradient(165deg, var(--surface-2), var(--surface-3));
  border: 1px solid rgba(var(--theme-primary-rgb), 0.12);
  border-radius: var(--radius-xl);
  padding: 30px;
  min-height: 500px;
}

/* ===========================================================
   TICKETS list & view
   =========================================================== */
.tickets-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.ticket-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ticket-filter-btn {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s;
}
.ticket-filter-btn .count {
  background: rgba(255,255,255,0.08);
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}
.ticket-filter-btn:hover {
  background: rgba(var(--theme-primary-rgb), 0.08);
  color: #fff;
}
.ticket-filter-btn.active {
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-accent));
  border-color: transparent;
  color: #1a1000;
}

.ticket-list {
  padding: 0;
  overflow: hidden;
}
.ticket-row {
  display: grid;
  grid-template-columns: 70px 1fr auto auto auto;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.ticket-row:hover { background: rgba(var(--theme-primary-rgb), 0.04); }
.ticket-row:last-child { border-bottom: none; }
.ticket-row__id {
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--theme-muted);
}
.ticket-row__body h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 700;
}
.ticket-row__body span {
  font-size: 0.78rem;
  color: var(--theme-muted);
}
.ticket-status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ticket-status-pill.open    { background: rgba(250, 204, 21, 0.14); color: var(--theme-primary); }
.ticket-status-pill.pending { background: rgba(99, 102, 241, 0.14); color: #a5b4fc; }
.ticket-status-pill.resolved { background: rgba(16, 185, 129, 0.14); color: #34d399; }
.ticket-status-pill.closed  { background: rgba(255, 255, 255, 0.06); color: rgba(255,255,255,0.5); }

.ticket-priority-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
}
.ticket-priority-pill.high   { color: #f97316; border-color: rgba(249, 115, 22, 0.4); background: rgba(249, 115, 22, 0.08); }
.ticket-priority-pill.urgent { color: #ff5d78; border-color: rgba(255, 93, 120, 0.4); background: rgba(255, 93, 120, 0.08); }
.ticket-priority-pill.low    { color: rgba(255,255,255,0.5); }

.tickets-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--theme-muted);
}
.tickets-empty i {
  font-size: 3rem;
  display: block;
  opacity: 0.4;
  margin-bottom: 1rem;
}
.tickets-empty h3 { color: #fff; margin: 0 0 0.5rem; }

.ticket-view-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
}
.ticket-thread {
  padding: 28px;
}
.ticket-thread__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.ticket-thread__id {
  font-family: monospace;
  color: var(--theme-muted);
  font-size: 0.82rem;
}
.ticket-thread h2 {
  margin: 0.25rem 0 0.75rem;
  font-family: "TASA Explorer", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
}
.ticket-thread__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.82rem;
  color: var(--theme-muted);
}
.ticket-thread__cat {
  background: rgba(var(--theme-primary-rgb), 0.1);
  color: var(--theme-primary);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.ticket-messages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.ticket-message {
  display: flex;
  gap: 12px;
}
.ticket-message__avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-weight: 800;
}
.ticket-message.is-staff .ticket-message__avatar {
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-accent));
  color: #1a1000;
}
.ticket-message__bubble {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 14px 18px;
}
.ticket-message.is-staff .ticket-message__bubble {
  background: rgba(var(--theme-primary-rgb), 0.06);
  border-color: rgba(var(--theme-primary-rgb), 0.15);
}
.ticket-message__head {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--theme-muted);
  margin-bottom: 6px;
}
.ticket-message__head strong { color: #fff; }
.ticket-message__body {
  color: rgba(255,255,255,0.9);
  font-size: 0.92rem;
  line-height: 1.6;
}

.ticket-reply {
  border-top: 1px solid var(--border-soft);
  padding-top: 1.25rem;
}
.ticket-reply textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  resize: vertical;
  min-height: 90px;
}
.ticket-reply textarea:focus { border-color: var(--theme-primary); }
.ticket-reply__bar {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 12px;
  align-items: center;
}

.ticket-aside .glass-card {
  margin-bottom: 1rem;
}
.ticket-aside h4 {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 800;
}
.ticket-info > div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.85rem;
}
.ticket-info > div:last-child { border-bottom: none; }
.ticket-info span { color: var(--theme-muted); }
.ticket-info strong { color: #fff; }

.ticket-ai-suggest {
  margin: 1rem 0;
  padding: 16px 18px;
  border-color: rgba(var(--theme-primary-rgb), 0.3) !important;
  background: rgba(var(--theme-primary-rgb), 0.05) !important;
}
.ticket-ai-suggest__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--theme-primary);
}
.ticket-ai-suggest__body {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}

/* File upload */
.file-upload {
  display: block;
  margin: 0.75rem 0;
}
.file-upload input[type="file"] { display: none; }
.file-upload__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 10px;
  color: var(--theme-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.file-upload__btn:hover {
  border-color: var(--theme-primary);
  color: #fff;
  background: rgba(var(--theme-primary-rgb), 0.06);
}
.file-upload__hint {
  display: block;
  font-size: 0.72rem;
  color: var(--theme-muted);
  margin-top: 4px;
}

/* ===========================================================
   WIKI
   =========================================================== */
.wiki-hero-search {
  position: relative;
  max-width: 480px;
  margin: 1.5rem auto 0;
}
.wiki-hero-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--theme-muted);
}
.wiki-hero-search input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.18);
  border-radius: 14px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s;
}
.wiki-hero-search input:focus {
  border-color: var(--theme-primary);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 8px 30px -10px rgba(var(--theme-primary-rgb), 0.35);
}

.wiki-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.wiki-cat-card {
  background: linear-gradient(165deg, var(--surface-2), var(--surface-3));
  border: 1px solid rgba(var(--theme-primary-rgb), 0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}
.wiki-cat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--theme-primary-rgb), 0.4);
  box-shadow: 0 14px 40px -16px rgba(var(--theme-primary-rgb), 0.3);
}
.wiki-cat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--theme-primary-rgb), 0.1);
  color: var(--theme-primary);
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.wiki-cat-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}
.wiki-cat-card p {
  margin: 0;
  color: var(--theme-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}
.wiki-cat-card__count {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--theme-primary);
  font-weight: 700;
}

.wiki-popular {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.wiki-popular-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
}
.wiki-popular-card:hover {
  border-color: rgba(var(--theme-primary-rgb), 0.4);
  background: rgba(var(--theme-primary-rgb), 0.04);
}
.wiki-popular-card h4 { margin: 0 0 4px; color: #fff; font-size: 0.95rem; }
.wiki-popular-card span { font-size: 0.78rem; color: var(--theme-muted); }

.wiki-recent {
  padding: 0;
}
.wiki-recent-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.wiki-recent-item:hover { background: rgba(var(--theme-primary-rgb), 0.04); }
.wiki-recent-item:last-child { border-bottom: none; }
.wiki-recent-item__title {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}
.wiki-recent-item__cat {
  font-size: 0.75rem;
  color: var(--theme-primary);
}
.wiki-recent-item__time {
  font-size: 0.75rem;
  color: var(--theme-muted);
}

.wiki-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
}
.wiki-aside {
  padding: 20px;
  position: sticky;
  top: 100px;
  height: max-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.wiki-aside__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.wiki-aside__head h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 800;
}
.wiki-aside__home {
  font-size: 0.78rem;
  color: var(--theme-primary);
  text-decoration: none;
  font-weight: 700;
}
.wiki-aside__search {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  margin-bottom: 1rem;
}
.wiki-aside__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wiki-nav-group {
  margin-bottom: 0.35rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(15,11,5,0.45), rgba(5,3,8,0.3));
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}
.wiki-nav-group[open] {
  border-color: rgba(var(--theme-primary-rgb), 0.22);
  background: linear-gradient(165deg, rgba(20,15,5,0.7), rgba(8,5,10,0.5));
}
.wiki-nav-group__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.88);
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.2s, background 0.2s;
  font-family: var(--font-heading);
}
.wiki-nav-group__title::-webkit-details-marker { display: none; }
.wiki-nav-group__title:hover {
  color: var(--theme-primary);
  background: rgba(var(--theme-primary-rgb), 0.05);
}
.wiki-nav-group__title i.fa-chevron-down,
.wiki-nav-group__chev {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
}
.wiki-nav-group[open] .wiki-nav-group__chev { transform: rotate(180deg); color: var(--theme-primary); }
.wiki-nav-group__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wiki-nav-group__count {
  background: rgba(var(--theme-primary-rgb), 0.15);
  color: var(--theme-primary);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0;
}
.wiki-nav-group__list {
  padding: 4px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: wikiAccordion 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes wikiAccordion {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wiki-nav-link {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.2s;
}
.wiki-nav-link:hover {
  background: rgba(var(--theme-primary-rgb), 0.06);
  color: #fff;
}
.wiki-nav-link.active {
  background: rgba(var(--theme-primary-rgb), 0.12);
  color: var(--theme-primary);
  font-weight: 700;
}

.wiki-article {
  padding: 32px 38px;
}
.wiki-breadcrumb {
  font-size: 0.82rem;
  color: var(--theme-muted);
  margin-bottom: 1rem;
}
.wiki-breadcrumb a { color: var(--theme-primary); text-decoration: none; }
.wiki-article__head {
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}
.wiki-article h1 {
  font-family: "TASA Explorer", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}
.wiki-meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--theme-muted);
}
.wiki-meta i { color: var(--theme-primary); margin-right: 4px; }

.wiki-toc {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 1.5rem;
}
.wiki-toc::before {
  content: "İçindekiler";
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--theme-primary);
  margin-bottom: 6px;
}
.wiki-toc a {
  display: block;
  padding: 4px 0;
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 10px;
  transition: all 0.2s;
}
.wiki-toc a:hover {
  color: var(--theme-primary);
  border-left-color: var(--theme-primary);
}

.wiki-content {
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
}
.wiki-content h2 {
  font-family: "TASA Explorer", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-soft);
}
.wiki-content h3 {
  font-family: "TASA Explorer", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin: 1.5rem 0 0.5rem;
}
.wiki-content p { margin: 0.75rem 0; }
.wiki-content ul, .wiki-content ol { padding-left: 1.5rem; margin: 0.75rem 0; }
.wiki-content li { margin: 0.25rem 0; }
.wiki-content a { color: var(--theme-primary); }
.wiki-content code {
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: 'Fira Code', monospace;
}
.wiki-content pre {
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
  margin: 1rem 0;
}
.wiki-content blockquote {
  border-left: 4px solid var(--theme-primary);
  padding: 0.5rem 1.25rem;
  background: rgba(var(--theme-primary-rgb), 0.04);
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
}
.wiki-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.wiki-content th, .wiki-content td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft);
}
.wiki-content th {
  background: rgba(var(--theme-primary-rgb), 0.06);
  color: var(--theme-primary);
  font-weight: 700;
}

.wiki-article__foot {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
}
.wiki-helpful {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.wiki-helpful span { color: var(--theme-muted); font-size: 0.9rem; margin-right: 6px; }
.wiki-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===========================================================
   NEWS
   =========================================================== */
.news-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.news-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  margin-bottom: 2rem;
  padding: 0;
  overflow: hidden;
}
.news-featured__media {
  min-height: 280px;
  position: relative;
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.18), rgba(var(--theme-accent-rgb), 0.1));
}
.news-featured__body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-featured__body .news-badge {
  align-self: flex-start;
  margin-bottom: 1rem;
}
.news-featured__body h2 {
  font-family: "TASA Explorer", sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: #fff;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}
.news-featured__body p {
  color: var(--theme-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.news-article {
  padding: 32px 36px;
}
.news-article__head {
  margin-bottom: 1.5rem;
}
.news-article h1 {
  font-family: "TASA Explorer", sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: #fff;
  margin: 0.75rem 0;
  line-height: 1.2;
}
.news-article__meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--theme-muted);
}
.news-article__meta i { color: var(--theme-primary); margin-right: 4px; }
.news-article__cover {
  margin: 0 0 1.5rem;
  height: 280px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.2), rgba(var(--theme-accent-rgb), 0.1));
}
.news-article__body {
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
}
.news-article__body h2 { color: #fff; margin: 1.5rem 0 0.5rem; }
.news-article__body p { margin: 0.75rem 0; }
.news-article__foot {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
}
.news-react {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.news-comments {
  margin-top: 2rem;
  padding: 24px 28px;
}
.news-comment-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  resize: vertical;
  margin-bottom: 0.75rem;
}
.news-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 2rem;
}
.news-pagination button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s;
}
.news-pagination button:hover {
  background: rgba(var(--theme-primary-rgb), 0.1);
  color: #fff;
}
.news-pagination button.active {
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-accent));
  border-color: transparent;
  color: #1a1000;
  font-weight: 800;
}

/* ===========================================================
   LEADERBOARD
   =========================================================== */
.lb-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.lb-tabs, .lb-period {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  flex-wrap: wrap;
}
.lb-tab, .lb-period-btn {
  padding: 8px 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.65);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.25s;
}
.lb-tab:hover, .lb-period-btn:hover { color: #fff; }
.lb-tab.active, .lb-period-btn.active {
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-accent));
  color: #1a1000;
}

.lb-podium {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 1rem;
  align-items: end;
  margin-bottom: 2rem;
}
.lb-podium-card {
  padding: 24px 20px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--surface-2), var(--surface-3));
  border: 1px solid rgba(var(--theme-primary-rgb), 0.18);
  position: relative;
}
.lb-podium-card.rank-1 {
  transform: translateY(-12px);
  border-color: rgba(var(--theme-primary-rgb), 0.6);
  box-shadow: 0 24px 60px -20px rgba(var(--theme-primary-rgb), 0.5);
}
.lb-podium-card__rank {
  font-family: "TASA Explorer", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--theme-primary);
}
.lb-podium-card.rank-2 .lb-podium-card__rank { color: #cbd5e1; }
.lb-podium-card.rank-3 .lb-podium-card__rank { color: #cd7f32; }
.lb-podium-card__avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 1rem auto;
  border: 3px solid var(--theme-primary);
  object-fit: cover;
  background: rgba(255,255,255,0.05);
}
.lb-podium-card h4 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
}
.lb-podium-card p {
  margin: 4px 0 0;
  color: var(--theme-muted);
  font-size: 0.78rem;
}
.lb-podium-card__value {
  margin-top: 0.75rem;
  font-family: "TASA Explorer", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--theme-primary);
}

.lb-table-card { padding: 0; overflow: hidden; }
.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.lb-table th, .lb-table td {
  text-align: left;
  padding: 12px 22px;
  border-bottom: 1px solid var(--border-soft);
}
.lb-table th {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--theme-muted);
  background: rgba(255,255,255,0.02);
}
.lb-table tbody tr { transition: background 0.18s; }
.lb-table tbody tr:hover { background: rgba(var(--theme-primary-rgb), 0.04); }
.lb-table__metric { text-align: right; }
.lb-rank-cell {
  font-family: "TASA Explorer", sans-serif;
  font-weight: 800;
  color: var(--theme-primary);
}
.lb-player-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lb-player-cell img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255,255,255,0.05);
}
.lb-trend {
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lb-trend.up { color: #34d399; }
.lb-trend.down { color: #ff5d78; }
.lb-trend.same { color: var(--theme-muted); }
.lb-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  border-top: 1px solid var(--border-soft);
}

/* ===========================================================
   STATUS PAGE additions
   =========================================================== */
.status-overall {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 24px 28px;
}
.status-overall__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.7);
  position: relative;
}
.status-overall__dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.4);
  animation: onlinePulse 1.8s ease-out infinite;
}
.status-overall h2 {
  margin: 0;
  font-family: "TASA Explorer", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
}
.status-overall p { margin: 4px 0 0; }

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.status-tile {
  background: linear-gradient(165deg, var(--surface-2), var(--surface-3));
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.status-tile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.status-tile__head h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #fff;
}
.status-tile__bars {
  display: flex;
  gap: 2px;
  margin-top: 8px;
}
.status-tile__bar {
  flex: 1;
  height: 28px;
  background: #10b981;
  border-radius: 2px;
}
.status-tile__bar.warn { background: var(--theme-primary); }
.status-tile__bar.down { background: #ef4444; }
.status-tile__bar.pending { background: rgba(255,255,255,0.08); }
.status-tile__metric {
  font-size: 0.78rem;
  color: var(--theme-muted);
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
}

.status-events {
  padding: 0;
}
.status-event {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1rem;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.85rem;
}
.status-event:last-child { border-bottom: none; }
.status-event__date {
  color: var(--theme-muted);
  font-size: 0.78rem;
}
.status-event__title {
  color: #fff;
  font-weight: 700;
}
.status-event__desc {
  color: var(--theme-muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

.status-uptime {
  padding: 24px;
}
.status-uptime__grid {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  gap: 3px;
  margin: 1rem 0;
}
.status-uptime__cell {
  height: 22px;
  border-radius: 3px;
  background: #10b981;
}
.status-uptime__cell.partial { background: var(--theme-primary); }
.status-uptime__cell.down    { background: #ef4444; }
.status-uptime__legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--theme-muted);
}

/* ===========================================================
   APPLY (recruitment)
   =========================================================== */
.apply-positions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.apply-position-card {
  background: linear-gradient(165deg, var(--surface-2), var(--surface-3));
  border: 1px solid rgba(var(--theme-primary-rgb), 0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.3s ease, border-color 0.3s;
}
.apply-position-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--theme-primary-rgb), 0.4);
}
.apply-position-card__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--theme-primary-rgb), 0.12);
  color: var(--theme-primary);
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.apply-position-card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #fff;
  font-weight: 800;
}
.apply-position-card .chip {
  margin: 8px 0 12px;
}
.apply-position-card p {
  margin: 0 0 1rem;
  color: var(--theme-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.apply-position-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.apply-position-card__count {
  font-size: 0.78rem;
  color: var(--theme-muted);
}

.apply-mine {
  padding: 0;
}
.apply-mine-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
}
.apply-mine-row:last-child { border-bottom: none; }
.apply-mine-row h4 { margin: 0; color: #fff; font-size: 0.95rem; }
.apply-mine-row span { font-size: 0.78rem; color: var(--theme-muted); }

/* ===========================================================
   WHEEL & CRATE
   =========================================================== */
.wheel-shell {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
  align-items: flex-start;
}
.wheel-wrap {
  padding: 32px;
  text-align: center;
  position: relative;
}
.wheel-arrow {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 2.5rem;
  color: var(--theme-primary);
  filter: drop-shadow(0 4px 12px rgba(var(--theme-primary-rgb), 0.5));
}
.wheel-disc {
  width: 360px;
  height: 360px;
  max-width: 90vw;
  max-height: 90vw;
  border-radius: 50%;
  margin: 1.5rem auto;
  background:
    conic-gradient(
      from 0deg,
      var(--theme-primary) 0deg 45deg,
      var(--theme-accent) 45deg 90deg,
      #7c3aed 90deg 135deg,
      #10b981 135deg 180deg,
      var(--theme-primary) 180deg 225deg,
      var(--theme-accent) 225deg 270deg,
      #7c3aed 270deg 315deg,
      #10b981 315deg 360deg
    );
  position: relative;
  border: 6px solid rgba(255,255,255,0.1);
  box-shadow: 0 24px 60px -20px rgba(var(--theme-primary-rgb), 0.4), inset 0 0 0 4px rgba(0,0,0,0.2);
  transition: transform 4s cubic-bezier(0.16, 1, 0.3, 1);
}
.wheel-spin-btn { margin-top: 1rem; }
.wheel-side > .glass-card { margin-bottom: 1rem; }
.wheel-side h4 {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 800;
}
.wheel-prize-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.85rem;
}
.wheel-prize-row:last-child { border-bottom: none; }
.wheel-prize-row strong { color: #fff; }
.wheel-prize-row span { color: var(--theme-muted); }

.crate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.crate-card {
  background: linear-gradient(165deg, var(--surface-2), var(--surface-3));
  border: 1px solid rgba(var(--theme-primary-rgb), 0.15);
  border-radius: var(--radius-xl);
  padding: 26px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}
.crate-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--theme-primary-rgb), 0.5);
}
.crate-card__emoji {
  font-size: 3.6rem;
  display: block;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 6px 24px rgba(var(--theme-primary-rgb), 0.4));
}
.crate-card h3 {
  font-family: "TASA Explorer", sans-serif;
  font-weight: 800;
  margin: 0 0 0.25rem;
  color: #fff;
}
.crate-card__rarity {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: rgba(var(--theme-primary-rgb), 0.12);
  color: var(--theme-primary);
}
.crate-card p {
  color: var(--theme-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}
.crate-card__price {
  font-family: "TASA Explorer", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--theme-primary);
  margin-bottom: 1rem;
}

.crate-log {
  padding: 0;
}
.crate-log-row {
  display: grid;
  grid-template-columns: 50px 1fr auto auto;
  gap: 1rem;
  padding: 12px 22px;
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
  font-size: 0.88rem;
}
.crate-log-row:last-child { border-bottom: none; }
.crate-log-row__icon {
  font-size: 1.5rem;
}
.crate-log-row strong { color: #fff; }
.crate-log-row span { color: var(--theme-muted); font-size: 0.78rem; }

/* ===========================================================
   SUPPORT - my tickets shortcut
   =========================================================== */
.support-mytickets {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 24px 28px;
  flex-wrap: wrap;
}
.support-mytickets h3 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
}
.support-mytickets p { margin: 4px 0 0; }

/* ===========================================================
   VIP COMPARE table
   =========================================================== */
.vip-compare {
  padding: 0;
  overflow-x: auto;
}
.vip-compare table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
.vip-compare th, .vip-compare td {
  padding: 16px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
}
.vip-compare th {
  background: rgba(var(--theme-primary-rgb), 0.06);
  color: #fff;
  font-family: "TASA Explorer", sans-serif;
  font-weight: 800;
}
.vip-compare th:first-child, .vip-compare td:first-child {
  text-align: left;
}
.vip-compare tbody tr:hover { background: rgba(var(--theme-primary-rgb), 0.03); }
.vip-compare .check { color: #10b981; font-size: 1.1rem; }
.vip-compare .cross { color: rgba(255,255,255,0.2); font-size: 1.1rem; }

/* ===========================================================
   RESPONSIVE breakpoints
   =========================================================== */
@media (max-width: 1024px) {
  .panel-shell { grid-template-columns: 1fr; }
  .panel-aside { position: static; }
  .wiki-layout { grid-template-columns: 1fr; }
  .wiki-aside { position: static; max-height: none; }
  .ticket-view-grid { grid-template-columns: 1fr; }
  .news-featured { grid-template-columns: 1fr; }
  .wheel-shell { grid-template-columns: 1fr; }
  .profile-head { grid-template-columns: 1fr; text-align: center; }
  .profile-head__avatar { margin: 0 auto; }
  .profile-head__actions { flex-direction: row; justify-content: center; }
  .profile-head__stats { justify-content: center; }
}
@media (max-width: 768px) {
  .lb-podium { grid-template-columns: 1fr; }
  .lb-podium-card.rank-1 { transform: none; }
  .features-grid, .modes-grid { grid-template-columns: 1fr; }
  .goal-bar { grid-template-columns: 1fr; text-align: center; }
  .goal-bar__values { text-align: center; }
  .news-pagination, .status-uptime__grid { gap: 2px; }
  .status-uptime__grid { grid-template-columns: repeat(15, 1fr); }
}
@media (max-width: 480px) {
  .status-banner { padding: 18px; }
  .wiki-article { padding: 24px 20px; }
  .ticket-thread, .forum-topic-view, .panel-view { padding: 22px 18px; }
  .news-article { padding: 24px 20px; }
}

/* prefers-color-scheme already handled by toxcraft.css polish layer */
