/* Estilos Backoffice Premium de Gametown (Modo Claro Gaming) */
:root {
  --bg-dark: #f3f2f8;
  --bg-sidebar: #ffffff;
  --card-bg: #ffffff;
  --border-color: rgba(0, 0, 0, 0.08);
  --primary-cyan: #0284c7;
  --primary-pink: #5c3eb8;
  --accent-green: #0284c7;
  --accent-yellow: #d97706;

  --text-white: #110e2f; /* Usado como color de texto principal */
  --text-gray: #475569; /* Gris secundario */
  --text-muted: #64748b;

  --shadow-neon: 0 4px 12px rgba(92, 62, 184, 0.06);
  --shadow-pink: 0 4px 12px rgba(92, 62, 184, 0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
}

body.admin-body {
  background-color: var(--bg-dark);
  background-image: radial-gradient(circle at 50% 0%, #e2e1f9 0%, var(--bg-dark) 80%);
  color: var(--text-white);
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Background elements */
.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.03) 2px, transparent 40px);
  background-size: 550px 550px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.glow-sphere.cyan {
  width: 500px;
  height: 500px;
  background-color: var(--primary-cyan);
  top: -100px;
  right: -100px;
}

.glow-sphere.pink {
  width: 500px;
  height: 500px;
  background-color: var(--primary-pink);
  bottom: -100px;
  left: -100px;
}

/* Logo Texts */
.logo-text {
  font-family: 'Slizo', 'Orbitron', sans-serif;
  letter-spacing: 2px;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(77, 54, 140, 0.3);
}

.neon-pink {
  color: var(--accent-yellow);
  text-shadow: 0 0 12px rgba(252, 226, 70, 0.3);
}

.subtitle {
  font-family: 'Slizo', 'Orbitron', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--text-gray);
  margin-top: 2px;
}

/* ------------------- LOGIN VIEW ------------------- */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  z-index: 10;
  position: relative;
  padding: 1.5rem;
}

.login-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  padding: 2.5rem 2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 240, 255, 0.05);
}

.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-header h1 {
  font-size: 2.4rem;
}

/* Form controls */
.input-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.input-group label i {
  color: var(--primary-cyan);
}

.input-group input,
.input-group select {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.85rem;
  color: #0f172a;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--primary-pink);
  box-shadow: 0 0 10px rgba(92, 62, 184, 0.12);
}

.login-alert {
  padding: 0.75rem;
  background: rgba(255, 56, 56, 0.15);
  border: 1px solid rgba(255, 56, 56, 0.3);
  color: #ff5252;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  text-align: center;
  display: none;
}

.btn-primary {
  width: 100%;
  background: var(--primary-pink);
  border: none;
  color: #ffffff;
  padding: 1rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  letter-spacing: 1.5px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(92, 62, 184, 0.2);
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: #4a2f99;
  box-shadow: 0 6px 20px rgba(92, 62, 184, 0.35);
}

/* ------------------- MAIN LAYOUT ------------------- */
.main-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  position: relative;
}

.hidden {
  display: none !important;
}

/* Sidebar */
.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 10;
}

.sidebar-brand {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-brand h2 {
  font-size: 1.8rem;
}

.brand-full {
  font-family: 'Slizo', 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
}

/* User Profile */
.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(92, 62, 184, 0.03);
  border: 1px solid rgba(92, 62, 184, 0.06);
  padding: 0.75rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(92, 62, 184, 0.08);
  border: 1px solid var(--primary-pink);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-pink);
}

.user-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.role-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(92, 62, 184, 0.08);
  color: var(--primary-pink);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(92, 62, 184, 0.15);
  margin-top: 2px;
  display: inline-block;
}

.role-badge.admin {
  background: rgba(2, 132, 199, 0.08);
  color: var(--primary-cyan);
  border: 1px solid rgba(2, 132, 199, 0.15);
}

/* Navigation */
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.nav-item {
  background: transparent;
  border: none;
  color: var(--text-gray);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  width: 100%;
}

.nav-item i {
  width: 16px;
  text-align: center;
  font-size: 1rem;
}

.nav-item:hover {
  background: rgba(92, 62, 184, 0.04);
  color: var(--text-white);
}

.nav-item.active {
  background: rgba(92, 62, 184, 0.08);
  color: var(--primary-pink);
  font-weight: 600;
  border-left: 3px solid var(--primary-pink);
  border-radius: 0 8px 8px 0;
  padding-left: calc(1rem - 3px);
}

.logout-btn {
  background: rgba(255, 56, 56, 0.08);
  border: 1px solid rgba(255, 56, 56, 0.2);
  color: #ff5252;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
}

.logout-btn:hover {
  background: #ff5252;
  color: white;
}

