/* Professional Login & Registration Popup Styling */
@import url("https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

/* Root Variables for Professional Design */
:root {
  --primary-gradient: linear-gradient(135deg, #1c2e58 0%, #192b56 100%);
  --secondary-gradient: linear-gradient(135deg, #e2146c 0%, #d6125f 100%);
  --success-gradient: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  --card-gradient: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  --glass-effect: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.18);

  --primary-color: #1c2e58;
  --secondary-color: #e2146c;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;

  --white: #ffffff;
  --light: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.16);

  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 8px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Hind Siliguri", sans-serif;
  background-color: var(--light);
  color: var(--gray-900);
  line-height: 1.5;
}

/* Professional Overlay Effect */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  transition: all 0.4s ease;
}

.overlay.show {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Popup Container */
.popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1200;
  pointer-events: none;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Professional Popup Design */
.popup {
  display: none;
  position: relative;
  background: white;
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  width: 480px;
  max-width: 95%;
  max-height: 90vh;
  overflow: hidden;
  pointer-events: auto;
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.popup.show {
  display: block;
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Enhanced Popup Header for Identity & eKYC Screens */
.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: linear-gradient(135deg, #2c3e5a 0%, #1e2a42 100%);
  color: white;
  position: relative;
  min-height: 75px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Header pattern overlay */
.popup-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 50%,
      rgba(255, 255, 255, 0.03) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.popup-header::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 50%;
  opacity: 0.1;
}

/* Title styling enhancement */
.popup-title {
  font-size: 19px;
  font-weight: 600;
  color: white !important;
  margin: 0;
  flex: 1;
  text-align: center;
  font-family: "Hind Siliguri", sans-serif;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Back button enhancement */
.popup-back {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  font-size: 18px;
  position: relative;
  z-index: 2;
}

.popup-back:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.popup-back:active {
  transform: scale(0.95);
}

/* Close button enhancement */
.popup-close {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  font-size: 24px;
  position: relative;
  z-index: 2;
}

.popup-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05) rotate(90deg);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.popup-logo {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
}

.popup-logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Content area styling */
.popup-content {
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  padding: 32px 28px;
  position: relative;
  min-height: 400px;
  overflow-y: auto;
  max-height: calc(90vh - 90px);
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h100v100H0z' fill='none'/%3E%3Cpath d='M0 0l50 50-50 50V0zm50 50l50 50V0L50 50z' fill='%23f3f4f6' opacity='0.5'/%3E%3C/svg%3E");
  background-position: bottom right;
  background-repeat: no-repeat;
  background-size: 300px;
}

/* Background pattern for content area */
.popup-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 10% 10%,
      rgba(28, 46, 88, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 90% 90%,
      rgba(226, 20, 108, 0.03) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.popup-content::-webkit-scrollbar {
  width: 6px;
}

.popup-content::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 3px;
}

.popup-content::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 3px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* Professional Login Options */
.login-options {
  text-align: center;
  animation: fadeInUp 0.6s ease;
  padding: 16px 0;
}

.login-message {
  margin-bottom: 32px;
  background: var(--gray-100);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.login-message p {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.7;
  font-weight: 400;
  margin: 0;
}

.login-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 320px;
  margin: 0 auto 24px;
}

/* Professional Buttons */
.btn-primary {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(28, 46, 88, 0.25);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: 0.5s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(28, 46, 88, 0.35);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(28, 46, 88, 0.25);
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  padding: 8px 16px;
  margin-top: 12px;
}

.btn-text:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Professional Form Elements */
.form-group {
  margin-bottom: 24px;
  animation: fadeInUp 0.5s ease;
}

.form-group label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 16px;
  transition: var(--transition);
  background: white;
  font-weight: 500;
  color: var(--gray-900);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(28, 46, 88, 0.1);
  outline: none;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Professional Mobile Input */
.mobile-input {
  display: flex;
  align-items: center;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
  background: white;
}

.mobile-input:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(28, 46, 88, 0.1);
}

.country-code {
  background: var(--gray-100);
  color: var(--gray-800);
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 600;
  border-right: 2px solid var(--gray-300);
  min-width: 70px;
  text-align: center;
}

.mobile-input input {
  border: none !important;
  box-shadow: none !important;
  padding: 16px 18px;
  flex: 1;
}

.mobile-input input:focus {
  box-shadow: none !important;
}

/* Professional Operator Selection */
.operator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.operator-item {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.operator-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.operator-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.operator-item img {
  max-width: 100%;
  height: 50px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.operator-item:hover img {
  transform: scale(1.1);
}

/* Identity Selection specific styling */
.identity-selection {
  text-align: center;
  padding: 20px 0;
  position: relative;
  z-index: 1;
}

.identity-selection h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 32px;
  font-family: "Hind Siliguri", sans-serif;
}

.identity-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 400px;
  margin: 0 auto;
}

.identity-option {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.identity-option::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #1c2e58 0%, #2c3e5a 100%);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.identity-option:hover {
  border-color: #1c2e58;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28, 46, 88, 0.12);
}

.identity-option:hover::before {
  transform: scaleY(1);
}

.identity-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.identity-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.5;
}

.identity-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.identity-name {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  font-family: "Hind Siliguri", sans-serif;
}

.identity-note {
  font-size: 14px;
  color: #6b7280;
  margin-top: 4px;
  font-family: "Hind Siliguri", sans-serif;
}

/* Professional Verification Code Input */
.verification-input {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.code-input {
  width: 52px;
  height: 52px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 24px;
  text-align: center;
  font-weight: 600;
  transition: var(--transition);
  background: white;
  color: var(--gray-900);
}

.code-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(28, 46, 88, 0.1);
  outline: none;
}

.code-input:valid {
  border-color: var(--success-color);
  background: rgba(40, 167, 69, 0.05);
}

/* Professional PIN Input */
.pin-input-wrapper {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.pin-input,
.pin-confirm-input,
.login-pin-input {
  width: 52px;
  height: 52px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 24px;
  text-align: center;
  font-weight: 600;
  transition: var(--transition);
  background: white;
  color: var(--gray-900);
}

.pin-input:focus,
.pin-confirm-input:focus,
.login-pin-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(28, 46, 88, 0.1);
  outline: none;
}

/* Security warning enhancement */
.security-warning {
  display: flex;
  align-items: flex-start;
  background: linear-gradient(145deg, #fef3c7 0%, #fde68a 100%);
  padding: 20px;
  border-radius: 16px;
  margin: 28px 0;
  border: 1px solid #fcd34d;
  position: relative;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
}

.security-warning::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: #f59e0b;
  border-radius: 5px 0 0 5px;
}

.warning-icon {
  width: 48px;
  height: 48px;
  margin-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.15);
  border-radius: 50%;
  color: #d97706;
  font-size: 24px;
  flex-shrink: 0;
}

