/* ============================================
   QG da Liga - Premium Dark Theme
   ============================================ */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a26;
  --border-color: #1e1e2e;
  --accent-primary: #6c5ce7;
  --accent-secondary: #00d2d3;
  --success: #00b894;
  --warning: #fdcb6e;
  --danger: #e17055;
  --text-primary: #e8e8ed;
  --text-secondary: #8b8b9e;
  --text-muted: #5a5a6f;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

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

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 1.75rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.05rem; margin-bottom: 0.5rem; }
h5 { font-size: 0.95rem; margin-bottom: 0.5rem; }
h6 { font-size: 0.9rem; margin-bottom: 0.5rem; }

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

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

a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="phone"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  transition: all 0.3s ease;
  font-size: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="phone"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background-color: rgba(108, 92, 231, 0.05);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

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

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-row.full {
  grid-template-columns: 1fr;
}

/* ============================================
   BUTTONS
   ============================================ */

button, .btn {
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #6c5ce7 0%, #5845c1 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7c6cf7 0%, #6855d1 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

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

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

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

.btn-danger {
  background-color: var(--danger);
  color: white;
  box-shadow: 0 4px 15px rgba(225, 112, 85, 0.3);
}

.btn-danger:hover {
  background-color: #d63031;
  box-shadow: 0 6px 20px rgba(225, 112, 85, 0.4);
}

.btn-success {
  background-color: var(--success);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.btn-success:hover {
  background-color: #00a382;
  box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}

.btn-block {
  display: block;
  width: 100%;
}

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

/* ============================================
   CARDS & CONTAINERS
   ============================================ */

.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 8px 32px rgba(108, 92, 231, 0.15);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.card-content {
  margin-bottom: 1rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  margin-top: 1rem;
}

.stat-card {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, rgba(0, 210, 211, 0.05) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
}

.stat-card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #6c5ce7 0%, #00d2d3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.stat-card-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   BADGES & LABELS
   ============================================ */

.badge {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-recruta {
  background-color: rgba(139, 139, 158, 0.2);
  color: #8b8b9e;
}

.badge-heroi {
  background-color: rgba(108, 92, 231, 0.2);
  color: #6c5ce7;
}

.badge-cadete {
  background-color: rgba(9, 132, 227, 0.2);
  color: #0984e3;
}

.badge-soldado {
  background-color: rgba(0, 184, 148, 0.2);
  color: #00b894;
}

.badge-sargento {
  background-color: rgba(253, 203, 110, 0.2);
  color: #fdcb6e;
}

.badge-general {
  background-color: rgba(225, 112, 85, 0.2);
  color: #e17055;
}

.badge-status-pending {
  background-color: rgba(253, 203, 110, 0.2);
  color: #fdcb6e;
}

.badge-status-enviada {
  background-color: rgba(0, 210, 211, 0.2);
  color: #00d2d3;
}

.badge-status-aprovada {
  background-color: rgba(0, 184, 148, 0.2);
  color: #00b894;
}

.patent-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ============================================
   FLASH MESSAGES
   ============================================ */

.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  border-left: 4px solid transparent;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideIn 0.3s ease;
}

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

.alert-success {
  background-color: rgba(0, 184, 148, 0.1);
  color: #00b894;
  border-left-color: #00b894;
}

.alert-error {
  background-color: rgba(225, 112, 85, 0.1);
  color: #e17055;
  border-left-color: #e17055;
}

.alert-warning {
  background-color: rgba(253, 203, 110, 0.1);
  color: #fdcb6e;
  border-left-color: #fdcb6e;
}

.alert-info {
  background-color: rgba(0, 210, 211, 0.1);
  color: #00d2d3;
  border-left-color: #00d2d3;
}

/* ============================================
   PROGRESS BARS
   ============================================ */

.progress {
  width: 100%;
  height: 8px;
  background-color: var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6c5ce7 0%, #00d2d3 100%);
  border-radius: var(--radius-sm);
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============================================
   LAYOUT - AUTH PAGES
   ============================================ */

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a0a2e 100%);
  position: relative;
  overflow: hidden;
}

.auth-container::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.auth-container::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 210, 211, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -50px;
  left: -50px;
  pointer-events: none;
}

