/* Asa de Cristal - Immersive Dark Fantasy Theme */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────────────────── */
:root {
  --bg-deep: #050508;
  --bg-dark: #0a0a12;
  --bg-card: rgba(12, 12, 22, 0.85);
  --purple-primary: #a855f7;
  --purple-light: #c084fc;
  --purple-dark: #7c3aed;
  --purple-glow: rgba(168, 85, 247, 0.4);
  --gold: #f6c443;
  --gold-light: #fde68a;
  --gold-dark: #d4a017;
  --gold-glow: rgba(246, 196, 67, 0.35);
  --crystal-blue: #60a5fa;
  --crystal-cyan: #22d3ee;
  --crystal-glow: rgba(96, 165, 250, 0.4);
  --green: #34d399;
  --green-glow: rgba(52, 211, 153, 0.3);
  --red: #f87171;
  --red-glow: rgba(248, 113, 113, 0.3);
  --border-subtle: rgba(168, 85, 247, 0.15);
  --border-hover: rgba(168, 85, 247, 0.4);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
}

/* ─── Reset & Base ──────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

.font-medieval {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.02em;
}

/* ─── Animated Starfield Background ─────────────────────────────────────── */
.bg-pattern {
  position: relative;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(88, 28, 135, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(30, 58, 138, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 85%, rgba(88, 28, 135, 0.08) 0%, transparent 55%),
    var(--bg-deep);
}

.bg-pattern::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 35%, rgba(168,85,247,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 10%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 55%, rgba(96,165,250,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 25%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 85% 45%, rgba(168,85,247,0.45) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 70%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 85%, rgba(96,165,250,0.35) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 50% 40%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 75%, rgba(168,85,247,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 80%, rgba(96,165,250,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 45%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 45% 65%, rgba(168,85,247,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 90%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 95% 10%, rgba(96,165,250,0.4) 0%, transparent 100%);
  animation: starsTwinkle 8s ease-in-out infinite alternate;
}

@keyframes starsTwinkle {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

.bg-pattern > * {
  position: relative;
  z-index: 1;
}

/* ─── Crystal Glow Effects ──────────────────────────────────────────────── */
.crystal-glow {
  text-shadow:
    0 0 10px rgba(168, 85, 247, 0.6),
    0 0 30px rgba(168, 85, 247, 0.3),
    0 0 60px rgba(168, 85, 247, 0.15);
}

.gold-glow {
  text-shadow:
    0 0 10px rgba(246, 196, 67, 0.6),
    0 0 30px rgba(246, 196, 67, 0.3),
    0 0 60px rgba(246, 196, 67, 0.15);
}

.blue-glow {
  text-shadow:
    0 0 10px rgba(96, 165, 250, 0.6),
    0 0 30px rgba(96, 165, 250, 0.3);
}

/* Pulsing title glow */
.glow-pulse {
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow:
      0 0 10px rgba(168, 85, 247, 0.6),
      0 0 30px rgba(168, 85, 247, 0.3),
      0 0 60px rgba(168, 85, 247, 0.15);
  }
  50% {
    text-shadow:
      0 0 20px rgba(168, 85, 247, 0.8),
      0 0 50px rgba(168, 85, 247, 0.5),
      0 0 90px rgba(168, 85, 247, 0.25),
      0 0 120px rgba(168, 85, 247, 0.1);
  }
}

/* ─── Navbar ────────────────────────────────────────────────────────────── */
.navbar {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(5, 5, 10, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-crystal-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--crystal-blue);
}

.nav-crystal-badge svg {
  width: 14px;
  height: 14px;
}

/* ─── Cards ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.08), 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Card with animated border glow */
.card-glow {
  position: relative;
  overflow: hidden;
}

.card-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 0deg, transparent 60%, var(--purple-primary) 80%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderRotate 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
}

.card-glow:hover::before {
  opacity: 1;
}

@keyframes borderRotate {
  to { transform: rotate(360deg); }
}

/* ─── Inputs ────────────────────────────────────────────────────────────── */
.input-field {
  background: rgba(10, 10, 20, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: var(--text-primary);
  transition: border-color 0.3s, box-shadow 0.3s;
  font-size: 0.95rem;
}

.input-field:focus {
  outline: none;
  border-color: var(--purple-primary);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12), 0 0 20px rgba(168, 85, 247, 0.08);
}

.input-field::placeholder {
  color: var(--text-muted);
}

.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  width: 18px;
  height: 18px;
}

.input-icon-wrapper .input-field {
  padding-left: 42px;
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.4), 0 4px 15px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  border: none;
  color: #1a1a2e;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 700;
}

.btn-gold:hover {
  box-shadow: 0 0 30px var(--gold-glow), 0 4px 15px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--purple-light);
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.btn-outline:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--purple-primary);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
}

