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

:root {
  --nv-bg: #ffffff;
  --nv-bg-page: #eef2ff;
  --nv-bg-tinted: #f0f4ff;
  --nv-bg-info: #f0f4ff;
  --nv-primary: #2962FF;
  --nv-primary-hover: #1e4fcc;
  --nv-primary-light: rgba(41, 98, 255, 0.08);
  --nv-primary-border: rgba(41, 98, 255, 0.3);
  --nv-text: #1a1a2e;
  --nv-text-muted: #6b7280;
  --nv-text-light: #9ca3af;
  --nv-border: #e5e7eb;
  --nv-border-focus: #2962FF;
  --nv-success: #10b981;
  --nv-error: #ef4444;
  --nv-warning: #f59e0b;
  --nv-radius: 12px;
  --nv-radius-sm: 8px;
  --nv-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --nv-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --nv-font: 'Inter', system-ui, -apple-system, sans-serif;
  --nv-transition: 0.2s ease;
}

body {
  font-family: var(--nv-font);
  background: var(--nv-bg-page);
  color: var(--nv-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* Widget Container */
.nv-widget {
  width: 100%;
  max-width: 480px;
  height: 666px;
  max-height: 90vh;
  background: var(--nv-bg);
  border-radius: 20px;
  box-shadow: var(--nv-shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Widget Header */
.nv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 12px;
  position: relative;
}

.nv-header__back {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--nv-text);
  transition: background var(--nv-transition);
}

.nv-header__back:hover {
  background: var(--nv-bg-tinted);
}

.nv-header__back svg {
  width: 20px;
  height: 20px;
}

.nv-header__back[hidden] {
  visibility: hidden;
}

.nv-header__title {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  flex: 1;
}

.nv-header__menu {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--nv-text);
  transition: background var(--nv-transition);
}

.nv-header__menu:hover {
  background: var(--nv-bg-tinted);
}

.nv-header__menu svg {
  width: 20px;
  height: 20px;
}

/* Widget Body */
.nv-body {
  flex: 1;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-height: 0;
}

/* Widget Footer */
.nv-footer {
  padding: 16px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--nv-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  background: var(--nv-bg);
}

.nv-footer__logo {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--nv-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nv-footer__logo svg {
  width: 10px;
  height: 10px;
  fill: #fff;
}

/* Screen Visibility */
.nv-screen {
  display: none;
  flex-direction: column;
  flex: 1;
}

.nv-screen.active {
  display: flex;
}

/* Sticky action button at bottom of screen */
.nv-screen__action {
  margin-top: auto;
  position: sticky;
  bottom: 0;
  padding: 16px 0;
  background: var(--nv-bg);
  z-index: 5;
}

.nv-screen__action::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: -24px;
  right: -24px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--nv-bg));
  pointer-events: none;
}

/* ==================== MAIN EXCHANGE SCREEN ==================== */

/* Mode Toggle (Buy/Sell) */
.nv-mode-toggle {
  display: flex;
  background: var(--nv-bg-tinted);
  border-radius: var(--nv-radius);
  padding: 4px;
  margin-bottom: 20px;
}

.nv-mode-toggle__btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: none;
  border-radius: var(--nv-radius-sm);
  font-family: var(--nv-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--nv-text-muted);
  cursor: pointer;
  transition: all var(--nv-transition);
}

.nv-mode-toggle__btn.active {
  background: var(--nv-bg);
  color: var(--nv-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Amount Box */
.nv-amount-box {
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  padding: 16px;
  margin-bottom: 8px;
}

.nv-amount-box__label {
  font-size: 12px;
  color: var(--nv-text-muted);
  margin-bottom: 8px;
}

.nv-amount-box__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nv-amount-box__input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--nv-font);
  font-size: 28px;
  font-weight: 600;
  color: var(--nv-text);
  background: transparent;
  min-width: 0;
  padding: 0;
  line-height: 1;
}

.nv-amount-box__input::placeholder {
  color: var(--nv-text-light);
}

.nv-amount-box__input::-webkit-outer-spin-button,
.nv-amount-box__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.nv-amount-box__input[type=number] {
  -moz-appearance: textfield;
}

/* Currency Selector Button */
.nv-currency-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--nv-radius-sm);
  transition: background var(--nv-transition);
  white-space: nowrap;
}

.nv-currency-btn:hover {
  background: var(--nv-bg-tinted);
}

