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

:root {
  --bg-cream: #FDFBF7;
  --bg-card: #FFFFFF;
  --bg-dark: #0F1115;
  --text-dark: #111111;
  --text-muted: #555555;
  --border-color: #000000;
  --border-width: 3px;
  --border-thick: 3px solid var(--border-color);
  --border-medium: 2px solid var(--border-color);
  --shadow-sm: 3px 3px 0px #000000;
  --shadow-md: 5px 5px 0px #000000;
  --shadow-lg: 8px 8px 0px #000000;
  --shadow-hover: 2px 2px 0px #000000;
  
  --yellow: #FFE600;
  --pink: #FF2E93;
  --cyan: #00F0FF;
  --green: #05FFA1;
  --purple: #7B2CBF;
  --orange: #FF6B00;
  --blue: #2563EB;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

img, svg, iframe, video {
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.5;
  background-image: radial-gradient(#000000 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -19px -19px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* MARQUEE TICKER */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--yellow);
  border-bottom: var(--border-thick);
  padding: 8px 0;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  user-select: none;
}

.ticker-content {
  display: inline-block;
  animation: ticker 32s linear infinite;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* HEADER & NAVBAR */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-card);
  border-bottom: var(--border-thick);
}

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

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.logo-badge {
  background: var(--yellow);
  border: var(--border-thick);
  border-radius: var(--radius-sm);
  padding: 2px 10px;
  font-size: 0.78rem;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
}

.nav-link {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: all 0.15s ease;
}

.nav-link:hover {
  background: var(--yellow);
  border: var(--border-medium);
  box-shadow: var(--shadow-sm);
  transform: translate(-2px, -2px);
}

.nav-link.active {
  background: var(--pink);
  color: #fff;
  border: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

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

@media (max-width: 860px) {
  .nav-container {
    padding: 10px 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .logo-brand {
    font-size: 1.15rem;
    gap: 8px;
  }
  .logo-badge {
    font-size: 0.65rem;
    padding: 1px 6px;
  }
  .nav-actions {
    margin-left: auto;
  }
  .nav-actions .btn-maximalist {
    padding: 6px 12px;
    font-size: 0.82rem;
  }
  .nav-links {
    width: 100%;
    order: 3;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 0 2px;
    gap: 6px;
    border-top: 1.5px dashed #e2e8f0;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-link {
    padding: 5px 12px;
    font-size: 0.82rem;
    flex-shrink: 0;
  }
}

.quota-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #E8F5E9;
  color: #1B5E20;
  border: var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.quota-indicator.warning {
  background: #FFF3E0;
  color: #E65100;
}

.quota-indicator .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00E676;
  box-shadow: 0 0 8px #00E676;
}

.btn-maximalist {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  padding: 10px 22px;
  background: var(--yellow);
  color: var(--text-dark);
  border: var(--border-thick);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-maximalist:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lg);
}

.btn-maximalist:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hover);
}

.btn-maximalist.pink {
  background: var(--pink);
  color: #ffffff;
}

.btn-maximalist.cyan {
  background: var(--cyan);
  color: #000;
}

.btn-maximalist.green {
  background: var(--green);
  color: #000;
}

.btn-maximalist.purple {
  background: var(--purple);
  color: #fff;
}

.btn-maximalist.outline {
  background: #fff;
  color: #000;
}

.btn-maximalist.sm {
  font-size: 0.85rem;
  padding: 6px 14px;
  box-shadow: var(--shadow-sm);
}

.btn-maximalist.lg {
  font-size: 1.15rem;
  padding: 14px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* HERO SECTION - MAXIMALIST GEN-Z */
.hero-maximalist {
  padding: 40px 24px 30px;
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan);
  border: var(--border-thick);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transform: rotate(-1.5deg);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
  color: #000;
}

.hero-title .highlight-yellow {
  background: var(--yellow);
  padding: 2px 10px;
  border: var(--border-thick);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: inline-block;
  transform: rotate(1deg);
}

.hero-title .highlight-pink {
  background: var(--pink);
  color: #fff;
  padding: 2px 10px;
  border: var(--border-thick);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: inline-block;
  transform: rotate(-1deg);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 28px;
  font-weight: 600;
}