.btn-success {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.btn-success:hover {
  box-shadow: 0 0 20px var(--green-glow);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.btn-danger:hover {
  box-shadow: 0 0 20px var(--red-glow);
  transform: translateY(-1px);
}

/* ─── Animations ────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out both;
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease-out both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ─── Hero Section ──────────────────────────────────────────────────────── */
.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.1;
  font-weight: 900;
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 30%, #7c3aed 60%, #c084fc 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── Feature Cards ─────────────────────────────────────────────────────── */
.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.feature-icon-purple {
  background: rgba(168, 85, 247, 0.12);
  color: var(--purple-light);
}

.feature-icon-blue {
  background: rgba(96, 165, 250, 0.12);
  color: var(--crystal-blue);
}

.feature-icon-gold {
  background: rgba(246, 196, 67, 0.12);
  color: var(--gold);
}

.feature-icon-green {
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
}

/* ─── Steps Section ─────────────────────────────────────────────────────── */
.step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.2rem;
  border: 2px solid var(--purple-primary);
  color: var(--purple-light);
  margin: 0 auto 14px;
  background: rgba(168, 85, 247, 0.08);
}

.step-connector {
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(50% + 30px);
  width: calc(100% - 60px);
  height: 2px;
  background: linear-gradient(90deg, var(--purple-primary), transparent);
  opacity: 0.3;
}

/* ─── Stats Section ─────────────────────────────────────────────────────── */
.stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple-light), var(--crystal-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Split Layout (Login/Register) ─────────────────────────────────────── */
.split-layout {
  display: flex;
  min-height: 100vh;
}

.split-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(88, 28, 135, 0.2) 0%, transparent 60%),
    var(--bg-deep);
  position: relative;
  overflow: hidden;
}

.split-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 70%, rgba(168,85,247,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(255,255,255,0.2) 0%, transparent 100%);
  animation: starsTwinkle 6s ease-in-out infinite alternate;
}

.split-left > * { position: relative; z-index: 1; }

.split-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: var(--bg-dark);
}

@media (max-width: 768px) {
  .split-layout {
    flex-direction: column;
  }
  .split-left {
    padding: 2rem 1.5rem;
    min-height: auto;
  }
  .split-right {
    padding: 2rem 1.5rem;
  }
}

/* ─── Dashboard ─────────────────────────────────────────────────────────── */
.crystal-display {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(96, 165, 250, 0.06);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 16px;
}

.crystal-display .crystal-icon {
  width: 40px;
  height: 40px;
  color: var(--crystal-blue);
}

.crystal-display .crystal-count {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--crystal-blue);
}

.role-card {
  background: rgba(15, 15, 28, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.3s;
}

.role-card:hover {
  border-color: var(--border-hover);
  background: rgba(20, 20, 35, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.role-class-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-guerreiro { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.25); }
.badge-mago { background: rgba(96, 165, 250, 0.15); color: #60a5fa; border: 1px solid rgba(96, 165, 250, 0.25); }
.badge-arqueiro { background: rgba(52, 211, 153, 0.15); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.25); }
.badge-sacerdote { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.25); }

/* ─── Recharge / Shop ───────────────────────────────────────────────────── */
.package-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  cursor: pointer;
}

.package-card:hover {
  border-color: var(--purple-primary);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.15), 0 0 30px rgba(168, 85, 247, 0.05);
}

.package-card.popular {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(246, 196, 67, 0.04) 0%, var(--bg-card) 40%);
}