.nv-currency-btn__icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.nv-currency-btn__icon .nv-flag-img {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

.nv-currency-btn__icon .nv-crypto-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.nv-currency-btn__ticker {
  font-size: 16px;
  font-weight: 600;
  color: var(--nv-text);
}

.nv-currency-btn__chevron {
  width: 16px;
  height: 16px;
  color: var(--nv-text-muted);
}

.nv-currency-btn__network {
  font-size: 10px;
  color: var(--nv-text-muted);
  background: var(--nv-bg-tinted);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 2px;
}

.nv-currency-btn__info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Exchange Info */
.nv-exchange-info {
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nv-exchange-info__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--nv-text-muted);
  position: relative;
}

.nv-exchange-info__icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nv-exchange-info__label {
  color: var(--nv-text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nv-exchange-info__fees {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nv-exchange-info__row--total {
  padding-top: 6px;
  border-top: 1px solid var(--nv-border);
}

.nv-exchange-info__row a {
  color: var(--nv-primary);
  text-decoration: none;
  cursor: pointer;
}

.nv-exchange-info__row a:hover {
  text-decoration: underline;
}

/* Info Button */
.nv-info-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--nv-text-light);
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transition: color 0.15s;
}

.nv-info-btn:hover {
  color: var(--nv-text-muted);
}

/* Tooltip */
.nv-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 20px;
  right: 0;
  background: #1a1a2e;
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: var(--nv-radius-sm);
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.nv-tooltip.visible {
  display: block;
  pointer-events: auto;
}

/* Payment Method */
.nv-payment-method {
  padding: 4px 0 12px;
}

.nv-payment-method__label {
  font-size: 13px;
  color: var(--nv-text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nv-payment-method__label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--nv-text-light);
  border-radius: 50%;
}

.nv-payment-methods {
  display: flex;
  gap: 12px;
}

.nv-payment-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius-sm);
  background: none;
  cursor: pointer;
  font-family: var(--nv-font);
  font-size: 12px;
  color: var(--nv-text);
  transition: all var(--nv-transition);
}

.nv-payment-opt.active {
  border-color: var(--nv-primary);
  background: var(--nv-primary-light);
}

.nv-payment-opt__radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--nv-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nv-payment-opt.active .nv-payment-opt__radio {
  border-color: var(--nv-primary);
}

.nv-payment-opt.active .nv-payment-opt__radio::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--nv-primary);
  border-radius: 50%;
}

.nv-payment-opt__icons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nv-payment-opt__icons img,
.nv-payment-opt__icons svg {
  height: 18px;
}

/* Receive Box */
.nv-receive-box {
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  padding: 16px;
  margin-top: auto;
  margin-bottom: 16px;
}

/* Main CTA Button */
.nv-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--nv-radius);
  font-family: var(--nv-font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--nv-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.nv-btn--primary:hover {
  background: var(--nv-primary-hover);
}

.nv-btn--primary:disabled {
  background: #b4c6f0;
  cursor: not-allowed;
}

.nv-btn--outline {
  background: var(--nv-bg);
  color: var(--nv-text);
  border: 1px solid var(--nv-border);
}

.nv-btn--outline:hover {
  background: var(--nv-bg-tinted);
}

.nv-btn--sm {
  padding: 10px 20px;
  font-size: 14px;
  width: auto;
}

/* ==================== SELECT CURRENCY SCREEN ==================== */

.nv-search {
  position: relative;
  margin-bottom: 16px;
}

.nv-search__input {
  width: 100%;
  padding: 12px 12px 12px 44px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  font-family: var(--nv-font);
  font-size: 14px;
  color: var(--nv-text);
  background: var(--nv-bg);
  outline: none;
  transition: border-color var(--nv-transition);
}

.nv-search__input::placeholder {
  color: var(--nv-text-light);
}

.nv-search__input:focus {
  border-color: var(--nv-border-focus);
}

.nv-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--nv-text-light);
}

/* Network Filter */
.nv-network-filter {
  position: relative;
  display: inline-block;
}

.nv-search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.nv-search-row .nv-search {
  flex: 1;
  margin-bottom: 0;
}

.nv-network-filter__btn {
  padding: 10px 16px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  background: var(--nv-bg);
  font-family: var(--nv-font);
  font-size: 14px;
  color: var(--nv-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: border-color var(--nv-transition);
}

.nv-network-filter__btn:focus,
.nv-network-filter__btn.open {
  border-color: var(--nv-border-focus);
}

.nv-network-filter__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 180px;
  background: var(--nv-bg);
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  box-shadow: var(--nv-shadow);
  z-index: 10;
  display: none;
  overflow: hidden;
}