.hero-stickers {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.sticker {
  background: #fff;
  border: var(--border-thick);
  border-radius: var(--radius-md);
  padding: 8px 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sticker:nth-child(1) { transform: rotate(-2deg); background: #FFF9C4; }
.sticker:nth-child(2) { transform: rotate(2deg); background: #F8BBD0; }
.sticker:nth-child(3) { transform: rotate(-1deg); background: #B2EBF2; }
.sticker:nth-child(4) { transform: rotate(3deg); background: #C8E6C9; }

/* CONTROLS BAR: FILTERS & SEARCH */
.catalog-controls {
  max-width: 1400px;
  margin: 0 auto 32px;
  padding: 0 24px;
}

.controls-card {
  background: #fff;
  border: var(--border-thick);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.controls-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.catalog-heading-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalog-heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
}

.catalog-count-pill {
  background: var(--yellow);
  border: var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-weight: 800;
  font-size: 0.85rem;
}

.search-input-wrap {
  position: relative;
  min-width: 300px;
  flex: 1;
  max-width: 480px;
}

.search-input {
  width: 100%;
  padding: 12px 18px 12px 42px;
  border: var(--border-thick);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  background: #FAF8F5;
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: all 0.15s ease;
}

.search-input:focus {
  background: #fff;
  border-color: #000;
  box-shadow: var(--shadow-md);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
}

.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 16px;
  border: var(--border-medium);
  border-radius: var(--radius-pill);
  background: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.12s ease;
  box-shadow: 2px 2px 0px #000;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-pill:hover {
  background: var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-sm);
}

.filter-pill.active {
  background: #000;
  color: #fff;
  border-color: #000;
  box-shadow: var(--shadow-sm);
}

/* 3-DESIGNS PER ROW GRID (DESKTOP MODE) */
.templates-grid-container {
  max-width: 1400px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.templates-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

/* TABLET BREAKPOINT (2 COLUMNS) */
@media (min-width: 720px) and (max-width: 1023px) {
  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* DESKTOP BREAKPOINT (EXACTLY 3 DESIGNS PER ROW) */
@media (min-width: 1024px) {
  .templates-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* TEMPLATE DESIGN CARD */
.design-card {
  background: #fff;
  border: var(--border-thick);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.design-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-lg);
}

.design-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #111827;
  overflow: hidden;
  border-bottom: var(--border-thick);
}

.design-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
  display: block;
}

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

.card-top-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.category-tag {
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  border: 2px solid #fff;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
}

.price-tag-badge {
  background: var(--yellow);
  color: #000;
  border: var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.design-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.design-card-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #888;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.design-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
  color: #000;
}

.design-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.design-card-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  margin-top: auto;
}

.btn-card-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 10px 14px;
  background: #FFFFFF;
  color: #000;
  border: var(--border-thick);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.12s ease;
  text-align: center;
}

.btn-card-preview:hover {
  background: var(--cyan);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
}

.btn-card-customize {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 10px 14px;
  background: var(--yellow);
  color: #000;
  border: var(--border-thick);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.12s ease;
  text-align: center;
}

.btn-card-customize:hover {
  background: var(--pink);
  color: #fff;
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
}

/* MULTI-DEVICE PREVIEWER (PREVIEW.PHP & MODAL) */
.preview-page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #18191E;
  color: #fff;
}

.preview-topbar {
  background: #0D0E11;
  border-bottom: 2px solid #2A2C35;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.device-switcher-pill {
  background: #20222B;
  border: 2px solid #363945;
  border-radius: var(--radius-pill);
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.device-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.device-btn.active {
  background: var(--yellow);
  color: #000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.preview-viewport-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
  background: radial-gradient(#262833 1px, transparent 1px);
  background-size: 20px 20px;
}

.device-frame-container {
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #000;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 0 8px #2A2C38;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.device-frame-container.desktop {
  width: 1280px;
  max-width: 96%;
  height: 800px;
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8), 0 0 0 6px #363945;
}

.device-frame-container.tablet {
  width: 768px;
  height: 1024px;
  max-height: 85vh;
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8), 0 0 0 12px #2A2C38;
}

.device-frame-container.phone {
  width: 390px;
  height: 844px;
  max-height: 88vh;
  border-radius: 40px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8), 0 0 0 12px #22242D;
}

.device-notch {
  width: 120px;
  height: 22px;
  background: #000;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
  display: none;
}

.device-frame-container.phone .device-notch {
  display: block;
}

.preview-iframe,
.live-preview-iframe,
.device-frame-shell iframe,
.modal-device-frame iframe,
.split-iframe-container iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  flex: 1 1 100% !important;
  border: none !important;
  background: #fff;
  display: block !important;
}

/* SPLIT SCREEN CUSTOMIZER (CUSTOMIZE.PHP) */
.customizer-split-container {
  max-width: 1560px;
  margin: 20px auto 40px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  flex: 1;
}

@media (min-width: 1024px) {
  .customizer-split-container {
    grid-template-columns: 520px 1fr;
    align-items: start;
  }
}

