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

:root {
  --primary: #1a365d;
  --primary-light: #2563eb;
  --primary-dark: #0f172a;
  --accent: #f59e0b;
  --success: #10b981;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1);
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 50%, #fef3c7 100%);
  min-height: 100vh;
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

.auth-bg-decoration {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  z-index: 0;
}

.auth-bg-decoration-2 {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  z-index: 0;
}

.auth-container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1000px;
  width: 100%;
  overflow: hidden;
}

.auth-form-section {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-illustration-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.auth-illustration-section img {
  max-width: 100%;
  height: auto;
  max-height: 450px;
}

.auth-header {
  margin-bottom: 36px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-logo img {
  height: 44px;
}

.auth-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.input-icon svg {
  width: 20px;
  height: 20px;
}

.input-field {
  width: 100%;
  padding: 14px 16px 14px 48px;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.input-field:focus {
  border-color: var(--primary-light);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-field::placeholder {
  color: var(--text-muted);
}

select.input-field {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding: 14px 48px 14px 16px;
}

/* Ensure default arrow is hidden in all browsers */
select.input-field::-ms-expand {
  display: none;
}

select.input-field:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* ID type select without icon - needs less padding on the left */
.id-type-select {
  padding: 14px 48px 14px 16px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.id-type-select::-ms-expand {
  display: none;
}

.id-type-select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Don't apply input-field styling to modal selects - those have their own styling */
#addWalletModal select.input-field {
  background-image: none !important;
  padding-right: 1rem !important;
  appearance: auto !important;
}

.input-field[type="file"] {
  padding: 12px 16px;
  background: var(--bg);
  cursor: pointer;
  border: 1.5px solid var(--border);
}

.input-field[type="file"]::file-selector-button {
  background: var(--primary-light);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  margin-right: 8px;
}

/* Ensure all form inputs have consistent styling */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="file"],
select {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.input-wrapper input[type="text"],
.input-wrapper input[type="email"],
.input-wrapper input[type="password"],
.input-wrapper input[type="date"],
.input-wrapper input[type="file"] {
  padding-left: 48px;
}

/* Selects in input-wrapper only get icon padding if they have an .input-icon sibling */
.input-wrapper .input-icon ~ select.input-field,
.input-wrapper .input-icon + select.input-field {
  padding-left: 48px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="file"]:focus,
select:focus {
  border-color: var(--primary-light);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

input::placeholder,
select option {
  color: var(--text-muted);
}

/* File input enhancement for better UX */
.file-upload-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.file-upload-selected {
  font-size: 13px;
  color: var(--primary-light);
  margin-top: 4px;
  font-weight: 500;
}

/* KYC document section styling */
.kyc-document-section {
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.kyc-upload-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: var(--surface);
}

.kyc-upload-field {
  margin-bottom: 1rem;
}

.kyc-upload-field:last-child {
  margin-bottom: 0;
}

/* Enhanced ClearableFileInput styling for proper hierarchy */
.clearable-file-input {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.clearable-file-input a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  word-break: break-word;
}

.clearable-file-input a:hover {
  text-decoration: underline;
}

div.clearable-file-input label,
.clearable-file-input label {
  display: block !important;
  margin-top: 4px;
  font-size: 0.85rem;
  color: #ef4444;
  cursor: pointer;
}

.clearable-file-input input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: #ef4444;
  display: block !important;
}

.clearable-file-input input[type="file"] {
  margin-top: 6px;
  padding: 8px 12px;
}

.kyc-submit-section {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}


.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-button {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  margin-top: 8px;
}

.auth-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.auth-button:active {
  transform: translateY(0);
}

.auth-link-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  font-size: 14px;
}

.auth-link {
  color: var(--primary-light);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  gap: 12px;
}

.auth-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.auth-footer-link {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
}

.auth-footer-link span {
    color: var(--text-muted);
}

/* KYC section styling */
.form-section {
    margin: 24px 0 16px 0;
    padding: 0 16px;
}

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.error-message {
  background: rgba(236, 72, 153, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.25);
  color: #DB2777;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .auth-card {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .auth-illustration-section {
    display: none;
  }

  .auth-form-section {
    padding: 40px 32px;
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 16px;
  }

  .auth-form-section {
    padding: 32px 24px;
  }

  .auth-title {
    font-size: 28px;
  }

  .input-row {
    grid-template-columns: 1fr;
  }
}

/* Preloader styles */
.pre-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
}

.logo-container {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.08);
  margin-bottom: 1.4rem;
}

