/**
 * EDAS.IN - High-Performance Design System & Stylesheet
 * Framework: Modern Vanilla CSS (Zero Framework Overhead)
 * Guidelines: Google Material You (3.0) + Glassmorphism & Micro-Interactions
 * Accessibility: WCAG 2.1 AA Compliant with High Contrast Focus States
 */

:root {
  /* Material You 3.0 Tokens - Dark Palette (Default) */
  --bg-base: #080C14;
  --bg-surface: rgba(15, 23, 42, 0.75);
  --bg-surface-elevated: rgba(30, 41, 59, 0.7);
  --bg-surface-subtle: rgba(51, 65, 85, 0.35);
  --border-color: rgba(148, 163, 184, 0.15);
  --border-focus: #818CF8;
  
  --primary: #6366F1;
  --primary-hover: #4F46E5;
  --primary-light: rgba(99, 102, 241, 0.16);
  --primary-glow: rgba(99, 102, 241, 0.35);
  
  --secondary: #06B6D4;
  --secondary-glow: rgba(6, 182, 212, 0.3);
  
  --accent-purple: #A855F7;
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;
  
  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.15);
  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.15);
  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px -5px var(--primary-glow);
  
  --backdrop-blur: blur(16px);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-theme="light"] {
  --bg-base: #F8FAFC;
  --bg-surface: rgba(255, 255, 255, 0.85);
  --bg-surface-elevated: rgba(241, 245, 249, 0.95);
  --bg-surface-subtle: rgba(226, 232, 240, 0.7);
  --border-color: rgba(100, 116, 139, 0.2);
  --border-focus: #4F46E5;
  
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-light: rgba(79, 70, 229, 0.1);
  --primary-glow: rgba(79, 70, 229, 0.25);
  
  --secondary: #0891B2;
  --secondary-glow: rgba(8, 145, 178, 0.2);
  
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-subtle: #64748B;
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Accessibility: Skip to Content */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--primary);
  color: #FFFFFF;
  padding: 12px 20px;
  z-index: 9999;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 20px;
  outline: 3px solid #FFFFFF;
}

/* Focus Visible Rings for Keyboard Accessibility */
:focus-visible {
  outline: 2.5px solid var(--border-focus);
  outline-offset: 3px;
}

/* Ambient Background Light FX */
.ambient-glow-1 {
  position: fixed;
  top: -150px;
  left: 10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.ambient-glow-2 {
  position: fixed;
  bottom: -200px;
  right: 5%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--secondary-glow) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.brand-domain {
  color: var(--primary);
  font-weight: 700;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons & Micro-Interactions */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  user-select: none;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px var(--primary-glow);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--border-focus);
  transform: translateY(-1.5px);
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  font-size: 1.1rem;
}
.btn-icon:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--border-focus);
}

/* Hero Section */
.hero {
  padding: clamp(1.8rem, 4.5vw, 3.5rem) 0 clamp(1.2rem, 3vw, 2.2rem);
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  border: 1px solid var(--primary-glow);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
  animation: pulse-dot 2s infinite ease-in-out;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw + 0.8rem, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  color: var(--text-main);
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-main) 20%, var(--primary) 70%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(0.98rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 1.35rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 1.85rem;
}

/* Stats Ribbon (Always 1 single line) */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.stat-value {
  font-size: clamp(1.15rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.stat-label {
  font-size: clamp(0.58rem, 1.6vw, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 3px;
  line-height: 1.2;
}

/* Section Header & Search/Filters */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.section-title-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Filter & Search Bar */
.filter-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.search-input-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 12px 18px 12px 46px;
  font-size: 0.95rem;
  color: var(--text-main);
  font-family: inherit;
  transition: all var(--transition-fast);
}
.search-input:focus {
  background: var(--bg-surface-elevated);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  overflow-x: visible;
  padding-bottom: 0;
  width: 100%;
}

.pill-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pill-btn:hover {
  color: var(--text-main);
  border-color: var(--border-focus);
  background: var(--bg-surface-elevated);
  transform: translateY(-1.5px);
}
.pill-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 14px var(--primary-glow);
}

/* Showcase Grid */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  perspective: 1000px;
}

/* Subdomain 3D Card */
.subdomain-card {
  background: var(--bg-surface);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.12s ease-out, box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  will-change: transform;
  transform-style: preserve-3d;
  position: relative;
}

.subdomain-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background: var(--bg-surface-elevated);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.subdomain-card:hover .card-img {
  transform: scale(1.04);
}

