:root {
  --primary-color: #4361ee;
  --secondary-color: #3f37c9;
  --accent-color: #4895ef;
  --success-color: #4cc9f0;
  --warning-color: #f72585;
  --card-bg: rgba(255, 255, 255, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
  --nav-active: #4361ee;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 20px;
  padding-bottom: 100px;
  overflow-x: hidden;
  background-color: #f0f2f5;
}

/* --- ANIMATED MESH GRADIENT BACKGROUND --- */

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
  background: conic-gradient(from 90deg at 50% 50%, #e2e2e2, #ffffff, #e2e2e2);
  background-image: radial-gradient(at 80% 0%, hsla(189,100%,56%,1) 0px, transparent 50%), radial-gradient(at 0% 50%, hsla(355,100%,93%,1) 0px, transparent 50%), radial-gradient(at 80% 50%, hsla(340,100%,76%,1) 0px, transparent 50%), radial-gradient(at 0% 100%, hsla(22,100%,77%,1) 0px, transparent 50%), radial-gradient(at 80% 100%, hsla(242,100%,70%,1) 0px, transparent 50%), radial-gradient(at 0% 0%, hsla(343,100%,76%,1) 0px, transparent 50%);
  z-index: -2;
  background-size: 200% 200%;
  /*animation: gradientBG 15s ease infinite;*/
}

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

/* --- MAIN CARD (GLASS) --- */

.main-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border: var(--glass-border);
  overflow: hidden;
  transition: max-width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 85vh;
  position: relative;
}

.main-card.wide {
  max-width: 1100px;
}

/* --- HEADERS --- */

.hero-header {
  padding: 60px 30px 40px;
  border-radius: 0 0 40px 40px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px -10px rgba(67, 97, 238, 0.4);
}

.hero-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
}

.hero-header.register::before {
  background: linear-gradient(135deg, #4cc9f0 0%, #4361ee 100%);
}

.hero-header.reset::before {
  background: linear-gradient(135deg, #f72585 0%, #b5179e 100%);
}

.hero-header.admin::before {
  background: linear-gradient(135deg, #212529 0%, #343a40 100%);
}

.hero-title {
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 5px;
}

.hero-subtitle {
  opacity: 0.8;
  font-weight: 500;
}

/* --- DASHBOARD HEADER --- */

.dash-header {
  padding: 25px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

/* --- INPUTS & BUTTONS --- */

.form-control {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  padding: 15px;
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: white;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-vibrant {
  background: linear-gradient(90deg, #4361ee, #3a0ca3);
  border: none;
  border-radius: 16px;
  padding: 15px;
  color: white;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 20px -5px rgba(67, 97, 238, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-vibrant:active {
  transform: scale(0.98);
  box-shadow: none;
}

.btn-vibrant.success {
  background: linear-gradient(90deg, #4cc9f0, #4361ee);
  box-shadow: 0 10px 20px -5px rgba(76, 201, 240, 0.4);
}

.btn-vibrant.danger {
  background: linear-gradient(90deg, #f72585, #b5179e);
  box-shadow: 0 10px 20px -5px rgba(247, 37, 133, 0.4);
}

/* --- CARDS & STATS --- */

.stat-card {
  background: white;
  border-radius: 24px;
  padding: 16px;
  border: 1px solid rgba(0,0,0,0.03);
  box-shadow: 0 10px 30px -5px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
}

.card-icon-bg {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Colorful Variants */

.variant-purple {
  background: linear-gradient(135deg, #ba73ff 0%, #9000b4 100%);
  color: #fff;
  border: none;
}

.variant-orange {
  background: #fff3e0;
  color: #e65100;
}

.variant-blue {
  background: #e3f2fd;
  color: #1565c0;
}

/* --- BOTTOM NAV (FLOATING) --- */

.bottom-nav {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.5);
  z-index: 999;
}

.nav-item {
  padding: 4px;
  border-radius: 20px;
  color: #9ca3af;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  flex: 1;
}

.nav-item i {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 2px;
  transition: 0.3s;
}

.nav-item span {
  font-size: 0.7rem;
  font-weight: 700;
  display: block;
  transform: scale(0.90);
  opacity: 0;
  transition: 0.3s;
}

.nav-item.active {
  color: var(--primary-color);
  background: rgba(67, 97, 238, 0.1);
}

.nav-item.active i {
  transform: translateY(-2px);
}

.nav-item.active span {
  opacity: 1;
  transform: scale(1);
}

/* --- LOCKED FEATURE --- */

.locked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
}

.locked-overlay:hover {
  background: rgba(255,255,255,0.4);
}

.lock-icon-circle {
  width: 50px;
  height: 50px;
  background: #333;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- ADMIN TABLE --- */

.admin-table-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
}

.table {
  margin-bottom: 0;
}

.table thead {
  background: #f8f9fa;
}

.table th {
  padding: 18px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6c757d;
  font-weight: 700;
  border: none;
}

.table td {
  padding: 18px;
  vertical-align: middle;
  background: white;
  border-bottom: 1px solid #f1f5f9;
}

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

/* --- UTILS --- */

.view-section {
  display: none;
  animation: fadeUp 2.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-content {
  display: none;
  animation: fadein 0.3s ease;
}

.tab-content.active {
  display: block;
}

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

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

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* Badge Styles */

.badge-custom {
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-free {
  background: #e9ecef;
  color: #495057;
}

.badge-premium {
  background: #fff0f3;
  color: #a4133c;
  border: 1px solid #ffccd5;
}

.badge-unlimited {
  background: #e0faff;
  color: #0077b6;
  border: 1px solid #90e0ef;
}

.badge-admin {
  background: #212529;
  color: #fff;
}

/* Search */

.search-wrapper {
  background: white;
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
  margin-top: -30px;
  z-index: 5;
  position: relative;
}

/* Desktop */

@media (min-width: 992px) {
  .bottom-nav {
    display: none;
  }
}

@media (min-width: 992px) {
  .pc-nav-btn {
    display: inline-block !important;
  }
}

.pc-nav-btn {
  display: none;
}

.tab-content > .active {
  display: block;
}

.tab-content > .tab-pane {
  display: none;
}

