/* ============================================
   NEXT FACE INDIA - Main Stylesheet
   Entertainment-Industry Premium UI
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #e6a817;
  --primary-dark: #c48f0f;
  --primary-light: #f5d060;
  --secondary: #1a1a2e;
  --secondary-light: #16213e;
  --accent: #e94560;
  --accent-light: #ff6b81;
  --dark: #0f0f1a;
  --dark-card: #1a1a2e;
  --dark-surface: #16213e;
  --text-primary: #ffffff;
  --text-secondary: #b8b8d0;
  --text-muted: #6c6c8a;
  --success: #00c853;
  --warning: #ff9100;
  --error: #ff1744;
  --gradient-gold: linear-gradient(135deg, #e6a817, #f5d060, #c48f0f);
  --gradient-dark: linear-gradient(135deg, #0f0f1a, #1a1a2e, #16213e);
  --gradient-accent: linear-gradient(135deg, #e94560, #ff6b81);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 20px rgba(230, 168, 23, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Poppins', sans-serif;
  --font-display: 'Playfair Display', serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

input, select, textarea {
  font-family: inherit;
  outline: none;
  border: none;
  transition: var(--transition);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* ---------- Selection ---------- */
::selection {
  background: var(--primary);
  color: var(--dark);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

.text-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent {
  color: var(--accent);
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 8px 0;
  transition: var(--transition);
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.navbar.scrolled {
  padding: 6px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.nav-logo span {
  color: var(--text-primary);
}

.nav-logo .logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--dark);
  font-weight: 800;
}

/* Nav links - hidden on mobile, shown on desktop */
.nav-links {
  display: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Top-right auth button - always visible */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  padding: 7px 18px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
}

.nav-btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.nav-btn-outline:hover {
  background: var(--primary);
  color: var(--dark);
}

.nav-btn-primary {
  background: var(--gradient-gold);
  color: var(--dark);
  border: none;
}

.nav-btn-primary:hover {
  box-shadow: var(--shadow-gold);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.8rem;
}

.nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-weight: 700;
  font-size: 0.75rem;
}

/* Hamburger removed - no toggle needed */
.nav-toggle {
  display: none;
}

/* Mobile bottom navigation bar */
.mobile-bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 26, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 900;
  padding: 6px 0;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
}

.mobile-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.mobile-bottom-nav a .nav-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
  color: var(--primary);
}

/* Add bottom padding to body for bottom nav */
body {
  padding-bottom: 65px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--dark);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--dark);
  transform: translateY(-3px);
}

.btn-accent {
  background: var(--gradient-accent);
  color: #fff;
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

/* ---------- Cards ---------- */
.card {
  background: var(--dark-card);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(230, 168, 23, 0.2);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card-glass {
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  background: rgba(230, 168, 23, 0.05);
  box-shadow: 0 0 0 3px rgba(230, 168, 23, 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control.error {
  border-color: var(--error);
}

.form-error {
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.form-error.show {
  display: block;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b8b8d0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

select.form-control option {
  background: var(--dark-card);
  color: var(--text-primary);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  margin-top: 3px;
  flex-shrink: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---------- Section ---------- */
.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  margin-bottom: 15px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-gold);
  margin: 15px auto;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(230, 168, 23, 0.15), transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(233, 69, 96, 0.1), transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(22, 33, 62, 0.8), transparent 60%);
  z-index: 0;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  animation: particleFloat 6s infinite;
  opacity: 0.3;
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
  50% { transform: translateY(-100px) translateX(50px); opacity: 0.8; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(230, 168, 23, 0.1);
  border: 1px solid rgba(230, 168, 23, 0.3);
  border-radius: var(--radius-xl);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- Feature Cards ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 30px;
  text-align: center;
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: rgba(230, 168, 23, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--gradient-gold);
  transform: scale(1.1) rotate(5deg);
}

.feature-card h4 {
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ---------- Testimonials ---------- */
.testimonials-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  min-width: 280px;
  scroll-snap-align: start;
  padding: 20px;
}

.testimonial-card .quote {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--dark);
}

.testimonial-info h5 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, rgba(230, 168, 23, 0.1), rgba(233, 69, 96, 0.1));
  border-top: 1px solid rgba(230, 168, 23, 0.2);
  border-bottom: 1px solid rgba(230, 168, 23, 0.2);
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: 15px;
}

.cta-content p {
  color: var(--text-secondary);
  margin-bottom: 25px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--secondary);
  padding: 60px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-primary);
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1rem;
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 4px 0;
}

