/* ==========================================================================
   BEXOVA.WORK — ULTRA-SIMPLE DAYLIGHT MINIMALIST THEME
   Focused, uncluttered, intuitive UI/UX
   Palette: Bright Sky Blue • Fluffy Clouds • Pure White • Electric Neon Lime (#d4ff00)
   Typography: Plus Jakarta Sans
   ========================================================================== */

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

/* ===== 1. DESIGN TOKENS ===== */
:root {
  --neon-lime: #d4ff00;
  --neon-lime-hover: #c4f000;
  --neon-lime-soft: rgba(212, 255, 0, 0.2);
  
  --sky-deep: #0284c7;
  --sky-bright: #38bdf8;
  --sky-light: #e0f2fe;
  
  --dark-heading: #090d16;
  --dark-text: #1e293b;
  --dark-muted: #64748b;
  --dark-subtle: #94a3b8;
  
  --bg-page: #ffffff;
  --bg-soft: #f8fafc;
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-card: rgba(15, 23, 42, 0.07);
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 14px 35px -10px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 20px 40px -12px rgba(2, 132, 199, 0.16);
  --shadow-hero-card: 0 25px 60px -15px rgba(2, 60, 110, 0.2), 0 4px 16px rgba(0, 0, 0, 0.04);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --transition-fast: 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== 2. RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-page);
}

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

a {
  color: inherit;
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: all var(--transition-fast);
}

a:focus, button:focus,
a:focus-visible, button:focus-visible {
  outline: none !important;
}

input, select, textarea {
  font-family: inherit;
  outline: none;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* ===== 3. MINIMAL PILL NAVBAR ===== */
header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 16px;
  pointer-events: none;
}

.header-top {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  pointer-events: auto;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-pill);
  padding: 6px 8px 6px 14px;
  min-height: 52px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  outline: none !important;
  border: none !important;
  text-decoration: none;
  user-select: none;
  padding: 2px 4px;
}

.logo a:focus, .logo a:active, .logo a:visited {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-text {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--dark-heading);
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.brand-text span {
  color: var(--sky-deep);
}

nav {
  display: flex;
  align-items: center;
  flex-shrink: 1;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

nav li {
  white-space: nowrap;
  flex-shrink: 0;
}

nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark-muted);
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  display: inline-block;
  outline: none;
  transition: all var(--transition-fast);
}

nav a:hover, nav a.active {
  color: var(--dark-heading);
  background: rgba(2, 132, 199, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  white-space: nowrap;
  outline: none;
  transition: all var(--transition-fast);
}

.btn-pill-lime {
  background: var(--neon-lime);
  color: #090d16;
  box-shadow: 0 4px 12px rgba(212, 255, 0, 0.35);
  font-weight: 800;
}

.btn-pill-lime:hover {
  background: var(--neon-lime-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212, 255, 0, 0.45);
}

.btn-pill-glass {
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark-heading);
  border: 1px solid var(--border-subtle);
}

.btn-pill-glass:hover {
  background: #ffffff;
  color: var(--sky-deep);
  transform: translateY(-1px);
}

.btn-pill-dark {
  background: var(--dark-heading);
  color: #ffffff;
}

.btn-pill-dark:hover {
  background: #000000;
  transform: translateY(-1px);
}

.user-badge-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.06);
  padding: 4px 10px 4px 5px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.user-badge-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sky-deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.mobile-menu {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.05);
  color: var(--dark-heading);
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.mobile-menu:hover, .mobile-menu:active {
  background: rgba(15, 23, 42, 0.12);
  transform: scale(1.05);
}

/* Backward compatibility for existing buttons */
.btn-poster {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
}

.btn-poster-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

.btn-poster-primary, .btn-poster-yellow {
  background: var(--neon-lime);
  color: #090d16;
  box-shadow: 0 4px 12px rgba(212, 255, 0, 0.35);
  font-weight: 800;
}

.btn-poster-primary:hover, .btn-poster-yellow:hover {
  background: var(--neon-lime-hover);
  transform: translateY(-2px);
}

.btn-poster-light {
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark-heading);
  border: 1px solid var(--border-subtle);
}

