

.profile-widget__overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
      align-items: center;
  backdrop-filter: blur(8px);
  animation: profFadeIn .15s var(--ease-out);
      justify-content: center;
}

@keyframes profFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.profile-widget {
    width: 100%;
    max-width: 480px;
    
    background: var(--c-surface);
    border-radius: 20px;
    border-top: 1px solid var(--c-border2);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.profile-widget::-webkit-scrollbar { display: none; }


.profile-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: var(--c-surface);
  z-index: 6;
  border-bottom: 1px solid var(--c-border);
      width: 100%;
}

.profile-widget__location-selects{
display: flex;
gap: 0.5rem;
}


.profile-widget__close,
.profile-widget__edit {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  background: var(--c-surface2);
  color: var(--c-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background .2s var(--ease-out), transform .2s var(--ease-out);
}

.profile-widget__close:hover,
.profile-widget__edit:hover {
  background: var(--c-surface3);
  transform: translateY(-1px);
}

.profile-widget__title {
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.02em;
}


.profile-widget__header-img {
  width: 100%;
  height: 140px;
  background: var(--c-surface2);
  position: relative;
  overflow: hidden;
}

.profile-widget__header-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-widget__header-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--c-surface), var(--c-surface2), var(--c-surface3));
}

.profile-widget__media-edit {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: var(--r-full);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background .2s var(--ease-out);
}

.profile-widget__media-edit:hover {
  background: rgba(0, 0, 0, 0.7);
}


.profile-widget__avatar-wrap {
  display: flex;
  justify-content: center;
  margin-top: -44px;
  position: relative;
  z-index: 1;
}

.profile-widget__avatar {
  width: 88px;
  height: 88px;
  border-radius: var(--r-lg);
  border: 4px solid var(--c-surface);
  background: var(--c-surface2);
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.profile-widget__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-widget__avatar i {
  font-size: 34px;
  color: var(--c-muted2);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.profile-widget__avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--c-surface);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: background .2s var(--ease-out);
}

.profile-widget__avatar-edit:hover {
  background: var(--c-accent);
  color: var(--c-bg);
}


.profile-widget__info {
  text-align: center;
  padding: 12px 20px 16px;
}

.profile-widget__name {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--c-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: -0.03em;
}

.profile-widget__verified {
  color: var(--c-accent);
  font-size: 14px;
}

.profile-widget__handle {
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--c-muted);
  margin-top: 2px;
}


.profile-widget__fields {
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}

.profile-widget__field {
  padding: 14px 0;
  border-bottom: 1px solid var(--c-border);
}

.profile-widget__field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-size: 11px;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.profile-widget__field label i {
  font-size: 13px;
  opacity: 0.6;
}

.profile-widget__value {
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--c-text);
}

.profile-widget__value--muted {
  color: var(--c-muted);
  font-style: italic;
}


.profile-widget__input,
.profile-widget__textarea,
.profile-widget__select {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--c-surface2);
  border: 1px solid var(--c-border2);
  color: var(--c-text);
  font-family: var(--ff-body);
  font-size: 14px;
  outline: none;
  transition: border-color .2s var(--ease-out);
}

.profile-widget__input:focus,
.profile-widget__textarea:focus,
.profile-widget__select:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 1px var(--c-accent-dim);
}

.profile-widget__textarea {
  resize: none;
}

.profile-widget__select option {
  background: var(--c-surface);
  color: var(--c-text);
}

.profile-widget__char-count {
  display: block;
  text-align: right;
  font-family: var(--ff-body);
  font-size: 10px;
  color: var(--c-muted2);
  margin-top: 4px;
}

.profile-widget__phone-wrap {
  display: flex;
  gap: 8px;
}

.profile-widget__country-code {
  width: 90px;
  padding: 10px 8px;
  border-radius: var(--r-sm);
  background: var(--c-surface2);
  border: 1px solid var(--c-border2);
  color: var(--c-text);
  font-family: var(--ff-body);
  font-size: 13px;
  outline: none;
}

.profile-widget__input--phone {
  flex: 1;
}


