:root {
  --mesh-1: #6366f1;
  --mesh-2: #a855f7;
  --mesh-3: #ec4899;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-main: #ffffff;
  --text-mute: rgba(255, 255, 255, 0.6);
  --font-main: "Inter", sans-serif;
  --font-head: "Outfit", sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: #0a0a0a;
  color: var(--text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  position: relative;
  padding-bottom: 20px;
  margin: 0;
}

/* Background Effects */
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  filter: blur(100px);
  opacity: 0.5;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  animation: float 10s infinite ease-in-out alternate;
}
.b1 {
  width: 500px;
  height: 500px;
  background: var(--mesh-1);
  top: -10%;
  left: -10%;
}
.b2 {
  width: 400px;
  height: 400px;
  background: var(--mesh-2);
  bottom: -10%;
  right: -10%;
  animation-delay: -5s;
}
.b3 {
  width: 300px;
  height: 300px;
  background: var(--mesh-3);
  top: 40%;
  left: 40%;
  animation-duration: 15s;
}
@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0);
  }
  100% {
    transform: translate(30px, 50px) rotate(10deg);
  }
}

@keyframes pulseLogo {
  0% { transform: scale(1); box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); }
  100% { transform: scale(1.05); box-shadow: 0 0 40px rgba(99, 102, 241, 0.8); }
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Cards & UI */
.aura-card {
  width: 90%;
  max-width: 450px;
  padding: 30px;
  background: var(--glass-bg);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  text-align: center;
  margin-top: auto;
  margin-bottom: 20px;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  animation: cardGlow 5s infinite alternate;
}

@keyframes cardGlow {
  0% { box-shadow: 0 10px 40px rgba(99, 102, 241, 0.1); }
  100% { box-shadow: 0 15px 50px rgba(168, 85, 247, 0.3); }
}
h1 {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 5px;
  background: linear-gradient(45deg, #fff, #a855f7, #ec4899);
  background-size: 200% auto;
  -webkit-background-clip: text;
  color: transparent;
  animation: shineText 3s linear infinite;
}
@keyframes shineText {
  to { background-position: 200% center; }
}
p.sub-text {
  color: var(--text-mute);
  font-size: 0.9rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

/* Buttons & Inputs */
.toggle-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 5px;
  border-radius: 15px;
  display: flex;
  margin-bottom: 20px;
  border: 1px solid var(--glass-border);
}
.t-btn {
  flex: 1;
  padding: 10px;
  background: 0 0;
  border: none;
  color: var(--text-mute);
  font-weight: 600;
  cursor: pointer;
  border-radius: 12px;
  transition: 0.3s;
  font-size: 0.9rem;
}
.t-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.view-section {
  display: none;
  animation: fadeUp 0.5s ease;
}
.view-section.active {
  display: block;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.qr-box {
  width: 220px;
  height: 220px;
  margin: 0 auto 15px;
  border: 2px dashed var(--glass-border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 10px;
}
.aura-input {
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  color: #fff;
  margin-bottom: 15px;
  font-size: 1rem;
}
.aura-input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}
.action-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(45deg, #6366f1, #a855f7);
  background-size: 200% auto;
  color: #fff;
  border: none;
  border-radius: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  margin-top: 10px;
  animation: shineBg 3s linear infinite;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
@keyframes shineBg {
  to { background-position: 200% center; }
}
.action-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.6);
}
.action-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  animation: none;
  box-shadow: none;
}
.action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}
.action-btn:active {
  transform: scale(0.95);
}
.action-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
  animation: none;
}

/* Navigation */
.nav-dock {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
  justify-content: center;
}
.nav-btn {
  text-decoration: none;
  color: var(--text-mute);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 20px;
  transition: 0.3s;
}
.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.nav-btn.dev-opt {
  color: #f59e0b;
}

/* Toast & Loader */
.copyright {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: auto;
  padding: 20px 0;
  text-align: center;
  width: 100%;
}
.code-res {
  margin-top: 15px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  font-family: "Outfit";
  letter-spacing: 3px;
  color: #4ade80;
  display: none;
}
.loader {
  width: 20px;
  height: 20px;
  border: 3px solid #000;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: rotation 1s linear infinite;
}
@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
#toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 90%;
  max-width: 350px;
  pointer-events: none;
}
.toast {
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: slideDown 0.4s ease forwards;
  opacity: 1;
  pointer-events: auto;
}
.toast.success {
  border-left: 4px solid #4ade80;
}
.toast.success i {
  color: #4ade80;
}
.toast.error {
  border-left: 4px solid #f87171;
}
.toast.error i {
  color: #f87171;
}
.toast.info {
  border-left: 4px solid #60a5fa;
}
.toast.info i {
  color: #60a5fa;
}
@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes fadeOut {
  to {
    transform: translateY(-20px);
    opacity: 0;
  }
}

/* Intl Tel Input fixes */
.iti--container {
  z-index: 9999 !important;
}
.iti__country-list {
  background-color: #111827 !important;
  color: #fff !important;
  border: 1px solid #374151 !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8) !important;
  max-height: 250px !important;
  scrollbar-width: thin;
  scrollbar-color: #374151 #111827;
}
.iti__country:hover {
  background-color: #1f2937 !important;
}
.iti {
  width: 100%;
  margin-bottom: 15px;
}

/* Dashboard Settings items */
.dashboard-title {
  text-align: left;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 10px;
  margin-top: 15px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 5px;
  background: linear-gradient(to right, #4ade80, #3b82f6);
  -webkit-background-clip: text;
  color: transparent;
  animation: fadeUp 0.5s ease both;
}
.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 15px;
  border-radius: 12px;
  font-size: 0.9rem;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s, background 0.3s;
  animation: fadeUp 0.5s ease both;
}
.setting-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}
.setting-item:nth-child(even) { animation-delay: 0.1s; }
.setting-item:nth-child(odd) { animation-delay: 0.2s; }
.setting-item span.desc {
  display: block;
  font-size: 0.75rem;
  color: var(--text-mute);
  margin-top: 3px;
}

/* Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.4s;
  border-radius: 20px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #4ade80;
}
input:checked + .slider:before {
  transform: translateX(20px);
}

/* Custom Scrollbar for dashboard */
.dash-scroll {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
}
.dash-scroll::-webkit-scrollbar {
  width: 5px;
}
.dash-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}

/* Admin Session List */
.sessions-container {
  text-align: left;
}
.session-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 15px;
  border-radius: 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--glass-border);
  justify-content: space-between;
}
.empty-state {
  color: var(--text-mute);
  text-align: center;
  padding: 20px;
}