/* ===== 4. ULTRA-SIMPLE HERO SECTION ===== */
.panel-hero-simple {
  position: relative;
  background: var(--sky-deep);
  background-image: url('/images/hero-sky-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding-top: 125px;
  padding-bottom: 70px;
  color: #ffffff;
}

.panel-hero-simple::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 60%, #ffffff 100%);
  pointer-events: none;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.hero-simple-title {
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(2, 60, 110, 0.25);
}

.hero-simple-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.5;
  text-shadow: 0 1px 6px rgba(2, 60, 110, 0.2);
}

.hero-simple-sub code {
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Central Hero Action Card */
.hero-action-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hero-card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 24px;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.slug-search-card {
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px 5px 4px 16px;
  transition: all var(--transition-fast);
}

.slug-search-card:focus-within {
  background: #ffffff;
  border-color: var(--sky-deep);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.slug-domain-prefix {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dark-heading);
  user-select: none;
}

.slug-domain-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-heading);
  padding: 6px 10px;
}

.slug-domain-input::placeholder {
  color: var(--dark-subtle);
}

/* Clean Dropzone */
.upload-dropzone-clean {
  margin-top: 16px;
  background: var(--bg-soft);
  border: 2px dashed rgba(2, 132, 199, 0.35);
  border-radius: var(--radius-md);
  padding: 26px 18px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.upload-dropzone-clean:hover, .upload-dropzone-clean.dragover {
  background: rgba(2, 132, 199, 0.04);
  border-color: var(--sky-deep);
}

.drop-icon {
  font-size: 32px;
  margin-bottom: 6px;
}

.drop-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-heading);
  margin-bottom: 4px;
}

.drop-sub {
  font-size: 0.85rem;
  color: var(--dark-muted);
  max-width: 440px;
  margin: 0 auto 16px;
}

.drop-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-heading);
  flex-wrap: wrap;
}

/* ===== 5. THREE SIMPLE STEPS ===== */
.simple-steps-section {
  padding: 60px 0 40px;
  background: #ffffff;
}

.simple-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.simple-step-item {
  background: var(--bg-soft);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition-smooth);
}

.simple-step-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: rgba(2, 132, 199, 0.2);
}

.step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--neon-lime);
  color: #090d16;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 0.95rem;
}

.simple-step-item h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark-heading);
  margin-bottom: 6px;
}

.simple-step-item p {
  font-size: 0.85rem;
  color: var(--dark-muted);
  line-height: 1.45;
}

/* ===== 6. STUDENT GRANT BANNER ===== */
.student-grant-section {
  padding: 20px 0 60px;
}

.student-grant-card {
  background: linear-gradient(135deg, #090d16 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-card);
}

.grant-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--neon-lime);
  margin-bottom: 6px;
}

.student-grant-card h2 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}

.student-grant-card p {
  font-size: 0.88rem;
  color: var(--dark-subtle);
}

/* ===== 7. STUDIO & DASHBOARD VIEWS ===== */
.app-view {
  display: none;
}

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

.first-panel-offset {
  min-height: 100vh;
}

.studio-modern-container {
  padding-top: 95px;
  padding-bottom: 50px;
}

.studio-workspace-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.studio-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 10px;
}

.device-switcher-pill {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 2px;
}

.device-btn {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark-muted);
}

.device-btn.active {
  background: var(--dark-heading);
  color: #ffffff;
}

.studio-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
}

