:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #22c55e;
  --bg: #0f172a;
  --bg-soft: #020617;
  --card-bg: #020617;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border: #1f2937;
  --danger: #ef4444;
  --radius-lg: 20px;
  --shadow-soft: 0 22px 50px rgba(15, 23, 42, 0.9);
}

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

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at top left, #1d4ed8 0, transparent 40%),
    radial-gradient(circle at top right, #22c55e 0, transparent 40%),
    #020617;
  color: var(--text-main);
  min-height: 100vh;
}

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

/* Layout shell */

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

/* Header */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: conic-gradient(
    from 140deg,
    #22c55e,
    #2563eb,
    #a855f7,
    #22c55e
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.96);
}

.logo-mark-inner {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 2px solid #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
  position: relative;
  z-index: 1;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

nav a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

nav a:hover {
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.4);
}

nav a.active {
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.7);
}

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

/* Buttons */

.btn {
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.8);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5, #6366f1);
  color: white;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.55);
  transform: translateY(0);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.75);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.9);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  border: 1px solid rgba(75, 85, 99, 0.7);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(148, 163, 184, 0.9);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.96);
}

/* Responsive header */

@media (max-width: 900px) {
  nav {
    display: none;
  }
}

@media (max-width: 640px) {
  header {
    flex-direction: row;
    justify-content: space-between;
  }

  .nav-actions {
    display: none;
  }

  .page {
    padding-inline: 14px;
  }
}

/* Hero + generator layout */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Hero content */

.hero {
  padding-top: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.9);
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-bottom: 18px;
}

.eyebrow-pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.16);
  color: #bbf7d0;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.6rem, 3.4vw + 1.4rem, 3.8rem);
  line-height: 1.02;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}

.hero h1 span.highlight {
  background: linear-gradient(120deg, #22c55e, #22c55e, #4ade80);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 32rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

.divider {
  height: 1px;
  background: radial-gradient(circle, rgba(148, 163, 184, 0.8), transparent);
  opacity: 0.4;
  margin: 28px 0 20px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-stat {
  min-width: 120px;
}

.hero-stat strong {
  display: block;
  font-size: 1.1rem;
  color: #e5e7eb;
}

/* Mini preview under hero buttons */

.hero-inline-preview {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  background: radial-gradient(circle at top left,
      rgba(37, 99, 235, 0.16),
      transparent 55%)
    rgba(15, 23, 42, 0.96);
  max-width: 260px;
}

.hip-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.hip-box {
  width: 120px;
  height: 120px;
  border-radius: 18px;
  background: radial-gradient(circle,
      rgba(15, 23, 42, 0.7),
      #020617);
  border: 1px solid rgba(55, 65, 81, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hip-box canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hip-placeholder {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding: 8px;
}

/* Generator card */

.generator-card {
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.28), transparent 60%),
    radial-gradient(circle at bottom, rgba(34, 197, 94, 0.18), transparent 55%),
    rgba(15, 23, 42, 0.92);
  border-radius: 26px;
  padding: 24px 22px 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.25);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.generator-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.38), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(34, 197, 94, 0.4), transparent 55%);
  opacity: 0.35;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.generator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.generator-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.generator-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.generator-tag {
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.85);
}

.generator-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
}

@media (max-width: 640px) {
  .generator-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Form controls */

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

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-label span.main {
  color: #e5e7eb;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* stacked version for narrow panels (logo tab) */
.form-label-stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.form-label-stacked .sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.input,
.select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(75, 85, 99, 0.85);
  background: rgba(15, 23, 42, 0.96);
  padding: 9px 11px;
  font-size: 0.85rem;
  color: var(--text-main);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.9);
  transition: border-color 0.16s ease, box-shadow 0.16s ease,
    background 0.16s ease;
}

.input:focus,
.select:focus {
  border-color: rgba(59, 130, 246, 0.85);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.9),
    0 0 0 4px rgba(59, 130, 246, 0.25);
  background: rgba(15, 23, 42, 0.98);
}

.input::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

