/* ===== Profil ===== */

.profile {
  padding: max(var(--space-4), env(safe-area-inset-top, 0px)) var(--space-4) 104px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--bg);
  min-height: 100%;
}

.profile__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
}

.profile-role {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 2px;
  gap: 2px;
}

.profile-role__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.profile-role__btn--active {
  background: var(--nav-bg);
  color: var(--on-brand);
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.profile-user--guest {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.profile-user__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.profile-user__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-user--guest .profile-user__avatar,
.profile-user__avatar--muted {
  width: 48px;
  height: 48px;
  background: var(--bg);
  color: var(--muted);
}

.profile-user .profile-user__avatar--brand {
  width: 56px;
  height: 56px;
  background: var(--brand-ink);
  color: var(--on-brand);
  font-size: 22px;
  font-weight: 800;
}

.profile-user__body {
  flex: 1;
  min-width: 0;
}

.profile-user__title {
  font-size: 17px;
  font-weight: 700;
}

.profile-user__sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.profile-user .profile-user__sub {
  font-size: 15px;
}

.profile-icon-btn {
  width: var(--icon-btn);
  height: var(--icon-btn);
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
}

.profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--control-h);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.profile-btn--brand {
  background: var(--brand-ink);
  color: var(--on-brand);
}

.profile-btn--surface {
  background: var(--surface);
  color: var(--brand-ink);
  font-weight: 700;
}

.profile-btn--danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.profile-btn--ghost {
  background: var(--surface-2);
  color: var(--ink);
}

.profile-kitchen-cta {
  background: var(--brand-ink);
  color: var(--on-brand);
  border-color: transparent;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.profile-kitchen-cta__row {
  display: flex;
  gap: var(--space-3);
}

.profile-kitchen-cta__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-kitchen-cta__title {
  font-size: 17px;
  font-weight: 700;
}

.profile-kitchen-cta__text {
  font-size: 14px;
  margin-top: var(--space-1);
  opacity: 0.95;
}

.profile-kitchen-status__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.profile-kitchen-status__name {
  font-size: 17px;
  font-weight: 700;
}

.profile-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 2px var(--space-2);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.profile-badge--warning {
  color: var(--warning);
  background: var(--warning-soft);
}

.profile-badge--success {
  color: var(--success);
  background: var(--success-soft);
}

.profile-kitchen-status__text {
  font-size: 14px;
  color: var(--muted);
  margin-top: var(--space-3);
}

.profile-link {
  display: inline-block;
  margin-top: var(--space-3);
  color: var(--brand-ink);
  font-size: 15px;
  font-weight: 600;
}

.profile-kitchen-active__head {
  display: flex;
  gap: var(--space-3);
}

.profile-kitchen-active__logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.profile-kitchen-active__logo--ph {
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--muted);
}

.profile-kitchen-active__body {
  flex: 1;
  min-width: 0;
}

.profile-kitchen-active__meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: var(--space-1);
}

.profile-kitchen-status .profile-btn--brand {
  margin-top: var(--space-4);
}

.profile-settings {
  padding: 0;
  overflow: hidden;
}

.profile-settings__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 0 var(--space-4);
  border: none;
  background: transparent;
  text-decoration: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.profile-settings__row + .profile-settings__row {
  border-top: 1px solid var(--line);
}

.profile-settings__left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.profile-settings__icon {
  color: var(--muted);
  display: flex;
}

.profile-settings__label {
  font-size: 15px;
  font-weight: 500;
}

.profile-settings__right {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--muted);
}

.profile-settings__value {
  font-size: 13px;
}

.profile-toggle {
  width: 48px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--nav-muted);
  position: relative;
  flex-shrink: 0;
}

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

.profile-toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  transition: transform 0.15s ease;
}

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

.profile-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 52px;
  color: var(--danger);
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
}

.profile__version {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: var(--space-2);
}

.profile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
  padding: var(--space-4);
  max-width: 430px;
  margin: 0 auto;
}

.profile-overlay[hidden] {
  display: none;
}

.profile-sheet {
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
}