.studio-editor-pane {
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.studio-code-textarea {
  flex: 1;
  width: 100%;
  border: none;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  background: #090d16;
  color: #e2e8f0;
  resize: none;
  line-height: 1.5;
}

.studio-code-textarea::placeholder {
  color: #64748b;
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.studio-preview-pane {
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.preview-screen-wrapper, .preview-frame-wrapper {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  width: 100%;
  height: 540px;
  max-width: 100%;
  overflow: hidden;
  transition: all 0.25s ease;
  margin: 0 auto;
}

.preview-screen-wrapper iframe, .preview-frame-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.preview-screen-wrapper.desktop, .preview-frame-wrapper.desktop {
  max-width: 100%;
  height: 540px;
}

.preview-screen-wrapper.tablet, .preview-frame-wrapper.tablet {
  max-width: 768px;
  height: 540px;
}

.preview-screen-wrapper.mobile, .preview-frame-wrapper.mobile {
  max-width: 375px;
  height: 560px;
}

/* Dashboard View */
.dashboard-modern-container {
  padding-top: 100px;
  padding-bottom: 60px;
}

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

.dash-stat-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  padding: 20px;
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  padding: 20px 14px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.active {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Avoids top clipping in flexbox on tall modals */
}

.modal-content-card, .cutout-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: auto;
  position: relative;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-head {
  padding: 16px 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
  background: #ffffff;
  z-index: 2;
}

.modal-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--dark-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.modal-tabs {
  display: flex;
  padding: 3px;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  margin: 14px 20px 0;
  flex-shrink: 0;
}

.modal-tab-btn {
  flex: 1;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dark-muted);
  text-align: center;
}

.modal-tab-btn.active {
  background: #ffffff;
  color: var(--dark-heading);
  box-shadow: var(--shadow-sm);
}

.modal-body {
  padding: 18px 20px 24px;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0 !important;
  max-height: 100%;
}

/* Custom scrollbars for modals */
.modal-body::-webkit-scrollbar,
.modal-overlay::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track,
.modal-overlay::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.04);
  border-radius: 999px;
}

.modal-body::-webkit-scrollbar-thumb,
.modal-overlay::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.modal-body::-webkit-scrollbar-thumb:hover,
.modal-overlay::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Modal Action Buttons: Prevent text overflow and ensure clean wrapping */
.modal-body button,
.modal-body .btn-pill,
#submitSignupBtn,
#loginForm button[type="submit"],
#completePaymentBtn {
  white-space: normal !important;
  text-align: center;
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: break-word;
  padding: 12px 18px !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ============================================================
   Sleek Account Type Choice Cards (Modern Daylight Minimalist)
   ============================================================ */
.signup-choice-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  user-select: none;
  box-sizing: border-box;
}

.signup-choice-card:hover,
.signup-choice-card:focus-visible {
  transform: translateY(-2px);
  border-color: #94a3b8;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.signup-choice-card:active {
  transform: scale(0.985);
}

.signup-choice-card.featured {
  border-color: #c4f000;
  background: linear-gradient(180deg, #fdfff2 0%, #ffffff 100%);
  box-shadow: 0 4px 16px rgba(212, 255, 0, 0.2);
}

.signup-choice-card.featured:hover,
.signup-choice-card.featured:focus-visible {
  border-color: #9ee600;
  box-shadow: 0 8px 26px rgba(212, 255, 0, 0.35);
}

.choice-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.signup-choice-card:hover .choice-icon-wrap {
  transform: scale(1.08);
}

.choice-content {
  flex: 1;
  min-width: 0;
}

.choice-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.choice-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dark-heading, #0f172a);
}

.choice-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.choice-desc {
  font-size: 0.79rem;
  color: var(--dark-muted, #64748b);
  line-height: 1.38;
  margin: 0;
}

.choice-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.signup-choice-card:hover .choice-arrow {
  background: #0f172a;
  color: #ffffff;
  transform: translateX(3px);
}

.signup-choice-card.featured .choice-arrow {
  background: #eefdc4;
  color: #0f172a;
}

.signup-choice-card.featured:hover .choice-arrow {
  background: #0f172a;
  color: #ffffff;
}

/* ============================================================
   Student Verification OTP & Account Duplicate Prevention
   ============================================================ */
.student-otp-box {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  margin-top: 10px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  animation: fadeInDown 0.25s ease;
}

.student-otp-input {
  letter-spacing: 6px;
  font-weight: 800;
  font-size: 1.15rem;
  text-align: center;
  font-family: var(--font-mono);
  background: #ffffff !important;
  color: #0f172a !important;
}

.student-already-registered-box {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 10px;
  animation: fadeInDown 0.25s ease;
}

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

.student-choice-btn {
  flex: 1;
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.student-choice-btn.active {
  background: var(--neon-lime) !important;
  color: #090d16 !important;
  border-color: var(--neon-lime) !important;
  box-shadow: 0 4px 12px rgba(212, 255, 0, 0.35) !important;
  font-weight: 800 !important;
}

.form-group-clean, .form-group {
  margin-bottom: 14px;
}

.form-label-clean, .form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark-heading);
  margin-bottom: 5px;
}