.wizard-panel {
  background: #fff;
  border: var(--border-thick);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.wizard-header {
  background: var(--yellow);
  border-bottom: var(--border-thick);
  padding: 20px;
}

.step-indicator-bar {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.step-progress-segment {
  flex: 1;
  height: 8px;
  background: rgba(0, 0, 0, 0.15);
  border: 1.5px solid #000;
  border-radius: var(--radius-pill);
}

.step-progress-segment.active {
  background: #000;
}

.step-progress-segment.completed {
  background: var(--green);
}

.wizard-body {
  padding: 24px;
}

.step-pane {
  display: none;
}

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

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

.form-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #000;
}

.form-label-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: -4px;
  margin-bottom: 8px;
  display: block;
}

.form-input-text, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  border: var(--border-thick);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  background: #FFFDF8;
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: all 0.15s ease;
}

.form-input-text:focus, .form-textarea:focus, .form-select:focus {
  background: #fff;
  border-color: #000;
  box-shadow: var(--shadow-md);
}

.subdomain-input-box {
  display: flex;
  align-items: center;
  border: var(--border-thick);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  background: #fff;
}

.subdomain-prefix {
  background: #F1F3F5;
  border-right: var(--border-medium);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: #555;
  user-select: none;
}

.subdomain-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  background: transparent;
}

.subdomain-suffix {
  background: var(--yellow);
  border-left: var(--border-medium);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.85rem;
  color: #000;
  user-select: none;
}

.status-badge-box {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: var(--border-medium);
  font-weight: 700;
  font-size: 0.88rem;
  display: none;
  align-items: center;
  gap: 8px;
}

.status-badge-box.available {
  display: flex;
  background: #E8F5E9;
  color: #1B5E20;
  border-color: #2E7D32;
}

.status-badge-box.unavailable {
  display: flex;
  background: #FFEBEE;
  color: #C62828;
  border-color: #C62828;
}

/* ADD-ON CHECKBOX CARDS */
.addon-selection-card {
  border: var(--border-thick);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
  transition: all 0.15s ease;
}

.addon-selection-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
}

.addon-selection-card.selected {
  background: #FFF9C4;
  border-color: #000;
}

.addon-checkbox {
  width: 22px;
  height: 22px;
  accent-color: #000;
  margin-top: 3px;
  cursor: pointer;
}

.addon-info-wrap {
  flex: 1;
}

.addon-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.addon-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
}

.addon-price-badge {
  background: var(--yellow);
  border: var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  font-weight: 900;
  font-size: 0.8rem;
}

/* LIVE PREVIEW SPLIT STAGE */
.split-preview-stage {
  background: #111319;
  border: var(--border-thick);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 820px;
  position: sticky;
  top: 90px;
}

.split-preview-toolbar {
  background: #1F222E;
  border-bottom: 2px solid #333644;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.split-iframe-container {
  flex: 1;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}