/* Main Content Area */
.main-content {
  padding: 2rem;
  overflow-y: auto;
  height: 100vh;
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.top-header h2 {
  font-family: 'Slizo', 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.live-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-gray);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-indicator.online {
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

/* ------------------- SECTIONS ------------------- */
.content-section {
  animation: fadeIn 0.4s ease-out;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Cards */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-header h3 {
  font-family: 'Slizo', 'Orbitron', sans-serif;
  font-size: 1.1rem;
  color: var(--primary-cyan);
  margin-bottom: 0.35rem;
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.card-header-flex h3 {
  font-family: 'Slizo', 'Orbitron', sans-serif;
  font-size: 1.1rem;
  color: var(--primary-cyan);
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.kpi-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.kpi-card:hover {
  transform: translateY(-3px);
}

.kpi-card.cyan-border {
  border-left: 4px solid var(--primary-cyan);
}

.kpi-card.pink-border {
  border-left: 4px solid var(--primary-pink);
}

.kpi-card.green-border {
  border-left: 4px solid var(--accent-yellow);
}

.kpi-info {
  display: flex;
  flex-direction: column;
}

.kpi-title {
  font-size: 0.85rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-value {
  font-family: 'Slizo', 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-top: 0.25rem;
}

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
}

.cyan-text {
  color: var(--primary-cyan);
  text-shadow: 0 0 8px rgba(32, 184, 236, 0.2);
}

.pink-text {
  color: var(--primary-pink);
  text-shadow: 0 0 8px rgba(77, 54, 140, 0.2);
}

.green-text {
  color: var(--accent-yellow);
  text-shadow: 0 0 8px rgba(252, 226, 70, 0.2);
}

/* Dashboard Grids */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.dashboard-grid.grid-2 {
  grid-template-columns: 1fr 1fr;
}

/* Charts Wrapper */
.chart-wrapper {
  position: relative;
  height: 300px;
  width: 100%;
}

.chart-wrapper-circle {
  position: relative;
  height: 220px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chart-wrapper-bar {
  position: relative;
  height: 220px;
  width: 100%;
}

.chart-tag {
  background: rgba(0, 240, 255, 0.1);
  color: var(--primary-cyan);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Live Feed */
.live-feed-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 380px;
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 0.25rem;
}

.feed-list::-webkit-scrollbar {
  width: 4px;
}

.feed-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
}

.feed-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.feed-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 0.75rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  border-left: 3px solid var(--primary-pink);
  animation: slideIn 0.3s ease-out;
}

.feed-item.feed-canjeado {
  border-left-color: var(--accent-green);
}

.feed-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feed-user {
  font-weight: 600;
  color: var(--text-white);
}

.feed-email {
  color: var(--text-gray);
  font-size: 0.75rem;
}

.feed-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.feed-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0;
  font-size: 0.85rem;
}

/* ------------------- CANJES SECTION ------------------- */
.search-box-container {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.search-form {
  display: flex;
  gap: 1rem;
}

.search-input-wrapper {
  position: relative;
  flex-grow: 1;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray);
}

.search-input-wrapper input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 1rem 1rem 1rem 2.8rem;
  color: #0f172a;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--primary-pink);
  box-shadow: 0 0 12px rgba(92, 62, 184, 0.12);
}

.btn-search {
  background: var(--primary-pink);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0 2rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(92, 62, 184, 0.2);
}

.btn-search:hover {
  transform: translateY(-2px);
  background: #4a2f99;
  box-shadow: 0 6px 20px rgba(92, 62, 184, 0.35);
}

/* Search results rendering */
.search-result-area {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  margin-top: 1.5rem;
  animation: fadeIn 0.3s ease;
}

.result-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.result-card-header h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

.status-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid;
}

.status-tag.pendiente {
  background: rgba(252, 226, 70, 0.1);
  color: var(--accent-yellow);
  border-color: rgba(252, 226, 70, 0.25);
}

.status-tag.canjeado {
  background: rgba(32, 184, 236, 0.1);
  color: var(--primary-cyan);
  border-color: rgba(32, 184, 236, 0.25);
}

.btn-table-action {
  background: var(--accent-yellow);
  color: #070512;
  border: none;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-table-action:hover {
  background: white;
  transform: translateY(-1px);
}

.redeemed-info {
  font-size: 0.8rem;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 4px;
}

.redeemed-info i {
  color: var(--primary-cyan);
}

.result-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 0.75rem;
  color: var(--text-gray);
  text-transform: uppercase;
}

.detail-value {
  font-size: 1rem;
  font-weight: 500;
}

/* Redeemed Warning Box */
.warning-box {
  background: rgba(255, 56, 56, 0.1);
  border: 1px solid rgba(255, 56, 56, 0.3);
  color: #ff5252;
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.warning-box i {
  font-size: 1.2rem;
}

.btn-redeem {
  background: var(--accent-green);
  color: var(--bg-dark);
  border: none;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 1rem 2rem;
  font-size: 0.95rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(32, 184, 236, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
}

.btn-redeem:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(32, 184, 236, 0.5);
}

.no-results-box {
  text-align: center;
  padding: 2.5rem;
  color: var(--text-gray);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.no-results-box i {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary-pink);
}

/* ------------------- REPORTES SECTION ------------------- */
.filters-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-end;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
  flex-grow: 1;
}

.filter-group label {
  font-size: 0.8rem;
  color: var(--text-gray);
  text-transform: uppercase;
}

.filter-group select,
.filter-group input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  color: #0f172a;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--primary-pink);
  box-shadow: 0 0 8px rgba(92, 62, 184, 0.1);
}

