:root {
  --flow-bg: #eef1f2;
  --flow-surface: #ffffff;
  --flow-surface-soft: #f7f8f8;
  --flow-ink: #070707;
  --flow-copy: #4f565a;
  --flow-muted: #7b8287;
  --flow-line: rgba(13, 17, 19, 0.12);
  --flow-line-strong: rgba(13, 17, 19, 0.18);
  --flow-shadow: 0 20px 54px rgba(19, 25, 28, 0.08);
  --flow-radius: 18px;
  --flow-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--flow-bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--flow-bg);
  color: var(--flow-ink);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

img,
svg {
  display: block;
}

.flow-page {
  min-height: 100vh;
  padding: 0 14px 34px;
  animation: page-enter 340ms var(--flow-ease) both;
}

.flow-header {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0 -14px 24px;
  padding: 18px 14px 14px;
  border-bottom: 1px solid var(--flow-line);
  background: rgba(238, 241, 242, 0.88);
  -webkit-backdrop-filter: blur(18px) saturate(116%);
  backdrop-filter: blur(18px) saturate(116%);
}

.flow-header-top {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
}

.flow-brand {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  width: 92px;
  height: 32px;
}

.flow-brand img,
.auth-logo {
  width: 100%;
  height: auto;
  filter: invert(1);
}

.flow-back-icon,
.dashboard-menu-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--flow-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: #111111;
  box-shadow: 0 10px 24px rgba(19, 25, 28, 0.06);
}

.flow-back-icon svg,
.dashboard-return svg {
  transform: rotate(180deg);
}

.dashboard-top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--flow-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #222629;
  font-size: 12px;
  font-weight: 700;
}

.flow-step-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--flow-muted);
  font-size: 12px;
}

.flow-step-status strong {
  color: #111111;
  font-size: 13px;
}

.flow-progress {
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  overflow: hidden;
}

.flow-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #111111;
  transition: width 360ms var(--flow-ease);
}

.flow-button,
.flow-button-secondary,
.google-button,
.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  transition: transform 220ms var(--flow-ease), box-shadow 220ms var(--flow-ease),
    background 220ms var(--flow-ease), border-color 220ms var(--flow-ease);
}

.flow-button {
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.13);
}

.flow-button:hover,
.flow-button-secondary:hover,
.google-button:hover {
  transform: translateY(-1px);
}

.flow-button-secondary,
.google-button {
  border: 1px solid var(--flow-line);
  background: rgba(255, 255, 255, 0.78);
  color: #111111;
}

.flow-button svg,
.flow-button-secondary svg,
.google-button svg,
.flow-back-icon svg,
.dashboard-menu-button svg,
.dashboard-nav-icon svg,
.icon-button svg,
.phone-preview svg,
.preview-icon svg,
.destination-summary svg,
.checkout-note svg,
.success-check svg,
.settings-item svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.shop-flow-main,
.setup-layout,
.delivery-layout,
.review-layout {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.flow-title {
  margin: 0 0 20px;
  animation: fade-up 420ms var(--flow-ease) both;
}

.flow-pill,
.product-badge,
.status-pill,
.verified-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px var(--flow-line);
}

.flow-title h1 {
  margin: 16px 0 0;
  max-width: 760px;
  font-size: clamp(32px, 8vw, 58px);
  font-weight: 820;
  line-height: 1.02;
  letter-spacing: 0;
}

.flow-title p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--flow-copy);
  font-size: 15px;
  line-height: 1.6;
}

.shop-product-grid {
  display: grid;
  gap: 14px;
}

.shop-product-card,
.setup-form-panel,
.setup-preview-panel,
.delivery-form,
.saved-address-panel,
.review-card,
.dashboard-card,
.settings-list,
.card-detail-panel,
.success-card,
.auth-card,
.public-profile-card {
  border: 1px solid var(--flow-line);
  border-radius: var(--flow-radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--flow-shadow);
}

.shop-product-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 16px;
  animation: fade-up 420ms var(--flow-ease) both;
  animation-delay: var(--delay, 0ms);
}

.shop-product-media {
  display: grid;
  place-items: center;
  min-height: 178px;
  border-radius: 14px;
  background: #111111;
  overflow: hidden;
}

.shop-product-media img {
  width: min(86%, 320px);
  max-height: 154px;
  object-fit: contain;
  filter: drop-shadow(0 22px 18px rgba(0, 0, 0, 0.22));
}

.shop-product-copy h2,
.form-section h2,
.review-card h2,
.dashboard-card h2,
.settings-item h2,
.card-detail-copy h2 {
  margin: 0;
  color: #050505;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0;
}

.shop-product-copy p,
.dashboard-card p,
.review-card p,
.settings-item p,
.muted-copy,
.form-status {
  margin: 8px 0 0;
  color: var(--flow-copy);
  font-size: 14px;
  line-height: 1.52;
}