.input-sm,
.select-sm {
  padding: 8px 10px;
  font-size: 0.8rem;
  border-radius: 999px;
}

.inline-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.color-input-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px 2px 4px;
  border-radius: 999px;
  border: 1px solid rgba(75, 85, 99, 0.85);
  background: rgba(15, 23, 42, 0.9);
}

.color-input-wrapper input[type="color"] {
  border: none;
  padding: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.color-input-wrapper span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* File input styling */

#border-upload {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

#border-upload::-webkit-file-upload-button {
  border: none;
  margin-right: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 1);
  color: var(--text-main);
  font-size: 0.78rem;
  cursor: pointer;
}

#border-upload:hover::-webkit-file-upload-button {
  background: rgba(31, 41, 55, 1);
}

.generator-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.btn-generate {
  flex: 1;
  justify-content: center;
}

.muted-helper {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- NEW: Design section (tabs + frames) --- */

.design-section {
  margin-top: 18px;
  padding: 14px 12px 12px;
  border-radius: 18px;
  border: 1px solid rgba(55, 65, 81, 0.8);
  background: rgba(15, 23, 42, 0.95);
}

.design-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.design-step {
  width: 24px;
  height: 24px;
  border-radius: 9px;
  background: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.design-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.design-tabs {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.9);
  padding: 3px;
  margin-bottom: 10px;
}

.design-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.design-tab.active {
  background: white;
  color: #111827;
  font-weight: 500;
}

.design-tab[disabled] {
  opacity: 0.4;
  cursor: default;
}

.design-tab-panel {
  display: none;
}

.design-tab-panel.is-active {
  display: block;
}

.frame-options {
  display: flex;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 2px 4px;
  width: 100%;
  max-width: 100%;
  flex-wrap: nowrap;
  overflow-y: hidden;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.frame-option {
  border: none;
  background: white;
  color: #111827;
  min-width: 88px;
  border-radius: 18px;
  padding: 8px 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.5);
  transition: box-shadow 0.12s ease, transform 0.12s ease,
    border-color 0.12s ease, background 0.12s ease;
  border: 2px solid transparent;
}

.frame-option-inner {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.frame-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.frame-option-label {
  margin-top: 6px;
  font-size: 0.7rem;
  white-space: nowrap;
}

/* Frame thumbnails */

/* "No frame" thumbnail */
.frame-none-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid #9ca3af;
  position: relative;
}
.frame-none-icon::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  border: 2px solid #9ca3af;
  transform: rotate(-35deg);
}

/* Ring previews (red + green) */
.frame-preview-ring,
.frame-preview-ring-green {
  border-radius: 999px;
  background: #ffffff;
  position: relative;
}
.frame-preview-ring::before,
.frame-preview-ring-green::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  border: 4px solid #ef4444; /* default red */
}
.frame-preview-ring-green::before {
  border-color: #22c55e; /* green ring */
}

/* Card previews (blue + dark) */
.frame-preview-card,
.frame-preview-card-dark {
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 0 0 2px #2563eb inset;
}
.frame-preview-card-dark {
  background: #020617;
  box-shadow: 0 0 0 2px #0ea5e9 inset;
}

/* Badge preview */
.frame-preview-badge {
  border-radius: 16px;
  background: #ffffff;
  position: relative;
  box-shadow: 0 0 0 2px #6b7280 inset;
}
.frame-preview-badge::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 26px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #111827;
}

/* Preview area */

.generator-preview {
  background: radial-gradient(
    circle at top,
    rgba(15, 23, 42, 0.55),
    rgba(15, 23, 42, 1)
  );
  border-radius: 20px;
  padding: 12px 10px 14px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.preview-label {
  width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.8);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.preview-box {
  width: 190px;
  height: 190px;
  border-radius: 20px;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.65), #020617);
  border: 1px solid rgba(55, 65, 81, 0.9);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-box canvas,
.preview-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preview-placeholder {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 12px;
}

.preview-footer {
  margin-top: 8px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Status pill */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: linear-gradient(
    120deg,
    rgba(22, 163, 74, 0.18),
    rgba(16, 185, 129, 0.18)
  );
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #bbf7d0;
}

.status-pill.inactive {
  background: rgba(31, 41, 55, 0.85);
  border-color: rgba(55, 65, 81, 0.9);
  color: #e5e7eb;
}

.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
}

