/* ============================================================
   TokenProp — Aadhaar KYC Modal & Badge Styles
   ============================================================ */

/* ---------- KYC Status Badge ---------- */
.kyc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.3s var(--ease);
}

.kyc-badge--unverified {
  background: rgba(245, 166, 35, 0.12);
  color: #F5A623;
  border: 1px solid rgba(245, 166, 35, 0.25);
  cursor: pointer;
  animation: kyc-pulse 3s ease-in-out infinite;
}
.kyc-badge--unverified:hover {
  background: rgba(245, 166, 35, 0.22);
  box-shadow: 0 0 20px rgba(245, 166, 35, 0.2);
  transform: translateY(-1px);
}

.kyc-badge--verified {
  background: rgba(0, 212, 161, 0.12);
  color: #00D4A1;
  border: 1px solid rgba(0, 212, 161, 0.25);
}

.kyc-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.kyc-badge--unverified .kyc-badge-dot { background: #F5A623; }
.kyc-badge--verified .kyc-badge-dot { background: #00D4A1; }

@keyframes kyc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(245, 166, 35, 0); }
}

/* ---------- KYC Verify Card (Dashboard) ---------- */
.kyc-verify-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
}
.kyc-verify-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF9933, #FFFFFF, #138808);
  /* India flag tricolor accent */
}

.kyc-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.kyc-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(79, 142, 247, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.kyc-card-header h3 {
  font-size: 1rem;
  margin: 0;
}
.kyc-card-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.kyc-verify-btn {
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.kyc-verify-btn--start {
  background: linear-gradient(135deg, #FF9933, #F5A623);
  color: #fff;
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}
.kyc-verify-btn--start:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(245, 166, 35, 0.4);
}
.kyc-verify-btn--verified {
  background: rgba(0, 212, 161, 0.12);
  color: #00D4A1;
  border: 1px solid rgba(0, 212, 161, 0.25);
  cursor: default;
}

/* ---------- KYC Modal ---------- */
.kyc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.kyc-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.kyc-modal {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(10, 14, 26, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 460px;
  width: 92%;
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.kyc-modal-overlay.active .kyc-modal {
  transform: scale(1) translateY(0);
}

/* Modal Header — India Tricolor gradient */
.kyc-modal-head {
  background: linear-gradient(135deg, #0f172a, #1a1040);
  padding: 28px 28px 20px;
  position: relative;
  overflow: hidden;
}
.kyc-modal-head::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF9933, #FFFFFF, #138808);
}
.kyc-modal-head::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 142, 247, 0.08), transparent 70%);
}

.kyc-modal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kyc-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.kyc-modal-title h2 {
  font-size: 1.2rem;
  margin: 0;
}
.kyc-modal-title-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.2), rgba(79, 142, 247, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.kyc-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.kyc-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  border-color: rgba(239, 68, 68, 0.3);
}

.kyc-modal-subtitle {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 8px;
}

/* Step Indicators */
.kyc-steps-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 28px;
  margin-top: 20px;
}
.kyc-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
  background: transparent;
  flex-shrink: 0;
}
.kyc-step-dot.active {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(79, 142, 247, 0.1);
  box-shadow: 0 0 12px rgba(79, 142, 247, 0.3);
}
.kyc-step-dot.done {
  border-color: var(--accent-green);
  color: #fff;
  background: var(--accent-green);
}
.kyc-step-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.3s;
}
.kyc-step-line.done {
  background: var(--accent-green);
}

/* Modal Body */
.kyc-modal-body {
  padding: 28px;
  position: relative;
  min-height: 220px;
}

/* Step Panels */
.kyc-step-panel {
  display: none;
  animation: kyc-slide-in 0.4s ease;
}
.kyc-step-panel.active {
  display: block;
}

@keyframes kyc-slide-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Aadhaar Input */
.kyc-aadhaar-group {
  margin-bottom: 20px;
}
.kyc-aadhaar-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}
.kyc-aadhaar-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s;
  font-family: 'Space Grotesk', monospace;
}
.kyc-aadhaar-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.15);
}
.kyc-aadhaar-input.error {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}
.kyc-aadhaar-input.valid {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(0, 212, 161, 0.15);
}

