/* Design Tokens & Variables */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Theme: Premium Light Mode for Landing Page & System */
  --bg-dark: #f8fafc; /* Clean background slate 50 */
  --bg-dark-card: #ffffff; /* Crisp white card background */
  --border-color: #e2e8f0; /* Soft slate 200 border */
  --border-color-hover: #cbd5e1; /* Slate 300 hover border */
  
  --primary: #4f46e5; /* Indigo 600 (better contrast for light mode) */
  --primary-hover: #4338ca; /* Indigo 700 */
  --primary-glow: rgba(79, 70, 229, 0.08); /* Translucent indigo wash */
  
  --secondary: #9333ea; /* Purple 600 */
  --secondary-glow: rgba(147, 51, 234, 0.08);
  
  --text-primary: #0f172a; /* Slate 900 for high-contrast headings */
  --text-secondary: #475569; /* Slate 600 for readable body text */
  --text-muted: #64748b; /* Slate 500 for captions and borders */
  
  --success: #10b981; /* Emerald */
  --warning: #d97706; /* Amber (darker for light BG readability) */
  --danger: #dc2626; /* Red 600 */
  --info: #0284c7; /* Sky 600 */
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-secondary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
}

/* Background Gradients (watercolor washes for light mode) */
.bg-gradient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(160px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.12; /* Subtle opacity for clean light mode washes */
}

.glow-indigo {
  background: var(--primary);
  top: -100px;
  right: -50px;
}

.glow-purple {
  background: var(--secondary);
  bottom: 20%;
  left: -100px;
}

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

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

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* Logo Styles */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 18px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(79, 70, 229, 0.35);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border-color: var(--border-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--primary-glow);
  transform: translateY(-2px);
}

/* Layout Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

nav a:hover {
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  padding: 90px 8% 50px 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge-glow {
  background: var(--primary-glow);
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 5px rgba(79, 70, 229, 0.08); }
  100% { box-shadow: 0 0 15px rgba(79, 70, 229, 0.25); }
}

.hero h1 {
  font-size: 3.8rem;
  max-width: 950px;
  background: linear-gradient(to right, var(--text-primary) 30%, #6366f1 70%, #9333ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 700px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
}

/* Vertical / Industry Selector (Marketing Tabs) */
.industry-selector-wrapper {
  display: flex;
  justify-content: center;
  margin: 40px 0 20px 0;
  z-index: 10;
}

.industry-selector-pills {
  display: flex;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 6px;
  border-radius: var(--radius-full);
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.industry-pill {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.industry-pill svg {
  width: 18px;
  height: 18px;
}

.industry-pill:hover {
  color: var(--text-primary);
  background: #f1f5f9;
}

.industry-pill.active[data-industry="coaching"] {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

.industry-pill.active[data-industry="hospital"] {
  background: #10b981; /* Emerald */
  color: #fff;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.industry-pill.active[data-industry="hotel"] {
  background: #d97706; /* Amber */
  color: #fff;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.2);
}

/* Features Grid */
.features {
  padding: 80px 8%;
}

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

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 10px 15px -3px rgba(0, 0, 0, 0.01);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-hover);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.06);
}

.feature-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
  transition: var(--transition-fast);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--primary-glow);
  color: var(--primary);
  border-color: var(--border-color-hover);
}

.feature-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Interactive Demo / Mock Dashboard Simulator */
.demo-section {
  padding: 60px 8% 80px 8%;
  position: relative;
}

.demo-container {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
  display: flex;
  height: 680px;
  position: relative;
}

/* DYNAMIC MULTI-THEME OVERRIDES FOR DEMO SIMULATOR */
.demo-container.theme-coaching {
  --primary: #4f46e5;
  --secondary: #9333ea;
  --primary-hover: #4338ca;
  --primary-glow: rgba(79, 70, 229, 0.08);
}

.demo-container.theme-hospital {
  --primary: #059669;
  --secondary: #0284c7;
  --primary-hover: #047857;
  --primary-glow: rgba(5, 150, 105, 0.08);
}

.demo-container.theme-hotel {
  --primary: #d97706;
  --secondary: #db2777;
  --primary-hover: #b45309;
  --primary-glow: rgba(217, 119, 6, 0.08);
}

/* Dashboard Sidebar */
.db-sidebar {
  width: 250px;
  background: #f8fafc; /* Crisp light slate sidebar */
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  flex-shrink: 0;
}

.db-school-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding: 0 8px;
}