.status-pill.inactive .dot {
  background: #6b7280;
}

/* Sections */

section {
  margin-top: 60px;
}

section h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

section p.section-lead {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 32rem;
  margin-bottom: 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.feature-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(31, 41, 55, 1);
}

.feature-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.feature-card h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.feature-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill {
  font-size: 0.7rem;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.9);
  color: var(--text-muted);
}

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pricing-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(31, 41, 55, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.pricing-card.highlighted {
  border-color: rgba(37, 99, 235, 0.9);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.25);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.16);
  color: #bfdbfe;
  border: 1px solid rgba(37, 99, 235, 0.6);
}

.pricing-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.pricing-price {
  font-size: 1.3rem;
  font-weight: 600;
}

.pricing-price span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.pricing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
}

.pricing-list li::before {
  content: "✓";
  font-size: 0.75rem;
  margin-top: 2px;
  color: var(--accent);
}

/* FAQ */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.faq-item {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(31, 41, 55, 1);
}

.faq-item h3 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.faq-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer */

footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(31, 41, 55, 1);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.footer-links a:hover {
  color: #e5e7eb;
}

/* Errors */

.error-text {
  color: var(--danger);
  font-size: 0.78rem;
  margin-top: 4px;
  display: none;
}

.error-text.visible {
  display: block;
}

/* Hidden QR temp container */

#qr-temp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  visibility: hidden;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Logo picker row */

.logo-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 6px;
}

.logo-option {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 999px;
}

.logo-option:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.logo-circle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-option.active .logo-circle {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.6);
}

/* specific logo colors */

.logo-circle-none {
  border: 2px solid #9ca3af;
  position: relative;
}
.logo-circle-none::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  border: 2px solid #9ca3af;
  transform: rotate(-35deg);
}

.logo-circle-whatsapp {
  background: #22c55e;
}

.logo-circle-link {
  background: #7c3aed;
}

.logo-circle-location {
  background: #ef4444;
}

.logo-circle-wifi {
  background: #0ea5e9;
}

.logo-circle-mail {
  background: #eab308;
}

.logo-icon {
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
}

/* Layout for step 2: design + preview (if needed elsewhere) */
.design-layout {
  margin-top: 40px;
}

.design-layout-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .design-layout-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* --- Align generator card vertically with hero text on desktop --- */
@media (min-width: 1024px) {
  .hero-grid {
    /* still a two-column layout, but we control vertical alignment manually */
    align-items: flex-start;
  }

  .generator-card {
    /* push the QR Generator down so it starts below the
       "Create branded QR codes..." + paragraph block */
    margin-top: 90px;   /* tweak this value until it looks perfect */
  }
}
/* Fix: prevent Design tabs from being cut off on the right */
.design-tabs {
  display: flex;
  flex-wrap: wrap;       /* allow tabs to go to a second line if needed */
  gap: 6px;
  width: 100%;
  padding: 0;
  margin-bottom: 10px;
  background: transparent;   /* remove big pill background */
}

.design-tab {
  border: none;
  background: rgba(17, 24, 39, 0.9);  /* each tab is its own pill */
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.design-tab.active {
  background: #ffffff;
  color: #111827;
  font-weight: 500;
}

.design-tab[disabled] {
  opacity: 0.4;
  cursor: default;
}
/* =======================
   Shape style picker (Design your QR → Shape tab)
   ======================= */

.shape-style-block {
  margin-top: 4px;
}

.section-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.section-label-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.section-label-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Row of shape options */

.shape-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 0 2px;
}

.shape-option {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 18px;
  flex: 0 0 auto;
}

.shape-option:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.shape-thumb {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.18);
}

.shape-option.active .shape-thumb {
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.8);
}

/* Inside each thumb we draw a small "mini QR" pattern */

.shape-swatch {
  width: 42px;
  height: 42px;
  background-color: transparent;
}

