@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Righteous&display=swap');

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary: #3b82f6;
  --cta: #f97316;
  --cta-hover: #ea580c;
  --bg: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --info: #0ea5e9;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --font-header: 'Righteous', cursive;
  --font-body: 'Poppins', sans-serif;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: normal;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

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

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

button, .btn {
  font-family: var(--font-body);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-cta {
  background: var(--cta);
  color: white;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.btn-cta:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

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

.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Layout */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-header);
  font-size: 1.5rem;
  color: var(--primary);
  user-select: none;
}

.logo svg {
  fill: var(--cta);
  width: 28px;
  height: 28px;
  transition: var(--transition);
}

.logo:hover svg {
  transform: rotate(-15deg) scale(1.1);
}

/* Mobile hamburger toggle (hidden once the full nav fits, see min-width query) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--text);
  padding: 0;
  cursor: pointer;
}

/* Collapsible mobile menu holding both the nav links and auth buttons */
.nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 20px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 20px;
}

.nav-panel.open {
  display: flex;
}

.nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  position: relative;
}

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

.nav-links a:hover {
  color: var(--cta);
}

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

.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.auth-buttons .btn {
  width: 100%;
}

main {
  min-height: calc(100vh - 80px - 200px);
}

/* Sections */
section {
  padding: 56px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section (mobile-first: single stacked column, centered) */
.hero-section {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  text-align: center;
  gap: 32px;
  padding-top: 24px;
  padding-bottom: 48px;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 7vw, 3.8rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--cta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.hero-buttons .btn {
  width: 100%;
}

.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-container::before {
  content: '';
  position: absolute;
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(248, 250, 252, 0) 70%);
  z-index: -1;
}

.hero-image {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 4px solid white;
  transform: rotate(2deg);
  transition: var(--transition);
}

.hero-image:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.15);
}

/* Section Common Headers */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  color: var(--text);
  margin-bottom: 12px;
}

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

/* Interactive Soundboard / Samples Section */
.samples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.sample-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.sample-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--primary);
}

.sample-card.orange::after { background: var(--cta); }
.sample-card.green::after { background: var(--success); }
.sample-card.purple::after { background: #8b5cf6; }

.sample-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}

.sample-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dog-avatar {
  font-size: 2.2rem;
  background: var(--bg);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
}

.sample-info h3 {
  font-family: var(--font-header);
  font-size: 1.3rem;
  color: var(--text);
}

.sample-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.sample-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 600;
  border: 1px solid var(--border);
}

.sample-lyrics {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
  background: #f8fafc;
  padding: 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid #cbd5e1;
  flex-grow: 1;
}

/* Custom Audio Player */
.audio-player-container {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
}

.play-btn {
  background: var(--primary);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.play-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

.sample-card.orange .play-btn { background: var(--cta); }
.sample-card.orange .play-btn:hover { background: var(--cta-hover); }

.audio-progress-bar {
  flex-grow: 1;
  height: 6px;
  background: #cbd5e1;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.audio-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--primary);
  transition: width 0.1s linear;
}

.sample-card.orange .audio-progress { background: var(--cta); }

.audio-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  width: 32px;
  text-align: right;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pricing-card.popular {
  border-color: var(--cta);
}

.badge-popular {
  position: absolute;
  top: -16px;
  right: 32px;
  background: var(--cta);
  color: white;
  padding: 6px 16px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-card:hover {
  box-shadow: var(--shadow-xl);
}

.pricing-card.popular:hover {
  transform: translateY(-4px);
}

.pricing-header h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-header);
  font-size: 3rem;
  color: var(--text);
}

.price span {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.pricing-features svg {
  width: 20px;
  height: 20px;
  fill: var(--success);
  flex-shrink: 0;
}

.pricing-card button {
  width: 100%;
  margin-top: 12px;
}

/* How It Works Steps */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  position: relative;
}

.step-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
}

.step-number {
  background: var(--primary);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-header);
  font-size: 1.8rem;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.step-card.orange .step-number {
  background: var(--cta);
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.step-card h3 {
  font-size: 1.3rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 240px;
}

/* App Views / Single Page Routing */
.app-view {
  display: none;
  animation: fadeIn 0.4s ease;
}

.app-view.active {
  display: block;
}

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

/* Card Component (Forms / Auth) */
.auth-container, .form-container {
  max-width: 480px;
  margin: 32px auto;
  padding: 28px 20px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-xl);
}

.auth-header, .form-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h2, .form-header h2 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

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

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

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

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

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

