/* ICYFLUXY Refonte Distributeur — PoV Mobile */

:root {
  --primary: #21B1CC;
  --primary-dark: #1A8FA6;
  --primary-light: #E8F7FA;
  --secondary: #FF5722;
  --success: #4CAF50;
  --warning: #FFA726;
  --error: #E22134;
  --bg: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-tertiary: #F0F2F5;
  --text: #1A1A1A;
  --text-secondary: #666666;
  --text-disabled: #999999;
  --border: #E0E0E0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --phone-w: 390px;
  --phone-h: 844px;
}

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

body {
  font-family: var(--font);
  background: #E8ECF0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 24px;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ── PoV Panel (desktop) ── */
.pov-panel {
  width: 280px;
  flex-shrink: 0;
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow-y: auto;
}

.pov-panel h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pov-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.pov-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.pov-nav button {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.pov-nav button:hover { border-color: var(--primary); }
.pov-nav button.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
  font-weight: 600;
}

.pov-compare h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.pov-compare ul {
  list-style: none;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.pov-compare strong { color: var(--primary-dark); }

/* ── Phone Frame ── */
.phone-frame {
  width: var(--phone-w);
  height: var(--phone-h);
  background: #1A1A1A;
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.1);
  position: relative;
  flex-shrink: 0;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #1A1A1A;
  border-radius: 0 0 18px 18px;
  z-index: 100;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
}

/* ── Screens ── */
.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}

.screen.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

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

/* ── Header ── */
.app-header {
  background: var(--primary);
  color: white;
  padding: 52px 20px 20px;
  flex-shrink: 0;
}

.app-header.compact {
  padding-bottom: 16px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.header-greeting {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 2px;
}

.header-title {
  font-size: 22px;
  font-weight: 700;
}

.header-sub {
  font-size: 14px;
  opacity: 0.85;
  margin-top: 4px;
}

.stats-row {
  display: flex;
  gap: 8px;
}

.stat-pill {
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
}

.stat-pill strong { font-weight: 700; }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 52px 16px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: 17px;
  font-weight: 600;
}

.modal-header .icon-btn {
  background: var(--bg-tertiary);
  color: var(--text);
}

/* ── Content ── */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  -webkit-overflow-scrolling: touch;
}

.content.with-fab {
  padding-bottom: 100px;
}

/* ── Promo Cards ── */
.promo-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.promo-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}

.promo-card-img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 6px;
}

.promo-badge {
  background: var(--secondary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
}

.promo-badge.expired {
  background: var(--text-disabled);
}

.promo-card-body {
  flex: 1;
  min-width: 0;
}

.promo-card-body h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.price-old {
  font-size: 13px;
  color: var(--text-disabled);
  text-decoration: line-through;
}

.price-new {
  font-size: 16px;
  font-weight: 700;
  color: var(--secondary);
}

.promo-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.promo-card--expired {
  opacity: 0.6;
}

.promo-qr-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── FAB ── */
.fab {
  position: absolute;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 28px;
  padding: 14px 24px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 87, 34, 0.4);
  z-index: 10;
  white-space: nowrap;
}

.fab:active { transform: translateX(-50%) scale(0.97); }

/* ── Tab Bar ── */
.tab-bar {
  display: flex;
  background: var(--primary);
  padding: 8px 0 28px;
  flex-shrink: 0;
}

.tab-bar--3 .tab { flex: 1; }

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 0;
}

.tab.active { color: white; }
.tab svg { opacity: inherit; }

/* ── Create Form ── */
.create-form {
  padding-bottom: 120px;
}

.photo-upload {
  margin-bottom: 20px;
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 160px;
  background: var(--bg-tertiary);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.15s;
}

.photo-placeholder:hover { border-color: var(--primary); }
.photo-placeholder span { font-size: 15px; font-weight: 500; color: var(--text); }
.photo-placeholder small { font-size: 12px; }

.photo-upload.has-photo .photo-placeholder {
  background: linear-gradient(135deg, #e8d5b7, #c4a882);
  border-style: solid;
  border-color: transparent;
  color: white;
}

.photo-upload.has-photo .photo-placeholder svg,
.photo-upload.has-photo .photo-placeholder small { display: none; }

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-with-suffix {
  position: relative;
}

.input-with-suffix input {
  padding-right: 36px;
}

.input-with-suffix .suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-weight: 600;
}

.discount-chips,
.duration-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text);
}

.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.chip:active { transform: scale(0.96); }

.price-preview-box {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 18px;
}

.price-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}

.price-preview-row.subtle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.price-preview-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
}

.advanced-options {
  margin-top: 8px;
}