/* Classic square */
.shape-swatch-classic {
  background-image:
    linear-gradient(90deg, #000 0 10px, transparent 10px 20px, #000 20px 30px, transparent 30px),
    linear-gradient(#000 0 10px, transparent 10px 20px, #000 20px 30px, transparent 30px);
  background-size: 20px 20px;
}

/* Rounded modules */
.shape-swatch-rounded {
  border-radius: 10px;
  background-image:
    radial-gradient(circle, #000 45%, transparent 46%),
    radial-gradient(circle, #000 45%, transparent 46%),
    radial-gradient(circle, #000 45%, transparent 46%),
    radial-gradient(circle, #000 45%, transparent 46%);
  background-position: 0 0, 22px 0, 0 22px, 22px 22px;
  background-size: 22px 22px;
  background-repeat: no-repeat;
}

/* Dot pattern */
.shape-swatch-dots {
  background-image:
    radial-gradient(circle, #000 40%, transparent 41%);
  background-size: 10px 10px;
}

/* Horizontal bars */
.shape-swatch-bars {
  background-image:
    linear-gradient(#000 0 6px, transparent 6px 12px);
  background-size: 100% 12px;
}

/* Vertical lines */
.shape-swatch-lines {
  background-image:
    linear-gradient(90deg, #000 0 6px, transparent 6px 12px);
  background-size: 12px 100%;
}



/* Inset squares */
.shape-swatch-inset {
  background-image:
    linear-gradient(90deg, #000 0 6px, transparent 6px 18px, #000 18px 24px, transparent 24px),
    linear-gradient(#000 0 6px, transparent 6px 18px, #000 18px 24px, transparent 24px);
  background-size: 24px 24px;
}

/* Soft squircle */
.shape-swatch-squircle {
  border-radius: 18px;
  background-image:
    radial-gradient(circle, #000 52%, transparent 53%),
    radial-gradient(circle, #000 52%, transparent 53%),
    radial-gradient(circle, #000 52%, transparent 53%),
    radial-gradient(circle, #000 52%, transparent 53%);
  background-position: 0 0, 22px 0, 0 22px, 22px 22px;
  background-size: 22px 22px;
  background-repeat: no-repeat;
}

/* Diamond */
.shape-swatch-diamond {
  background: #000;
  clip-path: polygon(50% 8%, 92% 50%, 50% 92%, 8% 50%);
}

/* Hex */
.shape-swatch-hex {
  background: #000;
  clip-path: polygon(25% 8%, 75% 8%, 92% 50%, 75% 92%, 25% 92%, 8% 50%);
}

.shape-disclaimer {
  margin-top: 10px;
}

/* =========================================================
   REFERENCE LAYOUT: hero on top, generator below with 3-column feel
   Goal: match the layout in your screenshot:
   - Hero headline spans full width on top
   - Generator card sits below (centered, wider)
   - Inside generator: Controls (left) + Live preview (middle) + Design (right)
   NOTE: This is an override block appended at the end for minimal changes.
   ========================================================= */

@media (min-width: 1024px) {
  /* 1) Stack hero above generator (no side-by-side on desktop) */
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 26px !important;
    align-items: start !important;
  }

  /* 2) Make generator card wider and centered under hero */
  .generator-card {
    margin-top: 18px !important;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
  }

  /* 3) Two main columns inside generator: left controls + right (preview+design) */
  .generator-body {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.25fr) !important;
    gap: 18px !important;
  }

  /* 4) Right side becomes two columns: preview (middle) + design (right) */
  .generator-body > div:last-child {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: start !important;
    min-width: 0;
  }

  /* Remove inline margin-top on Design section when side-by-side */
  .generator-body > div:last-child .design-section {
    margin-top: 0 !important;
    width: 100%;
    max-width: none;
  }

  .generator-body > div:last-child .generator-preview {
    width: 100%;
    max-width: none;
  }

  /* Preview box should scale cleanly inside its column */
  .generator-body > div:last-child .preview-box {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    max-width: none !important;
  }
}

@media (min-width: 1280px) {
  /* Give the page a bit more room so the generator feels like the reference */
  .page {
    max-width: 1320px;
  }

  .generator-card {
    max-width: 1120px;
  }

  .generator-body {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr) !important;
  }
}
/* Swap: Design (center) <-> Live preview (right-most) */
@media (min-width: 1024px) {
  .generator-body > div:last-child {
    grid-template-areas: "design preview";
  }

  .generator-body > div:last-child .design-section {
    grid-area: design;
  }

  .generator-body > div:last-child .generator-preview {
    grid-area: preview;
  }
}
/* =========================================================
   POLISH: Logo upload file input (UPLOAD LOGO)
   - Cleaner pill style to match the rest of the UI
   - Better spacing + hover/focus states
   ========================================================= */

/* Wrapper look for the file input itself */
#logo-upload {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(75, 85, 99, 0.85);
  background: rgba(15, 23, 42, 0.96);
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
}

/* The "Choose File" button part (Chrome/Safari) */
#logo-upload::-webkit-file-upload-button {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(17, 24, 39, 0.95);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 999px;
  margin-right: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

#logo-upload:hover::-webkit-file-upload-button {
  background: rgba(31, 41, 55, 0.98);
  border-color: rgba(148, 163, 184, 0.6);
  transform: translateY(-1px);
}

/* Firefox uses this selector for the button */
#logo-upload::file-selector-button {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(17, 24, 39, 0.95);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 999px;
  margin-right: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

#logo-upload:hover::file-selector-button {
  background: rgba(31, 41, 55, 0.98);
  border-color: rgba(148, 163, 184, 0.6);
  transform: translateY(-1px);
}

#logo-upload:focus {
  border-color: rgba(59, 130, 246, 0.85);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.9),
    0 0 0 4px rgba(59, 130, 246, 0.22);
}

/* Optional: show the filename more cleanly (where browsers allow) */
#logo-upload {
  overflow: hidden;
  text-overflow: ellipsis;
}
.border-color-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
}

#border-color-picker {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #3b82f6;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.2);
}
/* =========================================================
   QRNova PRO Scroller (Frames / Shapes / Logos)
   - Hides native scrollbar
   - Adds premium glass buttons + progress track
   - NO layout changes
   ========================================================= */

/* 1) Hide native scrollbars (Frame/Shape/Logo rows) */
.frame-options,
.shape-row,
.logo-row {
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE/Edge legacy */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.frame-options::-webkit-scrollbar,
.shape-row::-webkit-scrollbar,
.logo-row::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

/* 2) Wrapper that JS injects around each scroller */
.option-scroller {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

/* Make the row feel “premium” with gentle edge fade */
.option-scroller.is-scrollable .frame-options,
.option-scroller.is-scrollable .shape-row,
.option-scroller.is-scrollable .logo-row {
  padding-left: 44px !important;
  padding-right: 44px !important;
  padding-bottom: 16px !important;

  /* Edge fade (no extra DOM) */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0px,
    #000 26px,
    #000 calc(100% - 26px),
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0px,
    #000 26px,
    #000 calc(100% - 26px),
    transparent 100%
  );
}

/* Optional: snap feel (nice on touchpads/mobile) */
.option-scroller.is-scrollable .frame-options,
.option-scroller.is-scrollable .shape-row,
.option-scroller.is-scrollable .logo-row {
  scroll-snap-type: x proximity;
}

.option-scroller .frame-option,
.option-scroller .shape-option,
.option-scroller .logo-option {
  scroll-snap-align: start;
}

/* 3) Premium glass scroll buttons (JS injects these) */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;

  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  color: rgba(229, 231, 235, 0.95);

  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;

  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease,
    opacity 0.16s ease;
  z-index: 5;
}

.scroll-btn:hover {
  transform: translateY(-50%) scale(1.06);
  background: rgba(15, 23, 42, 0.72);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.48),
    0 0 24px rgba(96, 165, 250, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.scroll-btn:active {
  transform: translateY(-50%) scale(0.98);
}

.scroll-btn:disabled {
  opacity: 0.25;
  cursor: default;
  box-shadow: none;
}

.scroll-btn.prev { left: 6px; }
.scroll-btn.next { right: 6px; }

.scroll-btn svg {
  width: 18px;
  height: 18px;
}

/* 4) Premium progress track (JS injects these) */
.scroll-track {
  position: absolute;
  left: 44px;
  right: 44px;
  bottom: 4px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  z-index: 4;
}

.scroll-thumb {
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 18px rgba(96, 165, 250, 0.32);
  transform: translateX(0px);
  transition: transform 0.08s linear, width 0.08s linear;
}

/* Only show buttons/track when actually scrollable */
.option-scroller:not(.is-scrollable) .scroll-btn,
.option-scroller:not(.is-scrollable) .scroll-track {
  display: none;
}

/* 5) Extra micro-polish for tiles (safe, keeps your layout) */
.frame-option {
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease !important;
}

.frame-option:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(96, 165, 250, 0.22) inset;
}

.frame-option.active {
  border-color: rgba(96, 165, 250, 0.75) !important;
  box-shadow:
    0 0 0 3px rgba(96, 165, 250, 0.30),
    0 16px 32px rgba(0, 0, 0, 0.18);
}
/* =========================================================
   QRNova Theme Match Patch — Option Tiles + Scroller UI
   Fixes: white cards mismatch
   Enhances: glass tiles, premium arrows, premium track
   ========================================================= */

/* --- 1) Make Frame/Shape/Logo tiles match dark glass theme --- */
.frame-option,
.shape-option,
.logo-option {
  background: rgba(2, 6, 23, 0.28) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  color: rgba(229, 231, 235, 0.92) !important;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.20),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Inner preview area should not be white */
.frame-option-inner,
.shape-thumb,
.logo-circle {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(148, 163, 184, 0.12) !important;
  box-shadow: 0 10px 22px rgba(0,0,0,0.18) !important;
}

/* Labels: brighter, cleaner */
.frame-option-label {
  color: rgba(229, 231, 235, 0.92) !important;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Hover: lift + subtle glow */
.frame-option:hover,
.shape-option:hover,
.logo-option:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.32) !important;
  box-shadow:
    0 18px 44px rgba(0,0,0,0.28),
    0 0 0 1px rgba(96, 165, 250, 0.12) inset,
    0 0 28px rgba(96, 165, 250, 0.10) !important;
}

/* Active: premium blue glow but still dark */
.frame-option.active,
.shape-option.active,
.logo-option.active {
  background: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(96, 165, 250, 0.70) !important;
  box-shadow:
    0 0 0 3px rgba(96, 165, 250, 0.22),
    0 18px 44px rgba(0,0,0,0.26),
    0 0 46px rgba(59,130,246,0.16) !important;
}

/* Fix: "No frame" icon block also should be dark */
.frame-none-icon {
  opacity: 0.9;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.25));
}

/* --- 2) PRO scroller arrows: subtler, on-theme, auto-hide --- */
.option-scroller .scroll-btn {
  background: rgba(2, 6, 23, 0.45) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  color: rgba(226, 232, 240, 0.92) !important;

  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255,255,255,0.04) inset !important;

  opacity: 0.0;                 /* hidden by default */
  transform: translateY(-50%) scale(0.98);
  transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

/* show on hover (desktop) */
.option-scroller.is-scrollable:hover .scroll-btn {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* show on keyboard focus too (accessibility) */
.option-scroller .scroll-btn:focus-visible {
  opacity: 1;
  outline: none;
  box-shadow:
    0 0 0 3px rgba(96, 165, 250, 0.25),
    0 14px 34px rgba(0,0,0,0.45) !important;
}

.option-scroller .scroll-btn:hover {
  background: rgba(2, 6, 23, 0.62) !important;
  box-shadow:
    0 18px 44px rgba(0,0,0,0.55),
    0 0 24px rgba(96, 165, 250, 0.18),
    0 0 0 1px rgba(255,255,255,0.05) inset !important;
}

/* On mobile (no hover), keep arrows visible but subtle */
@media (max-width: 520px) {
  .option-scroller .scroll-btn {
    opacity: 0.75;
  }
}

/* --- 3) PRO scroller track: premium dark track + blue glow thumb --- */
.option-scroller .scroll-track {
  background: rgba(2, 6, 23, 0.34) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 10px 22px rgba(0,0,0,0.25) !important;
}

.option-scroller .scroll-thumb {
  background: linear-gradient(
    90deg,
    rgba(96, 165, 250, 0.85),
    rgba(59, 130, 246, 0.85),
    rgba(34, 197, 94, 0.55)
  ) !important;
  box-shadow:
    0 0 18px rgba(96, 165, 250, 0.28),
    0 0 26px rgba(59, 130, 246, 0.18) !important;
}

/* --- 4) Remove “white haze” look on the scroller area (edge fade stays) --- */
.option-scroller.is-scrollable .frame-options,
.option-scroller.is-scrollable .shape-row,
.option-scroller.is-scrollable .logo-row {
  background: transparent !important;
}
/* =========================================================
   FIX: Restore Frame thumbnail visuals (Card/Dark/Badge/Rings)
   Works with dark-glass theme + overrides generic inner styling
   Paste at VERY END of styles.css
   ========================================================= */

/* Make sure preview boxes can draw pseudo elements properly */
.frame-option-inner.frame-preview-ring,
.frame-option-inner.frame-preview-ring-green,
.frame-option-inner.frame-preview-card,
.frame-option-inner.frame-preview-card-dark,
.frame-option-inner.frame-preview-badge {
  position: relative;
  overflow: visible;
}

/* Ring previews: give them a slightly lighter base so the ring pops */
.frame-option-inner.frame-preview-ring,
.frame-option-inner.frame-preview-ring-green {
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.10), rgba(255,255,255,0.04)) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  box-shadow:
    0 12px 26px rgba(0,0,0,0.22),
    0 0 0 1px rgba(255,255,255,0.04) inset !important;
  border-radius: 999px !important;
}