.auth-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
}

.auth-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-logo-text {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6c5ce7 0%, #00d2d3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
}

.auth-form .form-group {
  margin-bottom: 1.25rem;
}

.auth-form .btn {
  margin-top: 0.5rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.auth-footer a {
  color: var(--accent-primary);
  font-weight: 500;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--border-color);
}

.auth-divider span {
  padding: 0 1rem;
}

/* ============================================
   LAYOUT - DASHBOARD (ADMIN, CS, MENTORADO)
   ============================================ */

.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem 1.25rem;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sidebar-logo-text {
  background: linear-gradient(135deg, #6c5ce7 0%, #00d2d3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.nav-item:hover {
  background-color: rgba(108, 92, 231, 0.1);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.15) 0%, rgba(0, 210, 211, 0.05) 100%);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  font-weight: 600;
}

.nav-icon {
  font-size: 1.25rem;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.sidebar-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c5ce7 0%, #00d2d3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-content {
  margin-left: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.content {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

/* ============================================
   DASHBOARD - SPECIFIC STYLES
   ============================================ */

.welcome-banner {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.15) 0%, rgba(0, 210, 211, 0.1) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.welcome-content h1 {
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #6c5ce7 0%, #00d2d3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-subtitle {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.welcome-patent {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  transition: all 0.3s ease;
}

.stat-item:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(108, 92, 231, 0.15);
}

.stat-item-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.stat-item-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.stat-item-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.phase-progress {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.phase-progress-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.phase-indicators {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.phase-indicator {
  flex: 1;
  height: 4px;
  background-color: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.phase-indicator.current {
  background: linear-gradient(90deg, #6c5ce7 0%, #00d2d3 100%);
  box-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
}

.phase-indicator.completed {
  background: linear-gradient(90deg, #00b894 0%, #00a382 100%);
}

.phase-indicator:hover {
  height: 6px;
}

/* ============================================
   JOURNEY (JORNADA) PAGE
   ============================================ */

.journey-timeline {
  position: relative;
  padding: 2rem 0;
}

.journey-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #6c5ce7 0%, #00d2d3 100%);
  transform: translateX(-1px);
}

.phase-item {
  margin-bottom: 2rem;
  position: relative;
}

.phase-item:nth-child(odd) .phase-card {
  margin-left: 0;
  margin-right: auto;
  width: calc(50% - 1rem);
}

.phase-item:nth-child(even) .phase-card {
  margin-left: auto;
  margin-right: 0;
  width: calc(50% - 1rem);
}

.phase-point {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--bg-secondary);
  border: 3px solid var(--border-color);
  border-radius: 50%;
  left: 50%;
  top: 2rem;
  transform: translateX(-50%);
  z-index: 2;
  transition: all 0.3s ease;
}

.phase-item.current .phase-point {
  border-color: var(--accent-primary);
  background: linear-gradient(135deg, #6c5ce7 0%, #00d2d3 100%);
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.5);
  width: 30px;
  height: 30px;
  top: calc(2rem - 5px);
}

.phase-item.completed .phase-point {
  border-color: var(--success);
  background-color: var(--success);
}

.phase-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.phase-item.current .phase-card {
  border-color: var(--accent-primary);
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, rgba(0, 210, 211, 0.05) 100%);
  box-shadow: 0 8px 32px rgba(108, 92, 231, 0.2);
  transform: scale(1.02);
}

.phase-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 8px 32px rgba(108, 92, 231, 0.15);
}

.phase-number {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c5ce7 0%, #00d2d3 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.phase-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.phase-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.phase-progress-bar {
  width: 100%;
  height: 6px;
  background-color: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 1rem;
}

.phase-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6c5ce7 0%, #00d2d3 100%);
  transition: width 0.5s ease;
}

/* ============================================
   TABLES
   ============================================ */

.table-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background-color: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}