.nv-network-filter__dropdown.open {
  display: block;
}

.nv-network-filter__opt {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--nv-text);
  cursor: pointer;
  transition: background var(--nv-transition);
  display: block;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  font-family: var(--nv-font);
}

.nv-network-filter__opt:hover,
.nv-network-filter__opt.active {
  background: var(--nv-bg-tinted);
  color: var(--nv-primary);
  font-weight: 500;
}

/* Currency List */
.nv-currency-list__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--nv-text);
  margin-bottom: 12px;
}

.nv-currency-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nv-currency-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  cursor: pointer;
  border-radius: var(--nv-radius-sm);
  transition: background var(--nv-transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--nv-font);
}

.nv-currency-item:hover {
  background: var(--nv-bg-tinted);
}

.nv-currency-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nv-crypto-img {
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.nv-crypto-img--list {
  width: 36px;
  height: 36px;
}

.nv-flag-img {
  object-fit: cover;
  display: block;
}

.nv-flag-img--list {
  width: 30px;
  height: 22px;
  border-radius: 3px;
}

.nv-currency-item__info {
  flex: 1;
  min-width: 0;
}

.nv-currency-item__ticker {
  font-size: 14px;
  font-weight: 600;
  color: var(--nv-text);
}

.nv-currency-item__name {
  font-size: 13px;
  color: var(--nv-text-muted);
}

.nv-currency-item__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nv-currency-item__network {
  font-size: 11px;
  color: var(--nv-text-muted);
  background: var(--nv-bg-tinted);
  padding: 2px 10px;
  border-radius: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ==================== AUTH SCREEN ==================== */

.nv-auth__welcome {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.nv-auth__welcome-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--nv-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nv-auth__welcome-logo svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

.nv-auth__subtitle {
  color: var(--nv-primary);
  font-size: 14px;
  margin-bottom: 24px;
}

.nv-auth__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--nv-text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nv-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  font-family: var(--nv-font);
  font-size: 14px;
  color: var(--nv-text);
  outline: none;
  transition: border-color var(--nv-transition);
  background: var(--nv-bg);
}

.nv-input::placeholder {
  color: var(--nv-text-light);
}

.nv-input:focus {
  border-color: var(--nv-border-focus);
}

.nv-input--error {
  border-color: var(--nv-error);
}

.nv-auth__email-input {
  margin-bottom: 16px;
}

.nv-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--nv-text-light);
  font-size: 13px;
}

.nv-divider::before,
.nv-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--nv-border);
}

.nv-social-btn {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  background: var(--nv-bg);
  font-family: var(--nv-font);
  font-size: 14px;
  font-weight: 500;
  color: var(--nv-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background var(--nv-transition);
  margin-bottom: 10px;
}

.nv-social-btn:hover {
  background: var(--nv-bg-tinted);
}

.nv-social-btn svg {
  width: 20px;
  height: 20px;
}

/* ==================== VERIFY OTP SCREEN ==================== */

.nv-verify__info {
  background: var(--nv-bg-tinted);
  border-radius: var(--nv-radius);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--nv-text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.nv-verify__info strong {
  color: var(--nv-text);
}

.nv-otp-input {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  justify-content: center;
}

.nv-otp-input__digit {
  width: 48px;
  height: 54px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius-sm);
  text-align: center;
  font-family: var(--nv-font);
  font-size: 22px;
  font-weight: 600;
  color: var(--nv-text);
  outline: none;
  transition: border-color var(--nv-transition);
  background: var(--nv-bg);
  flex-shrink: 0;
}

.nv-otp-input__digit:focus {
  border-color: var(--nv-primary);
  background: var(--nv-primary-light);
}

.nv-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  cursor: pointer;
}

.nv-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--nv-primary);
  flex-shrink: 0;
}

.nv-checkbox__text {
  font-size: 13px;
  color: var(--nv-text-muted);
}

.nv-checkbox__text a {
  color: var(--nv-primary);
  text-decoration: underline;
}

/* ==================== KYC SCREENS ==================== */

/* Progress Bar */
.nv-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.nv-progress__bar {
  flex: 1;
  height: 6px;
  background: var(--nv-border);
  border-radius: 3px;
  overflow: hidden;
}