.form-input-clean, .input-poster {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--dark-heading);
  transition: all var(--transition-fast);
}

.form-input-clean:focus, .input-poster:focus {
  background: #ffffff;
  border-color: var(--sky-deep);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

/* Toast Container */
#toastContainer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #ffffff;
  color: var(--dark-heading);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.86rem;
  font-weight: 600;
}

/* Mobile Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: -320px;
  width: min(300px, 85vw);
  height: 100%;
  background: #ffffff;
  z-index: 2500;
  box-shadow: -10px 0 25px rgba(0, 0, 0, 0.1);
  transition: right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sidebar.active {
  right: 0;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-muted);
  padding: 8px 10px;
}

/* Minimal Footer */
footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0 24px;
  font-size: 0.85rem;
}

.footer-simple-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links-simple {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--dark-muted);
  font-weight: 600;
}

.footer-links-simple a:hover {
  color: var(--sky-deep);
}

/* Cards & Layout Helper Classes */
.pricing-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pricing-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.portfolio-list-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.showcase-flyer-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-smooth);
}

.showcase-flyer-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(2, 132, 199, 0.25);
}

/* Legal & Static Pages */
.legal-container {
  max-width: 960px;
  margin: 30px auto 60px;
  padding: 0 20px;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE SYSTEM
   ========================================================================== */

/* Breakpoint 1: Tablets & Small Desktops (<= 960px) */
@media (max-width: 960px) {
  nav {
    display: none !important;
  }

  .mobile-menu {
    display: flex !important;
  }

  .simple-steps-grid {
    grid-template-columns: 1fr;
  }

  .student-grant-card {
    text-align: center;
    justify-content: center;
  }

  .studio-split-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .studio-editor-pane {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .studio-code-textarea {
    height: 320px;
    min-height: 250px;
  }

  .studio-preview-pane {
    min-height: 480px;
    height: 500px;
  }
}

/* Breakpoint 2: Large Mobile & Tablets (<= 768px) */
@media (max-width: 768px) {
  header {
    top: 10px;
    padding: 0 10px;
  }

  .header-container {
    padding: 4px 8px 4px 12px;
    min-height: 48px;
    gap: 8px;
  }

  .logo-mark {
    width: 28px;
    height: 28px;
  }

  .brand-text {
    font-size: 1.05rem;
  }

  #navLoginBtn {
    display: none !important;
  }

  .panel-hero-simple {
    padding-top: 85px;
    padding-bottom: 45px;
  }

  .hero-simple-title {
    font-size: clamp(1.8rem, 6.5vw, 2.8rem);
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin-bottom: 10px;
  }

  .hero-simple-sub {
    font-size: clamp(0.92rem, 3.2vw, 1.15rem);
    margin: 0 auto 20px;
    padding: 0 8px;
  }

  .studio-modern-container,
  .dashboard-modern-container,
  #viewShowcase {
    padding-top: 85px;
    padding-bottom: 40px;
  }

  .pricing-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .preview-screen-wrapper,
  .preview-frame-wrapper,
  .preview-screen-wrapper.tablet,
  .preview-frame-wrapper.tablet,
  .preview-screen-wrapper.mobile,
  .preview-frame-wrapper.mobile {
    max-width: 100% !important;
    min-height: 440px;
    height: 480px !important;
  }

  .sidebar {
    width: min(300px, 85vw);
  }
}