.profile-sheet__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.profile-sheet__options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.profile-sheet__option {
  min-height: var(--control-h);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.profile-sheet__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.profile-sheet__close {
  margin-top: var(--space-3);
  width: 100%;
  min-height: var(--control-h);
  border: none;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.soon-screen {
  padding: max(var(--space-4), env(safe-area-inset-top, 0px)) var(--space-4) 104px;
  background: var(--bg);
  min-height: 100%;
}

.soon-screen__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.soon-screen__back {
  width: var(--icon-btn);
  height: var(--icon-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}

.soon-screen__title {
  font-size: 18px;
  font-weight: 700;
}

.soon-screen__msg {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  margin-top: 20vh;
}

/* ===== Oshxona arizasi ===== */

.kitchen-apply {
  padding: max(var(--space-4), env(safe-area-inset-top, 0px)) var(--space-4) 104px;
  background: var(--bg);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kitchen-apply__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 56px;
}

.kitchen-apply__back {
  width: var(--icon-btn);
  height: var(--icon-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  flex-shrink: 0;
}

.kitchen-apply__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.kitchen-apply__intro {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.ka-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-2);
  display: block;
}

.ka-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: var(--space-2);
  line-height: 1.4;
}

.ka-input {
  width: 100%;
  min-height: var(--control-h);
  padding: 0 var(--space-3);
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
}

.ka-input--error,
.ka-logo-box--error,
.ka-fieldset--error .ka-types {
  border-color: var(--danger);
}

.ka-error {
  font-size: 13px;
  color: var(--danger);
  margin-top: var(--space-2);
}

.ka-logo-row {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.ka-logo-box {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border: 2px dashed var(--nav-muted);
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.ka-logo-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.ka-logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  color: var(--brand-ink);
  pointer-events: none;
}

.ka-logo-upload-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-ink);
}

.ka-logo-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface);
  pointer-events: none;
}

.ka-logo-replace {
  position: absolute;
  right: 4px;
  bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-ink);
  background: rgba(255, 255, 255, 0.92);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.ka-logo-desc {
  flex: 1;
  min-width: 0;
}

.ka-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.ka-types {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.ka-type {
  min-height: 40px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.ka-type--on {
  background: var(--nav-bg);
  border-color: var(--nav-bg);
  color: var(--on-brand);
}

.ka-loc-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-1);
}

.ka-loc-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

.ka-map-wrap {
  position: relative;
  margin-top: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.ka-map-wrap--dim .ka-map {
  opacity: 0.6;
  pointer-events: none;
}

.ka-map-wrap--error {
  border-color: var(--danger);
}

.ka-map {
  height: 168px;
  width: 100%;
  z-index: 0;
}

.ka-drag-warn {
  font-size: 13px;
  color: var(--danger);
  margin-top: var(--space-2);
}

.ka-accuracy-warn {
  font-size: 13px;
  color: #92400e;
  background: #fef3c7;
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  margin-top: var(--space-2);
  line-height: 1.4;
}

.ka-manual-warn {
  font-size: 13px;
  color: #92400e;
  background: #fef3c7;
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  margin-top: var(--space-2);
  line-height: 1.4;
}

.ka-manual-pick {
  width: 100%;
  min-height: var(--icon-btn);
  margin-top: var(--space-2);
  padding: 0;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-ink);
  text-align: left;
  cursor: pointer;
}

.ka-manual-pick[hidden],
.ka-manual-warn[hidden],
.ka-drag-warn[hidden],
.ka-accuracy-warn[hidden] {
  display: none !important;
}

.ka-geo-btn {
  position: absolute;
  left: 50%;
  bottom: var(--space-3);
  transform: translateX(-50%);
  min-height: var(--icon-btn);
  padding: 0 var(--space-4);
  border: none;
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  z-index: 500;
  cursor: pointer;
}

.ka-geo-btn:disabled {
  opacity: 0.75;
  cursor: wait;
}

.ka-map-marker {
  background: var(--brand-ink);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.25);
}

.kitchen-apply__bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-3) var(--space-4) max(var(--space-4), env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--line);
  z-index: 20;
}

.ka-submit {
  width: 100%;
  min-height: var(--control-h);
  border: none;
  border-radius: var(--radius-md);
  background: var(--brand-ink);
  color: var(--on-brand);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.ka-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.ka-submit-error {
  font-size: 13px;
  color: var(--danger);
  margin-bottom: var(--space-2);
  text-align: center;
}

.kitchen-apply-done {
  padding: max(var(--space-4), env(safe-area-inset-top, 0px)) var(--space-6) var(--space-6);
  background: var(--bg);
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kitchen-apply-done__center {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

.kitchen-apply-done__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--success-soft);
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kitchen-apply-done__title {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
}

.kitchen-apply-done__text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 320px;
}

.kitchen-apply-done__phone {
  color: var(--ink);
  font-weight: 600;
}

.kitchen-apply-done__card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: left;
}

.kitchen-apply-done__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.kitchen-apply-done__btn {
  width: 100%;
  margin-top: var(--space-2);
  text-align: center;
  text-decoration: none;
}