.advanced-options summary {
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px 0;
  list-style: none;
}

.advanced-options summary::-webkit-details-marker { display: none; }

.advanced-options[open] summary { margin-bottom: 12px; }

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.toggle {
  width: 48px;
  height: 28px;
  background: var(--border);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
}

.toggle.on { background: var(--primary); }

.toggle-knob {
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.toggle.on .toggle-knob { transform: translateX(20px); }

/* ── Create Footer ── */
.create-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px 32px;
  background: linear-gradient(transparent, white 20%);
}

.footer-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 10px;
  line-height: 1.4;
}

/* ── Buttons ── */
.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

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

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text);
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.btn-ghost {
  background: none;
  color: var(--text-secondary);
  border: none;
  padding: 12px;
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
}

.btn-full { width: 100%; }
.btn-lg { padding: 16px; font-size: 16px; }

/* ── Success ── */
.success-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.success-check {
  width: 72px;
  height: 72px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.success-screen h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.success-screen > p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 32px;
}

.qr-showcase {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  width: 100%;
}

.qr-placeholder {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.qr-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.qr-label s { color: var(--text-disabled); }

.success-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Scanner ── */
.scanner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.scanner-viewfinder {
  width: 260px;
  height: 260px;
  background: #1A1A1A;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.scanner-viewfinder p {
  position: absolute;
  bottom: -40px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  width: 280px;
}

.viewfinder-corners {
  width: 200px;
  height: 200px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  position: relative;
}

.viewfinder-corners::before,
.viewfinder-corners::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--primary);
  border-style: solid;
}

.viewfinder-corners::before {
  top: -2px; left: -2px;
  border-width: 3px 0 0 3px;
  border-radius: 4px 0 0 0;
}

.viewfinder-corners::after {
  bottom: -2px; right: -2px;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 4px 0;
}

.scanner-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 12px 16px;
  border-radius: 10px;
  max-width: 300px;
}

/* ── Profile ── */
.profile-header {
  background: var(--primary);
  color: white;
  padding: 52px 20px 24px;
  text-align: center;
  flex-shrink: 0;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 12px;
}

.profile-header h1 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-type {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 16px;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.profile-stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-stats strong {
  font-size: 20px;
  font-weight: 700;
}

.profile-stats span {
  font-size: 12px;
  opacity: 0.8;
}

.profile-content {
  padding-bottom: 100px;
}

.menu-section {
  margin-bottom: 24px;
}

.menu-section h3 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 8px;
  padding-left: 4px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 12px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.menu-item span:first-child { font-size: 18px; }
.menu-item svg { margin-left: auto; color: var(--text-disabled); }
.menu-item.danger { color: var(--error); }

.menu-badge {
  margin-left: auto;
  margin-right: -8px;
  font-size: 11px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: 10px;
}

/* ── Onboarding ── */
.onboarding {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 28px 40px;
  text-align: center;
}

.onboarding-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

.onboarding-icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.onboarding h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
}

.onboarding > p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 32px;
}

.onboarding-steps {
  width: 100%;
  text-align: left;
  margin-bottom: 36px;
}

.step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}

.step-num {
  width: 28px;
  height: 28px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.onboarding .btn-full { margin-bottom: 10px; }

/* ── Empty state ── */
.empty-hint {
  text-align: center;
  padding: 48px 20px;
}

.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-hint p { color: var(--text-secondary); margin-bottom: 20px; }

/* ── Subscription ── */
.sub-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 52px 16px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg);
}

.sub-page-header--gradient {
  background: var(--primary);
  border-bottom: none;
  color: white;
}

.sub-page-header--gradient h2 { color: white; font-size: 17px; font-weight: 600; }

.icon-btn--light {
  background: rgba(255,255,255,0.2) !important;
  color: white !important;
}

.text-btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  padding: 8px;
}

.text-btn--danger { color: var(--error); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

.subscription-content { padding-bottom: 32px; }

.trial-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: linear-gradient(135deg, #FFF8E1, #FFECB3);
  border: 1px solid #FFD54F;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.trial-banner-icon { font-size: 28px; flex-shrink: 0; }

.trial-banner strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: #E65100;
}

.trial-banner p {
  font-size: 13px;
  color: #795548;
  line-height: 1.45;
}

.plan-cards { display: flex; flex-direction: column; gap: 14px; }

.plan-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: var(--bg);
  position: relative;
}

.plan-card--featured {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(33, 177, 204, 0.15);
}

.plan-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plan-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.plan-emoji { font-size: 24px; }

.plan-header h3 { font-size: 16px; font-weight: 700; }
.plan-header p { font-size: 13px; color: var(--text-secondary); }