/* Keep your existing ring stroke logic (already in your CSS) */
.frame-preview-ring::before,
.frame-preview-ring-green::before {
  /* ensure ring stroke stays visible in the new theme */
  border-width: 4px !important;
  opacity: 0.95;
}

/* Card (Blue): premium glass gradient + blue accent stroke */
.frame-option-inner.frame-preview-card {
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(96,165,250,0.22), rgba(2,6,23,0.90)) !important;
  border: 1px solid rgba(96,165,250,0.45) !important;
  box-shadow:
    0 14px 30px rgba(0,0,0,0.28),
    0 0 0 2px rgba(37,99,235,0.40) inset,
    0 0 22px rgba(59,130,246,0.14) !important;
}

/* Card (Dark): deep dark base + cyan accent */
.frame-option-inner.frame-preview-card-dark {
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(14,165,233,0.10), rgba(2,6,23,0.92)) !important;
  border: 1px solid rgba(14,165,233,0.35) !important;
  box-shadow:
    0 14px 30px rgba(0,0,0,0.30),
    0 0 0 2px rgba(14,165,233,0.30) inset,
    0 0 18px rgba(14,165,233,0.10) !important;
}

/* Badge: dark glass base + handle + subtle frame */
.frame-option-inner.frame-preview-badge {
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(34,197,94,0.10), rgba(2,6,23,0.90)) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  box-shadow:
    0 14px 30px rgba(0,0,0,0.28),
    0 0 0 2px rgba(107,114,128,0.22) inset !important;
}