.db-school-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  overflow: hidden;
}

.db-school-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.db-school-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-school-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.db-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.db-nav-item button {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
}

.db-nav-item button svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.db-nav-item button:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-primary);
}

.db-nav-item button:hover svg {
  color: var(--text-secondary);
}

.db-nav-item.active button {
  background: var(--primary-glow);
  color: var(--primary);
  font-weight: 600;
}

.db-nav-item.active button svg {
  color: var(--primary);
}

.db-sidebar-footer {
  margin-top: auto;
  padding: 12px 8px;
  border-top: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.db-sidebar-footer a {
  color: var(--primary);
  text-decoration: none;
}

/* Dashboard Main Content Area */
.db-main {
  flex-grow: 1;
  background: #ffffff; /* Crisp white background */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.db-header {
  height: 70px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  flex-shrink: 0;
}

.db-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.db-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.db-badge-demo {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.db-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 500;
}

.db-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--secondary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}

/* Dynamic Page Container */
.db-content {
  flex-grow: 1;
  padding: 32px;
  background-color: #fafbfd; /* Very soft wash for content */
  overflow-y: auto;
  position: relative;
  border-left: 1px solid var(--border-color);
}

.db-tab-page {
  display: none;
  animation: fade-in-up 0.4s ease;
}

.db-tab-page.active {
  display: block;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Statistics Widgets Grid */
.db-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.db-stat-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01), 0 4px 6px rgba(0, 0, 0, 0.01);
}

.db-stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.db-stat-header svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.db-stat-val {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: 4px;
}

.db-stat-trend {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.db-stat-trend.up { color: var(--success); }
.db-stat-trend.down { color: var(--danger); }

/* Dashboard Cards Structure */
.db-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.db-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.db-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.db-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.db-table th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.db-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.db-table tr td strong {
  color: var(--text-primary);
}

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

/* Badges */
.badge-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-status.paid, .badge-status.available, .badge-status.stable, .badge-status.active {
  background: rgba(16, 185, 129, 0.1);
  color: #047857; /* Darker green for accessibility contrast */
}

.badge-status.unpaid, .badge-status.occupied, .badge-status.critical, .badge-status.overdue {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.badge-status.pending, .badge-status.maintenance, .badge-status.recovering {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

/* Online classes & Test series layouts */
.class-grid-simple {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.simple-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  transition: var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

.simple-card:hover {
  border-color: var(--border-color-hover);
}

.simple-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.simple-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.simple-card-details {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.4;
}

.simple-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

/* Room Occupancy Grid Elements (Hotels) */
.room-occupancy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.room-occupancy-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0,0,0,0.01);
}

.room-occupancy-card:hover {
  background: #f8fafc;
}

.room-number {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.room-occupancy-card.available {
  border-left: 3px solid var(--success);
}
.room-occupancy-card.occupied {
  border-left: 3px solid var(--danger);
}
.room-occupancy-card.maintenance {
  border-left: 3px solid var(--warning);
}

/* Search and Filters */
.search-bar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
}

.search-input-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
}

.search-input-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
}

.btn-filter {
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-filter:hover {
  background: #f8fafc;
  color: var(--text-primary);
}

.btn-filter.active {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary);
}

/* General Grid Directories */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.directory-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  position: relative;
  transition: var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

.directory-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.directory-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.directory-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.directory-subtext {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.directory-tag {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: inline-block;
  margin-bottom: 12px;
}

.directory-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.directory-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.directory-action-btn:hover {
  color: var(--danger);
}

/* School Websites Builder styling */
.website-builder-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 32px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
}