.security-warning p {
  font-size: 15px;
  line-height: 1.6;
  color: #78350f;
  margin: 0;
  flex: 1;
  font-family: "Hind Siliguri", sans-serif;
  font-weight: 500;
}

/* E-KYC specific styling */
.ekyc-content {
  text-align: center;
  padding: 20px 0;
  position: relative;
  z-index: 1;
}

.ekyc-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 32px;
  font-family: "Hind Siliguri", sans-serif;
  line-height: 1.4;
}

.ekyc-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.ekyc-step {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.ekyc-step::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    rgba(28, 46, 88, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transition: all 0.3s ease;
}

.ekyc-step:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(28, 46, 88, 0.12);
  border-color: #1c2e58;
}

.ekyc-step:hover::after {
  width: 100px;
  height: 100px;
  right: -30px;
  top: -30px;
}

.step-number {
  background: linear-gradient(135deg, #1c2e58 0%, #2c3e5a 100%);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(28, 46, 88, 0.25);
  flex-shrink: 0;
  font-family: "Hind Siliguri", sans-serif;
}

.step-text {
  font-size: 16px;
  font-weight: 500;
  color: #374151;
  flex: 1;
  font-family: "Hind Siliguri", sans-serif;
  line-height: 1.4;
}

/* Professional Upload Areas */
.upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 48px 24px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  text-align: center;
  background: linear-gradient(145deg, #fafbfd 0%, white 100%);
  margin-bottom: 20px;
}

.upload-area:hover {
  border-color: var(--primary-color);
  background: linear-gradient(145deg, white 0%, #f5f8ff 100%);
  transform: translateY(-2px);
}

.upload-area.has-image {
  border-color: var(--success-color);
  border-style: solid;
  background: white;
}

.upload-icon {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 16px;
  transition: var(--transition);
}

.upload-area:hover .upload-icon {
  transform: scale(1.1);
  color: var(--secondary-color);
}

.upload-text {
  font-size: 16px;
  color: var(--gray-700);
  font-weight: 500;
}

.upload-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Professional Success Content */
.success-content {
  text-align: center;
  padding: 48px 24px;
}

.success-icon {
  font-size: 84px;
  color: var(--success-color);
  margin-bottom: 28px;
  animation: successPulse 2s infinite;
}

@keyframes successPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.success-content h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.success-content p {
  font-size: 18px;
  color: var(--gray-700);
  margin-bottom: 36px;
  line-height: 1.6;
}

.account-info {
  background: linear-gradient(145deg, #f8f9fa 0%, white 100%);
  padding: 28px;
  border-radius: var(--radius);
  margin: 28px auto;
  box-shadow: var(--shadow);
  max-width: 360px;
  border: 1px solid var(--gray-200);
}

.account-info .account-number,
.account-info .account-nid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.account-info .account-nid {
  border-bottom: none;
}

.account-info .label {
  font-size: 15px;
  color: var(--gray-600);
  font-weight: 500;
}

.account-info .value {
  font-size: 16px;
  color: var(--gray-900);
  font-weight: 600;
}

/* Professional Terms Scroll */
.terms-scroll {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 16px;
  margin-bottom: 24px;
  background: var(--gray-50);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.terms-scroll::-webkit-scrollbar {
  width: 8px;
}

.terms-scroll::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 4px;
}

.terms-scroll::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 4px;
}

.terms-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

.terms-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-700);
}