/* Badge “handle” — replace the old dark handle so it’s visible on dark UI */
.frame-option-inner.frame-preview-badge::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 28px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(96,165,250,0.85), rgba(34,197,94,0.65)) !important;
  box-shadow: 0 10px 18px rgba(0,0,0,0.35), 0 0 16px rgba(96,165,250,0.18) !important;
}
/* ================= PREMIUM FRAME THUMBNAILS ================= */

.frame-preview-gradient-ring {
  border-radius: 999px;
  background:
    radial-gradient(circle, transparent 55%, rgba(59,130,246,.95) 56% 63%, rgba(34,197,94,.85) 64%);
}

.frame-preview-soft-glow {
  border-radius: 16px;
  background: rgba(2,6,23,.9);
  box-shadow:
    0 0 0 2px rgba(59,130,246,.4),
    0 0 18px rgba(59,130,246,.35);
}

.frame-preview-scan {
  border-radius: 14px;
  background: rgba(2,6,23,.9);
  box-shadow: inset 0 0 0 2px rgba(59,130,246,.6);
}

.frame-preview-glass {
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.25);
}

.frame-preview-ticket {
  border-radius: 16px;
  background: rgba(2,6,23,.9);
  position: relative;
}

.frame-preview-ticket::before,
.frame-preview-ticket::after {
  content:"";
  position:absolute;
  top:50%;
  width:10px;height:10px;
  background:#020617;
  border-radius:50%;
  transform:translateY(-50%);
}
.frame-preview-ticket::before{left:-5px}
.frame-preview-ticket::after{right:-5px}