.nv-progress__fill {
  height: 100%;
  background: var(--nv-primary);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.nv-progress__check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--nv-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nv-progress__check svg {
  width: 12px;
  height: 12px;
  fill: #fff;
}

.nv-kyc-step {
  font-size: 12px;
  font-weight: 600;
  color: var(--nv-text-muted);
  text-align: right;
  margin-bottom: 12px;
}

.nv-kyc-instruction {
  font-size: 13px;
  color: var(--nv-primary);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Form Grid */
.nv-form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.nv-form-group {
  margin-bottom: 16px;
}

.nv-form-row .nv-form-group {
  flex: 1;
  margin-bottom: 0;
}

.nv-form-group__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--nv-text);
  margin-bottom: 6px;
  display: block;
}

.nv-select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  font-family: var(--nv-font);
  font-size: 14px;
  color: var(--nv-text);
  outline: none;
  background: var(--nv-bg);
  cursor: pointer;
  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='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  transition: border-color var(--nv-transition);
}

.nv-select:focus {
  border-color: var(--nv-border-focus);
}

/* Country Picker */
.nv-country-picker__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  font-family: var(--nv-font);
  font-size: 14px;
  color: var(--nv-text);
  background: var(--nv-bg);
  cursor: pointer;
  outline: none;
  transition: border-color var(--nv-transition);
}

.nv-country-picker__btn:focus {
  border-color: var(--nv-border-focus);
}

.nv-country-picker__flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.nv-country-picker__label {
  flex: 1;
  text-align: left;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nv-country-picker__label.placeholder {
  color: var(--nv-text-light);
}

.nv-country-picker__btn svg {
  flex-shrink: 0;
  color: var(--nv-text-muted);
}

/* Phone Input */
.nv-phone-input {
  display: flex;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  overflow: hidden;
  transition: border-color var(--nv-transition);
}

.nv-phone-input:focus-within {
  border-color: var(--nv-border-focus);
}

.nv-phone-input__prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: var(--nv-bg-tinted);
  border: none;
  border-right: 1px solid var(--nv-border);
  cursor: pointer;
  font-family: var(--nv-font);
  font-size: 13px;
  color: var(--nv-text);
  flex-shrink: 0;
}

.nv-phone-input__prefix:hover {
  background: var(--nv-bg-info);
}

.nv-phone-input__prefix-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.nv-phone-input__prefix-code {
  font-size: 13px;
  color: var(--nv-text);
  white-space: nowrap;
}

.nv-phone-input__number {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 16px;
  font-family: var(--nv-font);
  font-size: 14px;
  color: var(--nv-text);
  background: transparent;
}

/* DOB */
.nv-dob-row {
  display: flex;
  gap: 8px;
}

.nv-dob-row .nv-select {
  flex: 1;
}

.nv-dob-row .nv-select:first-child {
  flex: 0.7;
}

/* Purpose Checkboxes */
.nv-purpose-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

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

.nv-purpose-item:hover {
  border-color: var(--nv-primary-border);
}

.nv-purpose-item.selected {
  border-color: var(--nv-primary);
  background: var(--nv-primary-light);
}

.nv-purpose-item__check {
  width: 20px;
  height: 20px;
  border: 2px solid var(--nv-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--nv-transition);
}

.nv-purpose-item.selected .nv-purpose-item__check {
  background: var(--nv-primary);
  border-color: var(--nv-primary);
}

.nv-purpose-item.selected .nv-purpose-item__check svg {
  display: block;
}

.nv-purpose-item__check svg {
  width: 12px;
  height: 12px;
  fill: #fff;
  display: none;
}

/* ID Proof */
.nv-idproof__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--nv-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px auto;
}

.nv-idproof__icon svg {
  width: 28px;
  height: 28px;
  color: var(--nv-primary);
}

.nv-idproof__url {
  font-size: 12px;
  color: var(--nv-text-muted);
  text-align: center;
  word-break: break-all;
  margin-bottom: 12px;
}

.nv-idproof__copy {
  display: block;
  margin: 0 auto 16px;
}

.nv-idproof__hint {
  font-size: 13px;
  color: var(--nv-text-muted);
  text-align: center;
  margin-bottom: 16px;
}

.nv-idproof__email-box {
  background: var(--nv-bg-tinted);
  border-radius: var(--nv-radius);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--nv-text-muted);
  margin-bottom: 16px;
}