.package-card.popular:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 40px var(--gold-glow), 0 0 30px rgba(246, 196, 67, 0.1);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #1a1a2e;
  padding: 4px 18px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.package-crystals {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--crystal-blue), var(--crystal-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 12px 0 4px;
}

.package-price {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ─── Status Badges ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-pending {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.badge-approved {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.badge-rejected {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.25);
}

/* ─── Tables ────────────────────────────────────────────────────────────── */
.table-row {
  transition: background 0.2s;
}

.table-row:hover {
  background: rgba(168, 85, 247, 0.04);
}

/* ─── Tabs ──────────────────────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: var(--text-secondary);
}

.tab-btn.active {
  color: var(--purple-light);
  border-bottom-color: var(--purple-primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

/* ─── Admin Stat Cards ──────────────────────────────────────────────────── */
.admin-stat {
  text-align: center;
  padding: 24px;
}

.admin-stat-value {
  font-size: 2rem;
  font-weight: 700;
}

.admin-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ─── Toast Notifications ───────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  padding: 14px 20px;
  border-radius: 12px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  animation: toastIn 0.4s ease-out;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.toast-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
}

.toast-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
}

.toast-info {
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #60a5fa;
}

.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.toast-body {
  flex: 1;
  line-height: 1.4;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: inherit;
  opacity: 0.5;
  cursor: pointer;
  padding: 4px;
  transition: opacity 0.2s;
}

.toast-close:hover {
  opacity: 1;
}

.toast-exit {
  animation: toastOut 0.3s ease-in forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(60px); }
}

/* ─── Modal Overlay ────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.2s ease-out;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  padding: 32px;
  width: 90%;
  max-width: 440px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(168, 85, 247, 0.1);
  animation: scaleIn 0.3s ease-out;
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--purple-light);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: all 0.2s;
}

.modal-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.modal-body {
  margin-bottom: 24px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ─── Mobile Menu ──────────────────────────────────────────────────────── */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.2s;
}

.mobile-menu-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.5);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  z-index: 50;
  background: var(--bg-dark);
  border-left: 1px solid var(--border-subtle);
  padding: 24px;
  animation: slideInRight 0.3s ease-out;
  overflow-y: auto;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-overlay.open {
  display: block;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.mobile-menu .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.mobile-menu .nav-item:hover {
  background: rgba(168, 85, 247, 0.08);
  color: var(--text-primary);
}

.mobile-menu .nav-item.active {
  background: rgba(168, 85, 247, 0.12);
  color: var(--purple-light);
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* ─── User Dropdown ────────────────────────────────────────────────────── */
.user-dropdown-wrapper {
  position: relative;
}

.user-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.15);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.user-dropdown-btn:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
}

.user-dropdown-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: white;
}

.user-dropdown-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.user-dropdown-wrapper.open .user-dropdown-chevron {
  transform: rotate(180deg);
}

.user-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.15s ease-out;
  z-index: 60;
}

.user-dropdown-wrapper.open .user-dropdown-menu {
  display: block;
}

.user-dropdown-menu a,
.user-dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.user-dropdown-menu a:hover,
.user-dropdown-menu button:hover {
  background: rgba(168, 85, 247, 0.08);
  color: var(--text-primary);
}

.user-dropdown-menu .dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
}

.user-dropdown-menu .dropdown-logout {
  color: var(--red);
}

.user-dropdown-menu .dropdown-logout:hover {
  background: rgba(248, 113, 113, 0.08);
  color: var(--red);
}

/* ─── Nav Active Indicator ─────────────────────────────────────────────── */
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.nav-active {
  color: var(--purple-light);
  background: rgba(168, 85, 247, 0.1);
}

/* ─── Character Cards (novo estilo) ────────────────────────────────────── */
.char-card {
  background: rgba(15, 15, 28, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.char-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--purple-primary));
  opacity: 0;
  transition: opacity 0.3s;
}

.char-card:hover {
  border-color: var(--border-hover);
  background: rgba(20, 20, 35, 0.7);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.char-card:hover::before {
  opacity: 1;
}

.char-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.char-class-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
}

.char-class-icon svg {
  width: 26px;
  height: 26px;
}