.profile-widget__nav-btn,
.profile-widget__pin-btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--ff-body);
  font-size: 14px;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}

.profile-widget__nav-btn:hover,
.profile-widget__pin-btn:hover {
  background: var(--c-surface3);
  color: var(--c-text);
}

.profile-widget__nav-btn i,
.profile-widget__pin-btn i {
  font-size: 12px;
  opacity: 0.5;
}


.profile-widget__error {
  font-family: var(--ff-body);
  font-size: 11px;
  color: var(--c-danger);
  margin-top: 4px;
  display: none;
}

.profile-widget__error.is-visible {
  display: flex;
    justify-content: center;
}


.profile-widget__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 20px 40px;
}

.profile-widget__btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--r-md);
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .2s var(--ease-out), background .2s var(--ease-out), box-shadow .2s var(--ease-out);
}

.profile-widget__btn--primary {
  background: var(--c-accent);
  color: var(--c-bg);
  box-shadow: 0 0 20px var(--c-accent-dim);
}

.profile-widget__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px var(--c-accent-glow);
}

.profile-widget__btn--primary:disabled {
  opacity: 0.5;
  transform: none;
  box-shadow: none;
}

.profile-widget__btn--ghost {
  background: var(--c-surface2);
  color: var(--c-muted);
  border: 1px solid var(--c-border);
}

.profile-widget__btn--ghost:hover {
  background: var(--c-surface3);
  color: var(--c-text);
}

.profile-widget__btn--logout {
  background: var(--c-surface2);
  color: var(--c-muted);
  border: 1px solid var(--c-border);
}

.profile-widget__btn--logout:hover {
  background: var(--c-surface3);
  color: var(--c-text);
}

.profile-widget__btn--danger {
  background: transparent;
  color: var(--c-danger);
}

.profile-widget__btn--danger:hover {
  background: rgba(255, 82, 82, 0.08);
}

.profile-widget__btn--danger-solid {
  background: var(--c-danger);
  color: #fff;
}

.profile-widget__btn--danger-solid:hover {
  filter: brightness(1.1);
}

.profile-widget__btn--full {
  width: 100%;
  margin: 0.5rem 0;
}


.profile-widget__subview-content {
  padding: 20px;
}

.profile-widget__subform {
  max-width: 360px;
  margin: 0 auto;
  padding: 20px 0;
}

.profile-widget__subform--center {
  text-align: center;
}

.profile-widget__subform-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--c-surface3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
  color: var(--c-accent);
  border: 1px solid var(--c-border2);
}

.profile-widget__subform-icon--danger {
  color: var(--c-danger);
  background: rgba(255, 82, 82, 0.08);
  border-color: rgba(255, 82, 82, 0.15);
}

.profile-widget__subform-desc {
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 20px;
}

.profile-widget__subform-desc strong {
  color: var(--c-text);
}

.profile-widget__form-error {
  font-family: var(--ff-body);
  font-size: 12px;
  color: var(--c-danger);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: rgba(255, 82, 82, 0.06);
  border: 1px solid rgba(255, 82, 82, 0.1);
  margin-bottom: 12px;
}

.profile-widget__success-icon {
  font-size: 48px;
  color: var(--c-accent);
  display: block;
  margin-bottom: 12px;
}


.profile-widget__pin-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.profile-widget__pin-dot {
  width: 14px;
  height: 14px;
  border-radius: var(--r-full);
  border: 2px solid var(--c-border2);
  background: transparent;
  transition: all .2s var(--ease-out);
}

.profile-widget__pin-dot.is-filled {
  background: var(--c-accent);
  border-color: var(--c-accent);
}

.profile-widget__pin-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}


.profile-widget__pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 240px;
  margin: 0 auto;
}

.profile-widget__pin-key {
  height: 48px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  background: var(--c-surface2);
  color: var(--c-text);
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s var(--ease-out);
}

.profile-widget__pin-key:hover {
  background: var(--c-surface3);
}

.profile-widget__pin-key--empty {
  background: transparent;
  border: none;
  cursor: default;
}