.nv-idproof__email-box strong {
  color: var(--nv-text);
}

.nv-idproof__keep {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--nv-text-muted);
}

.nv-idproof__keep svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--nv-warning);
}

/* Wallet Screen */

.nv-wallet__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.nv-wallet__label-row .nv-form-group__label {
  margin-bottom: 0;
}

.nv-wallet__network {
  font-size: 12px;
  color: var(--nv-primary);
  background: var(--nv-primary-light);
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 500;
}

.nv-wallet__input-wrap {
  position: relative;
}

.nv-wallet__input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  pointer-events: none;
}

.nv-wallet__input {
  padding-left: 48px;
}

.nv-wallet__select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  background: var(--nv-bg);
  font-family: var(--nv-font);
  font-size: 14px;
  color: var(--nv-text-light);
  cursor: pointer;
  transition: border-color var(--nv-transition);
}

.nv-wallet__select-btn:hover {
  border-color: var(--nv-primary-border);
}

.nv-wallet__select-btn.has-value {
  color: var(--nv-text);
  font-weight: 600;
}

.nv-wallet__select-btn svg {
  color: var(--nv-primary);
  flex-shrink: 0;
}

.nv-wallet__compliance {
  font-size: 12px;
  color: var(--nv-text-muted);
  text-align: center;
  line-height: 1.5;
  background: var(--nv-bg-tinted);
  padding: 14px 16px;
  border-radius: var(--nv-radius);
  margin-bottom: 12px;
}

#screen-wallet .nv-form-group {
  margin-bottom: 16px;
}

#screen-wallet .nv-form-group:last-of-type {
  margin-bottom: 0;
}

#screen-wallet .nv-screen__action {
  padding-top: 0;
}

.nv-wallet__hint {
  display: none;
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.3;
}

.nv-wallet__hint.error {
  display: block;
  color: var(--nv-error);
}

.nv-wallet__hint.valid {
  display: block;
  color: var(--nv-success);
}

.nv-wallet__input.invalid {
  border-color: var(--nv-error);
}

/* Bottom Sheet */

.nv-sheet {
  text-align: left;
  padding: 24px;
  overflow-y: auto;
}

.nv-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.nv-sheet__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--nv-text);
}

.nv-sheet__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--nv-border);
  border-radius: 50%;
  background: var(--nv-bg);
  color: var(--nv-text-muted);
  cursor: pointer;
  flex-shrink: 0;
}

.nv-sheet__close:hover {
  background: var(--nv-bg-tinted);
}

.nv-sheet__subtitle {
  font-size: 13px;
  color: var(--nv-text-muted);
  margin-bottom: 16px;
}

.nv-sheet__search {
  margin-bottom: 12px;
}

.nv-sheet__list {
  max-height: 300px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nv-sheet__list::-webkit-scrollbar {
  width: 6px;
}

.nv-sheet__list::-webkit-scrollbar-track {
  background: transparent;
}

.nv-sheet__list::-webkit-scrollbar-thumb {
  background: var(--nv-border);
  border-radius: 3px;
}

/* Sheet option (wallet type) */

.nv-sheet-option {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 16px;
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  background: var(--nv-bg);
  width: 100%;
  text-align: left;
  font-family: var(--nv-font);
  cursor: pointer;
  transition: border-color var(--nv-transition), background var(--nv-transition);
  margin-bottom: 12px;
}

.nv-sheet-option:hover {
  border-color: var(--nv-primary-border);
}

.nv-sheet-option.selected {
  border-color: var(--nv-primary);
  background: var(--nv-primary-light);
}

.nv-sheet-option__radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--nv-border);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--nv-transition);
}

.nv-sheet-option.selected .nv-sheet-option__radio {
  border-color: var(--nv-primary);
}

.nv-sheet-option.selected .nv-sheet-option__radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--nv-primary);
}

.nv-sheet-option__content {
  flex: 1;
  min-width: 0;
}

.nv-sheet-option__name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--nv-text);
}

.nv-sheet-option__name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.nv-sheet-option__icon {
  width: 56px;
  height: 20px;
  flex-shrink: 0;
}

.nv-sheet-option__desc {
  display: block;
  width: 100%;
  font-size: 12px;
  color: var(--nv-text-muted);
  line-height: 1.4;
}

/* Sheet exchange item */