.char-class-icon-paladino {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.char-class-icon-elfo {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
}

.char-class-icon-assassino {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
}

.char-class-icon-fada {
  background: rgba(244, 114, 182, 0.12);
  color: #f472b6;
}

.char-class-icon-sacerdote {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}

.char-class-icon-domador {
  background: rgba(251, 146, 60, 0.12);
  color: #fb923c;
}

.char-class-icon-druida {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
}

.char-card-info {
  flex: 1;
  min-width: 0;
}

.char-card-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.char-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.char-card-level {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 10px;
  border-radius: 12px;
}

.char-card-level strong {
  color: white;
  font-weight: 700;
}

.char-card-map {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.char-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.char-card-wallet {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.char-wallet-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(10, 10, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.char-card-actions {
  display: flex;
  gap: 8px;
}

/* ─── Welcome Hero Banner ──────────────────────────────────────────────── */
.welcome-hero {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(96, 165, 250, 0.06) 50%, rgba(12, 12, 22, 0.9) 100%);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.welcome-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.welcome-hero-content {
  position: relative;
  z-index: 1;
}

.welcome-stats {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.welcome-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(10, 10, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}

.welcome-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.welcome-stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
}

.welcome-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ─── Dashboard Tabs ───────────────────────────────────────────────────── */
.dash-tabs {
  display: flex;
  gap: 4px;
  background: rgba(10, 10, 20, 0.5);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 28px;
}

.dash-tab {
  flex: 1;
  padding: 10px 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dash-tab:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.dash-tab.active {
  color: var(--purple-light);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.dash-tab-content {
  display: none;
}

.dash-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

/* ─── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 15, 25, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.25);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.45);
}

/* ─── Spinner ───────────────────────────────────────────────────────────── */
.spinner {
  border: 3px solid rgba(168, 85, 247, 0.15);
  border-top-color: var(--purple-primary);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 5, 10, 0.6);
  padding: 40px 0 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--purple-light);
}

/* ─── Divider ───────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
  margin: 40px 0;
}

/* ─── Utility ───────────────────────────────────────────────────────────── */
.text-gradient-purple {
  background: linear-gradient(135deg, var(--purple-light), var(--purple-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-blue {
  background: linear-gradient(135deg, var(--crystal-blue), var(--crystal-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 40px;
}

/* Floating crystal decoration */
.float-crystal {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ─── Event Badges ─────────────────────────────────────────────────────── */
.event-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-badge-grow {
  background: rgba(168, 85, 247, 0.15);
  color: var(--purple-light);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.event-badge-regal {
  background: rgba(246, 196, 67, 0.15);
  color: var(--gold);
  border: 1px solid rgba(246, 196, 67, 0.25);
}

.event-badge-rebate {
  background: rgba(52, 211, 153, 0.15);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

/* ─── Recharge Rows ────────────────────────────────────────────────────── */
.recharge-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recharge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(10, 10, 20, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  gap: 16px;
}

.recharge-row:hover {
  background: rgba(20, 20, 40, 0.6);
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.recharge-row-popular {
  border-color: rgba(246, 196, 67, 0.25);
  background: rgba(246, 196, 67, 0.03);
}

.recharge-row-popular:hover {
  border-color: rgba(246, 196, 67, 0.4);
  background: rgba(246, 196, 67, 0.06);
}

.recharge-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.recharge-row-crystals {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recharge-row-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--crystal-blue);
}

.recharge-row-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.recharge-row-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .recharge-row { padding: 12px 14px; }
  .recharge-row-amount { font-size: 1.1rem; }
  .recharge-row-price { font-size: 0.85rem; }
}

/* ─── Fund Event Cards ─────────────────────────────────────────────────── */
.fund-event-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 28px;
  transition: all 0.3s;
}

.fund-event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Multiplier badge (e.g., "2x", "3x", "+110%") */
.fund-multiplier {
  font-size: 1.1rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 12px;
  letter-spacing: -0.02em;
}

.fund-multiplier-grow {
  background: rgba(168, 85, 247, 0.15);
  color: var(--purple-light);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.fund-multiplier-regal {
  background: rgba(246, 196, 67, 0.15);
  color: var(--gold);
  border: 1px solid rgba(246, 196, 67, 0.3);
}

.fund-multiplier-rebate {
  background: rgba(52, 211, 153, 0.15);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* Fund summary row (invest → return = profit) */
.fund-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(10, 10, 20, 0.5);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.fund-summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.fund-summary-divider {
  color: var(--text-muted);
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

/* Fund reward tiers list */
.fund-tiers {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fund-tier {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(10, 10, 20, 0.4);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.2s;
}

.fund-tier:hover {
  background: rgba(15, 15, 30, 0.6);
  border-color: rgba(255, 255, 255, 0.06);
}

.fund-tier-level {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 55px;
}

.fund-tier-arrow {
  display: flex;
  align-items: center;
}

.fund-tier-reward {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ─── Rebate Card Details ──────────────────────────────────────────────── */
.rebate-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: rgba(10, 10, 20, 0.4);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.rebate-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ─── Welfare Section ──────────────────────────────────────────────────── */
.welfare-progress {
  height: 6px;
  background: rgba(10, 10, 20, 0.6);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.welfare-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: 3px;
  transition: width 1s ease-out;
}

.welfare-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.welfare-tier {
  padding: 12px 14px;
  background: rgba(10, 10, 20, 0.4);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s;
}

.welfare-tier-unlocked {
  border-color: rgba(52, 211, 153, 0.2);
  background: rgba(52, 211, 153, 0.04);
}

/* ─── Page Sections & Layout ───────────────────────────────────────────── */
.page-section {
  padding: 3rem 0;
}

.page-section + .page-section {
  border-top: 1px solid rgba(168, 85, 247, 0.08);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 2rem;
}

.section-header-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.section-header-title {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
}

.section-header-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.section-header-icon-purple {
  background: rgba(168, 85, 247, 0.1);
  color: var(--purple-light);
}

.section-header-icon-blue {
  background: rgba(96, 165, 250, 0.1);
  color: var(--crystal-blue);
}

.section-header-icon-gold {
  background: rgba(246, 196, 67, 0.1);
  color: var(--gold);
}

.section-header-icon-green {
  background: rgba(52, 211, 153, 0.1);
  color: var(--green);
}

/* ─── Page Footer (shared) ─────────────────────────────────────────────── */
.page-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 5, 10, 0.6);
  padding: 32px 0 20px;
  margin-top: auto;
}

.page-footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-footer-brand {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--purple-light);
  opacity: 0.7;
}

.page-footer-links {
  display: flex;
  gap: 1.5rem;
}

.page-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.page-footer-links a:hover {
  color: var(--purple-light);
}

/* ─── Page Main Content ────────────────────────────────────────────────── */
.page-main {
  flex: 1;
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
  padding: 2rem 1.5rem 4rem;
}

/* ─── Info Cards Grid ──────────────────────────────────────────────────── */
.info-grid {
  display: grid;
  gap: 1.25rem;
}

.info-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.info-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.info-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.info-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.06);
}

.info-card-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.info-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-card-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
}

.info-card-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ─── Package Groups ──────────────────────────────────────────────────── */
.package-group {
  margin-bottom: 2.5rem;
}

.package-group-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  padding-left: 4px;
}

.package-group-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.package-group-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Empty State ──────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  opacity: 0.4;
}

/* ─── Admin Sidebar Layout ─────────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 65px);
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
}

.admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  padding: 1.5rem 0.75rem;
  position: sticky;
  top: 65px;
  height: calc(100vh - 65px);
  overflow-y: auto;
  border-right: 1px solid var(--border-subtle);
  background: rgba(8, 8, 16, 0.6);
}

.admin-sidebar-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold);
  padding: 0 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.admin-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
  margin-bottom: 2px;
  border-left: 3px solid transparent;
}

.admin-sidebar-item:hover {
  background: rgba(168, 85, 247, 0.08);
  color: var(--text-primary);
}

.admin-sidebar-item.active {
  background: rgba(168, 85, 247, 0.12);
  color: var(--purple-light);
  border-left-color: var(--purple-primary);
  font-weight: 600;
}

.admin-sidebar-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.admin-content {
  flex: 1;
  min-width: 0;
  padding: 2rem 2rem 4rem;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    height: auto;
    position: static;
    display: flex;
    gap: 4px;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .admin-sidebar-title {
    display: none;
  }

  .admin-sidebar-item {
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 0.82rem;
    border-left: none;
    border-bottom: 2px solid transparent;
    border-radius: 8px;
    margin-bottom: 0;
  }

  .admin-sidebar-item.active {
    border-left-color: transparent;
    border-bottom-color: var(--purple-primary);
  }

  .admin-content {
    padding: 1.5rem 1rem 3rem;
  }
}

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .info-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .info-grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .info-grid-3 { grid-template-columns: 1fr; }
  .info-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .page-footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .page-main { padding: 1.5rem 1rem 3rem; }
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
  .nav-links { display: none; }
  .user-dropdown-wrapper { display: none; }
  .char-card-body { flex-direction: column; align-items: flex-start; }
  .char-card-actions { width: 100%; }
  .char-card-actions button { flex: 1; justify-content: center; }
  .welcome-stats { flex-direction: column; }
  .welcome-stat { flex: 1; }
  .dash-tabs { overflow-x: auto; }
  .dash-tab { white-space: nowrap; font-size: 0.8rem; padding: 8px 14px; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 2.5rem; }
  .package-card { padding: 24px 16px; }
  .package-crystals { font-size: 2rem; }
  .tab-bar { gap: 0; overflow-x: auto; }
  .tab-btn { white-space: nowrap; padding: 10px 16px; font-size: 0.8rem; }

  .fund-event-card { padding: 20px 16px; }
  .fund-summary { flex-wrap: wrap; gap: 8px; padding: 12px; }
  .fund-summary-item { min-width: 70px; }
  .fund-multiplier { font-size: 0.95rem; padding: 4px 10px; }
  .welfare-tiers { grid-template-columns: 1fr; }

  .section-header-title { font-size: 1.25rem; }
  .info-grid-4 { grid-template-columns: 1fr; }
  .info-grid-5 { grid-template-columns: 1fr; }

  .toast { min-width: auto; max-width: calc(100vw - 40px); }
  .toast-container { left: 20px; }
  .modal { padding: 24px; margin: 16px; width: calc(100% - 32px); }
  .char-card-header { gap: 12px; }
  .char-class-icon { width: 44px; height: 44px; }
  .char-class-icon svg { width: 22px; height: 22px; }
}

/* ─── Forum ────────────────────────────────────────────────────────────── */

/* Hero banner do fórum */
.forum-hero {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.06) 0%, rgba(96, 165, 250, 0.04) 50%, rgba(12, 12, 22, 0.9) 100%);
  border: 1px solid rgba(168, 85, 247, 0.12);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.forum-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.forum-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.forum-hero h1 {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.forum-hero p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

.forum-hero-stats {
  display: flex;
  gap: 20px;
}

.forum-hero-stat {
  text-align: center;
  padding: 8px 18px;
  background: rgba(10, 10, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}

.forum-hero-stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--purple-light);
}

.forum-hero-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Categorias */
.forum-categories {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.forum-cat-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: rgba(12, 12, 22, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.forum-cat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--cat-accent, var(--purple-primary));
  opacity: 0;
  transition: opacity 0.3s;
}

.forum-cat-card:hover {
  border-color: var(--border-hover);
  background: rgba(18, 18, 34, 0.8);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.forum-cat-card:hover::before {
  opacity: 1;
}

.forum-cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  background: var(--cat-icon-bg, rgba(168, 85, 247, 0.1));
  transition: transform 0.3s;
}

.forum-cat-card:hover .forum-cat-icon {
  transform: scale(1.08);
}

.forum-cat-info {
  flex: 1;
  min-width: 0;
}

.forum-cat-name {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.forum-cat-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.forum-cat-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.forum-cat-count {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.forum-cat-count-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.forum-cat-last {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Barra de cabeçalho de tópicos */
.forum-topics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.08);
  gap: 12px;
  flex-wrap: wrap;
}

.forum-topics-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.forum-topics-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: rgba(168, 85, 247, 0.1);
}

/* Lista de tópicos */
.forum-topic-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.forum-topic-list-header {
  display: flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}

.forum-topic-list-header span:first-child { flex: 1; }

.forum-topic-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(10, 10, 20, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.025);
  border-radius: 12px;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.forum-topic-row:hover {
  background: rgba(20, 20, 40, 0.55);
  border-color: rgba(168, 85, 247, 0.2);
  transform: translateX(3px);
}

.forum-topic-row-pinned {
  background: rgba(246, 196, 67, 0.03);
  border-color: rgba(246, 196, 67, 0.1);
}

.forum-topic-row-pinned:hover {
  background: rgba(246, 196, 67, 0.06);
  border-color: rgba(246, 196, 67, 0.2);
}

.forum-topic-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(168, 85, 247, 0.08);
  color: var(--purple-light);
}

.forum-topic-icon svg {
  width: 16px;
  height: 16px;
}

.forum-topic-icon-active {
  background: rgba(52, 211, 153, 0.1);
  color: var(--green);
}

.forum-topic-icon-locked {
  background: rgba(248, 113, 113, 0.08);
  color: var(--red);
}

.forum-topic-icon-pinned {
  background: rgba(246, 196, 67, 0.1);
  color: var(--gold);
}

.forum-topic-body {
  flex: 1;
  min-width: 0;
}

.forum-topic-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.forum-topic-badges {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.forum-badge-pin {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(246, 196, 67, 0.12);
  color: var(--gold);
  border: 1px solid rgba(246, 196, 67, 0.2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.forum-badge-lock {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(248, 113, 113, 0.08);
  color: var(--red);
  border: 1px solid rgba(248, 113, 113, 0.15);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.forum-topic-title {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.forum-topic-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.forum-topic-subtitle-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
  flex-shrink: 0;
}

.forum-topic-author {
  color: var(--purple-light);
  font-weight: 500;
}

.forum-topic-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
  min-width: 90px;
}

.forum-topic-stats {
  display: flex;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.forum-topic-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.forum-topic-stat svg {
  opacity: 0.6;
}

.forum-topic-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Paginação do fórum */
.forum-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(168, 85, 247, 0.08);
}

.forum-pager-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  min-width: 120px;
  text-align: center;
}

/* Página de tópico — post principal */
.forum-post {
  background: rgba(12, 12, 22, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 10px;
  position: relative;
}

.forum-post-main {
  border-color: rgba(168, 85, 247, 0.18);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.03) 0%, rgba(12, 12, 22, 0.7) 40%);
}

.forum-post-main::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(180deg, var(--purple-primary), var(--purple-dark));
}

.forum-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.forum-post-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.forum-post-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.2);
}

.forum-post-avatar-reply {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.15);
  font-size: 0.8rem;
  box-shadow: none;
}

.forum-post-author-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.forum-post-author-name {
  font-weight: 600;
  color: var(--purple-light);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.forum-post-op-badge {
  font-size: 0.6rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.15);
  color: var(--purple-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.forum-post-date {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.forum-post-number {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.5;
  font-weight: 600;
}

.forum-post-content {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
  white-space: pre-line;
  word-break: break-word;
}

.forum-post-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Barra de admin do tópico */
.forum-admin-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: rgba(246, 196, 67, 0.03);
  border: 1px solid rgba(246, 196, 67, 0.1);
  border-radius: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.forum-admin-bar-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Separador de respostas */
.forum-replies-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
}

.forum-replies-header-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-subtle), transparent);
}

.forum-replies-header-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.forum-replies-count {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.1);
  color: var(--purple-light);
  font-weight: 700;
}