.footer-col a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-socials a:hover {
  background: var(--primary);
  color: var(--dark);
  transform: translateY(-3px);
}

/* ---------- Page Header ---------- */
.page-header {
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  background: radial-gradient(ellipse at center, rgba(230, 168, 23, 0.1), transparent 60%);
}

.page-header h1 {
  margin-bottom: 10px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ---------- Auth Pages ---------- */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 70px 16px 80px;
}

.auth-card {
  width: 100%;
  max-width: 500px;
  padding: 40px;
  background: var(--dark-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-card.register-card {
  max-width: 700px;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header h2 {
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 30px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab.active {
  background: var(--primary);
  color: var(--dark);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: fadeInUp 0.4s ease-out;
}

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

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- Dashboard ---------- */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 52px;
}

.dashboard-sidebar {
  width: 260px;
  background: var(--dark-card);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 0;
  position: fixed;
  top: 52px;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  transition: var(--transition);
  z-index: 100;
}

.sidebar-menu {
  padding: 10px 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-item:hover {
  background: rgba(230, 168, 23, 0.05);
  color: var(--primary);
}

.sidebar-item.active {
  background: rgba(230, 168, 23, 0.1);
  color: var(--primary);
  border-left-color: var(--primary);
}

.sidebar-item .icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.sidebar-section-title {
  padding: 15px 24px 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.dashboard-main {
  flex: 1;
  margin-left: 260px;
  padding: 30px;
  min-height: calc(100vh - 70px);
}

.dashboard-panel {
  display: none;
}

.dashboard-panel.active {
  display: block;
  animation: fadeInUp 0.4s ease-out;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.stat-icon.gold { background: rgba(230, 168, 23, 0.15); color: var(--primary); }
.stat-icon.red { background: rgba(233, 69, 96, 0.15); color: var(--accent); }
.stat-icon.green { background: rgba(0, 200, 83, 0.15); color: var(--success); }
.stat-icon.blue { background: rgba(66, 133, 244, 0.15); color: #4285f4; }

.stat-info h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-info p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 2px;
}

/* Data Table */
.data-table-wrapper {
  background: var(--dark-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 12px;
}

.table-header h3 {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
}

.table-search {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  width: 250px;
}

.table-search:focus {
  border-color: var(--primary);
}

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

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table td {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.data-table tr:hover td {
  background: rgba(230, 168, 23, 0.03);
}

.data-table .actions {
  display: flex;
  gap: 8px;
}

.data-table .actions button {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: none;
}

.data-table .actions button:hover {
  background: var(--primary);
  color: var(--dark);
}

.data-table .actions button.delete:hover {
  background: var(--error);
  color: #fff;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: rgba(0, 200, 83, 0.15);
  color: var(--success);
}

.badge-warning {
  background: rgba(255, 145, 0, 0.15);
  color: var(--warning);
}

.badge-error {
  background: rgba(255, 23, 68, 0.15);
  color: var(--error);
}

.badge-info {
  background: rgba(66, 133, 244, 0.15);
  color: #4285f4;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

.modal {
  background: var(--dark-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h3 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
}

.modal-close:hover {
  background: var(--error);
  color: #fff;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ---------- Toast / Notification ---------- */
.toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: 400px;
  animation: slideInRight 0.3s ease-out;
  box-shadow: var(--shadow-lg);
}

.toast-success { background: #1b5e20; border-left: 4px solid var(--success); }
.toast-error { background: #b71c1c; border-left: 4px solid var(--error); }
.toast-warning { background: #e65100; border-left: 4px solid var(--warning); }
.toast-info { background: #0d47a1; border-left: 4px solid #4285f4; }

.toast-close {
  margin-left: auto;
  cursor: pointer;
  opacity: 0.7;
  background: none;
  border: none;
  color: inherit;
  font-size: 1rem;
}

.toast-close:hover {
  opacity: 1;
}

/* ---------- Loader ---------- */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.5s ease;
}

.loader-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(230, 168, 23, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loader-text {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

/* Small inline spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ---------- Ads Slots ---------- */
.ad-slot {
  position: relative;
  overflow: hidden;
  background: rgba(26, 26, 46, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
}

.ad-slot-top,
.ad-slot-bottom {
  width: 100%;
  text-align: center;
  padding: 10px;
}

.ad-slot-sidebar {
  width: 300px;
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
}

.ad-slot-inline {
  margin: 20px 0;
  width: 100%;
}

.ad-slot-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 800;
  max-width: 350px;
}

.ad-slot-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  border: none;
  z-index: 10;
}

.ad-close:hover {
  background: var(--error);
}

.ad-label {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border-radius: 3px;
  z-index: 5;
}

.ad-media {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.ad-content {
  padding: 12px;
}

.ad-content h4 {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.ad-content p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.ad-cta {
  display: inline-block;
  padding: 6px 16px;
  background: var(--gradient-gold);
  color: var(--dark);
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

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

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-100px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

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

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ad animation classes */
.ad-animate-fade { animation: fadeIn 0.5s ease-out; }
.ad-animate-slide { animation: slideInRight 0.5s ease-out; }
.ad-animate-zoom { animation: zoomIn 0.5s ease-out; }
.ad-animate-bounce { animation: bounce 1s ease-in-out; }
.ad-animate-rotate { animation: rotate 0.5s ease-out; }

/* ---------- Profile Card ---------- */
.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 30px;
  background: var(--dark-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 30px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  flex-shrink: 0;
}

.profile-info h2 {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.profile-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.profile-meta {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.profile-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Toggle Switch ---------- */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition);
}

.toggle input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.5;
}

.empty-state h3 {
  font-family: var(--font-primary);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.empty-state p {
  font-size: 0.9rem;
}

/* ---------- Mobile-First Responsive ---------- */

/* Base (mobile) styles */
.form-row {
  grid-template-columns: 1fr;
}

.footer-grid {
  grid-template-columns: 1fr;
  gap: 25px;
}

.features-grid {
  grid-template-columns: 1fr;
}

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

.hero-stats {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 15px;
}

.profile-header {
  flex-direction: column;
  text-align: center;
}

.profile-meta {
  justify-content: center;
  flex-wrap: wrap;
}

.dashboard-sidebar {
  transform: translateX(-100%);
  width: 260px;
}

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

.dashboard-main {
  margin-left: 0;
  padding: 16px;
  padding-bottom: 80px;
}

.ad-slot-sidebar {
  display: none;
}

.data-table {
  font-size: 0.78rem;
}

.data-table th,
.data-table td {
  padding: 8px;
  white-space: nowrap;
}

.table-search {
  width: 100%;
}

.auth-card {
  padding: 20px;
}

.auth-card.register-card {
  max-width: 100%;
}

.modal {
  margin: 10px;
  max-width: calc(100vw - 20px);
}

.modal-body {
  padding: 16px;
}

.modal-header {
  padding: 14px 16px;
}

.modal-footer {
  padding: 12px 16px;
}

.section {
  padding: 50px 0;
}

.page-header {
  padding: 90px 0 40px;
}

.hero {
  padding-top: 60px;
  min-height: calc(100vh - 60px);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 0.95rem;
}

.toast-container {
  top: 60px;
  right: 10px;
  left: 10px;
}

.toast {
  min-width: auto;
  max-width: 100%;
  font-size: 0.85rem;
  padding: 10px 14px;
}

.chart-container {
  padding: 14px;
}

.chart-bar-label {
  width: 70px;
  font-size: 0.7rem;
}

/* Admin charts - stack on mobile */
.dashboard-panel > div[style*="grid-template-columns: 1fr 1fr"] {
  display: grid !important;
  grid-template-columns: 1fr !important;
}

/* Tablet+ */
@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .auth-card {
    padding: 30px;
  }

  .section {
    padding: 70px 0;
  }

  .toast-container {
    left: auto;
  }
}

/* Desktop */
@media (min-width: 992px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
  }

  .mobile-bottom-nav {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .dashboard-sidebar {
    transform: translateX(0);
  }

  .dashboard-main {
    margin-left: 260px;
    padding: 30px;
  }

  .sidebar-toggle {
    display: none !important;
  }

  .ad-slot-sidebar {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ---------- Sidebar Toggle Button (Mobile) ---------- */
.sidebar-toggle {
  display: flex;
  position: fixed;
  top: 58px;
  left: 10px;
  z-index: 101;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--dark);
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: none;
  box-shadow: var(--shadow-md);
}

/* ---------- Chart Container ---------- */
.chart-container {
  background: var(--dark-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  margin-bottom: 20px;
}

.chart-container h3 {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.chart-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.chart-bar-label {
  width: 100px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: right;
  flex-shrink: 0;
}

.chart-bar-fill {
  height: 24px;
  border-radius: 4px;
  background: var(--gradient-gold);
  transition: width 1s ease-out;
  display: flex;
  align-items: center;
  padding-left: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark);
  min-width: 30px;
}

.chart-bar-fill.accent {
  background: var(--gradient-accent);
  color: #fff;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.w-full { width: 100%; }
.overflow-auto { overflow-x: auto; }
