/* ============================================
   2B2TALE ENTERPRISE DESIGN SYSTEM
   Ultra-Premium Forum Experience
   Version 3.0
   ============================================ */

/* === CSS CUSTOM PROPERTIES === */
:root {
  /* Color Palette - Dark Mode */
  --bg-void: #050507;
  --bg-primary: #0a0a0c;
  --bg-secondary: #0f0f12;
  --bg-tertiary: #141418;
  --bg-card: #161619;
  --bg-elevated: #1a1a1f;
  --bg-hover: #1e1e24;
  --bg-active: #222228;
  
  /* Accent Colors */
  --accent-primary: #dc143c;
  --accent-secondary: #ff1f4d;
  --accent-tertiary: #ff4d6d;
  --accent-subtle: rgba(220, 20, 60, 0.1);
  --accent-glow: rgba(220, 20, 60, 0.4);
  
  /* Semantic Colors */
  --success: #10b981;
  --success-subtle: rgba(16, 185, 129, 0.15);
  --warning: #f59e0b;
  --warning-subtle: rgba(245, 158, 11, 0.15);
  --error: #ef4444;
  --error-subtle: rgba(239, 68, 68, 0.15);
  --info: #3b82f6;
  --info-subtle: rgba(59, 130, 246, 0.15);
  
  /* Text Colors */
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-disabled: #52525b;
  --text-inverse: #09090b;
  
  /* Border Colors */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-focus: rgba(220, 20, 60, 0.5);
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  
  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
  
  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-toast: 600;
  --z-tooltip: 700;
}

/* === GLOBAL STYLES === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at top, rgba(220, 20, 60, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(139, 0, 0, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-sm { max-width: 640px; }
.container-md { max-width: 768px; }
.container-lg { max-width: 1024px; }
.container-xl { max-width: 1280px; }
.container-2xl { max-width: 1536px; }

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: linear-gradient(180deg, 
    rgba(10, 10, 12, 0.98) 0%, 
    rgba(10, 10, 12, 0.95) 100%
  );
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-4) 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.header-logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-primary), #8b0000);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

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

.nav-link.active {
  color: var(--accent-primary);
  background: var(--accent-subtle);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.btn:hover::before {
  left: 100%;
}

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

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

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Button Variants */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #a00d2e);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #059669);
  border-color: transparent;
  color: #fff;
}

.btn-danger {
  background: linear-gradient(135deg, var(--error), #dc2626);
  border-color: transparent;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--bg-hover);
}

.btn-sm {
  padding: var(--space-2) var(--space-3);
  font-size: 0.8rem;
}

.btn-lg {
  padding: var(--space-4) var(--space-6);
  font-size: 1rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
}

.btn-icon.btn-sm {
  width: 32px;
  height: 32px;
}

/* === CARDS === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-body {
  padding: var(--space-6);
}

.card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
}

/* Glowing Card */
.card-glow {
  position: relative;
}

.card-glow::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, var(--accent-primary), transparent, var(--accent-primary));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card-glow:hover::before {
  opacity: 0.5;
}

/* === FORMS === */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-input::placeholder {
  color: var(--text-disabled);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.form-error {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: var(--space-1);
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.form-check-input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}

.badge-primary {
  background: var(--accent-subtle);
  color: var(--accent-primary);
  border-color: rgba(220, 20, 60, 0.3);
}

.badge-success {
  background: var(--success-subtle);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: var(--warning-subtle);
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.3);
}

.badge-danger {
  background: var(--error-subtle);
  color: var(--error);
  border-color: rgba(239, 68, 68, 0.3);
}

.badge-info {
  background: var(--info-subtle);
  color: var(--info);
  border-color: rgba(59, 130, 246, 0.3);
}

/* === AVATAR === */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-subtle), var(--bg-tertiary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-primary);
  overflow: hidden;
  border: 2px solid var(--border-default);
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-sm { width: 32px; height: 32px; font-size: 0.8rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.25rem; }
.avatar-xl { width: 80px; height: 80px; font-size: 1.75rem; }
.avatar-2xl { width: 120px; height: 120px; font-size: 2.5rem; }

/* Avatar Rings */
.avatar-ring-admin {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-subtle), 0 0 20px var(--accent-glow);
}