/* Breakpoint 3: Standard Mobile (<= 640px) */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .hero-action-card {
    padding: 18px 14px;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 28px rgba(2, 60, 110, 0.12);
  }

  .hero-trust-row {
    flex-direction: column;
    gap: 6px;
    font-size: 0.8rem;
    margin-top: 18px;
  }

  .hero-trust-row .trust-dot,
  .hero-trust-row span:nth-child(2),
  .hero-trust-row span:nth-child(4) {
    display: none;
  }

  .student-grant-section {
    padding: 10px 0 30px;
  }

  .student-grant-card {
    padding: 22px 18px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    border-radius: 16px;
  }

  .student-grant-card button {
    width: 100%;
    margin-top: 10px;
    justify-content: center;
  }

  .footer-simple-row {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .footer-links-simple {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
  }

  .portfolio-list-card {
    flex-direction: column;
    padding: 18px 16px;
  }

  .portfolio-list-card > div:last-child {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .portfolio-list-card > div:last-child button,
  .portfolio-list-card > div:last-child a {
    flex: 1 1 120px;
    text-align: center;
    justify-content: center;
    font-size: 0.78rem;
    padding: 8px 10px;
  }

  .studio-pages-bar {
    border-radius: var(--radius-md) !important;
    padding: 8px 12px !important;
  }

  #studioPagesTabList {
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .studio-header-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .studio-header-actions .btn-pill {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  .studio-top-bar {
    padding: 10px 12px;
  }

  .legal-container {
    padding: 0 16px;
    margin: 20px auto 40px;
  }

  .legal-hero {
    padding: 24px 18px !important;
  }

  .legal-hero h1 {
    font-size: 1.6rem !important;
  }

  .contact-card, .legal-card {
    padding: 20px 16px !important;
  }
}

/* Breakpoint 4: Compact Mobile (<= 520px) */
@media (max-width: 520px) {
  #navCreatePortfolioBtn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  #userNameDisplay {
    display: none;
  }

  .user-badge-nav {
    padding: 3px 6px;
  }

  .slug-search-card {
    flex-wrap: wrap;
    border-radius: var(--radius-md);
    padding: 8px 10px;
    gap: 6px;
  }

  .slug-domain-prefix {
    font-size: 0.88rem;
    flex-shrink: 0;
  }

  .slug-domain-input {
    min-width: 0;
    flex: 1 1 120px;
    font-size: 16px;
    padding: 4px 6px;
  }

  #checkDomainBtn {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9rem;
    margin-top: 2px;
    justify-content: center;
  }

  .drop-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .drop-actions .btn-pill {
    width: 100%;
    padding: 10px 14px;
    justify-content: center;
  }

  .dash-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #showcaseGrid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .modal-overlay {
    padding: 10px 8px;
  }

  .modal-content-card, .cutout-card {
    border-radius: var(--radius-md);
    max-height: calc(100vh - 16px);
  }

  .modal-head {
    padding: 14px 16px 12px;
  }

  .modal-tabs {
    margin: 10px 16px 0;
  }

  .modal-body {
    padding: 14px 16px 18px;
    overflow-y: auto !important;
    min-height: 0 !important;
  }

  .form-input-clean, .input-poster {
    font-size: 16px;
    padding: 9px 12px;
  }

  .pricing-modal-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .signup-choice-card {
    padding: 12px 14px;
    gap: 10px;
    border-radius: 14px;
  }

  .choice-icon-wrap {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  .choice-title {
    font-size: 0.9rem;
  }

  .choice-desc {
    font-size: 0.76rem;
  }

  .choice-arrow {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .studio-slug-pill {
    max-width: 100%;
  }

  #studioSlugField {
    width: 80px !important;
  }
}

/* Breakpoint 5: Tiny Mobile (<= 380px) */
@media (max-width: 380px) {
  #navCreatePortfolioBtn {
    display: none !important;
  }

  .brand-text {
    font-size: 0.98rem;
  }

  .signup-choice-card {
    padding: 10px 12px;
    gap: 8px;
  }

  .choice-icon-wrap {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
    border-radius: 10px;
  }

  .choice-title {
    font-size: 0.86rem;
  }

  .choice-desc {
    font-size: 0.72rem;
  }

  .hero-action-card {
    padding: 14px 10px;
  }

  .drop-title {
    font-size: 0.98rem;
  }

  .drop-sub {
    font-size: 0.78rem;
  }

  .simple-step-item {
    padding: 16px 12px;
  }
}