.card-badge-status {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF !important;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 700;
  color: #065F46 !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 6px #10B981;
  animation: pulse-dot 1.8s infinite ease-in-out;
}

.card-category-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #FEF08A !important;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 700;
  color: #854D0E !important;
  border: 1px solid rgba(202, 138, 4, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  z-index: 2;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.card-url {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.card-url:hover {
  text-decoration: underline;
}

.card-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.tag-item {
  font-size: 0.75rem;
  background: var(--bg-surface-subtle);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.card-actions .btn {
  flex: 1;
  font-size: 0.875rem;
  padding: 9px 14px;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-color);
}
.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

/* Modals (Accessible dialogs) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: all var(--transition-smooth);
}

.modal-backdrop.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-dialog-large {
  max-width: 1000px;
}

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

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

.modal-close-btn:not(.btn) {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.modal-close-btn:not(.btn):hover {
  color: var(--text-main);
  background: var(--bg-surface-subtle);
}

.modal-body {
  padding: 1.75rem;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}
.modal-footer .btn {
  min-width: 110px;
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.925rem;
  transition: all var(--transition-fast);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-light);
  outline: none;
}

.form-hint {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Captcha Challenge Box */
.captcha-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.captcha-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.captcha-canvas-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  user-select: none;
}

.captcha-canvas {
  height: 50px;
  width: 180px;
  border-radius: 4px;
}

.captcha-refresh-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}
.captcha-refresh-btn:hover {
  color: var(--text-main);
  border-color: var(--border-focus);
  transform: rotate(45deg);
}

/* Rate Limit Lockout Banner */
.lockout-alert {
  background: var(--danger-bg);
  border: 1px solid var(--danger);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: shake 0.4s ease-in-out;
}

.lockout-icon {
  font-size: 1.5rem;
  color: var(--danger);
}

.lockout-title {
  font-weight: 700;
  color: var(--danger);
  margin-bottom: 2px;
}

.lockout-timer {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--danger);
}

/* Subdomain Preview Iframe Modal */
.preview-modal-dialog {
  max-width: 1180px;
  height: 85vh;
  display: flex;
  flex-direction: column;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 1.5rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
  flex-wrap: wrap;
}

.device-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px;
}

.device-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.device-btn.active {
  background: var(--primary);
  color: #FFFFFF;
}

.preview-frame-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020617;
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

.preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  transition: width var(--transition-smooth);
}

.preview-iframe.tablet {
  width: 768px;
}
.preview-iframe.mobile {
  width: 375px;
}

.preview-fallback-banner {
  position: absolute;
  bottom: 20px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Admin Dashboard Specific Styles */
.admin-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding: 0 1.75rem;
  background: var(--bg-surface);
  overflow-x: auto;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  padding: 14px 18px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.admin-tab-btn:hover {
  color: var(--text-main);
}
.admin-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

.admin-subdomains-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-subdomain-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}
.admin-subdomain-item:hover {
  border-color: var(--border-focus);
}

.admin-item-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.admin-item-thumb {
  width: 54px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-surface-subtle);
}

.admin-item-details h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.admin-item-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.admin-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-item-actions .btn-icon {
  width: 34px;
  height: 34px;
  font-size: 0.9rem;
}

/* Analytics Stats Cards */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.analytics-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.analytics-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 4px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 280px;
  max-width: 420px;
  animation: slideInRight 0.3s ease-out;
}

.toast-success {
  border-left: 4px solid var(--success);
}
.toast-error {
  border-left: 4px solid var(--danger);
}
.toast-warning {
  border-left: 4px solid var(--warning);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  margin-top: 4rem;
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--text-main);
}

/* Keyframe Animations */
@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

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

