main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
}

/* Main Title with Gradient */
.title {
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: #000; /* Registration text color */
}

/* Only K99X part */
.title .highlight {
  color:#E67E22; /* Orange color */
  text-shadow: 2px 2px 8px rgba(255, 102, 0, 0.3); /* Soft orange shadow */
}

/* Glow effect on hover */
.title:hover {
  text-shadow: 0 0 18px rgba(255, 136, 0, 0.6);
  transform: scale(1.03);
}

.register-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(136, 102, 252, 0.1);
  padding: 40px 36px;
  max-width: 700px;
  width: 100%;
}

.subtitle {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.text {
  text-align: center;
  color: #555;
  margin-bottom: 24px;
}

.input-group {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 14px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1.3rem;
  outline: none;
  transition: border-color 0.3s;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: #FF6600;
}

.input-group input::placeholder,
.input-group select::placeholder,
.input-group textarea::placeholder {
  font-size: 1.3rem;
  color: #888;
}

.input-group label {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 1.2rem;
  color: #888;
  pointer-events: none;
  background: #fff;
  padding: 0 4px;
  transition: 0.3s;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group select:focus + label,
.input-group select:not([value=""]) + label {
  top: -8px;
  font-size: 0.85rem;
  color: #FF6600;
}

.input-group label.file-label {
  position: static;
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
  pointer-events: auto;
}

.input-group input[type="file"] {
  color: transparent;
}

.input-group input[type="file"]::-webkit-file-upload-button {
  visibility: hidden;
  width: 0;
}

.input-group input[type="file"]::before {
  content: 'Choose File';
  display: inline-block;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 16px;
  outline: none;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  color: #333;
  margin-right: 10px;
}

.input-group input[type="file"]:hover::before {
  background: #e0e0e0;
}

.file-name-display {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #4caf50;
  font-weight: 500;
  display: none;
}

.file-name-display.show {
  display: block;
}

.file-name-display::before {
  content: "📎 ";
}

.form-row {
  display: flex;
  gap: 35px;
}

.form-row > div {
  flex: 1;
}

.button-group {
  display: flex;
  gap: 20px;
}

.button-group > button {
  flex: 1;
}

.nextBtn,
.prevBtn,
.submitBtn {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  margin-top: 20px;
  transition: 0.3s;
}

.nextBtn,
.submitBtn {
  background: linear-gradient(90deg, #FF6600, #e55a00);
  color: #fff;
}

.nextBtn:hover,
.submitBtn:hover {
  background: linear-gradient(90deg, #e55a00, #cc5500);
}

.prevBtn {
  background: #ccc;
  color: #333;
}

.prevBtn:hover {
  background: #aaa;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

.error-msg {
  color: #d32f2f;
  font-size: 0.75rem;
  display: block;
  margin-top: 3px;
  min-height: 18px;
}

.toaster {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 14px 20px;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: none;
  transform: translateX(100%);
  transition: 0.5s;
  max-width: 300px;
  z-index: 1000;
}

.toaster.show {
  display: block;
  transform: translateX(0);
}

.login-link {
  text-align: center;
  margin-top: 30px;
  font-size: 0.95rem;
  color: #555;
  font-weight: 500;
}

.login-link a {
  color: #FF6600;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.login-link a:hover {
  text-decoration: underline;
}

.payment-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.payment-left {
  flex: 1;
}

.payment-right {
  width: 280px;
  text-align: center;
  padding: 25px;
  background: #f9f9f9;
  border-radius: 12px;
  border: 2px dashed #FF6600;
}

.qr-section {
  display: none;
}

.qr-section.show {
  display: block;
}

.qr-section img {
  width: 100%;
  max-width: 240px;
  margin-bottom: 12px;
}

.qr-section p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

.register-card.expanded {
  max-width: 900px;
}

.success-message {
  text-align: center;
  padding: 60px 20px;
  display: none;
}

.success-message.show {
  display: block;
}

.success-message .icon {
  font-size: 4rem;
  color: #4caf50;
  margin-bottom: 20px;
}

.success-message h3 {
  font-size: 1.8rem;
  color: #4caf50;
  margin-bottom: 15px;
}

.success-message p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

.success-message .user-id {
  font-size: 1.3rem;
  color: #FF6600;
  font-weight: 700;
  margin: 10px 0;
}

@media (max-width: 700px) {
  .form-row {
    flex-direction: column;
    gap: 20px;
  }

  .button-group {
    flex-direction: column;
  }

  main {
    padding: 20px 10px;
  }

  .register-card {
    padding: 30px 20px;
  }

  .payment-container {
    flex-direction: column;
  }

  .payment-right {
    width: 100%;
  }
}


/* Phone Input with Verify Button */
.input-group input#phone {
  padding: 14px 50px 14px 12px;
}

.verify-btn {
  position: absolute;
  right: 5px;
  top: 6px;
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.verify-btn:hover {
  background: #45a049;
  transform: scale(1.05);
}

.verify-btn.loading svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.input-group input.phone-verified {
  border-color: #4caf50;
  background: #f1f8f4;
}

.input-group label.verified-label {
  color: #4caf50 !important;
  font-weight: 600;
}

/* OTP Modal Styles */
.otp-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.otp-modal-overlay.show {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.otp-modal {
  background: #fff;
  border-radius: 12px;
  padding: 30px 25px;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.otp-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.otp-icon {
  margin-bottom: 10px;
  width: 50px;
  height: 50px;
}

.otp-modal-header h2 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 8px;
}

.otp-subtitle {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 3px;
}

.otp-phone-display {
  color: #FF6600;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.otp-input-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.otp-input {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  border: 2px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: 0.3s;
}

.otp-input:focus {
  border-color: #FF6600;
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.otp-input.error {
  border-color: #d32f2f;
  animation: shake 0.3s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.otp-error {
  color: #d32f2f;
  font-size: 0.8rem;
  text-align: center;
  min-height: 18px;
  margin-bottom: 8px;
}

.otp-timer-section {
  text-align: center;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: #666;
}

#otpCountdown {
  color: #FF6600;
  font-weight: 700;
}

.resend-otp-btn {
  background: none;
  border: none;
  color: #FF6600;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.85rem;
  transition: 0.3s;
}

.resend-otp-btn:hover {
  color: #e55a00;
}

/* OTP Button Group */
.otp-button-group {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.cancel-otp-btn {
  flex: 1;
  padding: 12px;
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-otp-btn:hover {
  background: #e0e0e0;
  color: #333;
  border-color: #ccc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.verify-otp-btn {
  flex: 1;
  padding: 12px;
  background: linear-gradient(90deg, #FF6600, #e55a00);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.verify-otp-btn:hover {
  background: linear-gradient(90deg, #e55a00, #cc5500);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.verify-otp-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Responsive */
@media (max-width: 700px) {
  .form-row {
    flex-direction: column;
    gap: 20px;
  }

  .button-group {
    flex-direction: column;
  }

  main {
    padding: 20px 10px;
  }

  .register-card {
    padding: 30px 20px;
  }

  .payment-container {
    flex-direction: column;
  }

  .payment-right {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .otp-modal {
    padding: 25px 20px;
    max-width: 340px;
  }

  .otp-input {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .otp-input-container {
    gap: 10px;
  }
  
  .otp-button-group {
    flex-direction: column;
  }
  
  .otp-icon {
    width: 45px;
    height: 45px;
  }
  
  .otp-modal-header h2 {
    font-size: 1.2rem;
  }
}