th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

tbody tr {
  transition: all 0.3s ease;
}

tbody tr:hover {
  background-color: rgba(108, 92, 231, 0.05);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================
   MODALS & OVERLAYS
   ============================================ */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

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

.modal-body {
  margin-bottom: 1.5rem;
}

.modal-footer {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* ============================================
   MISSION CARDS
   ============================================ */

.mission-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mission-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 8px 32px rgba(108, 92, 231, 0.15);
  transform: translateY(-4px);
}

.mission-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

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

.mission-status {
  flex-shrink: 0;
}

.mission-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  flex: 1;
}

.mission-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.mission-deadline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.mission-reward {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--warning);
  font-weight: 600;
}

/* ============================================
   MOBILE HAMBURGER MENU
   ============================================ */

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1100;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    position: fixed;
    width: 260px;
    height: 100vh;
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.open {
    display: block;
  }

  .sidebar-toggle {
    display: flex;
  }

  .main-content {
    margin-left: 0;
  }

  .header {
    padding: 0.75rem 1rem;
    padding-left: 3.25rem;
  }

  .dashboard-layout {
    flex-direction: column;
  }

  .content {
    padding: 1rem;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .welcome-banner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 1.25rem;
  }

  .journey-timeline::before {
    left: 16px;
  }

  .phase-item:nth-child(odd) .phase-card,
  .phase-item:nth-child(even) .phase-card {
    margin-left: 50px;
    width: auto;
  }

  .phase-point {
    left: 16px;
  }

  .phase-item.current .phase-point {
    width: 24px;
    height: 24px;
  }

  [class*="grid-template-columns: repeat(2,"],
  [class*="grid-template-columns: repeat(3,"],
  [class*="grid-template-columns: repeat(4,"],
  [class*="grid-template-columns: repeat(auto-fit, minmax(2"],
  [class*="grid-template-columns: repeat(auto-fit, minmax(3"],
  [class*="grid-template-columns: repeat(auto-fit, minmax(4"] {
    grid-template-columns: 1fr !important;
  }

  .table-container {
    overflow-x: auto;
  }

  .auth-card {
    padding: 1.75rem 1.25rem;
  }

  table {
    font-size: 0.9rem;
  }

  th, td {
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 1.75rem 1.25rem;
  }

  .btn {
    font-size: 0.9rem;
  }

  .content {
    padding: 1rem;
  }
}

/* ============================================
   COMING SOON BADGE & FEATURE DISABLED
   ============================================ */

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: rgba(108, 92, 231, 0.15);
  color: var(--accent-primary);
  border: 1px solid rgba(108, 92, 231, 0.3);
}

.feature-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.badge-status-pendente {
  background-color: rgba(253, 203, 110, 0.2);
  color: #fdcb6e;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.text-sm { font-size: 0.85rem; }
.text-lg { font-size: 1.1rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.hidden { display: none !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }

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

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scrollable {
  overflow-y: auto;
  max-height: 400px;
}

/* ============================================
   FORM SPECIFIC
   ============================================ */

.form-section {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.form-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-item,
.radio-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent-primary);
}

/* ============================================
   LOADING & ANIMATIONS
   ============================================ */

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.fade-in {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-up {
  animation: slideUp 0.3s ease;
}

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

/* ============================================
   PREMIUM EFFECTS
   ============================================ */

.glass-effect {
  background: rgba(18, 18, 26, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(30, 30, 46, 0.5);
}

.glow-effect {
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
}

.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.gradient-text {
  background: linear-gradient(135deg, #6c5ce7 0%, #00d2d3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-border {
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.2);
}