.shop-product-copy dl {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
}

.shop-product-copy dl div,
.spec-list div,
.order-line,
.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.shop-product-copy dt,
.spec-list span,
.order-line span {
  color: var(--flow-muted);
  font-size: 13px;
}

.shop-product-copy dd,
.spec-list strong,
.order-line strong,
.total-row strong {
  margin: 0;
  color: #111111;
  font-weight: 800;
  text-align: right;
}

.shop-product-card > .flow-button,
.flow-main-action,
.review-pay-button {
  width: 100%;
  min-height: 54px;
}

.product-action-stack {
  display: grid;
  gap: 8px;
}

.product-action-stack .flow-button {
  width: 100%;
  min-height: 54px;
}

.product-action-stack small {
  color: var(--flow-muted);
  font-size: 12px;
  text-align: center;
}

.activation-layout {
  display: grid;
  gap: 16px;
  width: min(100%, 720px);
  margin: 0 auto;
}

.activation-hero {
  margin-bottom: 2px;
}

.activation-card,
.activation-state-card,
.activation-insert {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--flow-line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82)),
    #ffffff;
  box-shadow: var(--flow-shadow);
}

.activation-field-shell {
  display: grid;
  gap: 10px;
}

.activation-field-shell p {
  margin: 0;
  color: var(--flow-copy);
  font-size: 13px;
  line-height: 1.45;
}

.activation-card .flow-button {
  width: 100%;
}

.activation-code-field input {
  min-height: 62px;
  border-radius: 16px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2.6px;
  font-size: 20px;
  font-weight: 850;
}

.activation-code-field input::placeholder {
  color: rgba(17, 17, 17, 0.28);
}

.activation-state-card {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.activation-state-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: #111111;
  content: "";
}

.activation-state-card.is-invalid::before,
.activation-state-card.is-claimed::before {
  background: #a13b3b;
}

.activation-state-card.is-ready::before,
.activation-state-card.is-owned::before {
  background: #176538;
}

.activation-state-card > span {
  justify-self: center;
  margin-top: 4px;
  padding: 7px 11px;
  border: 1px solid var(--flow-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--flow-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.activation-state-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
}

.activation-state-card.is-invalid .activation-state-icon,
.activation-state-card.is-claimed .activation-state-icon {
  background: #7f1d1d;
}

.activation-state-card.is-ready .activation-state-icon,
.activation-state-card.is-owned .activation-state-icon {
  background: #135c31;
}

.activation-state-card h2,
.activation-insert h2 {
  margin: 0;
  color: #050505;
  font-size: 22px;
}

.activation-state-card p,
.activation-insert p {
  margin: 0;
  color: var(--flow-copy);
  line-height: 1.5;
}

.activation-insert {
  grid-template-columns: 1fr;
}

.activation-insert img {
  width: 78px;
  margin-bottom: 14px;
  filter: invert(1);
}

.activation-insert ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: #24292c;
  font-weight: 700;
}

.activation-code-box {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px dashed var(--flow-line-strong);
  border-radius: 14px;
  background: #f7f8f8;
}

.activation-code-box span {
  color: var(--flow-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.3px;
}

.activation-code-box strong {
  color: #111111;
  font-size: 24px;
  letter-spacing: 2px;
}

.form-status.is-invalid,
.form-status.is-claimed,
.form-status.is-empty {
  color: #9d2c2c;
}

.form-status.is-ready,
.form-status.is-owned,
.form-status.is-active {
  color: #176538;
}

.setup-grid {
  display: grid;
  align-items: start;
  gap: 16px;
}

.setup-form-panel,
.setup-preview-panel,
.delivery-form,
.saved-address-panel,
.review-card {
  padding: 18px;
}

.setup-layout .flow-main-action {
  margin-top: 16px;
}

.form-section {
  display: grid;
  gap: 16px;
  padding: 0 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--flow-line);
  animation: fade-up 360ms var(--flow-ease) both;
}

.form-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.field-grid {
  display: grid;
  gap: 12px;
}

.form-section-head {
  display: grid;
  gap: 5px;
}

.form-section-head > span,
.appearance-section-title {
  color: var(--flow-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}

.form-section-head h2 {
  margin: 0;
  color: #050505;
  font-size: 22px;
  line-height: 1.08;
}

.form-section-head p {
  max-width: 620px;
  margin: 0;
  color: var(--flow-copy);
  font-size: 13px;
  line-height: 1.45;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #22272a;
  font-size: 13px;
  font-weight: 700;
}

.field span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field span b {
  color: var(--flow-muted);
  font-size: 12px;
  font-weight: 800;
}

.field input,
.field textarea,
.field select,
.custom-link-row input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--flow-line);
  border-radius: 10px;
  background: #ffffff;
  color: #111111;
  padding: 0 12px;
  outline: 0;
  transition: border-color 180ms var(--flow-ease), box-shadow 180ms var(--flow-ease);
}