.frame-preview-outline {
  border-radius: 16px;
  border: 2px solid rgba(59,130,246,.6);
  background: transparent;
}


/* --- Custom frame previews (CSS-based; no external image assets required) --- */
.frame-preview-img{
  background-position:center;
  background-size:contain;
  background-repeat:no-repeat;
  background-color: rgba(2, 6, 23, 0.55);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

/* Ornate · Gold */
.frame-preview-ornate-gold{
  background:
    radial-gradient(circle at 30% 25%, rgba(245,158,11,0.35), transparent 56%),
    radial-gradient(circle at 70% 75%, rgba(251,191,36,0.22), transparent 60%),
    rgba(2, 6, 23, 0.55);
  box-shadow:
    0 0 0 3px rgba(245,158,11,0.90) inset,
    0 0 0 1px rgba(255,255,255,0.06) inset;
}
.frame-preview-ornate-gold::before{
  content:"";
  position:absolute;
  inset: 9px;
  border-radius: 12px;
  border: 2px solid rgba(245,158,11,0.55);
  opacity: 0.95;
}
.frame-preview-ornate-gold::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 10px 10px, rgba(245,158,11,0.95) 0 2px, transparent 3px),
    radial-gradient(circle at calc(100% - 10px) 10px, rgba(245,158,11,0.95) 0 2px, transparent 3px),
    radial-gradient(circle at 10px calc(100% - 10px), rgba(245,158,11,0.95) 0 2px, transparent 3px),
    radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), rgba(245,158,11,0.95) 0 2px, transparent 3px);
  opacity: 0.95;
  pointer-events: none;
}