.filter-group input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.filter-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-filter-apply {
  background: var(--primary-pink);
  border: none;
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-filter-apply:hover {
  background: #4a2f99;
  color: #ffffff;
}

.btn-excel {
  background: var(--accent-yellow);
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.15);
}

.btn-excel:hover {
  transform: translateY(-1px);
  background-color: #b45309;
  box-shadow: 0 6px 15px rgba(217, 119, 6, 0.25);
}

/* Leads Table Styles */
.table-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.table-header-info {
  font-size: 0.85rem;
  color: var(--text-gray);
  display: flex;
  justify-content: flex-end;
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: #ffffff;
}

.leads-table,
.users-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.leads-table th,
.users-table th {
  background: #f8fafc;
  color: #475569;
  font-family: 'Slizo', 'Orbitron', sans-serif;
  font-weight: 600;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.leads-table td,
.users-table td {
  padding: 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
}

.leads-table tbody tr:hover,
.users-table tbody tr:hover {
  background: #f1f5f9;
}

.table-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2.5rem 0 !important;
}

.table-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.table-badge.pendiente {
  background: rgba(255, 214, 0, 0.15);
  color: var(--accent-yellow);
}

.table-badge.canjeado {
  background: rgba(32, 184, 236, 0.15);
  color: var(--accent-green);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.page-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-gray);
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.page-btn:hover {
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
}

.page-btn.active {
  background: var(--primary-cyan);
  border-color: var(--primary-cyan);
  color: var(--bg-dark);
  font-weight: 700;
}

.page-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.05);
}

/* ------------------- TOAST NOTIFICATION ------------------- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #ffffff;
  border: 1px solid var(--primary-pink);
  color: #0f172a;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 30px rgba(92, 62, 184, 0.12);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast.error {
  border-color: #ff5252;
  box-shadow: 0 10px 30px rgba(255, 56, 56, 0.12);
}

.toast.error .toast-icon {
  color: #ff5252;
}

.toast-icon {
  color: var(--accent-green);
  font-size: 1.25rem;
}

.toast-message {
  font-size: 0.85rem;
  font-weight: 500;
}

/* Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Web Layout */
@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .sidebar-brand {
    margin-bottom: 1rem;
  }

  .user-profile {
    display: none;
  }

  .nav-menu {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nav-item {
    width: auto;
    flex-grow: 1;
    justify-content: center;
    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: 8px 8px 0 0;
  }

  .nav-item.active {
    border-bottom: 3px solid var(--primary-cyan);
    border-radius: 8px 8px 0 0;
    padding-left: 1rem;
    padding-bottom: calc(0.85rem - 3px);
  }

  .logout-btn {
    margin-top: 0;
  }

  .main-content {
    height: auto;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid.grid-2 {
    grid-template-columns: 1fr;
  }
}

/* BRAND LOGO IMAGE & FALLBACK */
.brand-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.75rem;
  position: relative;
}

#logo-img {
  max-width: 260px;
  height: auto;
  display: block;
}

.logo-fallback {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 15px 30px;
}

.logo-capsule {
  background: var(--primary-pink);
  width: 90px;
  height: 116px;
  border-radius: 45px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 20px rgba(77, 54, 140, 0.5);
  z-index: 5;
}

.logo-planets {
  position: relative;
  width: 32px;
  height: 32px;
  margin-top: -5px;
  margin-bottom: 6px;
}

.logo-sun {
  width: 22px;
  height: 22px;
  background: var(--accent-yellow);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
}

.logo-moon {
  width: 11px;
  height: 11px;
  background: var(--primary-cyan);
  border-radius: 50%;
  position: absolute;
  bottom: 2px;
  right: 2px;
  border: 1.5px solid var(--primary-pink);
}

.logo-orbit {
  position: absolute;
  width: 140px;
  height: 42px;
  border: 7px solid var(--accent-yellow);
  border-radius: 50%;
  transform: rotate(-15deg);
  pointer-events: none;
  z-index: 10;
  box-sizing: border-box;
}

.logo-text-css {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Slizo', 'Orbitron', sans-serif;
  font-weight: 900;
  line-height: 0.95;
  z-index: 15;
}

.logo-game {
  color: var(--primary-cyan);
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.logo-town {
  color: var(--accent-yellow);
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.btn-action-edit {
  margin-right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0, 255, 204, 0.08);
  color: #00ffcc;
  border: 1px solid rgba(0, 255, 204, 0.3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;

}

.btn-action-delete {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 68, 85, 0.08);
  color: #ff4455;
  border: 1px solid rgba(255, 68, 85, 0.3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
}