.field textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.custom-link-row input:focus {
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.profile-photo-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 12px;
}

.upload-photo-button input {
  display: none;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f2f3f3;
  color: #050505;
  font-size: 28px;
  font-weight: 850;
  overflow: hidden;
}

.profile-avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-link-editor {
  display: grid;
  gap: 10px;
}

.custom-link-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 42px;
  gap: 8px;
}

.builder-list {
  display: grid;
  gap: 12px;
}

.builder-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--flow-line);
  border-radius: 14px;
  background: #ffffff;
}

.builder-item.custom-link-row {
  grid-template-columns: 1fr;
}

.builder-row-header,
.builder-title,
.builder-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.builder-row-header {
  justify-content: space-between;
}

.builder-title {
  min-width: 0;
  color: #111111;
  font-size: 14px;
}

.builder-title svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.builder-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builder-social-token {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--flow-line);
  border-radius: 50%;
  color: #111111;
  font-size: 11px;
  font-weight: 850;
}

.builder-controls {
  flex-wrap: wrap;
}

.builder-controls .flow-button-secondary {
  min-height: 38px;
  padding: 0 12px;
  font-size: 12px;
}

.danger-button {
  color: #7f1d1d;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.theme-grid button {
  min-height: 46px;
  border: 1px solid var(--flow-line);
  border-radius: 12px;
  background: #ffffff;
  color: #202427;
  font-weight: 800;
}

.theme-grid button.is-active {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.appearance-grid {
  display: grid;
  gap: 12px;
}

.appearance-section-title {
  margin-top: 2px;
}

.appearance-grid input[type="range"] {
  min-height: 34px;
  padding: 0;
  accent-color: #111111;
}

.color-control {
  display: grid;
  gap: 7px;
  color: #22272a;
  font-size: 13px;
  font-weight: 750;
}

.color-control-body {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 9px 12px;
  border: 1px solid var(--flow-line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.color-swatch {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 11px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.color-control-body strong {
  color: #111111;
  font-size: 13px;
  letter-spacing: 0;
}

.color-control input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.color-control-body::after {
  justify-self: end;
  color: var(--flow-muted);
  font-size: 12px;
  font-weight: 800;
  content: "Edit";
}

.appearance-toggle {
  padding: 0 2px;
}

.background-swatch {
  width: 48px;
  height: 48px;
  border: 1px solid var(--flow-line);
  border-radius: 14px;
  background-size: cover;
  background-position: center;
}

.background-swatch.has-image {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.background-upload-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--flow-line);
  border-radius: 16px;
  background: #ffffff;
}

.background-upload-button {
  position: relative;
  display: grid;
  gap: 3px;
  color: #111111;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.background-upload-button strong {
  color: var(--flow-muted);
  font-size: 12px;
  font-weight: 700;
}

.background-upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  color: #22272a;
  font-size: 14px;
  font-weight: 700;
}

.toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #111111;
}

.switch {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #c9ced1;
  padding: 2px;
  transition: background 220ms var(--flow-ease), box-shadow 220ms var(--flow-ease);
}

.switch::after {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  content: "";
  transition: transform 220ms var(--flow-ease);
}

.switch.is-on {
  background: #111111;
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.16);
}

.switch.is-on::after {
  transform: translateX(18px);
}

.segmented-control {
  display: grid;
  gap: 8px;
}

.lost-privacy-control {
  gap: 10px;
}

.setup-unavailable-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 26px 20px;
  border: 1px solid var(--flow-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--flow-shadow);
  text-align: center;
}

.setup-unavailable-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
}