/* Iron · Vines */
.frame-preview-iron-vines{
  background:
    radial-gradient(circle at 40% 35%, rgba(148,163,184,0.10), transparent 55%),
    rgba(2, 6, 23, 0.58);
  box-shadow:
    0 0 0 3px rgba(148,163,184,0.78) inset,
    0 0 0 1px rgba(255,255,255,0.06) inset;
}
.frame-preview-iron-vines::before{
  content:"";
  position:absolute;
  inset: 9px;
  border-radius: 12px;
  border: 2px dashed rgba(148,163,184,0.55);
  opacity: 0.9;
}
.frame-preview-iron-vines::after{
  content:"";
  position:absolute;
  inset:-18px;
  background:
    repeating-linear-gradient(45deg, rgba(148,163,184,0.14) 0 2px, transparent 2px 10px);
  transform: rotate(12deg);
  opacity: 0.65;
  pointer-events: none;
}

/* Wave · Circle */
.frame-preview-wave-circle{
  border-radius: 999px !important;
  /* If an optional image asset is provided in ./backgrounds/, use it as the preview. */
  background-image: url("backgrounds/frame-wave-circle.png");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: rgba(2, 6, 23, 0.20);
  box-shadow: none;
}
.frame-preview-wave-circle::before,
.frame-preview-wave-circle::after{
  content: none;
}


/* Frame picker: icon-only (no visible labels) */
.frame-option-label{ display:none !important; }