/* Formulário de novo tópico / resposta */
.forum-form {
  background: rgba(12, 12, 22, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
}

.forum-form-title {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--purple-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.forum-textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  background: rgba(8, 8, 16, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.forum-textarea:focus {
  outline: none;
  border-color: var(--purple-primary);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.forum-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

/* Breadcrumb do fórum */
.forum-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: rgba(10, 10, 20, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.025);
}

.forum-breadcrumb a {
  color: var(--purple-light);
  text-decoration: none;
  transition: color 0.2s;
}

.forum-breadcrumb a:hover {
  color: white;
}

.forum-breadcrumb-sep {
  color: var(--text-muted);
  opacity: 0.3;
  font-size: 0.7rem;
}

.forum-breadcrumb-current {
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* Tópico trancado / Login notice */
.forum-notice {
  padding: 20px;
  border-radius: 14px;
  text-align: center;
  margin-top: 24px;
}

.forum-notice-locked {
  background: rgba(248, 113, 113, 0.04);
  border: 1px solid rgba(248, 113, 113, 0.12);
}

.forum-notice-login {
  background: rgba(168, 85, 247, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.1);
}

.forum-notice-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .forum-categories { gap: 6px; }
  .forum-cat-card { padding: 16px; gap: 12px; }
  .forum-cat-icon { width: 42px; height: 42px; font-size: 1.2rem; }
  .forum-cat-right { display: none; }
  .forum-topic-meta { display: none; }
  .forum-topic-row { padding: 12px 14px; gap: 10px; }
  .forum-topic-icon { width: 30px; height: 30px; }
  .forum-post { padding: 18px 14px; }
  .forum-post-avatar { width: 34px; height: 34px; font-size: 0.75rem; }
  .forum-hero { padding: 24px; }
  .forum-hero h1 { font-size: 1.4rem; }
  .forum-hero-stats { gap: 10px; }
  .forum-hero-stat { padding: 6px 12px; }
  .forum-admin-bar { padding: 10px 14px; }
  .forum-breadcrumb { padding: 8px 12px; }
}

@media (max-width: 480px) {
  .forum-hero-stats { display: none; }
  .forum-topics-header { flex-direction: column; align-items: flex-start; }
}

/* ─── Emoji Picker ─────────────────────────────────────────────────────── */
.emoji-picker-btn {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1.1rem;
  line-height: 1;
  transition: all 0.2s;
  flex-shrink: 0;
}

.emoji-picker-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--purple-primary);
}

.emoji-picker-popup {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  z-index: 100;
  background: var(--bg-dark);
  border: 1px solid var(--border-hover);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.1);
  width: 320px;
  max-height: 340px;
  overflow: hidden;
  animation: scaleIn 0.15s ease-out;
}

