@font-face {
  font-family: "AppFont";
  src: url("./font/ultra_light.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "AppFont";
  src: url("./font/light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "AppFont";
  src: url("./font/regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "AppFont";
  src: url("./font/medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "AppFont";
  src: url("./font/semi_bold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "AppFont";
  src: url("./font/bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "AppFont";
  src: url("./font/extra_bold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}

:root {
  --bg: #f2f4f7;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #6b7280;
  --primary: #1677ea;
  --dot: #d1d5db;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "AppFont", Tahoma, Arial, sans-serif;
  background: #15281c;
  color: var(--text);
}

.shell {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
}

.card {
  width: min(800px, 100%);
  min-height: calc(100dvh - 24px);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  padding: 28px 34px 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#onboarding {
  background: #e3e5e9;
}

.slides {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.hidden {
  display: none;
}

.slide-art {
  width: min(420px, 72vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #1fb4df;
  margin-top: clamp(28px, 4vw, 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slide-animation {
  width: 68%;
  height: 68%;
}

.slide-accent-dots {
  margin-top: clamp(16px, 2vw, 28px);
  display: flex;
  gap: clamp(14px, 2vw, 26px);
}

.accent-dot {
  width: clamp(26px, 4.2vw, 62px);
  height: clamp(26px, 4.2vw, 62px);
  border-radius: 50%;
}

.slide-title {
  margin: clamp(20px, 4vw, 68px) 0 0;
  font-size: clamp(28px, 6vw, 72px);
  color: #1677ea;
  font-weight: 700;
}

.slide-desc {
  margin: clamp(14px, 2.2vw, 30px) 0 0;
  font-size: clamp(18px, 4vw, 46px);
  color: var(--muted);
  text-align: center;
  line-height: 1.42;
  max-width: min(690px, 92%);
  font-weight: 500;
}

.slide-question {
  margin: clamp(14px, 2.2vw, 28px) 0 0;
  font-size: clamp(20px, 3.2vw, 42px);
  font-weight: 600;
  color: #222;
}

.final-art {
  width: min(380px, 66vw);
  border-radius: 36px;
  background: linear-gradient(135deg, #4d98f8 0%, #be74c4 62%, #f4cc77 100%);
  margin-top: clamp(18px, 3vw, 44px);
  position: relative;
}

.final-animation {
  width: 72%;
  height: 72%;
  transform: translateY(18px);
}

.emoji-bubble {
  position: absolute;
  background: #f4f6fb;
  border-radius: 16px;
  padding: 8px 14px;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1;
  box-shadow: 0 8px 20px rgba(34, 34, 34, 0.14);
}

.bubble-top {
  top: 16px;
  left: 14px;
}

.bubble-mid {
  top: 86px;
  right: 34px;
}

.dots {
  margin-top: auto;
  margin-bottom: clamp(18px, 3vw, 44px);
  display: flex;
  gap: clamp(10px, 2vw, 20px);
}

.dot {
  width: clamp(14px, 2.2vw, 22px);
  height: clamp(14px, 2.2vw, 22px);
  border-radius: 50%;
  background: var(--dot);
}

.dot.active {
  background: var(--primary);
}

.btn {
  border: 0;
  border-radius: 40px;
  width: 100%;
  padding: 18px 12px;
  font-size: 26px;
  font-weight: 700;
  font-family: "AppFont", Tahoma, Arial, sans-serif;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}

.btn::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -48%;
  width: 38%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.42) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(0) skewX(-16deg);
  opacity: 0;
  transition: transform 0.55s ease, opacity 0.24s ease;
  pointer-events: none;
}

.btn:hover::after {
  opacity: 0.55;
  transform: translateX(410%) skewX(-16deg);
}

.btn:not(:disabled):hover {
  filter: saturate(1.04);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
}

.btn:not(:disabled):active {
  transform: translateY(1px) scale(0.988);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 119, 234, 0.2), 0 14px 28px rgba(15, 23, 42, 0.22);
}

.btn:disabled::after {
  display: none;
}

.btn:disabled {
  box-shadow: none;
}

.category-chip,
.footer-link-btn,
.contact-btn,
.logo-mode-tab,
.plan-mode-tab,
.change-logo-btn,
.svg-dropzone,
.sticker-card,
.build-card,
.plan-card,
.build-style-option {
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, filter 0.2s ease;
}

.category-chip:active,
.footer-link-btn:active,
.contact-btn:active,
.logo-mode-tab:active,
.plan-mode-tab:active,
.change-logo-btn:active,
.svg-dropzone:active,
.sticker-card:active,
.build-card:active,
.plan-card:active,
.build-style-option:active {
  transform: scale(0.985);
}

#onboarding .btn {
  padding: clamp(15px, 2.8vw, 26px) 12px;
  font-size: clamp(24px, 4.4vw, 58px);
  margin-bottom: clamp(2px, 0.5vw, 10px);
}

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

.btn-success {
  background: #26ad45;
  color: #fff;
}

.btn-warning {
  background: #ffb316;
  color: #fff;
}

.title {
  margin: 8px 0 6px;
  color: #0b64d4;
  font-size: 36px;
}

.hint {
  margin: 0 0 22px;
  color: var(--muted);
  text-align: center;
  font-size: 22px;
}

.input-label {
  display: block;
  width: 100%;
  margin: 10px 0 8px;
  font-size: 20px;
  font-weight: 700;
}

input[type="file"] {
  width: 100%;
  font-size: 18px;
  padding: 10px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  background: #f8fafc;
}

.option-row {
  width: 100%;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
}

.footnote {
  margin-top: 14px;
  color: #6b7280;
  font-size: 14px;
  text-align: center;
}

.slides.final-slide .slide-title {
  margin-top: clamp(16px, 3vw, 34px);
  font-size: clamp(30px, 4.6vw, 56px);
}

.slides.final-slide .slide-desc {
  font-size: clamp(17px, 2.6vw, 30px);
  max-width: min(610px, 90%);
  line-height: 1.55;
}

.slides.final-slide + .dots {
  margin-top: clamp(18px, 3vw, 36px);
}

#onboarding .btn.btn-success {
  background: #27ae46;
}

#appSpace {
  background: #e3e5e9;
  padding: 16px 14px 0;
  align-items: stretch;
}

.picker-header {
  padding: 0 8px;
  text-align: right;
}

.picker-title {
  margin: 0;
  font-size: clamp(28px, 7.2vw, 72px);
  line-height: 1.2;
  font-weight: 800;
  color: #111;
}

.picker-title span {
  color: #1b79ea;
}

.picker-subtitle {
  margin: clamp(20px, 3.2vw, 38px) 0 0;
  font-size: clamp(16px, 3.6vw, 36px);
  color: #86898e;
  font-weight: 500;
}

.category-row {
  margin-top: clamp(16px, 2.4vw, 26px);
  padding: 0 6px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-row::-webkit-scrollbar {
  display: none;
}

.category-chip {
  border: 0;
  border-radius: 14px;
  background: #d4d7dc;
  color: #666b74;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  padding: 8px 14px;
  white-space: nowrap;
  cursor: pointer;
}

.category-chip.is-active {
  background: #1d7df0;
  color: #fff;
}

.picker-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 6px 164px;
  scrollbar-width: none;
}

.picker-scroll::-webkit-scrollbar {
  display: none;
}

.category-title {
  margin: 6px 6px 14px 0;
  text-align: right;
  color: #63656b;
  font-size: clamp(24px, 4.8vw, 52px);
  font-weight: 700;
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sticker-card {
  border: 0;
  background: #eef0f3;
  border-radius: 22px;
  aspect-ratio: 1 / 1;
  position: relative;
  padding: 6px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.sticker-card:active {
  transform: scale(0.98);
}

.sticker-card.is-selected {
  background: #d6e9ff;
  box-shadow: inset 0 0 0 2px #1c79ea;
}

.sticker-preview {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticker-check {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1e79ea;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.sticker-card.is-selected .sticker-check {
  opacity: 1;
  transform: scale(1);
}

.contact-section {
  margin: 40px auto 0;
  max-width: 690px;
  text-align: center;
}

.contact-text {
  margin: 0;
  color: #888b90;
  font-size: clamp(17px, 3.6vw, 40px);
  font-weight: 500;
  line-height: 1.65;
}

.contact-btn {
  margin-top: 20px;
  border: 0;
  border-radius: 22px;
  background: #d6d6d8;
  color: #333;
  font-family: inherit;
  font-size: clamp(19px, 3.8vw, 38px);
  font-weight: 700;
  padding: 14px 28px;
  cursor: pointer;
}

.picker-footer {
  margin-top: auto;
  margin-left: -14px;
  margin-right: -14px;
  border-radius: 28px 28px 0 0;
  background: #eceef1;
  padding: 14px 18px calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 22px rgba(31, 45, 61, 0.11);
}

.picker-footer-meta {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  direction: ltr;
}

.footer-link-btn {
  border: 0;
  background: transparent;
  color: #777c84;
  font-family: inherit;
  font-size: clamp(18px, 3.8vw, 35px);
  font-weight: 600;
  padding: 6px 8px;
  cursor: pointer;
  direction: rtl;
}

.selected-caption {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: #777c84;
  font-size: clamp(18px, 3.8vw, 35px);
  font-weight: 600;
}

.selected-caption span {
  color: #1f79ea;
  font-weight: 800;
}

#nextSelectionBtn {
  margin: 10px auto 0;
  width: min(430px, 58vw);
  min-width: 220px;
  padding: 15px 12px;
  border-radius: 32px;
  font-size: clamp(28px, 5.2vw, 56px);
}

.btn-disabled {
  background: #bfc1c4;
  color: #eef0f2;
  cursor: not-allowed;
}

#logoStep {
  background: #e3e5e9;
  padding: 16px 14px 0;
  align-items: stretch;
}

.logo-header {
  padding: 0 8px;
  text-align: right;
}

.logo-title {
  margin: 0;
  font-size: clamp(28px, 7.2vw, 72px);
  line-height: 1.2;
  font-weight: 800;
  color: #111;
}

.logo-title span {
  color: #1b79ea;
}

.svg-dropzone {
  margin: clamp(18px, 3.2vw, 38px) auto 0;
  width: min(480px, 66vw);
  min-height: clamp(180px, 28vw, 260px);
  border: 0;
  border-radius: 38px;
  background: #f0f1f3;
  box-shadow: 0 20px 34px rgba(107, 118, 137, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
}

.svg-dropzone-icon {
  color: #1d7df0;
  font-size: clamp(54px, 7vw, 88px);
  line-height: 1;
}

.svg-dropzone-label {
  color: #30343b;
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 700;
}

.svg-file-hint {
  margin: 10px 0 0;
  text-align: center;
  color: #66707c;
  font-size: clamp(14px, 2.8vw, 24px);
}

.text-to-svg-hint {
  margin: 20px 0 0;
  text-align: center;
  color: #1b79ea;
  font-size: clamp(20px, 4vw, 40px);
  font-weight: 700;
}

.logo-text-label {
  margin: clamp(12px, 2.2vw, 24px) 0 0;
  text-align: center;
  color: #2e323a;
  font-size: clamp(32px, 5.6vw, 62px);
  font-weight: 700;
}

.logo-text-input {
  margin-top: 10px;
  width: 100%;
  border-radius: 28px;
  border: 2px solid #cfd1d4;
  background: #efeff0;
  color: #30343b;
  font-family: inherit;
  font-size: clamp(30px, 4.8vw, 54px);
  font-weight: 500;
  padding: 16px 22px;
  resize: vertical;
  min-height: clamp(120px, 18vw, 190px);
  outline: none;
}

.logo-text-input:focus {
  border-color: #8db7f2;
  box-shadow: 0 0 0 4px rgba(29, 125, 240, 0.18);
}

.logo-text-input::placeholder {
  color: #9da3ab;
}

.logo-help-text {
  margin-top: clamp(22px, 3vw, 38px);
  text-align: center;
  color: #888b90;
  font-size: clamp(18px, 3.7vw, 38px);
  font-weight: 500;
  line-height: 1.62;
}

.logo-help-text p {
  margin: 0;
}

.logo-help-text p + p {
  margin-top: 10px;
}

#contactBtnLogo {
  margin: clamp(18px, 3vw, 30px) auto 0;
}

.logo-footer {
  margin-top: auto;
}

.logo-footer-meta {
  justify-content: flex-end;
}

#logoActionBtn {
  margin: 10px auto 0;
  width: min(430px, 58vw);
  min-width: 220px;
  padding: 15px 12px;
  border-radius: 32px;
  font-size: clamp(28px, 5.2vw, 56px);
}

#logoSettingsStep {
  background: #e3e5e9;
  padding: 16px 14px 0;
  align-items: stretch;
}

.logo-settings-header {
  padding: 0 8px;
  text-align: right;
}

.logo-settings-title {
  margin: 0;
  font-size: clamp(28px, 7.2vw, 72px);
  line-height: 1.2;
  font-weight: 800;
  color: #111;
}

.logo-settings-title span {
  color: #1b79ea;
}

.logo-mode-tabs {
  margin-top: clamp(16px, 2.6vw, 34px);
  border-radius: 44px;
  background: #f1f1f2;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.logo-mode-tab {
  border: 0;
  background: transparent;
  border-radius: 36px;
  color: #34363c;
  font-family: inherit;
  font-size: clamp(24px, 3.8vw, 44px);
  font-weight: 700;
  padding: 12px 8px;
  cursor: pointer;
}

.logo-mode-tab.is-active {
  background: #d7d7d9;
}

.change-logo-btn {
  margin-top: 14px;
  border: 0;
  border-radius: 26px;
  background: #efeff0;
  color: #31343b;
  font-family: inherit;
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 700;
  padding: 12px 24px;
  align-self: flex-start;
  cursor: pointer;
}

.change-logo-btn.icon-only {
  width: 86px;
  height: 86px;
  padding: 0;
  border-radius: 50%;
  color: #1b79ea;
  font-size: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-preview-wrap {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.logo-preview-circle {
  width: min(390px, 58vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 6px solid #b4b6ba;
  background: transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-preview-circle.mode-gold {
  background: #f7ea21;
  border-color: #bb7d08;
  box-shadow: 0 0 26px rgba(255, 226, 96, 0.48);
}

.logo-preview-mark {
  width: min(110px, 18vw);
  height: min(110px, 18vw);
  border-radius: 50%;
  background: rgba(21, 39, 71, 0.08);
  opacity: 0;
}

.logo-mode-description {
  margin: 16px 0 0;
  text-align: center;
  color: #888b90;
  font-size: clamp(18px, 3.6vw, 38px);
  font-weight: 500;
  line-height: 1.55;
}

.scale-panel {
  margin-top: auto;
  padding: 22px 0 10px;
}

.scale-value-label {
  margin: 0 0 12px;
  text-align: center;
  color: #31343b;
  font-size: clamp(34px, 5.6vw, 56px);
  font-weight: 700;
}

.scale-range {
  width: 100%;
  appearance: none;
  height: 14px;
  border-radius: 20px;
  background: #cfd0d2;
  outline: none;
}

.scale-range::-webkit-slider-thumb {
  appearance: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1b79ea;
  border: 0;
  box-shadow: 0 4px 10px rgba(27, 121, 234, 0.3);
  cursor: pointer;
}

.scale-range::-moz-range-thumb {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1b79ea;
  border: 0;
  box-shadow: 0 4px 10px rgba(27, 121, 234, 0.3);
  cursor: pointer;
}

.base-colors-panel {
  margin-top: 18px;
  border-radius: 34px;
  background: #f1f1f2;
  box-shadow: 0 16px 30px rgba(117, 125, 138, 0.08);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.base-color-row {
  display: grid;
  grid-template-columns: 1fr 96px 1.2fr;
  align-items: center;
  gap: 10px;
}

.base-color-name {
  color: #353840;
  font-size: clamp(24px, 3.7vw, 40px);
  font-weight: 700;
  text-align: right;
}

.base-color-dot {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #a8a8a8;
  border: 3px solid #dddfe2;
  margin-inline: auto;
}

.base-color-dot.fill {
  background: #e6e6e6;
}

.base-color-input-wrap {
  border: 3px solid #dddfe2;
  border-radius: 42px;
  background: #f6f6f7;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
}

.base-color-icon {
  color: #1b79ea;
  font-size: 34px;
  line-height: 1;
}

.base-color-input {
  border: 0;
  background: transparent;
  width: 100%;
  outline: none;
  color: #34373e;
  font-family: inherit;
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 600;
  text-align: left;
  direction: ltr;
}

.logo-colors-accordion {
  margin-top: 20px;
  border-radius: 34px;
  background: #f1f1f2;
  box-shadow: 0 16px 30px rgba(117, 125, 138, 0.08);
  padding: 8px;
}

.logo-colors-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 26px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  direction: ltr;
  cursor: pointer;
}

.logo-colors-arrow {
  color: #1b79ea;
  font-size: 34px;
  line-height: 1;
}

.logo-colors-title {
  color: #353840;
  font-size: clamp(26px, 4.1vw, 44px);
  font-weight: 700;
  direction: rtl;
}

.logo-colors-content {
  padding: 8px 10px 14px;
}

.logo-color-swatch {
  width: min(110px, 18vw);
  height: min(110px, 18vw);
  border-radius: 50%;
  background: #0433ff;
  margin: 0 auto 12px;
  box-shadow: 0 6px 16px rgba(4, 51, 255, 0.26);
}

.logo-color-input-wrap {
  border: 3px solid #dddfe2;
  border-radius: 42px;
  background: #f6f6f7;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
}

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

.logo-color-input {
  border: 0;
  background: transparent;
  width: 100%;
  outline: none;
  color: #34373e;
  font-family: inherit;
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 600;
  text-align: left;
  direction: ltr;
}

.logo-settings-footer {
  margin-top: auto;
}

#logoSettingsNextBtn {
  margin: 10px auto 0;
  width: min(430px, 58vw);
  min-width: 220px;
  padding: 15px 12px;
  border-radius: 32px;
  font-size: clamp(28px, 5.2vw, 56px);
}

#planStep {
  background: #e3e5e9;
  padding: 0 0 0;
  align-items: stretch;
  overflow: hidden;
}

.plan-hero {
  height: clamp(140px, 22vw, 210px);
  background: linear-gradient(180deg, #021128 0%, #032764 100%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px 20px;
}

.plan-hero-item {
  height: 100%;
  border-radius: 20px;
  background: radial-gradient(circle at 30% 20%, #f9cb4a 10%, #f26f34 48%, #4439b8 100%);
  opacity: 0.9;
}

.plan-header {
  padding: 20px 30px 0;
  text-align: right;
}

.plan-title {
  margin: 0;
  font-size: clamp(30px, 7.2vw, 70px);
  color: #111;
  font-weight: 800;
  line-height: 1.2;
}

.plan-title span {
  color: #1b79ea;
}

.plan-subtitle {
  margin: 16px 0 0;
  color: #888b90;
  font-size: clamp(17px, 3.6vw, 35px);
  line-height: 1.6;
  font-weight: 500;
}

.plan-mode-tabs {
  margin: 20px 36px 0;
  border-radius: 42px;
  background: #f1f1f2;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.plan-mode-tab {
  border: 0;
  background: transparent;
  border-radius: 36px;
  color: #34363c;
  font-family: inherit;
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  padding: 12px 8px;
  cursor: pointer;
}

.plan-mode-tab.is-active {
  background: #d7d7d9;
}

.plan-cards {
  padding: 14px 36px 176px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  flex: 1;
}

.plan-card {
  border: 0;
  border-radius: 30px;
  background: #f1f1f2;
  padding: 22px 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.plan-card.is-selected {
  box-shadow: inset 0 0 0 4px #1d7df0;
}

.plan-card:active {
  transform: scale(0.99);
}

.plan-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
}

.plan-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d8dbe0;
  box-shadow: inset 0 0 0 6px #d8dbe0;
}

.plan-card.is-selected .plan-radio {
  background: #fff;
  box-shadow: inset 0 0 0 6px #1d7df0;
}

.plan-price {
  color: #6b6f76;
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 700;
}

.plan-price .star {
  color: #fdb21c;
  margin-inline-end: 6px;
}

.plan-card-right {
  text-align: right;
}

.plan-count {
  margin: 0;
  color: #363941;
  font-size: clamp(24px, 4.2vw, 44px);
  font-weight: 800;
  line-height: 1.25;
}

.plan-count .number {
  color: #1d7df0;
  margin-inline-end: 4px;
}

.plan-caption {
  margin: 4px 0 0;
  color: #8b8f95;
  font-size: clamp(20px, 3.5vw, 32px);
  font-weight: 600;
}

.plan-footer {
  margin-top: auto;
}

.plan-footer-meta {
  justify-content: flex-end;
}

#planActionBtn {
  margin: 10px auto 0;
  width: min(430px, 58vw);
  min-width: 220px;
  padding: 15px 12px;
  border-radius: 32px;
  font-size: clamp(28px, 5.2vw, 56px);
}

#buildStep {
  background: #e3e5e9;
  padding: 16px 14px 0;
  align-items: stretch;
}

.build-header {
  padding: 0 8px;
  text-align: right;
}

.build-title {
  margin: 0;
  font-size: clamp(30px, 7.2vw, 70px);
  color: #111;
  font-weight: 800;
  line-height: 1.2;
}

.build-title span {
  color: #1b79ea;
}

.build-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 6px 168px;
  scrollbar-width: none;
}

.build-scroll::-webkit-scrollbar {
  display: none;
}

.build-style-row {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.build-style-option {
  border: 0;
  background: transparent;
  text-align: center;
  cursor: pointer;
  opacity: 0.9;
}

.build-style-option.is-active {
  opacity: 1;
}

.build-style-preview {
  display: block;
  width: min(210px, 32vw);
  height: min(210px, 32vw);
  margin: 0 auto;
  border-radius: 26px;
  background: #f1f1f2;
  overflow: hidden;
  position: relative;
}

.build-style-preview.standard {
  box-shadow: inset 0 0 0 4px #d7d9dd;
}

.standard-heart {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(244, 245, 248, 0.86);
  font-size: clamp(64px, 10vw, 108px);
  font-weight: 800;
  pointer-events: none;
}

.build-style-label {
  margin-top: 10px;
  display: block;
  color: #8a8d92;
  font-size: clamp(20px, 3.5vw, 34px);
  font-weight: 700;
}

.build-name-input {
  margin-top: 16px;
  width: 100%;
  border: 3px solid #d6d9de;
  border-radius: 34px;
  background: #f2f3f5;
  color: #353840;
  font-family: inherit;
  font-size: clamp(28px, 4.3vw, 48px);
  font-weight: 600;
  padding: 14px 22px;
  outline: none;
}

.build-name-input::placeholder {
  color: #a5aab2;
}

.build-filter-row {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.build-category-label {
  color: #6e737b;
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 700;
}

.build-select-all {
  border-radius: 30px;
  background: #efeff0;
  color: #30343b;
  font-size: clamp(24px, 3.9vw, 36px);
  font-weight: 700;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.build-select-all input {
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #d1d6de;
  background: #f7f7f8;
  cursor: pointer;
}

.build-select-all input:checked {
  border-color: #1b79ea;
  box-shadow: inset 0 0 0 8px #1b79ea;
}

.build-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.build-card {
  border: 0;
  background: #eef0f3;
  border-radius: 22px;
  aspect-ratio: 1 / 1;
  position: relative;
  padding: 6px;
  cursor: pointer;
}

.build-card.is-selected {
  background: #d6e9ff;
  box-shadow: inset 0 0 0 3px #1c79ea;
}

.build-preview {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  display: block;
}

.build-check {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1e79ea;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.82);
}

.build-card.is-selected .build-check {
  opacity: 1;
  transform: scale(1);
}

.build-footer {
  margin-top: auto;
}

.build-footer-meta {
  direction: ltr;
}

#buildCreateBtn {
  margin: 10px auto 0;
  width: min(430px, 58vw);
  min-width: 220px;
  padding: 15px 12px;
  border-radius: 32px;
  font-size: clamp(28px, 5.2vw, 56px);
}

@media (max-width: 540px) {
  .card {
    border-radius: 18px;
    min-height: calc(100dvh - 18px);
    padding: 20px 18px 20px;
  }

  .btn {
    font-size: 20px;
  }

  .title {
    font-size: 28px;
  }

  .hint,
  .input-label {
    font-size: 16px;
  }

  .slide-animation {
    width: 72%;
    height: 72%;
  }

  .final-art {
    width: min(310px, 78vw);
    border-radius: 26px;
  }

  .bubble-top {
    top: 10px;
    left: 10px;
  }

  .bubble-mid {
    top: 62px;
    right: 18px;
  }

  .slide-question {
    font-size: 28px;
  }

  #appSpace {
    padding: 14px 8px 0;
  }

  #logoStep {
    padding: 14px 8px 0;
  }

  #logoSettingsStep {
    padding: 14px 8px 0;
  }

  #planStep {
    padding: 0;
  }

  #buildStep {
    padding: 14px 8px 0;
  }

  .picker-footer {
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .sticker-grid {
    gap: 10px;
  }

  .sticker-card {
    border-radius: 18px;
  }

  .sticker-check {
    width: 30px;
    height: 30px;
    font-size: 19px;
  }

  .svg-dropzone {
    width: min(370px, 84vw);
    border-radius: 30px;
  }

  .logo-text-input {
    border-radius: 22px;
    padding: 14px 16px;
  }

  .change-logo-btn {
    border-radius: 20px;
    padding: 10px 18px;
  }

  .change-logo-btn.icon-only {
    width: 72px;
    height: 72px;
    font-size: 40px;
  }

  .logo-preview-circle {
    width: min(318px, 72vw);
    border-width: 5px;
  }

  .base-color-row {
    grid-template-columns: 1fr 78px 1.2fr;
  }

  .base-color-dot {
    width: 74px;
    height: 74px;
  }

  .logo-colors-arrow {
    font-size: 28px;
  }

  .plan-header {
    padding: 18px 14px 0;
  }

  .plan-mode-tabs,
  .plan-cards {
    margin-left: 14px;
    margin-right: 14px;
    padding-left: 0;
    padding-right: 0;
  }

  .plan-cards {
    padding-top: 14px;
    padding-bottom: 170px;
  }

  .plan-card {
    border-radius: 24px;
    padding: 18px 16px;
  }

  .plan-hero {
    gap: 10px;
    padding: 10px 12px;
  }

  .build-style-preview {
    width: min(172px, 38vw);
    height: min(172px, 38vw);
    border-radius: 18px;
  }

  .build-grid {
    gap: 10px;
  }

  .build-card {
    border-radius: 18px;
  }

  .build-check {
    width: 30px;
    height: 30px;
    font-size: 19px;
  }
}

/* Global typography tuning: reduce text size by ~4-6px across the app */
.slide-title {
  margin-top: clamp(34px, 5.5vw, 88px);
  font-size: clamp(24px, 5.4vw, 66px);
}

.slide-desc {
  font-size: clamp(14px, 3.5vw, 40px);
}

.slide-question {
  font-size: clamp(16px, 2.8vw, 36px);
}

#onboarding .btn {
  font-family: "AppFont", Tahoma, Arial, sans-serif;
  font-size: clamp(20px, 3.8vw, 52px);
}

.slides.final-slide .slide-title {
  margin-top: clamp(28px, 4.5vw, 60px);
  font-size: clamp(26px, 4.2vw, 50px);
}

.slides.final-slide .slide-desc {
  font-size: clamp(14px, 2.3vw, 26px);
}

.picker-title,
.logo-title,
.logo-settings-title,
.build-title {
  font-size: clamp(24px, 6.2vw, 64px);
}

.plan-title {
  font-size: clamp(25px, 6.4vw, 64px);
}

.picker-subtitle,
.plan-subtitle {
  font-size: clamp(14px, 3vw, 30px);
}

.category-title {
  font-size: clamp(20px, 4vw, 44px);
}

.contact-text,
.logo-help-text,
.logo-mode-description {
  font-size: clamp(14px, 3vw, 32px);
}

.contact-btn {
  font-size: clamp(16px, 3.2vw, 34px);
}

.footer-link-btn,
.selected-caption {
  font-size: clamp(15px, 3.1vw, 30px);
}

#nextSelectionBtn,
#logoActionBtn,
#logoSettingsNextBtn,
#planActionBtn,
#buildCreateBtn {
  font-size: clamp(24px, 4.4vw, 50px);
}

.svg-dropzone-label,
.logo-colors-title {
  font-size: clamp(20px, 3.4vw, 38px);
}

.text-to-svg-hint {
  font-size: clamp(16px, 3.2vw, 34px);
}

.logo-text-label,
.scale-value-label {
  font-size: clamp(26px, 4.8vw, 50px);
}

.logo-text-input {
  font-size: clamp(24px, 4.1vw, 48px);
}

.logo-mode-tab,
.plan-mode-tab {
  font-size: clamp(20px, 3.4vw, 38px);
}

.change-logo-btn {
  font-size: clamp(18px, 3vw, 32px);
}

.base-color-name {
  font-size: clamp(20px, 3.3vw, 34px);
}

.base-color-input,
.logo-color-input {
  font-size: clamp(18px, 3vw, 30px);
}

.plan-price {
  font-size: clamp(18px, 3vw, 30px);
}

.plan-count {
  font-size: clamp(20px, 3.5vw, 36px);
}

.plan-caption {
  font-size: clamp(16px, 2.8vw, 28px);
}

.build-style-label {
  font-size: clamp(16px, 3vw, 28px);
}

.build-name-input {
  font-size: clamp(22px, 3.8vw, 42px);
}

.build-category-label {
  font-size: clamp(20px, 3.5vw, 36px);
}

.build-select-all {
  font-size: clamp(18px, 3.2vw, 32px);
}

@media (max-width: 540px) {
  .btn {
    font-size: 18px;
  }

  .slide-question {
    font-size: 24px;
  }

  .change-logo-btn.icon-only {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