.plan-price { margin-bottom: 14px; }

.plan-price-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.plan-price-period {
  font-size: 13px;
  color: var(--text-secondary);
  margin-left: 4px;
}

.plan-features {
  list-style: none;
  margin-bottom: 16px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 5px 0;
  color: var(--text-secondary);
}

.plan-features svg { color: var(--success); flex-shrink: 0; }

.legal-hint {
  font-size: 11px;
  color: var(--text-disabled);
  line-height: 1.5;
  text-align: center;
  margin-top: 20px;
}

.legal-hint a { color: var(--primary); }

.restore-btn { margin-top: 12px; font-size: 13px; }

.trial-pill {
  margin-top: 10px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  display: inline-block;
}

/* ── Profile nudge ── */
.profile-nudge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.profile-nudge-icon { font-size: 24px; flex-shrink: 0; }

.profile-nudge-text { flex: 1; min-width: 0; }
.profile-nudge-text strong { font-size: 14px; display: block; }
.profile-nudge-text p { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.profile-nudge-btn {
  background: var(--warning);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.empty-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px !important;
}

/* ── Usage bar ── */
.usage-bar {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.usage-bar-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }

.usage-bar-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.usage-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s;
}

/* ── Complete profile ── */
.complete-profile-hero {
  text-align: center;
  padding: 16px 0 24px;
}

.complete-profile-check {
  width: 56px;
  height: 56px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}

.complete-profile-hero h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.complete-profile-hero p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.info-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--primary-light);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--primary-dark);
  line-height: 1.45;
}

.info-card svg { flex-shrink: 0; margin-top: 1px; }

.info-card--soft {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.select-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.qr-location {
  font-size: 13px;
  color: var(--success);
  margin-top: 8px;
  font-weight: 500;
}

.profile-sub-badge {
  margin-top: 12px;
  background: rgba(255,255,255,0.2);
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
}

.menu-badge--warn {
  background: #FFF3E0;
  color: #E65100;
}

.menu-badge--green {
  background: #E8F5E9;
  color: #2E7D32;
}

/* ── Edit commerce ── */
.logo-upload {
  text-align: center;
  margin-bottom: 24px;
}

.logo-circle {
  width: 80px;
  height: 80px;
  background: var(--bg-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 10px;
}

.section-divider {
  margin: 24px 0 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.section-divider h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.section-hint { font-size: 12px; color: var(--text-disabled); }

.address-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}

.address-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
}

.input-inline {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  margin-bottom: 8px;
  background: var(--bg);
}

.add-address-btn { margin-top: 4px; }

.icon-btn--sm {
  width: 36px;
  height: 36px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

/* ── Catalogue ── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.search-bar svg { color: var(--text-disabled); flex-shrink: 0; }

.search-bar input {
  flex: 1;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 15px;
  outline: none;
}

.catalogue-list { display: flex; flex-direction: column; gap: 8px; }

.catalogue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.catalogue-item-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.catalogue-item-info { flex: 1; }
.catalogue-item-info h4 { font-size: 15px; font-weight: 600; }
.catalogue-item-info span { font-size: 13px; color: var(--text-secondary); }

/* ── Partners ── */
.segment-tabs {
  display: flex;
  padding: 0 16px;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.segment-tab {
  flex: 1;
  padding: 12px 8px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
}

.segment-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin: 16px 0 10px;
}

.partner-promo-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.partner-promo-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.partner-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.partner-promo-header h4 { font-size: 14px; font-weight: 600; }
.partner-promo-header span { font-size: 12px; color: var(--text-secondary); }

.partner-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.partner-promo-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.partner-promo-body p { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.partner-promo-meta { font-size: 12px; color: var(--text-disabled); margin-bottom: 12px; }

.partner-request-card,
.partner-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--bg);
}

.partner-request-info { flex: 1; }
.partner-request-info h4 { font-size: 14px; font-weight: 600; }
.partner-request-info span { font-size: 12px; color: var(--text-secondary); }

.partner-request-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.partner-list-item h4 { font-size: 14px; font-weight: 600; }
.partner-list-item span { font-size: 12px; color: var(--text-secondary); }
.partner-list-item div { flex: 1; }
.partner-list-item svg { color: var(--text-disabled); }

/* ── Mobile-only mode ── */
@media (max-width: 768px) {
  body {
    flex-direction: column;
    padding: 0;
    background: var(--bg);
  }

  .pov-panel { display: none; }

  .phone-frame {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    background: var(--bg);
  }

  .phone-notch { display: none; }

  .phone-screen { border-radius: 0; }
}