.avatar-ring-mod {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2), 0 0 20px rgba(139, 92, 246, 0.3);
}

.avatar-ring-helper {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2), 0 0 20px rgba(16, 185, 129, 0.3);
}

/* === HERO SECTION === */
.hero {
  position: relative;
  padding: var(--space-16) 0;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at center, rgba(220, 20, 60, 0.1) 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, var(--bg-primary) 100%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(220, 20, 60, 0.15) 0%, transparent 60%);
  pointer-events: none;
  animation: hero-pulse 6s ease-in-out infinite;
}

@keyframes hero-pulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-title {
  position: relative;
  z-index: 1;
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--accent-primary) 50%, #8b0000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

/* Server IP Box */
.ip-box {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.ip-input {
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  border: none;
  outline: none;
  min-width: 180px;
  text-align: center;
}

.ip-copy-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(135deg, var(--accent-primary), #a00d2e);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.ip-copy-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.ip-copy-btn.copied {
  background: linear-gradient(135deg, var(--success), #059669);
}

/* === STAT CARDS === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
  margin: var(--space-8) 0;
}

.stat-card {
  position: relative;
  padding: var(--space-6);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-tertiary));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  color: var(--accent-primary);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-top: var(--space-3);
}

.stat-change.positive {
  background: var(--success-subtle);
  color: var(--success);
}

.stat-change.negative {
  background: var(--error-subtle);
  color: var(--error);
}

/* === FORUM STYLES === */
.thread-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.thread-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.thread-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
  transform: translateX(4px);
}

.thread-avatar {
  width: 48px;
  height: 48px;
}

.thread-content {
  min-width: 0;
}

.thread-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.thread-title a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-title a:hover {
  color: var(--accent-primary);
}

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

.thread-meta a {
  color: var(--text-secondary);
}

.thread-meta a:hover {
  color: var(--accent-primary);
}

.thread-stats {
  display: flex;
  gap: var(--space-6);
  text-align: center;
}

.thread-stat-item {
  display: flex;
  flex-direction: column;
}

.thread-stat-value {
  font-weight: 700;
  color: var(--text-primary);
}

.thread-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.thread-activity {
  text-align: right;
  min-width: 140px;
}

.thread-activity-time {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.thread-activity-user {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* === POST STYLES === */
.post-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.post-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.post-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.post-author {
  padding: var(--space-6);
  background: linear-gradient(180deg, var(--bg-tertiary), var(--bg-secondary));
  border-right: 1px solid var(--border-subtle);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.post-author-avatar {
  width: 72px;
  height: 72px;
}

.post-author-name {
  font-weight: 600;
  color: var(--text-primary);
}

.post-author-name:hover {
  color: var(--accent-primary);
}

.post-author-role {
  padding: var(--space-1) var(--space-3);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.role-admin {
  background: linear-gradient(135deg, var(--accent-subtle), rgba(139, 0, 0, 0.2));
  color: var(--accent-primary);
  border: 1px solid rgba(220, 20, 60, 0.3);
}

.role-moderator {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(109, 40, 217, 0.2));
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.role-helper {
  background: var(--success-subtle);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.role-member {
  background: var(--bg-hover);
  color: var(--text-muted);
  border: 1px solid var(--border-default);
}

.post-content-wrapper {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}

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

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

.post-content {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.post-content p {
  margin-bottom: 1em;
}

.post-content a {
  color: var(--accent-primary);
}

.post-content a:hover {
  text-decoration: underline;
}

/* === FOOTER === */
.site-footer {
  padding: var(--space-12) 0 var(--space-6);
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-void));
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-left {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

/* === TOAST NOTIFICATIONS === */
#toast-container {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  pointer-events: auto;
  animation: toast-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, var(--success-subtle), var(--bg-elevated));
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.5);
  background: linear-gradient(135deg, var(--error-subtle), var(--bg-elevated));
}

.toast.warning {
  border-color: rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, var(--warning-subtle), var(--bg-elevated));
}

.toast-icon {
  font-size: 1.25rem;
}

.toast-message {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast.hiding {
  animation: toast-out 0.3s ease forwards;
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

/* === MODAL === */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal-backdrop);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  overflow: hidden;
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

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

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.modal-body {
  padding: var(--space-6);
  max-height: 60vh;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
}

/* === LOADING STATES === */
.skeleton {
  background: linear-gradient(90deg, 
    var(--bg-tertiary) 0%, 
    var(--bg-hover) 50%, 
    var(--bg-tertiary) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-default);
  border-top-color: var(--accent-primary);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}

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

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bg-active);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .post-item {
    grid-template-columns: 1fr;
  }
  
  .post-author {
    flex-direction: row;
    padding: var(--space-4);
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  
  .post-author-avatar {
    width: 48px;
    height: 48px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }
  
  .container {
    padding: 0 var(--space-4);
  }
  
  .hero {
    padding: var(--space-10) 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .ip-box {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }
  
  .ip-input {
    font-size: 1.1rem;
    text-align: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .stat-card {
    padding: var(--space-5);
  }
  
  .stat-value {
    font-size: 2rem;
  }
  
  .thread-item {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    padding: var(--space-4);
  }
  
  .thread-avatar {
    display: none;
  }
  
  .thread-stats {
    justify-content: flex-start;
    gap: var(--space-4);
  }
  
  .thread-activity {
    text-align: left;
  }
  
  .header-nav {
    display: none;
  }
  
  .card-header {
    padding: var(--space-4) var(--space-5);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  
  .card-body {
    padding: var(--space-4);
  }
  
  .modal {
    width: 95%;
    max-height: 85vh;
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: var(--space-4);
  }
  
  .btn {
    padding: var(--space-3) var(--space-4);
    font-size: 0.85rem;
  }
  
  .btn-lg {
    padding: var(--space-3) var(--space-5);
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    padding: var(--space-3);
    font-size: 16px; /* Prevent iOS zoom */
  }
  
  .badge {
    font-size: 0.65rem;
    padding: 2px var(--space-2);
  }
  
  .avatar {
    width: 36px;
    height: 36px;
  }
  
  .avatar-lg {
    width: 48px;
    height: 48px;
  }
  
  .avatar-xl {
    width: 64px;
    height: 64px;
  }
  
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .tabs::-webkit-scrollbar {
    display: none;
  }
  
  .tab {
    padding: var(--space-3) var(--space-4);
    white-space: nowrap;
  }
  
  .dropdown-menu {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 60vh;
    overflow-y: auto;
  }
  
  /* Footer mobile */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
  }
  
  /* Toast mobile */
  #toast-container {
    left: var(--space-4);
    right: var(--space-4);
    top: auto;
    bottom: var(--space-4);
  }
  
  .toast {
    max-width: 100%;
  }
  
  /* Announcement mobile */
  .announcement-banner {
    flex-wrap: wrap;
  }
  
  .announcement-text {
    flex-basis: 100%;
    order: 2;
    margin-top: var(--space-2);
  }
}

@media (max-width: 480px) {
  :root {
    font-size: 13px;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .stat-value {
    font-size: 1.75rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .btn-sm {
    width: auto;
  }
  
  .thread-stat-item {
    display: none;
  }
  
  .thread-stat-item:first-child {
    display: flex;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn:hover {
    transform: none;
  }
  
  .card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  
  .thread-item:hover {
    transform: none;
  }
  
  .poll-option.clickable:hover {
    transform: none;
  }
  
  /* Larger touch targets */
  .btn {
    min-height: 44px;
  }
  
  .form-check-input {
    width: 24px;
    height: 24px;
  }
  
  .nav-link {
    padding: var(--space-3) var(--space-4);
  }
}

/* === UTILITY CLASSES === */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }
.text-accent { color: var(--accent-primary); }

.bg-card { background: var(--bg-card); }
.bg-elevated { background: var(--bg-elevated); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === ANIMATIONS === */
.fade-in {
  animation: fade-in 0.3s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-up {
  animation: slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page transition */
main {
  animation: page-enter 0.4s ease;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === REPORT BUTTON === */
.btn-report {
  color: var(--text-muted);
  opacity: 0.7;
  transition: all var(--transition-fast);
}

.btn-report:hover {
  color: var(--error);
  opacity: 1;
  background: var(--error-subtle);
}

.btn-report svg {
  transition: transform var(--transition-fast);
}

.btn-report:hover svg {
  transform: scale(1.1);
}

/* === ANNOUNCEMENT BANNER === */
.announcement-banner {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  animation: slide-up 0.4s ease;
}

.announcement-banner.info {
  background: var(--info-subtle);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--info);
}

.announcement-banner.success {
  background: var(--success-subtle);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
}

.announcement-banner.warning {
  background: var(--warning-subtle);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--warning);
}

.announcement-banner.danger {
  background: var(--error-subtle);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--error);
}

.announcement-banner .announcement-icon {
  font-size: 1.25rem;
}

.announcement-banner .announcement-text {
  flex: 1;
  font-size: 0.9rem;
}

.announcement-banner .announcement-close {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  padding: 4px;
}

.announcement-banner .announcement-close:hover {
  opacity: 1;
}

/* === ONLINE INDICATOR === */
.online-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  color: var(--success);
}

.online-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: var(--radius-full);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* === PROFESSIONAL RANK SYSTEM - Enterprise Badges === */
.user-level {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.user-level::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.user-level:hover::before {
  left: 100%;
}

/* ✦ MYTHIC - Ultimate Achievement */
.level-mythic {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #0f0f23 100%);
  color: #fff;
  border: 1px solid transparent;
  position: relative;
  animation: mythicAura 3s ease-in-out infinite;
  text-shadow: 0 0 10px #fff, 0 0 20px #a855f7, 0 0 30px #6366f1;
}

.level-mythic::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #f43f5e, #a855f7, #6366f1, #06b6d4, #10b981, #eab308, #f43f5e);
  background-size: 400% 400%;
  border-radius: 22px;
  z-index: -1;
  animation: mythicRainbow 3s linear infinite;
  filter: blur(3px);
}

@keyframes mythicRainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes mythicAura {
  0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.5), 0 0 40px rgba(99, 102, 241, 0.3); }
  50% { box-shadow: 0 0 30px rgba(168, 85, 247, 0.7), 0 0 60px rgba(99, 102, 241, 0.5); }
}

/* ★ LEGEND - Legendary Status */
.level-legend {
  background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff, #5f27cd);
  background-size: 300% 100%;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  animation: legendShift 4s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}

@keyframes legendShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ◆ GRANDMASTER - Exceptional */
.level-grandmaster {
  background: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 25%, #ffffff 50%, #c0c0c0 75%, #a8a8a8 100%);
  background-size: 200% 200%;
  color: #1a1a2e;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), inset 0 1px 0 rgba(255,255,255,0.8);
  animation: grandmasterShine 3s ease-in-out infinite;
}

@keyframes grandmasterShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ▲ MASTER - Mastery Achieved */
.level-master {
  background: linear-gradient(135deg, #ffd700 0%, #ffec8b 25%, #ffd700 50%, #daa520 75%, #b8860b 100%);
  background-size: 200% 200%;
  color: #1a1a2e;
  font-weight: 900;
  border: 1px solid rgba(255, 215, 0, 0.6);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.5);
  animation: masterGold 2.5s ease-in-out infinite;
}

@keyframes masterGold {
  0%, 100% { background-position: 0% 50%; box-shadow: 0 0 25px rgba(255, 215, 0, 0.5); }
  50% { background-position: 100% 50%; box-shadow: 0 0 35px rgba(255, 215, 0, 0.7); }
}

/* ● ELITE - Top Tier */
.level-elite {
  background: linear-gradient(135deg, #dc143c 0%, #ff4757 30%, #dc143c 50%, #8b0000 100%);
  background-size: 200% 200%;
  color: #fff;
  border: 1px solid rgba(220, 20, 60, 0.5);
  box-shadow: 0 0 20px rgba(220, 20, 60, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  animation: elitePulse 2s ease-in-out infinite;
}

@keyframes elitePulse {
  0%, 100% { background-position: 0% 50%; box-shadow: 0 0 20px rgba(220, 20, 60, 0.4); }
  50% { background-position: 100% 50%; box-shadow: 0 0 30px rgba(220, 20, 60, 0.6); }
}

/* ◈ EXPERT - Highly Knowledgeable */
.level-expert {
  background: linear-gradient(135deg, #ff6348 0%, #ff9f43 30%, #ee5a24 60%, #d63031 100%);
  background-size: 200% 200%;
  color: #fff;
  border: 1px solid rgba(255, 99, 72, 0.4);
  box-shadow: 0 0 18px rgba(255, 99, 72, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  animation: expertGlow 1.5s ease-in-out infinite;
}

@keyframes expertGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ■ VETERAN - Long-time Member */
.level-veteran {
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 40%, #7c3aed 100%);
  color: #fff;
  border: 1px solid rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  animation: veteranGlow 2.5s ease-in-out infinite;
}

@keyframes veteranGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(139, 92, 246, 0.35); }
  50% { box-shadow: 0 0 22px rgba(139, 92, 246, 0.5); }
}

/* ▪ REGULAR - Established */
.level-regular {
  background: linear-gradient(135deg, #0891b2 0%, #22d3ee 50%, #06b6d4 100%);
  color: #fff;
  border: 1px solid rgba(34, 211, 238, 0.3);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* › CONTRIBUTOR - Active Participant */
.level-contributor {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #2563eb 100%);
  color: #fff;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* • MEMBER - Community Member */
.level-member {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #047857 100%);
  color: #fff;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

/* ○ NEWCOMER - Just Arrived */
.level-newcomer {
  background: linear-gradient(135deg, rgba(55, 55, 65, 0.9), rgba(45, 45, 55, 0.9));
  color: #9ca3af;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Legacy class name support */
.level-godlike { 
  background: linear-gradient(135deg, #0f0f23, #1a1a3e, #0f0f23);
  color: #fff;
  text-shadow: 0 0 10px #fff, 0 0 20px #a855f7;
  animation: mythicAura 3s ease-in-out infinite;
}

.level-immortal {
  background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff);
  background-size: 300% 100%;
  color: #fff;
  animation: legendShift 4s ease-in-out infinite;
}

.level-overlord {
  background: linear-gradient(135deg, #e8e8e8, #c0c0c0, #ffffff, #c0c0c0);
  background-size: 200% 200%;
  color: #1a1a2e;
  animation: grandmasterShine 3s ease-in-out infinite;
}

.level-tyrant {
  background: linear-gradient(135deg, #ffd700, #ffec8b, #ffd700, #daa520);
  background-size: 200% 200%;
  color: #1a1a2e;
  animation: masterGold 2.5s ease-in-out infinite;
}

.level-conqueror {
  background: linear-gradient(135deg, #dc143c, #ff4757, #dc143c, #8b0000);
  color: #fff;
  animation: elitePulse 2s ease-in-out infinite;
}

.level-destroyer {
  background: linear-gradient(135deg, #ff6348, #ff9f43, #ee5a24);
  color: #fff;
}

.level-warlord {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa, #7c3aed);
  color: #fff;
}

.level-warrior {
  background: linear-gradient(135deg, #0891b2, #22d3ee, #06b6d4);
  color: #fff;
}

.level-raider {
  background: linear-gradient(135deg, #3b82f6, #60a5fa, #2563eb);
  color: #fff;
}

.level-survivor {
  background: linear-gradient(135deg, #059669, #10b981, #047857);
  color: #fff;
}

.level-wanderer {
  background: linear-gradient(135deg, rgba(55, 55, 65, 0.9), rgba(45, 45, 55, 0.9));
  color: #9ca3af;
}

.level-trusted {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #2563eb 100%);
  color: #fff;
}

.level-active {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #047857 100%);
  color: #fff;
}

.level-newbie {
  background: var(--bg-tertiary);
  color: var(--text-muted);
}
  color: var(--text-secondary);
}

.level-newbie {
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

/* === PROGRESS BAR === */
.progress-bar {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* === DROPDOWN MENU === */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  padding: var(--space-2);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

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

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-2) 0;
}

/* === TOOLTIP === */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 0.8rem;
  white-space: nowrap;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: var(--z-tooltip);
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-8px);
}

/* === EMPTY STATE === */
.empty-state {
  padding: var(--space-12) var(--space-6);
  text-align: center;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  color: var(--text-disabled);
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.empty-state-text {
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

/* === TABS === */
.tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-6);
}

.tab {
  padding: var(--space-3) var(--space-5);
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab:hover {
  color: var(--text-secondary);
}

.tab.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fade-in 0.3s ease;
}