/* Email Input */
.kyc-email-group {
  margin-bottom: 20px;
}
.kyc-email-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}
.kyc-email-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s;
}
.kyc-email-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.15);
}

.kyc-input-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.kyc-input-error {
  font-size: 0.75rem;
  color: var(--accent-red);
  margin-top: 6px;
  display: none;
}
.kyc-input-error.show {
  display: block;
}

/* OTP Input */
.kyc-otp-container {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 20px 0;
}
.kyc-otp-digit {
  width: 48px;
  height: 56px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: all 0.2s;
  font-family: 'Space Grotesk', monospace;
}
.kyc-otp-digit:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.15);
  background: rgba(79, 142, 247, 0.05);
}
.kyc-otp-digit.filled {
  border-color: var(--accent-green);
  background: rgba(0, 212, 161, 0.05);
}

.kyc-otp-info {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.kyc-otp-info strong {
  color: var(--accent-blue);
}

.kyc-resend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.kyc-resend-btn {
  background: none;
  border: none;
  color: var(--accent-blue);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.82rem;
  transition: color 0.2s;
}
.kyc-resend-btn:hover {
  color: #7fb0ff;
}
.kyc-resend-btn:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
}

/* Action Buttons */
.kyc-action-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}
.kyc-action-btn--send {
  background: linear-gradient(135deg, #4F8EF7, #6C63FF);
  color: #fff;
  box-shadow: 0 4px 15px rgba(79, 142, 247, 0.3);
}
.kyc-action-btn--send:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(79, 142, 247, 0.4);
}
.kyc-action-btn--verify {
  background: linear-gradient(135deg, #00D4A1, #00B4D8);
  color: #0a0e1a;
  box-shadow: 0 4px 15px rgba(0, 212, 161, 0.3);
}
.kyc-action-btn--verify:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 212, 161, 0.4);
}
.kyc-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Success State */
.kyc-success {
  text-align: center;
  padding: 10px 0;
}
.kyc-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 212, 161, 0.12);
  border: 2px solid rgba(0, 212, 161, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  animation: kyc-success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes kyc-success-pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.kyc-success h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--accent-green);
}
.kyc-success p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.kyc-tx-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.2);
  color: var(--accent-blue);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  word-break: break-all;
}
.kyc-tx-link:hover {
  background: rgba(79, 142, 247, 0.18);
}

.kyc-success-done-btn {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 212, 161, 0.25);
  background: rgba(0, 212, 161, 0.1);
  color: var(--accent-green);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.kyc-success-done-btn:hover {
  background: rgba(0, 212, 161, 0.18);
}

/* Loading Spinner */
.kyc-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: kyc-spin 0.7s linear infinite;
}
@keyframes kyc-spin {
  to { transform: rotate(360deg); }
}

/* ---------- KYC Gate Overlay ---------- */
/* Covers buy/vote buttons when user is NOT KYC verified */
.kyc-gate {
  position: relative;
}
.kyc-gate-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.kyc-gate:not(.kyc-verified) .kyc-gate-overlay {
  opacity: 1;
  pointer-events: auto;
}
.kyc-gate.kyc-verified .kyc-gate-overlay {
  display: none;
}

.kyc-gate-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.kyc-gate-btn {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #FF9933, #F5A623);
  color: #fff;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.kyc-gate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
}

/* ---------- Wallet Info in Modal ---------- */
.kyc-wallet-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(79, 142, 247, 0.08);
  border: 1px solid rgba(79, 142, 247, 0.15);
  margin-bottom: 20px;
  font-size: 0.82rem;
}
.kyc-wallet-info .wallet-label {
  color: var(--text-muted);
}
.kyc-wallet-info .wallet-addr {
  color: var(--accent-blue);
  font-weight: 600;
  font-family: 'Space Grotesk', monospace;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .kyc-modal {
    width: 96%;
    max-width: none;
  }
  .kyc-modal-head,
  .kyc-modal-body {
    padding: 20px;
  }
  .kyc-otp-digit {
    width: 42px;
    height: 50px;
    font-size: 1.2rem;
  }
}