.profile-widget__pw-wrap {
  position: relative;
}

.profile-widget__pw-wrap .profile-widget__input {
  padding-right: 44px;
}

.profile-widget__pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--c-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 6px;
}

.profile-widget__pw-toggle:hover {
  color: var(--c-text);
}


.profile-widget__delete-rules {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.profile-widget__delete-rule {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--ff-body);
  font-size: 12px;
  color: var(--c-muted);
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
}

.profile-widget__delete-rule i {
  color: var(--c-warning);
  font-size: 13px;
  margin-top: 1px;
}


.profile-widget__input--code {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  font-family: var(--ff-display);
  letter-spacing: 12px;
}


@media (min-width: 768px) {
  .profile-widget__overlay {
    align-items: center;
    padding: 40px;
  }

  .profile-widget {
    max-height: 85vh;
    border-radius: 28px;
    border: 1px solid var(--c-border2);
  }
}
.profile-widget__handle-input-wrap {
  display: flex;
  align-items: center;
}

.profile-widget__subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(184,245,61,0.1);
  border: 1px solid rgba(184,245,61,0.25);
  color: var(--c-accent);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.profile-widget__subscribe-btn:hover {
  background: rgba(184,245,61,0.18);
}
.profile-widget__subscribe-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.3);
}


.profile-widget__subscribe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--c-accent, #b8f53d);
  color: #080808;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  width: 100%;
}
.profile-widget__subscribe-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.profile-widget__subscribe-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  filter: none;
}




.profile-widget__handle-prefix {
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--c-muted);
  padding: 10px;
  background: var(--c-surface2);
  border: 1px solid var(--c-border2);
  border-right: none;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
}

.profile-widget__handle-input-wrap .profile-widget__input {
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.profile-widget__hint {
  font-family: var(--ff-body);
  font-size: 11px;
  margin-top: 4px;
  display: block;
}

.profile-widget__edit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  margin-top: 14px;
  border-radius: var(--r-sm);
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  cursor: pointer;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  transition: background .2s var(--ease-out), color .2s var(--ease-out), transform .2s var(--ease-out);
}


.profile-widget__verify-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  margin-top: 14px;
  border-radius: var(--r-sm);
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  cursor: pointer;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  transition: background .2s var(--ease-out), color .2s var(--ease-out), transform .2s var(--ease-out);

}


.profile-widget__edit-btn:hover {
  background: var(--c-surface3);
  color: var(--c-text);
  transform: translateY(-1px);
}

.profile-widget__edit-btn.is-active {
  background: rgba(255, 82, 82, 0.08);
  border-color: rgba(255, 82, 82, 0.15);
  color: var(--c-danger);
}

.profile-widget__edit-btn.is-active:hover {
  background: rgba(255, 82, 82, 0.12);
}

.profile-widget__toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-widget__toggle-label {
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--c-text);
}

.profile-widget__toggle {
  width: 48px;
  height: 28px;
  border-radius: 14px;
  background: var(--c-surface3);
  border: 1px solid var(--c-border2);
  cursor: pointer;
  position: relative;
  transition: background 0.2s var(--ease-out);
  padding: 0;
}

.profile-widget__toggle.is-active {
  background: var(--c-accent);
  border-color: var(--c-accent);
}

.profile-widget__toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s var(--ease-out);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.profile-widget__toggle.is-active .profile-widget__toggle-knob {
  transform: translateX(20px);
}
.profile-widget__toggle.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--c-surface3);
  border-color: var(--c-border2);
}

.profile-widget__toggle.is-disabled.is-active {
  background: var(--c-accent);
  opacity: 0.4;
}
.profile-widget__media-edit {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: var(--r-full);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  z-index: 5;
}

.profile-widget__header-img {
  position: relative;
  width: 100%;
  height: 140px;
  background: var(--c-surface2);
  overflow: hidden;
}
.profile-widget__info-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-widget__share-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-top: 14px;
}
.profile-widget__share-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.profile-widget__content {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
}
.profile-widget__content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.verification__selfie-preview {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  margin-top: 12px;
}
