@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Carbon Obsidian + Emerald Mint & Warm Gold Palette (Zero Navy/Sky Blue) */
  --bg-base: #090a0c;
  --bg-surface: #111317;
  --bg-elevated: #171a20;
  --bg-input: #14171c;
  --bg-hover: #1e222a;
  --border-subtle: #22262f;
  --border-strong: #2e3440;
  --text-primary: #f3f5f7;
  --text-secondary: #9ba3b0;
  --text-muted: #636b78;

  --accent-primary: #10b981;
  --accent-primary-hover: #059669;
  --accent-glow: rgba(16, 185, 129, 0.22);
  --accent-emerald: #10b981;
  --accent-emerald-bg: rgba(16, 185, 129, 0.12);
  --accent-amber: #f59e0b;
  --accent-amber-bg: rgba(245, 158, 11, 0.13);
  --accent-danger: #f43f5e;
  --accent-danger-bg: rgba(244, 63, 94, 0.13);
  --accent-telegram: #2aabee;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 20px 45px -15px rgba(0, 0, 0, 0.75);
}

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

html, body {
  min-height: 100vh;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: all 0.15s ease;
}

a:hover {
  color: #34d399;
}

/* =========================================================
   DUAL LANGUAGE SWITCHER (VISIBLE TR + EN AT THE TOP)
   ========================================================= */
.lang-dual-bar {
  display: inline-flex;
  align-items: center;
  background: #0d0f13;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px;
  gap: 4px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #06130e;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.35);
}

.lang-flag {
  font-size: 13px;
  line-height: 1;
}

/* =========================================================
   SPLIT-SCREEN LOGIN / AUTH PORTAL (COMPLETELY NEW DESIGN)
   ========================================================= */
.auth-viewport {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.09) 0%, transparent 42%),
    radial-gradient(circle at 85% 80%, rgba(245, 158, 11, 0.07) 0%, transparent 40%),
    var(--bg-base);
}

#network-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.auth-top-floating {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 980px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 10px 18px;
  background: rgba(17, 19, 23, 0.88);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
}

.auth-top-brand-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.auth-top-brand-mini .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

.auth-split-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  background: rgba(17, 19, 23, 0.94);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

@media (max-width: 860px) {
  .auth-split-container {
    grid-template-columns: 1fr;
  }
  .auth-showcase-side {
    display: none;
  }
}