.emoji-picker-tabs {
  display: flex;
  gap: 2px;
  padding: 6px 6px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.emoji-picker-tab {
  flex: 1;
  padding: 6px 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  text-align: center;
}

.emoji-picker-tab:hover {
  color: var(--text-secondary);
}

.emoji-picker-tab.active {
  color: var(--purple-light);
  border-bottom-color: var(--purple-primary);
}

.emoji-picker-body {
  padding: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.emoji-picker-grid {
  display: none;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
}

.emoji-picker-grid.active {
  display: grid;
}

.emoji-picker-item {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.15s;
  line-height: 1;
  text-align: center;
}

.emoji-picker-item:hover {
  background: rgba(168, 85, 247, 0.15);
  transform: scale(1.2);
}

/* ─── Perfil no Dashboard ──────────────────────────────────────────────── */
.profile-section {
  margin-bottom: 32px;
}

.profile-section-title {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--purple-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-avatar-picker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.profile-avatar-display {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.25);
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid rgba(168, 85, 247, 0.3);
  position: relative;
}

.profile-avatar-display:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
  border-color: var(--purple-primary);
}

.profile-avatar-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.profile-form-group {
  margin-bottom: 16px;
}

.profile-form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.profile-form-group .input-with-emoji {
  display: flex;
  gap: 8px;
  position: relative;
}

.profile-form-group textarea.input-field {
  resize: vertical;
  min-height: 60px;
  max-height: 120px;
  font-family: 'Inter', sans-serif;
}

.char-counter {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

.char-counter.warn {
  color: var(--gold);
}

.char-counter.limit {
  color: var(--red);
}

/* ─── Assinatura nos posts do forum ────────────────────────────────────── */
.forum-post-signature {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(168, 85, 247, 0.08);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  white-space: pre-line;
}

/* Avatar emoji nos posts */
.forum-post-avatar-emoji {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  font-size: 1.3rem;
  box-shadow: none;
}

.forum-post-avatar-emoji.forum-post-avatar-reply {
  font-size: 1.1rem;
}

/* Avatar emoji na lista de topicos */
.forum-topic-author-emoji {
  font-size: 0.9rem;
  margin-right: 2px;
}