.terms-text p {
  margin-bottom: 16px;
}

/* Professional Face Upload Grid */
.face-upload-grid {
  display: flex;
  gap: 20px;
  margin: 32px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.face-upload {
  flex: 1;
  min-width: 140px;
  text-align: center;
}

.face-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 8px;
  display: block;
}

.face-upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 36px 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  background: linear-gradient(145deg, #fafbfd 0%, white 100%);
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.face-upload-area:hover {
  border-color: var(--primary-color);
  background: linear-gradient(145deg, white 0%, #f5f8ff 100%);
  transform: translateY(-2px);
}

/* Professional Mobile Info Display */
.mobile-info {
  background: linear-gradient(145deg, #f8f9fa 0%, white 100%);
  padding: 24px;
  border-radius: var(--radius);
  margin: 24px 0;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.mobile-info p {
  font-size: 15px;
  color: var(--gray-700);
  margin-bottom: 12px;
}

.number-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.operator-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.mobile-number {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
}

.change-link {
  color: var(--primary-color);
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.change-link:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

/* Logo animation */
.logo-section {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
  animation: fadeInDown 0.8s ease-out;
}

.logo-section img {
  height: 80px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.bkash-logo img {
  height: 70px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Professional Helper Classes */
.required {
  color: var(--danger-color);
  font-weight: 600;
}

.input-help {
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 8px;
  display: block;
  line-height: 1.4;
}

.full-width {
  width: 100% !important;
  max-width: 100% !important;
}

/* Professional Action Button Groups */
.details-actions,
.terms-actions,
.upload-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  justify-content: center;
}

.details-actions button,
.terms-actions button,
.upload-actions button {
  flex: 1;
  max-width: 200px;
}

/* Professional Checkbox Styling */
.terms-check,
.show-pin-container {
  display: flex;
  align-items: center;
  margin: 24px 0;
  justify-content: center;
}

.terms-check input[type="checkbox"],
.show-pin-container input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.terms-check label,
.show-pin-label {
  cursor: pointer;
  font-size: 15px;
  color: var(--gray-700);
  display: flex;
  align-items: center;
}

.terms-check a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  margin-right: 6px;
}

.terms-check a:hover {
  text-decoration: underline;
}

/* Professional Countdown Timer */
.countdown {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 16px;
}

/* Professional Notification */
.notification {
  position: fixed;
  top: 80px;
  right: 20px;
  background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%);
  color: white;
  padding: 18px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  z-index: 2000;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 15px;
  font-weight: 500;
}

.notification.show {
  transform: translateX(0);
}

/* Start button for eKYC */
#btnStartNidUpload {
  margin-top: 32px;
  padding: 16px 48px;
  font-size: 17px;
  box-shadow: 0 6px 20px rgba(28, 46, 88, 0.25);
}

#btnStartNidUpload:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(28, 46, 88, 0.35);
}

/* Additional Professional Enhancements */
.pin-input-container {
  margin-bottom: 24px;
}

.pin-input-container label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 12px;
  text-align: center;
}

.pin-note {
  background: var(--gray-100);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  text-align: center;
}

.pin-note p {
  font-size: 14px;
  color: var(--gray-700);
  margin: 0;
  line-height: 1.5;
}

.pin-forgot {
  text-align: center;
  margin-top: 20px;
}

.btn-outline {
  background: white;
  color: var(--gray-700);
  border: 2px solid var(--gray-300);
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.btn-outline:hover {
  border-color: var(--gray-400);
  background: var(--gray-100);
  color: var(--gray-900);
}

/* Upload Guidelines */
.upload-guidelines {
  background: var(--gray-100);
  padding: 20px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

.upload-guidelines h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.upload-guidelines ul {
  margin: 0;
  padding-left: 20px;
}

.upload-guidelines li {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 8px;
}

/* Face Guidelines */
.face-guidelines {
  background: var(--gray-100);
  padding: 20px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

.face-guidelines h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.face-guidelines ul {
  margin: 0;
  padding-left: 20px;
}

.face-guidelines li {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 8px;
}

/* Preview Areas */
.upload-preview,
.face-preview-grid {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.preview-area,
.face-preview {
  width: 120px;
  height: 120px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gray-100);
}

.preview-area img,
.face-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Animations for content transitions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(50%, 50%) rotate(360deg);
  }
}

/* Additional form enhancements */
.number-verification,
.verification-code,
.pin-setup,
.operator-selection,
.identity-selection,
.ekyc-content,
.nid-upload,
.nid-details,
.face-verification,
.terms-content {
  animation: fadeInUp 0.5s ease;
}

/* Hover effects for interactive elements */
.btn-primary:active,
.btn-secondary:active,
.btn-outline:active {
  transform: translateY(0);
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-outline:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Smooth transitions for all interactive elements */
button,
input,
select,
textarea,
.operator-item,
.identity-option,
.upload-area,
.face-upload-area {
  transition: var(--transition);
}

/* Responsive Design */
@media (max-width: 768px) {
  .popup {
    width: 95%;
    max-height: 95vh;
    margin: 0;
  }

  .popup-header {
    padding: 16px 20px;
    min-height: 65px;
  }

  .popup-content {
    padding: 24px 20px;
  }

  .operator-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .face-upload-grid {
    flex-direction: column;
  }

  .face-upload {
    width: 100%;
  }

  .verification-input {
    gap: 8px;
  }

  .pin-input-wrapper {
    gap: 8px;
  }

  .code-input,
  .pin-input,
  .pin-confirm-input,
  .login-pin-input {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .success-icon {
    font-size: 64px;
  }

  .success-content h3 {
    font-size: 24px;
  }

  .upload-area {
    padding: 32px 16px;
  }

  .identity-option {
    padding: 20px;
  }

  .ekyc-step {
    padding: 16px 20px;
  }

  .step-number {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .popup-title {
    font-size: 17px;
    padding: 0 8px;
  }

  .popup-header {
    padding: 16px 20px;
    min-height: 60px;
  }

  .popup-content {
    padding: 20px 16px;
  }

  .popup-back,
  .popup-close {
    width: 36px;
    height: 36px;
  }

  .popup-back {
    margin-right: 8px;
  }

  .popup-close {
    margin-left: 8px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 14px 28px;
    font-size: 15px;
  }

  .operator-grid {
    grid-template-columns: 1fr;
  }

  .identity-option {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .pin-input,
  .pin-confirm-input,
  .code-input,
  .login-pin-input {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .login-message {
    padding: 16px;
  }

  .account-info {
    padding: 20px;
  }

  .ekyc-step {
    padding: 16px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .step-text {
    font-size: 15px;
  }

  .details-actions,
  .terms-actions,
  .upload-actions {
    flex-direction: column;
  }

  .details-actions button,
  .terms-actions button,
  .upload-actions button {
    max-width: 100%;
  }

  .identity-selection h3,
  .ekyc-content h3 {
    font-size: 20px;
  }

  .identity-icon {
    width: 56px;
    height: 56px;
  }

  .identity-name {
    font-size: 16px;
  }

  .step-text {
    font-size: 15px;
  }
}