/* Reduced Motion Compliance (a11y) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .subdomain-card:hover {
    transform: none !important;
  }
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .nav-container {
    height: 50px;
  }
  .brand-link {
    font-size: 1.15rem;
    gap: 8px;
  }
  .brand-logo {
    width: 30px;
    height: 30px;
  }
  .btn-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  #nav-admin-btn {
    padding: 6px 12px;
    font-size: 0.825rem;
  }
  .container {
    padding: 0 1rem;
  }
  .hero {
    padding: 1.25rem 0 1rem;
  }
  .hero-pill {
    margin-bottom: 0.65rem;
    padding: 4px 12px;
    font-size: 0.775rem;
  }
  .hero-title {
    font-size: clamp(1.75rem, 6.5vw, 2.3rem);
    margin-bottom: 0.65rem;
    line-height: 1.15;
  }
  .hero-subtitle {
    font-size: 0.925rem;
    margin: 0 auto 1.15rem;
    line-height: 1.5;
  }
  .hero-actions {
    gap: 10px;
    margin-bottom: 1.35rem;
  }
  .hero-actions .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  /* Stats Ribbon: Always in a single line on mobile */
  .stats-ribbon {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    padding: 0.65rem 0.25rem !important;
    gap: 2px !important;
    border-radius: var(--radius-md);
  }
  .stat-item {
    padding: 0 2px !important;
    min-width: 0;
  }
  .stat-value {
    font-size: clamp(0.88rem, 3.5vw, 1.2rem) !important;
    font-weight: 800;
  }
  .stat-label {
    font-size: clamp(0.48rem, 1.7vw, 0.62rem) !important;
    letter-spacing: 0.01em;
    line-height: 1.15;
    margin-top: 2px;
  }
  .section-header {
    gap: 1rem;
    margin-bottom: 1.25rem;
  }
  .filter-bar {
    gap: 1rem;
    margin-bottom: 1.25rem;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .preview-modal-dialog {
    height: 95vh;
  }
  .device-switcher {
    display: none;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Floating "Book Now" Action Wrapper & Animated Mascot */
.floating-book-wrapper {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}
.floating-book-wrapper > * {
  pointer-events: auto;
}

/* Book Now Mascot Character ("Let's Do It!") */
.book-now-mascot {
  position: relative;
  width: 108px;
  margin-bottom: -15px; /* Sits naturally right on top of the Book Now button */
  margin-right: 14px;
  cursor: pointer;
  z-index: 992;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(35px) scale(0.2);
  transform-origin: bottom center;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.5s;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.book-now-mascot.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  animation: mascot-bounce 2.2s ease-in-out infinite alternate;
}

.book-now-mascot.dismissed {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(20px) scale(0.4) !important;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s !important;
}

.mascot-avatar-img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.25s ease;
}

.book-now-mascot:hover .mascot-avatar-img {
  transform: scale(1.08) rotate(-2deg);
}

.mascot-close-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  z-index: 993;
}

.book-now-mascot:hover .mascot-close-btn {
  opacity: 1;
}

.mascot-close-btn:hover {
  background: var(--danger, #EF4444);
}

/* Mascot Bouncing Keyframes */
@keyframes mascot-bounce {
  0% {
    transform: translateY(0) scale(1);
  }
  20% {
    transform: translateY(-4px) scale(1.02, 0.98);
  }
  45% {
    transform: translateY(-18px) scale(0.98, 1.03);
  }
  65% {
    transform: translateY(-22px) scale(1.01, 1.01);
  }
  85% {
    transform: translateY(-8px) scale(1.02, 0.98);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* Floating "Book Now" Action Button */
.floating-book-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
  animation: fab-pulse 2.8s infinite;
  backdrop-filter: blur(8px);
}

.floating-book-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55), 0 4px 10px rgba(0, 0, 0, 0.3);
  filter: brightness(1.06);
}

.floating-book-btn:active {
  transform: translateY(0) scale(0.98);
}

.floating-btn-icon {
  font-size: 1.25rem;
  line-height: 1;
  display: inline-block;
  animation: fab-wiggle 3s ease-in-out infinite;
}

.floating-btn-text {
  line-height: 1;
}

@keyframes fab-pulse {
  0% {
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5), 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes fab-wiggle {
  0%, 80%, 100% { transform: rotate(0deg); }
  85% { transform: rotate(-12deg) scale(1.1); }
  92% { transform: rotate(12deg) scale(1.1); }
  96% { transform: rotate(-6deg); }
}

@media (max-width: 768px) {
  .floating-book-wrapper {
    bottom: 20px;
    right: 18px;
  }
  .book-now-mascot {
    width: 88px;
    margin-bottom: -11px;
    margin-right: 8px;
  }
  .floating-book-btn {
    padding: 11px 18px;
    font-size: 0.88rem;
    gap: 8px;
  }
  .floating-btn-icon {
    font-size: 1.1rem;
  }
}

/* Data Table (Admin Leads & Inquiries) */
.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}
.data-table tbody tr {
  transition: background var(--transition-fast);
}
.data-table tbody tr:hover {
  background: var(--bg-surface-elevated);
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}

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