.nv-sheet-exchange {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  cursor: pointer;
  border-radius: var(--nv-radius-sm);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--nv-font);
  transition: background var(--nv-transition);
}

.nv-sheet-exchange:hover {
  background: var(--nv-bg-tinted);
}

.nv-sheet-exchange__initial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--nv-bg-tinted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--nv-primary);
}

.nv-sheet-exchange__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--nv-text);
}

/* Sheet country item */

.nv-sheet-country {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  cursor: pointer;
  border-radius: var(--nv-radius-sm);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--nv-font);
  transition: background var(--nv-transition);
}

.nv-sheet-country:hover {
  background: var(--nv-bg-tinted);
}

.nv-sheet-country.active {
  background: var(--nv-primary-light);
}

.nv-sheet-country__flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.nv-sheet-country__name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--nv-text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nv-sheet-country__code {
  font-size: 13px;
  color: var(--nv-text-light);
  flex-shrink: 0;
}

/* ==================== ERROR MODAL ==================== */

.nv-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  border-radius: 20px;
  overflow: hidden;
}

.nv-modal-overlay.open {
  display: flex;
}

.nv-modal {
  background: var(--nv-bg);
  border-radius: 20px 20px 0 0;
  padding: 32px 24px 24px;
  width: 100%;
  max-height: 80%;
  text-align: center;
  animation: nv-slide-up 0.3s ease;
}

@keyframes nv-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.nv-modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
}

.nv-modal__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.nv-modal__text {
  font-size: 13px;
  color: var(--nv-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ==================== LOADING SPINNER ==================== */

.nv-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: nv-spin 0.6s linear infinite;
}

@keyframes nv-spin {
  to { transform: rotate(360deg); }
}

/* ==================== SCROLLBAR ==================== */

.nv-body::-webkit-scrollbar {
  width: 6px;
}

.nv-body::-webkit-scrollbar-track {
  background: transparent;
}

.nv-body::-webkit-scrollbar-thumb {
  background: var(--nv-border);
  border-radius: 3px;
}

.nv-body::-webkit-scrollbar-thumb:hover {
  background: var(--nv-text-light);
}

.nv-currency-list::-webkit-scrollbar {
  width: 6px;
}

.nv-currency-list::-webkit-scrollbar-track {
  background: transparent;
}

.nv-currency-list::-webkit-scrollbar-thumb {
  background: var(--nv-border);
  border-radius: 3px;
}

.nv-currency-list::-webkit-scrollbar-thumb:hover {
  background: var(--nv-text-light);
}

/* Select Exchange */

.nv-exchange-screen__subtitle {
  font-size: 14px;
  color: var(--nv-text-muted);
  margin-bottom: 16px;
}

.nv-exchange-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nv-exchange-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  border-radius: var(--nv-radius-sm);
  transition: background var(--nv-transition);
  border: 1px solid var(--nv-border);
  background: var(--nv-bg);
  width: 100%;
  text-align: left;
  font-family: var(--nv-font);
  margin-bottom: 8px;
}

.nv-exchange-item:hover {
  background: var(--nv-bg-tinted);
  border-color: var(--nv-primary-border);
}

.nv-exchange-item.selected {
  background: var(--nv-primary-light);
  border-color: var(--nv-primary);
}

.nv-exchange-item__initial {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--nv-bg-tinted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--nv-primary);
}

.nv-exchange-item__info {
  flex: 1;
  min-width: 0;
}

.nv-exchange-item__name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--nv-text);
}

.nv-exchange-item__desc {
  display: block;
  font-size: 12px;
  color: var(--nv-text-muted);
  margin-top: 1px;
}

.nv-exchange-list::-webkit-scrollbar {
  width: 6px;
}

.nv-exchange-list::-webkit-scrollbar-track {
  background: transparent;
}

.nv-exchange-list::-webkit-scrollbar-thumb {
  background: var(--nv-border);
  border-radius: 3px;
}

.nv-exchange-list::-webkit-scrollbar-thumb:hover {
  background: var(--nv-text-light);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 520px) {
  body {
    padding: 0;
    align-items: stretch;
  }
  .nv-widget {
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
}

@media (max-width: 380px) {
  .nv-amount-box__input {
    font-size: 22px;
  }
  .nv-header {
    padding: 16px 16px 8px;
  }
  .nv-body {
    padding: 0 16px;
  }
  .nv-footer {
    padding: 12px 16px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