/* Left Side of Login: Authority & Crypto Showcase */
.auth-showcase-side {
  padding: 42px 38px;
  background:
    linear-gradient(160deg, rgba(16, 185, 129, 0.11) 0%, rgba(17, 19, 23, 0.4) 55%, rgba(245, 158, 11, 0.06) 100%);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 11.5px;
  font-weight: 700;
  width: fit-content;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.showcase-heading {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.showcase-heading span {
  color: var(--accent-primary);
}

.showcase-lead {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
}

.showcase-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.showcase-metric-box {
  background: rgba(9, 10, 12, 0.65);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
}

.showcase-metric-box.amber {
  border-left-color: var(--accent-amber);
}

.showcase-metric-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.showcase-metric-lbl {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Right Side of Login: Form Area */
.auth-form-side {
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #0b0d10;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 6px;
  margin-bottom: 22px;
}

.auth-tab-btn {
  padding: 10px 14px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.auth-tab-btn:hover {
  color: var(--text-primary);
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #05140d;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
}

.auth-brand {
  margin-bottom: 20px;
}

.brand-emblem {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.brand-emblem svg {
  width: 26px;
  height: 26px;
  color: var(--accent-primary);
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.brand-title span {
  color: var(--accent-amber);
}

.auth-welcome-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.auth-welcome-sub {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 15px;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-label-row .form-label {
  margin-bottom: 0;
}

.forgot-link {
  font-size: 11.5px;
  color: var(--accent-amber);
  font-weight: 600;
  cursor: pointer;
}

.forgot-link:hover {
  text-decoration: underline;
}

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

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13.5px;
  transition: all 0.15s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: #181c22;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.input-toggle-btn {
  position: absolute;
  right: 7px;
  height: 30px;
  width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  color: #34d399;
  cursor: pointer;
}

.input-toggle-btn:hover {
  background: rgba(16, 185, 129, 0.24);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.checkbox-row input {
  accent-color: var(--accent-primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* Interactive Security / Captcha Widget */
.shield-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d0f13;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
  cursor: pointer;
  user-select: none;
  transition: all 0.16s ease;
}

.shield-box:hover {
  border-style: solid;
  border-color: var(--accent-primary);
}

.shield-box.verified {
  border-style: solid;
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
}

.shield-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.shield-indicator {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: all 0.2s ease;
}

.shield-box.loading .shield-indicator {
  border-radius: 50%;
  border-color: var(--accent-primary);
  border-top-color: transparent;
  animation: spin 0.7s linear infinite;
}

.shield-box.verified .shield-indicator {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #05140d;
}

.shield-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.shield-brand {
  text-align: right;
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.25;
}

.shield-brand strong {
  display: block;
  color: var(--accent-amber);
  font-size: 10.5px;
  letter-spacing: 0.05em;
}

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

.btn-primary {
  width: 100%;
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #04130c;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px -4px rgba(16, 185, 129, 0.4);
  transition: all 0.15s ease;
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.auth-switch-prompt {
  text-align: center;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.auth-switch-prompt button {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-weight: 700;
  cursor: pointer;
  margin-left: 4px;
}

.auth-switch-prompt button:hover {
  text-decoration: underline;
}

/* Telegram Only Footer inside Auth Card */
.auth-social-footer {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: center;
}

.telegram-channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 10px;
  background: rgba(42, 171, 238, 0.12);
  border: 1px solid rgba(42, 171, 238, 0.35);
  color: #5bc0f8;
  font-size: 12.5px;
  font-weight: 700;
  transition: all 0.18s ease;
}

.telegram-channel-pill:hover {
  background: #2aabee;
  border-color: #2aabee;
  color: #ffffff;
  transform: translateY(-1px);
}

.telegram-channel-pill svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.alert-banner {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 15px;
  display: none;
}

.alert-banner.error {
  display: block;
  background: var(--accent-danger-bg);
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #fda4af;
}

.alert-banner.success {
  display: block;
  background: var(--accent-emerald-bg);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

/* =========================================================
   APP SHELL: SIDEBAR + TOP COMMAND BAR (NEW ARCHITECTURE)
   ========================================================= */
.app-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

@media (max-width: 960px) {
  .app-layout {
    grid-template-columns: 1fr;
  }
}

.app-sidebar {
  background: #0d0f13;
  border-right: 1px solid var(--border-subtle);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
}

@media (max-width: 960px) {
  .app-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 10px 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.sidebar-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #04130c;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.sidebar-brand-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.sidebar-brand-text span {
  color: var(--accent-amber);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.nav-item.active {
  background: rgba(16, 185, 129, 0.13);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.32);
  font-weight: 700;
}

.nav-item svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.sidebar-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-tg-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: rgba(42, 171, 238, 0.1);
  border: 1px solid rgba(42, 171, 238, 0.3);
  color: #5bc0f8;
  font-size: 12px;
  font-weight: 700;
}

.sidebar-tg-card:hover {
  background: rgba(42, 171, 238, 0.2);
  color: #fff;
}

.sidebar-tg-card svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Main Content Right Column */
.app-main-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.top-header {
  background: rgba(13, 15, 19, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.top-header-inner {
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.user-status-Cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 13px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.status-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.status-label {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.status-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

.status-sub {
  font-size: 10.5px;
  color: var(--accent-amber);
  font-weight: 700;
}

.logout-btn {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.32);
  color: #fda4af;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.logout-btn:hover {
  background: rgba(244, 63, 94, 0.24);
}

/* =========================================================
   MAIN CONTENT AREA & CARDS
   ========================================================= */
.main-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 28px 60px;
  flex: 1;
}

.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

.page-header {
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.page-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.page-title em {
  font-style: normal;
  color: var(--accent-primary);
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* 4 Stat Cards Grid with Left Accent Bars */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 122px;
}

.stat-card:nth-child(2) {
  border-left-color: var(--accent-amber);
}

.stat-card:nth-child(4) {
  border-left-color: #a855f7;
}

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-badge-icon.cyan,
.stat-badge-icon.emerald {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
}

.stat-badge-icon.amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.stat-card-label {
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-card-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-card-value.highlight {
  color: var(--accent-primary);
}

.stat-card-foot {
  font-size: 12px;
  color: var(--accent-amber);
  margin-top: 4px;
  font-weight: 700;
}

/* Dashboard 2-Column Split */
.dashboard-split {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 20px;
}

@media (max-width: 1024px) {
  .dashboard-split {
    grid-template-columns: 1fr;
  }
}

.panel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.panel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
}

.badge-tag.emerald {
  background: var(--accent-emerald-bg);
  color: #34d399;
}

.badge-tag.amber {
  background: var(--accent-amber-bg);
  color: #fbbf24;
}

.badge-tag.danger {
  background: var(--accent-danger-bg);
  color: #fda4af;
}

/* Announcements Scroll List */
.announcement-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.ann-item {
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-primary);
  background: var(--bg-elevated);
}

.ann-item.success { border-left-color: var(--accent-emerald); }
.ann-item.info { border-left-color: var(--accent-amber); }
.ann-item.danger { border-left-color: var(--accent-danger); }

.ann-title {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 3px;
}

.ann-item.success .ann-title { color: #34d399; }
.ann-item.info .ann-title { color: #fbbf24; }
.ann-item.danger .ann-title { color: #fda4af; }

.ann-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.ann-body {
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 11px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td {
  padding: 13px 12px;
  font-size: 13px;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(34, 38, 47, 0.7);
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Link Market Layout */
.market-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1080px) {
  .market-layout {
    grid-template-columns: 1fr;
  }
}

.credit-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.credit-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.credit-box strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-primary);
}

.credit-info-box {
  flex: 1;
  min-width: 260px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 13px 18px;
}

.credit-info-box h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-amber);
  margin-bottom: 3px;
}

.credit-info-box p {
  font-size: 12px;
  color: var(--text-secondary);
}

.sub-mode-tabs {
  display: inline-flex;
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 4px;
}

.sub-mode-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.sub-mode-btn.active {
  background: var(--accent-primary);
  color: #04130c;
}

.btn-sm {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-edit {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.btn-edit:hover {
  background: rgba(16, 185, 129, 0.25);
}

.btn-refund {
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fda4af;
}

.btn-refund:hover {
  background: rgba(244, 63, 94, 0.25);
}

.btn-outline {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.sidebar-notes h5 {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-amber);
  margin: 12px 0 6px;
}

.sidebar-notes p, .sidebar-notes li {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.sidebar-notes ul {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* =========================================================
   PAYMENTS & PACKAGES (SILVER, GOLD, DIAMOND)
   ========================================================= */
.deposit-bar-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 10px;
  align-items: center;
}

@media (max-width: 768px) {
  .deposit-bar-row {
    grid-template-columns: 1fr;
  }
}

.packages-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 28px 0 22px;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.packages-divider::before,
.packages-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.packages-divider span {
  padding: 0 16px;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.pkg-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid #94a3b8;
  border-radius: var(--radius-md);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
}

.pkg-card.gold {
  border-top-color: var(--accent-amber);
}

.pkg-card.diamond {
  border-top-color: var(--accent-primary);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, var(--bg-surface) 100%);
}

.pkg-top {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.pkg-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--border-strong);
  color: #cbd5e1;
}

.pkg-card.gold .pkg-icon {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.pkg-card.diamond .pkg-icon {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.pkg-name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.pkg-card.gold .pkg-name { color: #fbbf24; }
.pkg-card.diamond .pkg-name { color: #34d399; }

.pkg-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.pkg-price-block {
  margin: 14px 0 18px;
}

.pkg-price-big {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
}

.pkg-card.gold .pkg-price-big { color: #fbbf24; }
.pkg-card.diamond .pkg-price-big { color: #34d399; }

.pkg-price-BigSub {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.pkg-features {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pkg-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.pkg-features li svg {
  width: 15px;
  height: 15px;
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* =========================================================
   MODAL DIALOGS
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 8, 0.82);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 520px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--accent-primary);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
}

.wallet-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin: 8px 0 14px;
  word-break: break-all;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 18px 28px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  background: #090a0c;
}