.setup-unavailable-card > span {
  padding: 7px 11px;
  border: 1px solid var(--flow-line);
  border-radius: 999px;
  color: var(--flow-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.setup-unavailable-card h2 {
  margin: 0;
  color: #050505;
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1.02;
}

.setup-unavailable-card p {
  max-width: 430px;
  margin: 0;
  color: var(--flow-copy);
  line-height: 1.55;
}

.segmented-control button {
  min-height: 44px;
  border: 1px solid var(--flow-line);
  border-radius: 10px;
  background: #ffffff;
  color: #30363a;
  font-weight: 700;
}

.segmented-control button.is-active {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.setup-preview-panel {
  align-self: start;
  display: grid;
  gap: 12px;
  transition: box-shadow 220ms var(--flow-ease), border-color 220ms var(--flow-ease);
}

.preview-label {
  color: var(--flow-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.phone-shell {
  display: grid;
  place-items: center;
}

.phone-preview {
  width: min(100%, 330px);
  min-height: 560px;
  padding: 22px;
  border: 8px solid #101010;
  border-radius: 36px;
  background: var(--profile-bg, #050505);
  color: var(--profile-text, #ffffff);
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.18);
  text-align: center;
  transition: background 220ms var(--flow-ease), color 220ms var(--flow-ease);
}

.phone-brand {
  width: max-content;
  margin: 0 auto 24px;
  color: inherit;
  font-size: 13px;
  letter-spacing: 2.4px;
  opacity: 0.78;
}

.phone-preview h2 {
  margin: 16px 0 0;
  font-size: 26px;
  line-height: 1.1;
}

.phone-preview p {
  margin: 8px 0 0;
  color: var(--profile-muted, #cfd3d5);
  line-height: 1.45;
}

.preview-bio {
  max-width: 240px;
  margin: 16px auto 0;
  font-size: 13px;
}

.phone-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.phone-actions a,
.phone-preview button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: var(--profile-button, #ffffff);
  color: var(--profile-button-text, #111111);
  font-size: 13px;
  font-weight: 800;
}

.social-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.social-row span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 9px;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
}

.resource-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.resource-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: inherit;
  font-size: 13px;
}

.profile-device-shell {
  display: grid;
  place-items: center;
  width: 100%;
}

.premium-profile-card,
.service-phone {
  position: relative;
  isolation: isolate;
  width: min(100%, 338px);
  min-height: 620px;
  overflow: hidden;
  border: 8px solid #111111;
  border-radius: 38px;
  box-shadow: var(--profile-shadow, 0 26px 70px rgba(0, 0, 0, 0.28));
  animation: fade-up 360ms var(--flow-ease) both;
}

.premium-profile-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px 20px 22px;
  background: var(--profile-bg-color, #050505);
  color: var(--profile-text, #ffffff);
  text-align: center;
  transition: background 220ms var(--flow-ease), color 220ms var(--flow-ease), border-radius 220ms var(--flow-ease);
}

.profile-background-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(0, 0, 0, var(--profile-overlay, 0.2)), rgba(0, 0, 0, var(--profile-overlay, 0.2))),
    var(--profile-bg-image, none) center / cover no-repeat,
    var(--profile-bg, #050505);
  filter: blur(var(--profile-blur, 0));
  transform: scale(1.02);
}

.premium-profile-card.has-texture::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.13;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.35) 1px, transparent 0);
  background-size: 12px 12px;
  content: "";
}

.premium-profile-top,
.service-top {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  min-height: 36px;
}

.premium-profile-logo,
.service-top span:first-child {
  grid-column: 2;
  color: inherit;
  opacity: 0.86;
}

.mini-ugnay-logo {
  display: block;
  width: 58px;
  height: auto;
  margin: 0 auto;
  filter: var(--profile-logo-filter, none);
}

.service-top .mini-ugnay-logo,
.phone-brand .mini-ugnay-logo {
  width: 58px;
  filter: none;
}

.profile-menu-button {
  grid-column: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--profile-border, rgba(255, 255, 255, 0.18));
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font-size: 14px;
  line-height: 1;
}

.premium-avatar {
  width: 96px;
  height: 96px;
  margin: 2px auto 0;
  border: 1px solid var(--profile-border, rgba(255, 255, 255, 0.18));
  background: color-mix(in srgb, var(--profile-button, #ffffff) 14%, transparent);
  color: var(--profile-text, #ffffff);
  font-size: 40px;
}

.premium-profile-header {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.premium-profile-header h1 {
  margin: 0;
  color: var(--profile-text, #ffffff);
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: 0;
}

.premium-profile-meta,
.premium-bio {
  margin: 0;
  color: var(--profile-muted, #b8b8b8);
  line-height: 1.45;
}

.premium-profile-meta {
  font-size: 13px;
}

.premium-bio {
  max-width: 260px;
  font-size: 12.5px;
}

.premium-save-button,
.premium-contact-grid a,
.premium-link-row,
.service-primary-button,
.service-actions a {
  transition: transform 160ms var(--flow-ease), border-color 160ms var(--flow-ease), background 160ms var(--flow-ease);
}

.premium-save-button:active,
.premium-contact-grid a:active,
.premium-link-row:active,
.service-primary-button:active,
.service-actions a:active {
  transform: scale(0.98);
}

.premium-save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--profile-button, #ffffff);
  border-radius: 8px;
  background: var(--profile-button, #ffffff);
  color: var(--profile-button-text, #111111);
  font-size: 13px;
  font-weight: 850;
}

.premium-save-button svg,
.premium-contact-grid svg,
.premium-link-row svg,
.service-phone svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.premium-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.premium-contact-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 39px;
  border: 1px solid var(--profile-border, rgba(255, 255, 255, 0.18));
  border-radius: 8px;
  background: var(--profile-secondary-button, transparent);
  color: var(--profile-secondary-button-text, var(--profile-text, #ffffff));
  font-size: 12px;
  font-weight: 800;
}

.premium-social-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.premium-social-row a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--profile-border, rgba(255, 255, 255, 0.18));
  border-radius: 50%;
  color: var(--profile-text, #ffffff);
  font-size: 11px;
  font-weight: 850;
}

.premium-link-section {
  display: grid;
  gap: 9px;
  padding-top: 4px;
  border-top: 1px solid var(--profile-border, rgba(255, 255, 255, 0.18));
  text-align: left;
}

.premium-link-section h2 {
  margin: 0;
  color: var(--profile-muted, #b8b8b8);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.premium-link-list {
  display: grid;
  gap: 8px;
}

.premium-link-row {
  display: grid;
  grid-template-columns: 20px 1fr 18px;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--profile-border, rgba(255, 255, 255, 0.18));
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--profile-text, #ffffff);
  font-size: 12px;
  font-weight: 750;
}

.premium-link-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-profile-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: auto;
  color: var(--profile-muted, #b8b8b8);
  font-size: 12px;
}

.premium-profile-footer svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.profile-qr {
  display: grid;
  place-items: center;
  width: max-content;
  margin: 0 auto;
  padding: 8px;
  border-radius: 4px;
  background: #ffffff;
}

.profile-qr .real-qr {
  width: 86px;
  height: 86px;
}

.service-phone {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  padding: 28px 22px;
  border-color: #111111;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.08), transparent 28%),
    #030303;
  color: #ffffff;
  text-align: center;
}

.service-top {
  position: absolute;
  top: 18px;
  left: 22px;
  right: 22px;
  width: auto;
}

.service-top span:last-child {
  grid-column: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #ffffff;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-kicker {
  color: #b8b8b8;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.service-phone h2 {
  margin: 0;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.05;
}

.service-phone p {
  max-width: 245px;
  margin: 0;
  color: #c7c7c7;
  font-size: 14px;
  line-height: 1.5;
}

.service-panel {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.service-panel span,
.service-panel small {
  color: #b8b8b8;
  font-size: 12px;
}

.service-panel strong {
  color: #ffffff;
  font-size: 22px;
}

.service-primary-button,
.service-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #ffffff;
  border-radius: 9px;
  background: #ffffff;
  color: #111111;
  font-size: 13px;
  font-weight: 850;
}

.service-primary-button {
  width: 100%;
}

.service-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
}

.service-actions a,
.service-actions .is-primary {
  grid-column: 1 / -1;
}

.service-phone footer {
  color: #9b9b9b;
  font-size: 12px;
}

.simple-phone,
.id-phone {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
}

.preview-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.simple-phone strong {
  font-size: 22px;
}

.id-phone dl {
  width: 100%;
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.id-phone dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.id-phone dt {
  color: var(--profile-muted, #cfd3d5);
}

.id-phone dd {
  margin: 0;
  font-weight: 800;
}

.profile-qr {
  display: grid;
  place-items: center;
  margin-top: 18px;
}

.fixed-card-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 340px);
  aspect-ratio: 1.72;
  border-radius: 18px;
  background: #101010;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 42px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.fixed-card-front,
.fixed-card-back {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.fixed-card-front img {
  width: 102px;
  filter: none;
}

.fixed-card-front svg {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 22px;
  height: 22px;
}

.fixed-card-back {
  display: none;
}

.fixed-card-preview.is-back .fixed-card-front {
  display: none;
}

.fixed-card-preview.is-back .fixed-card-back {
  display: grid;
}

.card-qr,
.profile-qr {
  background: transparent;
}

.real-qr {
  width: 104px;
  height: 104px;
  object-fit: contain;
  background: transparent;
}

.delivery-layout,
.review-layout {
  max-width: 760px;
}

.saved-address-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.inline-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-actions.centered {
  justify-content: center;
}

.review-stack {
  display: grid;
  gap: 14px;
}

.review-card h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.mini-edit {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

.review-card-row {
  display: grid;
  gap: 16px;
}

.review-product-image,
.dashboard-card-image,
.card-detail-preview {
  display: grid;
  place-items: center;
  min-height: 178px;
  border-radius: 14px;
  background: #111111;
  overflow: hidden;
}

.review-product-image img,
.dashboard-card-image img,
.card-detail-preview img {
  width: min(86%, 300px);
  max-height: 160px;
  object-fit: contain;
}

.spec-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.destination-summary,
.empty-address {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
}

.destination-summary > svg,
.empty-address > svg {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--flow-line);
  border-radius: 50%;
  background: #ffffff;
}

.review-note {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--flow-line);
}

.delivery-summary p {
  margin: 0;
}

.order-line,
.total-row {
  min-height: 38px;
  border-bottom: 1px solid var(--flow-line);
}

.total-row {
  border-bottom: 0;
  font-size: 18px;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--flow-line);
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.quantity-control button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 38px;
  border: 0;
  background: transparent;
}

.quantity-control span {
  min-width: 46px;
  text-align: center;
  font-weight: 800;
}

.included-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.included-grid span {
  min-height: 34px;
  padding: 9px 10px;
  border: 1px solid var(--flow-line);
  border-radius: 9px;
  background: #ffffff;
  color: #2b3033;
  font-size: 13px;
  font-weight: 700;
}

.checkout-note {
  display: flex;
  gap: 10px;
  margin: 18px 0 12px;
  color: var(--flow-copy);
  font-size: 13px;
  line-height: 1.45;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(238, 241, 242, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  animation: fade-in 200ms ease both;
}

.auth-card {
  position: relative;
  width: min(100%, 410px);
  padding: 28px;
}

.auth-logo {
  width: 92px;
  margin-bottom: 22px;
}

.auth-card h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.05;
}

.auth-card > p {
  margin: 10px 0 0;
  color: var(--flow-copy);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--flow-line);
  border-radius: 50%;
  background: #ffffff;
}

.google-button,
.auth-submit {
  width: 100%;
  margin-top: 18px;
}

.google-button-shell {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 18px;
}

.google-button-shell > div {
  width: 100%;
}

.google-button-fallback {
  width: 100%;
  margin-top: 0;
}

.google-button span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  font-size: 12px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--flow-muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  flex: 1;
  height: 1px;
  background: var(--flow-line);
  content: "";
}

.auth-field {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
}

.auth-field input {
  min-height: 48px;
  border: 1px solid var(--flow-line);
  border-radius: 10px;
  padding: 0 12px;
}

.auth-status {
  min-height: 18px;
  color: #9d2c2c;
  font-size: 12px;
}

.auth-row-links,
.auth-switch {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.auth-row-links button,
.auth-switch {
  border: 0;
  background: transparent;
  color: #30363a;
  font-size: 13px;
  font-weight: 700;
}

.auth-terms {
  font-size: 12px;
  line-height: 1.45;
}

.loading-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.85), rgba(238, 241, 242, 0) 34%),
    var(--flow-bg);
}

.loading-mark {
  display: grid;
  justify-items: center;
  gap: 18px;
  color: #111111;
  text-align: center;
}

.loading-mark img {
  width: 94px;
  filter: invert(1);
}

.loading-line {
  position: relative;
  width: 132px;
  height: 2px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.12);
  overflow: hidden;
}

.loading-line::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 44px;
  border-radius: inherit;
  background: #111111;
  animation: loading-sweep 1180ms var(--flow-ease) infinite;
  content: "";
}

.loading-mark p {
  margin: 0;
  color: var(--flow-copy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.login-page,
.success-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.success-card {
  width: min(100%, 620px);
  padding: 28px;
  text-align: center;
}

.success-check {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
}

.success-card h1 {
  margin: 0;
  font-size: clamp(32px, 8vw, 48px);
  line-height: 1.03;
}

.success-card p {
  max-width: 440px;
  margin: 12px auto 0;
  color: var(--flow-copy);
  line-height: 1.55;
}

.success-details {
  margin: 22px 0;
  text-align: left;
}

.dashboard-page {
  min-height: 100vh;
  background: var(--flow-bg);
  font-size: 14px;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px;
  border-bottom: 1px solid var(--flow-line);
  background: rgba(238, 241, 242, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: background 220ms var(--flow-ease), box-shadow 220ms var(--flow-ease), padding 220ms var(--flow-ease);
}

.dashboard-sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-sidebar .flow-brand {
  justify-self: auto;
  width: 82px;
  transition: opacity 180ms var(--flow-ease), width 220ms var(--flow-ease);
}

.dashboard-menu-button {
  position: relative;
  width: 36px;
  height: 36px;
  box-shadow: none;
}

.dashboard-menu-button span {
  position: absolute;
  width: 16px;
  height: 1.5px;
  border-radius: 999px;
  background: #111111;
}

.dashboard-menu-button span:first-child {
  transform: translateY(-4px);
}

.dashboard-menu-button span:last-child {
  transform: translateY(4px);
}

.dashboard-sidebar.is-open .dashboard-menu-button span:first-child {
  transform: rotate(45deg);
}

.dashboard-sidebar.is-open .dashboard-menu-button span:last-child {
  transform: rotate(-45deg);
}

.dashboard-sidebar nav {
  display: none;
  gap: 8px;
  margin-top: 22px;
}

.dashboard-sidebar.is-open nav {
  display: grid;
}

.dashboard-sidebar nav a {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #3d4448;
  font-size: 13px;
  font-weight: 800;
  transition: background 180ms var(--flow-ease), color 180ms var(--flow-ease), border-color 180ms var(--flow-ease);
}

.dashboard-nav-icon,
.dashboard-nav-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-nav-icon svg {
  width: 18px;
  height: 18px;
}

.dashboard-nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-nav-chevron {
  width: 8px;
  height: 8px;
  justify-self: end;
  border-top: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
  opacity: 0.45;
  transform: rotate(45deg);
}

.dashboard-sidebar nav a.is-active,
.dashboard-sidebar nav a:hover {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.dashboard-main {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 22px 14px 40px;
}

.dashboard-hero {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.dashboard-hero h1 {
  margin: 10px 0 0;
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.04;
}

.dashboard-hero p {
  max-width: 560px;
  margin: 6px 0 0;
  color: var(--flow-copy);
  font-size: 14px;
  line-height: 1.45;
}

.dashboard-stats,
.dashboard-grid,
.dashboard-list {
  display: grid;
  gap: 14px;
}

.dashboard-stats article {
  padding: 14px 16px;
  border: 1px solid var(--flow-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--flow-shadow);
}

.dashboard-stats strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.dashboard-stats span {
  color: var(--flow-copy);
  font-size: 12px;
}

.dashboard-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
}

.dashboard-card h2 {
  font-size: 18px;
  line-height: 1.15;
}

.dashboard-card p {
  font-size: 13px;
  line-height: 1.45;
}

.dashboard-product-card,
.dashboard-profile-card,
.dashboard-order-card {
  align-items: start;
}

.card-actions .flow-button-secondary,
.dashboard-card .flow-button,
.dashboard-card .flow-button-secondary {
  min-height: 40px;
  padding: 0 13px;
  font-size: 13px;
}

.settings-list {
  display: grid;
  overflow: hidden;
  border-radius: 14px;
}

.settings-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  border: 0;
  border-bottom: 1px solid var(--flow-line);
  background: transparent;
  padding: 14px 16px;
  color: #111111;
  text-align: left;
}

.settings-item h2 {
  font-size: 15px;
  line-height: 1.2;
}

.settings-item p {
  font-size: 13px;
  line-height: 1.42;
}

.settings-password-form {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 14px;
}

.settings-password-head {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: center;
}

.settings-password-fields {
  display: grid;
  gap: 10px;
}

.settings-password-form .auth-field {
  margin: 0;
}

.settings-password-form .flow-button-secondary {
  width: 100%;
  min-height: 42px;
}

.settings-password-status {
  min-height: 18px;
  margin: 0;
}

.settings-password-status.is-success {
  color: #236b3b;
}

.settings-password-status.is-error {
  color: #9d2c2c;
}

.settings-item:last-child {
  border-bottom: 0;
}

.dashboard-editor-shell {
  display: grid;
  gap: 16px;
}

.dashboard-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-subhead h2 {
  margin: 0;
  font-size: 28px;
}

.dashboard-return {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #30363a;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-profile-editor-grid {
  display: grid;
  gap: 14px;
}

.card-detail-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.card-detail-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.public-profile-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #050505;
}

.public-profile-page .profile-device-shell {
  min-height: calc(100vh - 36px);
}

.premium-profile-card.is-public,
.public-profile-page .service-phone {
  width: min(100%, 360px);
  min-height: min(720px, calc(100vh - 36px));
  border-radius: 42px;
}

@media (max-width: 460px) {
  .public-profile-page {
    padding: 0;
  }

  .premium-profile-card.is-public,
  .public-profile-page .service-phone {
    width: 100%;
    min-height: 100vh;
    border-width: 0;
    border-radius: 0;
  }
}

.public-profile-card {
  width: min(100%, 520px);
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 34px 22px;
  border-radius: 0;
  background: var(--profile-surface, #0d0d0d);
  color: var(--profile-text, #ffffff);
  text-align: center;
}

.public-profile-card h1 {
  margin: 18px 0 0;
  font-size: clamp(34px, 9vw, 54px);
  line-height: 1;
}

.public-profile-card p {
  color: var(--profile-muted, #cfd3d5);
}

.public-avatar {
  width: 86px;
  height: 86px;
}

.public-bio {
  max-width: 390px;
  line-height: 1.65;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes loading-sweep {
  0% {
    transform: translateX(-48px);
  }
  55%,
  100% {
    transform: translateX(132px);
  }
}

@media (max-width: 699px) {
  .setup-layout {
    padding-bottom: 88px;
  }

  .setup-layout .flow-main-action {
    position: sticky;
    bottom: 14px;
    z-index: 20;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  }

  .setup-grid {
    gap: 14px;
  }

  .setup-form-panel,
  .setup-preview-panel,
  .delivery-form,
  .saved-address-panel,
  .review-card {
    padding: 16px;
  }

  .activation-state-card .inline-actions,
  .setup-unavailable-card .inline-actions {
    display: grid;
    width: 100%;
  }

  .activation-state-card .inline-actions > *,
  .setup-unavailable-card .inline-actions > * {
    width: 100%;
  }

  .dashboard-sidebar.is-open {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    padding: 22px 18px 28px;
    border-bottom: 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0)),
      var(--flow-bg);
    box-shadow: none;
    animation: fade-in 180ms ease both;
  }

  .dashboard-sidebar.is-open::after {
    display: block;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--flow-line);
    color: var(--flow-muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    content: "Dashboard";
  }

  .dashboard-sidebar.is-open .dashboard-sidebar-top {
    padding-bottom: 6px;
  }

  .dashboard-sidebar.is-open .flow-brand {
    width: 86px;
  }

  .dashboard-sidebar.is-open .dashboard-menu-button {
    width: 46px;
    height: 46px;
    background: #ffffff;
  }

  .dashboard-sidebar.is-open nav {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar.is-open nav a {
    min-height: 58px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 0 0 1px rgba(13, 17, 19, 0.06);
  }

  .dashboard-sidebar.is-open nav a.is-active,
  .dashboard-sidebar.is-open nav a:hover {
    border-color: #111111;
    background: #111111;
    color: #ffffff;
    box-shadow: 0 18px 42px rgba(17, 17, 17, 0.14);
  }
}

@media (min-width: 700px) {
  .flow-page {
    padding-inline: 28px;
  }

  .flow-header {
    margin-inline: -28px;
    padding-inline: 28px;
  }

  .shop-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field.is-wide,
  .settings-block,
  .delivery-form .field:nth-last-child(1),
  .delivery-form .field:nth-last-child(2) {
    grid-column: 1 / -1;
  }

  .segmented-control {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .review-card-row,
  .card-detail-panel {
    grid-template-columns: 0.8fr 1fr;
  }

  .included-grid,
  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-password-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .flow-page {
    padding-inline: 40px;
  }

  .flow-header {
    margin-inline: -40px;
    padding-inline: 40px;
  }

  .flow-header-top {
    max-width: 1180px;
    margin: 0 auto;
  }

  .flow-step-status,
  .flow-progress {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
  }

  .shop-flow-main,
  .setup-layout {
    padding-top: 20px;
  }

  .shop-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .shop-product-card {
    align-content: start;
  }

  .setup-grid {
    grid-template-columns: minmax(0, 1fr) 390px;
    align-items: start;
  }

  .setup-preview-panel {
    position: sticky;
    top: 132px;
  }

  .delivery-layout,
  .review-layout {
    padding-top: 20px;
  }

  .dashboard-page {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    transition: grid-template-columns 220ms var(--flow-ease);
  }

  .dashboard-page.is-sidebar-collapsed {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .dashboard-sidebar {
    min-height: 100vh;
    padding: 18px 14px;
    border-right: 1px solid var(--flow-line);
    border-bottom: 0;
  }

  .dashboard-menu-button {
    display: inline-flex;
  }

  .dashboard-sidebar nav,
  .dashboard-sidebar.is-open nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-page.is-sidebar-collapsed .dashboard-sidebar {
    padding-inline: 10px;
  }

  .dashboard-page.is-sidebar-collapsed .dashboard-sidebar-top {
    justify-content: center;
  }

  .dashboard-page.is-sidebar-collapsed .dashboard-sidebar .flow-brand {
    width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .dashboard-page.is-sidebar-collapsed .dashboard-sidebar nav a {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 44px;
    padding: 0;
  }

  .dashboard-page.is-sidebar-collapsed .dashboard-nav-label,
  .dashboard-page.is-sidebar-collapsed .dashboard-nav-chevron {
    display: none;
  }

  .dashboard-main {
    width: 100%;
    max-width: 1180px;
    margin: 0;
    padding: 32px;
  }

  .dashboard-hero {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 22px;
  }

  .dashboard-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-grid,
  .dashboard-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-overview-grid .dashboard-card-wide {
    grid-column: 1 / -1;
  }

  .dashboard-product-card,
  .dashboard-order-card {
    grid-template-columns: 150px 1fr;
  }

  .dashboard-profile-card {
    grid-template-columns: 72px 1fr;
  }

  .dashboard-product-card .card-actions,
  .dashboard-order-card .flow-button-secondary,
  .dashboard-profile-card .card-actions {
    grid-column: 1 / -1;
  }

  .dashboard-profile-editor-grid {
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: start;
  }

  .public-profile-card {
    min-height: auto;
    margin: 44px;
    border-radius: 32px;
  }
}

@media (max-width: 430px) {
  .flow-header-top {
    grid-template-columns: 42px 1fr auto;
  }

  .dashboard-top-link {
    padding-inline: 10px;
    font-size: 11px;
  }

  .custom-link-row,
  .profile-photo-row {
    grid-template-columns: 1fr;
  }

  .profile-photo-row .profile-avatar {
    justify-self: center;
  }

  .review-card h2,
  .dashboard-subhead {
    align-items: flex-start;
    flex-direction: column;
  }

  .phone-preview {
    width: 100%;
    border-width: 6px;
  }
}
