/* ==============================================================================
   ZGamers ARC Raiders Panel - Industrial Design System
   Architecture: Minimalist, Tactical & Sharp Gaming Interface
   Strict Constraint: Max border-radius 4px - 6px. No AI purple gradients. No emojis.
   ============================================================================== */

:root {
  --bg-dark: #050711;
  --bg-panel: #0a0e1c;
  --bg-panel-subtle: #0e1428;
  --card-bg: rgba(10, 14, 28, 0.96);
  --card-border: #1e293b;
  --card-border-subtle: rgba(255, 255, 255, 0.08);
  --card-border-active: #00d2ff;
  
  --accent-cyan: #00d2ff;
  --accent-cyan-dim: rgba(0, 210, 255, 0.12);
  --accent-blue: #0066ff;
  --accent-amber: #f59e0b;
  --accent-amber-dim: rgba(245, 158, 11, 0.12);
  --accent-emerald: #10b981;
  --accent-emerald-dim: rgba(16, 185, 129, 0.12);
  --accent-rose: #f43f5e;
  --accent-rose-dim: rgba(244, 63, 94, 0.12);

  --discord-brand: #5865F2;
  --discord-hover: #4752c4;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-persian: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-stats: 'Rajdhani', -apple-system, BlinkMacSystemFont, monospace, sans-serif;

  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
}

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

html, body {
  min-height: 100vh;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-persian);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(180deg, #050711 0%, #080c1d 50%, #050711 100%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
  background-position: -1px -1px, -1px -1px, 0 0;
  display: flex;
  flex-direction: column;
}

/* ==============================================================================
   Typography & Helper Classes
   ============================================================================== */
.stats-font {
  font-family: var(--font-stats);
  direction: ltr;
  unicode-bidi: isolate;
  letter-spacing: 0.5px;
}

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

a:hover {
  color: #38bdf8;
}

/* ==============================================================================
   Navigation Header
   ============================================================================== */
.site-header {
  border-bottom: 1px solid var(--card-border);
  background: rgba(5, 7, 17, 0.88);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-main-title {
  font-family: var(--font-stats);
  font-weight: 700;
  font-size: 1.15rem;
  color: #ffffff;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
}

.brand-sub-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cyan);
  line-height: 1;
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==============================================================================
   Main Layout & Container
   ============================================================================== */
.main-wrapper {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* ==============================================================================
   Panels & Cards (Sharp Edges)
   ============================================================================== */
.panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
}

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

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

.panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-title i {
  color: var(--accent-cyan);
  font-size: 1rem;
}

/* ==============================================================================
   Buttons (No Emojis, Sharp Industrial)
   ============================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-persian);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
}

.btn-discord {
  background-color: var(--discord-brand);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(88, 101, 242, 0.35);
}

.btn-discord:hover {
  background-color: var(--discord-hover);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.5);
  transform: translateY(-1px);
}

.btn-discord svg,
.btn-discord i {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-outline {
  background: transparent;
  border-color: var(--card-border);
  color: var(--text-muted);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.btn-danger-outline {
  background: transparent;
  border-color: rgba(244, 63, 94, 0.3);
  color: var(--accent-rose);
}

.btn-danger-outline:hover {
  background: var(--accent-rose-dim);
  border-color: var(--accent-rose);
  color: #ffffff;
}

/* ==============================================================================
   Badges & Tags (Strict Max 4px Radius)
   ============================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
}

.badge-cyan {
  background: var(--accent-cyan-dim);
  border-color: rgba(0, 210, 255, 0.3);
  color: var(--accent-cyan);
}

.badge-emerald {
  background: var(--accent-emerald-dim);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

.badge-amber {
  background: var(--accent-amber-dim);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--accent-amber);
}

.badge-rose {
  background: var(--accent-rose-dim);
  border-color: rgba(244, 63, 94, 0.3);
  color: var(--accent-rose);
}

.badge-muted {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--card-border);
  color: var(--text-muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot-emerald { background-color: var(--accent-emerald); box-shadow: 0 0 6px var(--accent-emerald); }
.status-dot-amber { background-color: var(--accent-amber); box-shadow: 0 0 6px var(--accent-amber); }
.status-dot-rose { background-color: var(--accent-rose); box-shadow: 0 0 6px var(--accent-rose); }

/* ==============================================================================
   Alert Messages (Sharp 4-6px)
   ============================================================================== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
}

.alert-danger {
  background: var(--accent-rose-dim);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fecdd3;
}

.alert-success {
  background: var(--accent-emerald-dim);
  border-color: rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
}

/* ==============================================================================
   Login View Styles
   ============================================================================== */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(80vh - 120px);
}

.login-card {
  max-width: 440px;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  position: relative;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.login-brand-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 14px;
}

.login-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

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

.login-action-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.login-features-list {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border-subtle);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-features-list li {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-features-list li i {
  color: var(--accent-cyan);
  font-size: 0.8rem;
}

/* ==============================================================================
   Dashboard Layout & Components
   ============================================================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
}

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

/* User Profile Card */
.user-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.user-avatar-wrap {
  position: relative;
}

.user-avatar {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  object-fit: cover;
  background: #02040a;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-display-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.user-username {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-stats);
  direction: ltr;
  text-align: right;
}

.user-info-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--card-border-subtle);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.info-label {
  color: var(--text-dim);
}

.info-value {
  color: var(--text-main);
  font-weight: 500;
}

/* Placeholder Cards (Industrial Tactical Look) */
.placeholder-card {
  background: var(--bg-panel-subtle);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.placeholder-badge {
  align-self: flex-start;
}

.placeholder-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.placeholder-title i {
  color: var(--accent-amber);
}

.placeholder-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.placeholder-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.spec-item {
  background: rgba(5, 7, 17, 0.5);
  border: 1px solid var(--card-border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.spec-name {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.spec-val {
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 600;
}

/* ==============================================================================
   Footer
   ============================================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--card-border);
  background: rgba(5, 7, 17, 0.95);
  padding: 20px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-badges {
  display: flex;
  gap: 10px;
}