/* Personality trait / signature sound chip selectors */
.trait-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trait-group-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.trait-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trait-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 100px;
  border: 2px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.trait-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.trait-chip:has(input:checked) {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.trait-chip:has(input:disabled:not(:checked)) {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Vibe selection cards */
.vibe-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.vibe-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 12px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.vibe-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.vibe-card:has(input:checked) {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.vibe-card.suggested::before {
  content: '✨ Suggested';
  position: absolute;
  top: -10px;
  right: 8px;
  background: var(--success, #16a34a);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-footer a {
  font-weight: 600;
}

/* Stripe Simulator Modal/View */
.checkout-container {
  max-width: 560px;
  margin: 32px auto;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.checkout-summary {
  background: var(--primary);
  color: white;
  padding: 24px 20px;
}

.checkout-summary h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.checkout-summary p {
  opacity: 0.9;
  font-size: 0.95rem;
}

.checkout-price {
  font-family: var(--font-header);
  font-size: 2.2rem;
  margin-top: 16px;
}

.checkout-body {
  padding: 24px 20px;
}

.credit-card-inputs {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-num-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-num-row svg {
  width: 32px;
  height: 24px;
  fill: var(--text-muted);
}

.card-num-row input {
  border: none;
  outline: none;
  font-size: 1.1rem;
  width: 100%;
  letter-spacing: 2px;
}

.card-meta-row {
  display: flex;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.card-meta-row input {
  border: none;
  outline: none;
  font-size: 0.95rem;
  width: 50%;
}

.checkout-btn {
  width: 100%;
}

/* Processing Screen overlay */
.processing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.85);
  z-index: 1000;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  gap: 20px;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--cta);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

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

/* Multi-step Stepper for Dashboard */
.stepper-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 24px auto;
  position: relative;
  padding: 0 10px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.stepper-line {
  position: absolute;
  height: 4px;
  background: var(--border);
  left: 10%;
  right: 10%;
  top: 20px;
  z-index: 1;
}

.stepper-line-progress {
  position: absolute;
  height: 100%;
  width: 0%;
  background: var(--success);
  transition: width 0.4s ease;
}

.step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--text-muted);
  transition: var(--transition);
}

.step-node.completed .step-circle {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.step-node.active .step-circle {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.15);
}

.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  width: 80px;
  transition: var(--transition);
}

.step-node.active .step-label {
  color: var(--primary);
}

.step-node.completed .step-label {
  color: var(--success);
}

/* Customer Dashboard Detail Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 28px;
}

.dashboard-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}

.dashboard-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-item label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.info-item p {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
}

.info-item .tags-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.jingle-ready-box {
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.1), white);
  border: 2px dashed var(--success);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.jingle-ready-box h4 {
  font-size: 1.5rem;
  color: var(--success);
}

.jingle-ready-box .large-player {
  width: 100%;
  max-width: 400px;
  margin: 12px 0;
}

.lyrics-display {
  white-space: pre-line;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  background: #f8fafc;
  padding: 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--success);
  text-align: left;
  width: 100%;
}

/* Admin Dashboard Table */
.admin-header-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-card label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.stat-card p {
  font-family: var(--font-header);
  font-size: 2.2rem;
  color: var(--primary);
}

.stat-card.orange p { color: var(--cta); }
.stat-card.success p { color: var(--success); }

.admin-table-container {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow-x: auto;
}

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

th, td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg);
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

tr:hover td {
  background: #f8fafc;
}

.status-badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge.placed { background: #cbd5e1; color: var(--text-muted); }
.status-badge.paid { background: #d0e1fd; color: var(--primary); }
.status-badge.questionnaire { background: #fef3c7; color: var(--warning); }
.status-badge.composing { background: #e0f2fe; color: var(--info); }
.status-badge.ready { background: #d1fae5; color: var(--success); }

/* Details Drawer or Modal overlay for Admin */
.admin-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.admin-modal-content {
  background: white;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
}

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

.admin-modal-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

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

/* File Upload drag and drop zone */
.file-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.file-upload-zone:hover, .file-upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}

.file-upload-zone svg {
  width: 48px;
  height: 48px;
  fill: var(--text-muted);
}

.file-upload-zone.has-file {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.05);
}

.file-upload-zone.has-file svg {
  fill: var(--success);
}

/* Email log mock view */
.email-log-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 16px;
}

.email-log-item {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 0.85rem;
}

.email-log-item:last-child {
  border: none;
}

/* Footer styling */
footer {
  background: var(--text);
  color: #94a3b8;
  padding: 40px 20px 24px;
  border-top: 1px solid #334155;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 32px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  color: #94a3b8;
  font-size: 0.95rem;
}

.footer-col ul a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid #334155;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  font-size: 0.85rem;
}

/* Long-form legal pages (Terms, Privacy, Refund Policy) */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content .updated-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 20px;
  margin-bottom: 8px;
}

.legal-content p {
  color: var(--text);
  margin-bottom: 14px;
}

.legal-content ul, .legal-content ol {
  color: var(--text);
  margin: 0 0 14px 20px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  font-weight: 600;
}

/* Responsive (mobile-first: base styles above target small screens,
   these min-width queries progressively layer on tablet/desktop enhancements) */
@media (min-width: 640px) {
  section {
    padding: 72px 24px;
  }

  .hero-buttons {
    flex-direction: row;
    width: auto;
  }
  .hero-buttons .btn {
    width: auto;
  }

  .auth-container, .form-container {
    margin: 60px auto;
    padding: 40px 32px;
  }

  .checkout-container {
    margin: 60px auto;
  }
  .checkout-summary {
    padding: 32px;
  }
  .checkout-body {
    padding: 32px;
  }

  .pricing-card.popular {
    transform: scale(1.05);
  }
  .pricing-card.popular:hover {
    transform: scale(1.05) translateY(-4px);
  }

  .admin-header-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Full nav fits inline from here up; collapse back to the hamburger below it */
@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }
  .nav-panel {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    margin-left: 40px;
    gap: 40px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
  }
  .nav-links {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }
  .auth-buttons {
    flex-direction: row;
    align-items: center;
    width: auto;
  }
  .auth-buttons .btn {
    width: auto;
  }
}

@media (min-width: 968px) {
  section {
    padding: 80px 24px;
  }

  .hero-section {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    gap: 48px;
    padding-top: 40px;
    padding-bottom: 80px;
  }
  .hero-content p {
    margin-left: 0;
    margin-right: 0;
  }
  .hero-buttons {
    justify-content: flex-start;
  }

  .dashboard-grid {
    grid-template-columns: 1fr 1.5fr;
  }
  .dashboard-card {
    padding: 32px;
  }

  .admin-modal-body {
    grid-template-columns: 1.2fr 1fr;
    padding: 32px;
  }
  .admin-modal-header {
    padding: 24px;
  }
}