.progress-bar {
  width: 84vw;
  max-width: 420px;
  height: 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  overflow: hidden;
}

.progress {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1e3a8a, #2563eb);
  animation: progress-fill 2s ease forwards;
}

@keyframes progress-fill {
  from { width: 0; }
  to { width: 100%; }
}



/* Profile page dark mode overrides */
body.dark-mode .auth-card { background: rgba(28, 28, 30, 0.85); border-color: rgba(255, 255, 255, 0.1); }
body.dark-mode .auth-form-section { background: transparent; }
body.dark-mode .auth-illustration-section { background: linear-gradient(135deg, #0a84ff 0%, #1539be 100%); }
body.dark-mode .auth-title, body.dark-mode .form-label { color: #f5f5f7; }
body.dark-mode .auth-subtitle, body.dark-mode .auth-footer-link span, body.dark-mode .auth-link-container { color: #86868b; }
body.dark-mode .form-label { color: #f5f5f7; }
body.dark-mode .input-field { background: rgba(255, 255, 255, 0.06); color: #f5f5f7; border-color: rgba(255, 255, 255, 0.12); }
body.dark-mode .input-field::placeholder { color: rgba(255, 255, 255, 0.4); }
body.dark-mode .error-message { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
body.dark-mode div.clearable-file-input label,
body.dark-mode .clearable-file-input label { color: #86868b !important; }
body.dark-mode input[type="checkbox"] { accent-color: #0a84ff; }
body.dark-mode .input-icon { color: #86868b; }

/* Dark mode input/select fields */
body.dark-mode .input-wrapper input,
body.dark-mode .input-wrapper select {
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f7;
  border-color: rgba(255, 255, 255, 0.12);
}

/* Dark mode field-error text */
body.dark-mode .field-error { color: #f472b6 !important; }

/* Dark mode select arrow fix */
body.dark-mode select.input-field,
body.dark-mode .id-type-select,
body.dark-mode .wallet-modal-select {
  background: #2c2c2e !important;
  color: #ffffff !important;
  color-scheme: dark !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  padding: 10px 36px 10px 12px !important;
}

/* Wallet Modal Styles */
#addWalletModal, #depositModal, #fundCardModal {
  display: none;
  align-items: center;
  justify-content: center;
}
#addWalletModal[style*="display: flex"], #depositModal[style*="display: flex"], #fundCardModal[style*="display: flex"] {
  display: flex !important;
}
.wallet-modal {
  background: #fff;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  max-width: 90vw;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.15);
  position: relative;
}

.wallet-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.wallet-modal-title {
  color: var(--primary);
  margin: 0;
  font-size: 1.1rem;
}

.wallet-modal-close {
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 1.3rem;
}

.wallet-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.wallet-modal-form > div {
  display: flex;
  flex-direction: column;
}

.wallet-modal-label {
  display: block;
  margin-bottom: 0.3rem;
  color: #333;
  font-weight: 500;
  font-size: 0.85rem;
}

.wallet-modal-select {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid #ddd;
  border-radius: 0.4rem;
  font-size: 0.85rem;
  box-sizing: border-box;
  background: #fff;
}

.wallet-modal-input {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 0.4rem;
  font-size: 0.85rem;
  box-sizing: border-box;
}

.wallet-modal-submit {
  background: var(--primary);
  color: #fff;
  padding: 0.6rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 0.3rem;
}

/* Dark mode wallet modal */
body.dark-mode .wallet-modal { background: #2c2c2e; }
body.dark-mode .wallet-modal-title { color: #f5f5f7; }
body.dark-mode .wallet-modal-label { color: #f5f5f7; }
body.dark-mode .wallet-modal-input {
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f7;
  border-color: rgba(255, 255, 255, 0.12);
}
body.dark-mode .wallet-modal-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Deposit Modal Styles */
.deposit-step { text-align: center; }
.deposit-qr-box { background: #f8f9fa; padding: 0.6rem; border-radius: 0.5rem; margin-bottom: 0.5rem; }
.deposit-qr-container { width: 100px; height: 100px; margin: 0 auto; background: #fff; padding: 0.2rem; border-radius: 0.3rem; display: flex; align-items: center; justify-content: center; }
.deposit-qr-placeholder { font-size: 2rem; }
.deposit-address-box { background: #f8f9fa; padding: 0.5rem; border-radius: 0.4rem; margin-bottom: 0.5rem; }
.deposit-label { font-size: 0.7rem; color: #666; margin-bottom: 0.2rem; }
.deposit-address-text { font-family: monospace; font-size: 0.7rem; word-break: break-all; color: #333; }
.deposit-action-btn { width: 100%; padding: 0.5rem; border: none; border-radius: 0.4rem; font-size: 0.8rem; cursor: pointer; margin-bottom: 0.5rem; }
.deposit-copy-btn { background: #28a745; color: #fff; }
.deposit-submit-btn { background: var(--primary); color: #fff; }
.deposit-confirm-btn { background: #28a745; color: #fff; }
.deposit-info-box { text-align: left; background: #fff3cd; padding: 0.5rem; border-radius: 0.4rem; color: #856404; margin-top: 0.5rem; font-size: 0.7rem; }
.deposit-info-title { font-weight: 600; margin-bottom: 0.2rem; }
.deposit-info-list { margin: 0; padding-left: 1rem; font-size: 0.65rem; line-height: 1.4; }
.deposit-timer-box { background: #e3f2fd; padding: 0.8rem; border-radius: 0.5rem; margin-bottom: 0.8rem; }
.deposit-timer-label { font-size: 0.7rem; color: #1976d2; margin-bottom: 0.2rem; }
.deposit-timer { font-size: 1.5rem; font-weight: 700; color: #1976d2; }
.deposit-amount-box { background: #f8f9fa; padding: 0.8rem; border-radius: 0.5rem; margin-bottom: 0.8rem; }
.deposit-amount { font-size: 1.2rem; font-weight: 700; color: #333; }
.deposit-currency-label { color: var(--primary); font-weight: 700; }
.deposit-currency-text { font-weight: 700; }
.deposit-status { padding: 0.5rem; border-radius: 0.4rem; font-size: 0.75rem; }

/* Dark mode deposit modal */
body.dark-mode .deposit-qr-box,
body.dark-mode .deposit-address-box,
body.dark-mode .deposit-amount-box { background: #3a3a3c; }
body.dark-mode .deposit-label,
body.dark-mode .deposit-address-text,
body.dark-mode .deposit-amount { color: #86868b; }
body.dark-mode .deposit-info-box { background: rgba(255, 193, 7, 0.15); color: #ffc107; }
body.dark-mode .deposit-timer-box { background: rgba(10, 132, 255, 0.15); }
body.dark-mode .deposit-timer-label,
body.dark-mode .deposit-timer { color: #0a84ff; }
body.dark-mode .deposit-qr-placeholder { color: #86868b; }

/* Fund Card Modal Styles */
.fundcard-info { font-size: 0.85rem; color: #666; margin-bottom: 1rem; }
.fundcard-terms { background: #fff9f0; border: 1px solid #ffd9b3; border-radius: 0.5rem; padding: 0.75rem; font-size: 0.75rem; color: #666; }
.fundcard-terms-list { margin: 0.3rem 0 0 1rem; padding: 0; line-height: 1.5; }
.fundcard-submit-btn { background: var(--primary); color: #fff; padding: 0.7rem; border: none; border-radius: 0.5rem; font-size: 0.9rem; cursor: pointer; width: 100%; }

/* Dark mode fund card modal */
body.dark-mode .fundcard-info,
body.dark-mode .fundcard-terms { color: #86868b; background: rgba(255, 193, 7, 0.08); border-color: #ffd9b3; }

/* Modern KYC Verification Section */
.kyc-verification-section {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.02) 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.kyc-verification-section.verified {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
  border-color: rgba(16, 185, 129, 0.2);
}

.kyc-verification-section.verified .kyc-status-icon {
  color: var(--success);
}

.kyc-verification-section .kyc-status-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.kyc-verification-section.verified .kyc-status-icon {
  background: rgba(16, 185, 129, 0.1);
}

.kyc-verification-section.verified .kyc-status-icon i {
  color: var(--success);
  font-size: 24px;
}

.kyc-verification-section .kyc-status-icon i {
  color: var(--accent);
  font-size: 24px;
}

.kyc-verification-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.kyc-verification-description {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.kyc-upload-card {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.kyc-upload-card:hover {
  border-color: var(--primary-light);
  background: rgba(37, 99, 235, 0.02);
}

.kyc-upload-label {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  display: block;
}

.kyc-upload-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.kyc-document-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-md);
  margin-top: 8px;
}

.kyc-document-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.kyc-document-info {
  flex: 1;
}

.kyc-document-name {
  font-weight: 500;
  color: var(--text);
  font-size: 13px;
}

.kyc-document-status {
  font-size: 11px;
  margin-top: 2px;
}

.kyc-document-status.pending { color: #f59e0b; }
.kyc-document-status.approved { color: #10b981; }
.kyc-document-status.rejected { color: #ef4444; }

/* Dark mode KYC section */
body.dark-mode .kyc-verification-section {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
}

body.dark-mode .kyc-verification-section.verified {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

body.dark-mode .kyc-verification-title,
body.dark-mode .kyc-upload-label {
  color: #f5f5f7;
}

body.dark-mode .kyc-upload-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Registration form: fix icon alignment and dropdown arrows */
.input-row .input-wrapper {
  display: flex;
  align-items: center;
}

.input-row .input-icon {
  position: static;
  transform: none;
  margin-right: 12px;
  flex-shrink: 0;
}

/* Remove default select arrow when we have custom styling */
.select-no-arrow {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: none !important;
  padding-left: 16px !important;
}

/* Country and ID type selects should not have icon padding/arrow overlay */
#country,
#id_type {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  padding-left: 16px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
}

#country {
  padding: 14px 16px !important;
}

#id_type {
  padding: 14px 16px !important;
  width: 100%;
}

/* Phone country code select - remove the extra arrow */
#countryCodeSelectSignup {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  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='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  padding-right: 28px !important;
}

/* Dark mode select fixes */
body.dark-mode #country,
body.dark-mode #id_type {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

body.dark-mode #countryCodeSelectSignup {
  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='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

/* Registration form enhancements */
.registration-stepper {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  padding: 0 16px;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  right: 0;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step.active .step-number {
  background: var(--primary-light);
  color: white;
}

.step.completed .step-number {
  background: var(--success);
  color: white;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.step-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.step.active .step-label {
  color: var(--primary-light);
}

/* Password strength indicator */
.password-strength {
  margin-top: 8px;
  display: flex;
  gap: 4px;
}

.strength-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
}

.strength-bar.active {
  background: var(--success);
}

.strength-bar.medium {
  background: #f59e0b;
}

.strength-bar.strong {
  background: #10b981;
}

.strength-text {
  font-size: 11px;
  margin-top: 4px;
}

body.dark-mode .step:not(:last-child)::after {
  background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .step-number {
  background: rgba(255, 255, 255, 0.1);
  color: #86868b;
}

body.dark-mode .step-label {
  color: #86868b;
}

body.dark-mode .step.active .step-label {
  color: #0a84ff;
}