/* IN-HOUSE PAYMENT STYLES */
.payment-summary-box {
  background: #FFFDF8;
  border: var(--border-thick);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.summary-total {
  border-top: var(--border-medium);
  margin-top: 10px;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
}

.payment-method-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.payment-method-tile {
  border: var(--border-thick);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  cursor: pointer;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.payment-method-tile.selected {
  background: var(--yellow);
  box-shadow: var(--shadow-md);
  transform: translate(-2px, -2px);
}

.upi-qr-card {
  text-align: center;
  padding: 16px;
  background: #FAF8F5;
  border: var(--border-medium);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.qr-box-img {
  width: 170px;
  height: 170px;
  margin: 10px auto;
  border: var(--border-thick);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 6px;
}

/* FOOTER */
.site-footer {
  margin-top: auto;
  background: #000;
  color: #fff;
  border-top: var(--border-thick);
  padding: 40px 24px 30px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-col-brand h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--yellow);
  margin-bottom: 12px;
  text-transform: uppercase;
}

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

.footer-col ul a {
  color: #AAA;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.footer-col ul a:hover {
  color: var(--yellow);
}

.footer-bottom {
  max-width: 1400px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #777;
}

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

/* TABLETS (Max 1024px) */
@media (max-width: 1024px) {
  .hero-maximalist {
    padding: 32px 20px 24px;
  }
  .catalog-controls {
    padding: 0 20px;
  }
  .templates-grid-container {
    padding: 0 20px;
  }
  .customizer-split-container {
    grid-template-columns: 1fr;
    padding: 0 16px;
    margin: 16px auto 32px;
    gap: 24px;
  }
  .split-preview-stage {
    position: static;
    height: 540px;
    max-height: 75vh;
  }
  .device-frame-container.desktop {
    width: 100%;
    height: 650px;
  }
  .device-frame-container.tablet {
    width: 100%;
    max-width: 680px;
    height: 750px;
  }
  .device-frame-container.phone {
    width: 100%;
    max-width: 380px;
    height: 680px;
  }
}

/* SMARTPHONES & SMALL TABLETS (Max 768px) */
@media (max-width: 768px) {
  /* Ticker */
  .ticker-wrap {
    font-size: 0.82rem;
    padding: 6px 0;
  }

  /* Hero Section */
  .hero-maximalist {
    padding: 24px 14px 20px;
  }
  .hero-pill-badge {
    font-size: 0.76rem;
    padding: 4px 12px;
    margin-bottom: 12px;
  }
  .hero-title {
    font-size: clamp(1.85rem, 8vw, 2.7rem);
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin-bottom: 12px;
  }
  .hero-title .highlight-yellow,
  .hero-title .highlight-pink {
    padding: 2px 6px;
    margin: 2px 0;
    box-shadow: 2px 2px 0px #000;
  }
  .hero-subtitle {
    font-size: 0.94rem;
    margin-bottom: 18px;
    padding: 0 4px;
  }
  .hero-stickers {
    gap: 8px;
    margin-bottom: 20px;
  }
  .sticker {
    padding: 6px 12px;
    font-size: 0.78rem;
    border-width: 2px;
    box-shadow: 2px 2px 0px #000;
  }

  /* Catalog Controls Bar */
  .catalog-controls {
    padding: 0 14px;
    margin-bottom: 20px;
  }
  .controls-card {
    padding: 14px;
    gap: 12px;
  }
  .controls-row-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .catalog-heading-wrap {
    justify-content: space-between;
    width: 100%;
  }
  .catalog-heading {
    font-size: 1.25rem;
  }
  .catalog-count-pill {
    font-size: 0.75rem;
    padding: 2px 8px;
  }
  .search-input-wrap {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .search-input {
    padding: 10px 14px 10px 38px;
    font-size: 0.9rem;
  }
  .filter-pills-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
  }
  .filter-pills-row::-webkit-scrollbar {
    display: none;
  }
  .filter-pill {
    padding: 6px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Templates Grid */
  .templates-grid-container {
    padding: 0 14px;
    margin-bottom: 40px;
  }
  .templates-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .design-card-body {
    padding: 16px;
  }
  .design-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .design-card-actions .btn-maximalist,
  .design-card-actions .btn-card-preview {
    padding: 8px 6px;
    font-size: 0.82rem;
    text-align: center;
    justify-content: center;
    white-space: normal;
  }

  /* Customizer Specifics */
  .customizer-nav {
    padding: 10px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .customizer-nav > div:first-child {
    flex-wrap: wrap;
    gap: 8px !important;
  }
  .customizer-nav > div:last-child {
    justify-content: space-between;
    width: 100%;
  }
  .customizer-split-container {
    padding: 0 12px;
    margin: 12px auto 28px;
    gap: 16px;
  }
  .wizard-body {
    padding: 16px 12px;
  }
  .wizard-header {
    padding: 14px 12px;
  }
  .split-preview-stage {
    height: 460px;
    max-height: 70vh;
  }

  /* Subdomain Input Adaptiveness */
  .subdomain-input-box {
    flex-direction: column;
    align-items: stretch;
  }
  .subdomain-prefix {
    border-right: none;
    border-bottom: 2px solid #000;
    padding: 8px 10px;
    font-size: 0.8rem;
    background: #f1f5f9;
  }
  .subdomain-input {
    padding: 10px 12px;
    font-size: 1rem;
    width: 100%;
  }
  .subdomain-suffix {
    border-left: none;
    border-top: 2px solid #000;
    padding: 8px 10px;
    font-size: 0.8rem;
    text-align: right;
    background: #f1f5f9;
    word-break: break-all;
  }

  /* Form Grids */
  .form-row-2col,
  .milestone-row-inputs,
  .surprise-btn-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* Footer */
  .site-footer {
    padding: 30px 16px 20px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* COMPACT SMARTPHONES (Max 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .btn-maximalist.lg {
    padding: 10px 16px;
    font-size: 0.95rem;
  }
  .customizer-section-card {
    padding: 12px 10px;
  }
  .addon-selection-card {
    padding: 12px 10px;
    gap: 10px;
  }
  .addon-title {
    font-size: 0.92rem;
  }
  .addon-price-badge {
    font-size: 0.74rem;
    padding: 2px 6px;
  }
}