.color-options {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.color-option {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}

.color-option.active {
  border-color: var(--text-primary);
  transform: scale(1.15);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.color-emerald { background-color: #10b981; }
.color-indigo { background-color: #6366f1; }
.color-purple { background-color: #a855f7; }
.color-rose { background-color: #f43f5e; }
.color-amber { background-color: #f59e0b; }

/* Website Live Preview Mock Frame */
.website-preview-frame {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  height: 480px;
}

.website-preview-browser-header {
  height: 36px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 6px;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
}

.browser-address {
  margin-left: 20px;
  background: #ffffff;
  padding: 2px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  flex-grow: 1;
  text-align: center;
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid var(--border-color);
}

.website-preview-canvas {
  flex-grow: 1;
  background: #ffffff;
  color: #1f2937;
  overflow-y: auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: background-color 0.3s;
}

/* Public website generation layouts */
.pub-site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.pub-site-logo {
  font-weight: 700;
  font-size: 1.1rem;
}

.pub-site-nav {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  font-weight: 500;
}

.pub-site-hero {
  padding: 48px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pub-site-hero h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}

.pub-site-hero p {
  font-size: 0.95rem;
  color: #4b5563;
  max-width: 480px;
  margin: 0 auto 20px auto;
  line-height: 1.5;
}

.pub-site-btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.pub-site-features {
  padding: 32px 24px;
  background: #f9fafb;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pub-feature {
  padding: 16px;
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  text-align: center;
}

.pub-feature h3 {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.pub-feature p {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
}

/* Pricing Grid */
.pricing {
  padding: 100px 8%;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-top: 1px solid var(--border-color);
  position: relative;
}

.pricing-header {
  text-align: center;
  margin-bottom: 60px;
}

.pricing-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.pricing-header p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 6px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

.pricing-toggle-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  background: transparent;
  color: var(--text-secondary);
}

.pricing-toggle-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.pricing-card.popular {
  border-color: var(--primary);
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.08);
}

.pricing-card.popular::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.pricing-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.pricing-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.4;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  color: var(--text-primary);
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 4px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: #10b981; /* Emerald */
  flex-shrink: 0;
}

.pricing-card .btn {
  margin-top: auto;
  width: 100%;
}

/* Modals & Popovers (using CSS popover API / Dialogs) */
dialog {
  margin: auto;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-secondary);
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 480px;
  width: calc(100% - 32px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  font-family: var(--font-body);
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
}

.dialog-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dialog-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-close-dialog {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-close-dialog:hover {
  color: var(--text-primary);
}

.dialog-body {
  padding: 32px;
}

.checkout-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.checkout-steps::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
}

.checkout-step-line {
  position: absolute;
  top: 14px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  z-index: 2;
  transition: width 0.3s;
}

.checkout-step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f8fafc;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  position: relative;
  z-index: 3;
  transition: var(--transition-fast);
}

.checkout-step.active {
  border-color: var(--primary);
  background: #ffffff;
  color: var(--primary);
}

.checkout-step.completed {
  border-color: #10b981;
  background: #10b981;
  color: white;
}

.checkout-pane {
  display: none;
}

.checkout-pane.active {
  display: block;
}

.checkout-plan-summary {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-plan-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.checkout-plan-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}

.dialog-footer {
  padding: 20px 32px 32px 32px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Provisioning Animation Modal */
.provisioning-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.provisioning-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}

.spinner-ring {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 4px solid var(--primary);
  border-radius: 50%;
  animation: spinner 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: var(--primary) transparent transparent transparent;
}

.spinner-ring:nth-child(1) { animation-delay: -0.45s; }
.spinner-ring:nth-child(2) { animation-delay: -0.3s; }
.spinner-ring:nth-child(3) { animation-delay: -0.15s; }

@keyframes spinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.provisioning-step-log {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  height: 20px;
  transition: opacity 0.3s;
}

/* Alert Notification Banner */
.toast-alert {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 200;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}

.toast-alert.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 20px;
  height: 20px;
}

.toast-icon.success { color: var(--success); }
.toast-icon.error { color: var(--danger); }
.toast-icon.info { color: var(--info); }

.toast-message {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 450px;
  }
  
  .pricing-card.popular {
    transform: scale(1);
  }
  
  .website-builder-layout {
    grid-template-columns: 1fr;
  }
  
  .reports-layout {
    grid-template-columns: 1fr;
  }
  
  .db-row {
    grid-template-columns: 1fr;
  }
  
  .db-sidebar {
    width: 70px;
    padding: 24px 8px;
    align-items: center;
  }
  
  .db-school-name, .db-school-sub, .db-nav-text, .db-sidebar-footer {
    display: none;
  }
  
  .db-school-info {
    margin-bottom: 24px;
    padding: 0;
  }
  
  .db-nav-item button {
    justify-content: center;
    padding: 12px;
  }
  
  .db-nav-item button svg {
    margin: 0;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  header {
    padding: 16px 5%;
  }
  
  nav {
    display: none;
  }
  
  .db-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Contact Form Section */
.contact-section {
  padding: 80px 8%;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  position: relative;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info-column h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.contact-info-column p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-normal);
}

.contact-detail-item:hover .contact-icon-box {
  transform: translateY(-2px);
  background: var(--primary);
  color: #ffffff;
}

.contact-detail-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-detail-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.contact-form-card .form-group {
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
