@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');/* Mobile Responsive Styles for Badge Design Studio */

/* CSS Variables for Mobile */
:root {
  --mobile-header-height: 56px;
  --mobile-drawer-width: 280px;
  --mobile-toolbar-width: 100%;
  --mobile-inspector-width: 90vw;
  --mobile-touch-target: 44px;
  --mobile-breakpoint: 768px;
  --drawer-transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Safe area insets for notched devices */
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
  /* Prevent text selection on touch devices during interactions */
  body {
    -webkit-user-select: none;
    -moz-user-select: none;
         user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Allow text selection in input fields */
  input, textarea, [contenteditable] {
    -webkit-user-select: text;
    -moz-user-select: text;
         user-select: text;
  }
  
  /* Mobile-friendly scrollbars */
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  
  ::-webkit-scrollbar-thumb {
    background-color: #4b5563;
    border-radius: 3px;
  }
}

/* Drawer Base Styles */
.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 1000;
  background-color: #111827; /* gray-900 */
  transition: transform var(--drawer-transition);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer-left {
  left: 0;
  width: var(--mobile-drawer-width);
  transform: translateX(-100%);
  padding-top: var(--safe-area-top);
  padding-left: var(--safe-area-left);
}

.mobile-drawer-left.open {
  transform: translateX(0);
}

.mobile-drawer-right {
  right: 0;
  width: var(--mobile-inspector-width);
  max-width: 400px;
  transform: translateX(100%);
  padding-top: var(--safe-area-top);
  padding-right: var(--safe-area-right);
}

.mobile-drawer-right.open {
  transform: translateX(0);
}

/* Drawer Backdrop */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--drawer-transition);
  pointer-events: none;
}

.mobile-drawer-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Touch Targets */
@media (max-width: 768px) {
  .touch-target {
    min-width: var(--mobile-touch-target);
    min-height: var(--mobile-touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Increase button sizes for touch */
  button:not(.no-touch-enlarge) {
    min-width: var(--mobile-touch-target);
    min-height: var(--mobile-touch-target);
  }
}

/* Mobile Header Adjustments */
@media (max-width: 768px) {
  .mobile-header {
    height: var(--mobile-header-height);
    padding-top: var(--safe-area-top);
    padding-left: max(1rem, var(--safe-area-left));
    padding-right: max(1rem, var(--safe-area-right));
  }
  
  .mobile-hide {
    display: none !important;
  }
  
  .mobile-show {
    display: flex !important;
  }
}

/* Mobile Canvas Optimizations */
@media (max-width: 768px) {
  .mobile-canvas-container {
    touch-action: none; /* Prevent default touch behaviors */
    width: 100vw;
    height: calc(100vh - var(--mobile-header-height) - var(--safe-area-top) - var(--safe-area-bottom));
  }
}

/* Floating Action Buttons for Mobile */
.mobile-fab {
  position: fixed;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #3b82f6; /* blue-600 */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 100;
  transition: all 200ms ease;
}

.mobile-fab:active {
  transform: scale(0.95);
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
}

.mobile-fab-left {
  bottom: calc(80px + var(--safe-area-bottom));
  left: calc(16px + var(--safe-area-left));
}

.mobile-fab-right {
  bottom: calc(80px + var(--safe-area-bottom));
  right: calc(16px + var(--safe-area-right));
}

/* Mobile Menu Animations */
@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Mobile-specific utility classes */
@media (max-width: 768px) {
  .mobile-full-width {
    width: 100vw !important;
  }
  
  .mobile-full-height {
    height: 100vh !important;
  }
  
  .mobile-text-sm {
    font-size: 0.875rem !important;
  }
  
  .mobile-text-xs {
    font-size: 0.75rem !important;
  }
  
  .mobile-p-2 {
    padding: 0.5rem !important;
  }
  
  .mobile-p-3 {
    padding: 0.75rem !important;
  }
  
  .mobile-gap-2 {
    gap: 0.5rem !important;
  }
  
  .mobile-flex-col {
    flex-direction: column !important;
  }
  
  .mobile-overflow-hidden {
    overflow: hidden !important;
  }
}

/* Tablet Breakpoint (optional intermediate) */
@media (min-width: 769px) and (max-width: 1024px) {
  .tablet-hide {
    display: none !important;
  }
}

/* Desktop - ensure no mobile styles leak */
@media (min-width: 769px) {
  .mobile-drawer,
  .mobile-drawer-backdrop,
  .mobile-fab {
    display: none !important;
  }
  
  .desktop-only {
    display: block;
  }
}

/* Accessibility - Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .mobile-drawer,
  .mobile-drawer-backdrop,
  .mobile-fab {
    transition: none !important;
    animation: none !important;
  }
}


.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.auth-modal-container {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 24px;
  padding: 3px;
  max-width: 450px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-modal-content {
  background: white !important;
  border-radius: 20px;
  margin: 4px;
  padding: 48px 32px 32px;
  min-height: auto;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  color: #1a202c;
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.auth-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.auth-modal-close svg {
  color: white;
}

.auth-modal-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.auth-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  -o-object-fit: contain;
     object-fit: contain;
  padding: 15px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.auth-modal-header h2 {
  font-size: 28px;
  font-weight: 850;
  color: #1a202c !important;
  margin: 0;
  letter-spacing: -0.8px;
  line-height: 1.1;
}

.auth-modal-header p {
  font-size: 15px;
  color: #64748b !important;
  margin: 10px 0 0;
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 12px;
  font-weight: 900;
  color: #000000 !important;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
  opacity: 1 !important;
}

.form-group label svg {
  color: #6366f1;
}

.form-group input {
  background: #f8fafc !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  color: #000000 !important;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  outline: none;
  opacity: 1 !important;
}

.form-group input::-moz-placeholder {
  color: #64748b !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #64748b !important;
}

.form-group input::placeholder {
  color: #64748b !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #64748b !important;
}

.form-group input:focus {
  background: white !important;
  border-color: #667eea !important;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1) !important;
}

.auth-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fca5a5;
  font-size: 13px;
  animation: shake 0.4s ease;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-8px);
  }

  75% {
    transform: translateX(8px);
  }
}

.auth-submit-btn {
  padding: 16px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  margin-top: 4px;
}

.auth-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.auth-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.loading-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-switch-btn {
  padding: 18px 24px;
  background: #f8fafc;
  color: #4f46e5;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  margin-top: 8px;
}

.auth-switch-btn svg {
  position: absolute;
  left: 20px;
  color: #4f46e5;
}

.auth-switch-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

/* Forgot Password Link */

.forgot-password-link {
  background: none;
  border: none;
  color: #6366f1;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-top: -8px;
  margin-bottom: 4px;
  text-align: right;
  font-family: 'Inter', sans-serif;
  transition: color 0.3s ease;
  align-self: flex-end;
}

.forgot-password-link:hover {
  color: #4f46e5;
  text-decoration: underline;
}

/* Back/Phone Button */

.auth-back-btn,
.auth-phone-btn {
  padding: 18px 24px;
  background: #f8fafc;
  color: #4f46e5;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  margin-top: 12px;
}

.auth-back-btn svg,
.auth-phone-btn svg {
  position: absolute;
  left: 20px;
  color: #4f46e5;
}

.auth-back-btn:hover,
.auth-phone-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

/* Success Message */

.auth-success-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
}

.auth-success-message .success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #667eea;
  animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.auth-success-message h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 12px 0;
}

.auth-success-message p {
  font-size: 14px;
  color: #4a5568;
  margin: 0 0 4px 0;
  line-height: 1.5;
}

.auth-success-message .email-highlight {
  font-weight: 600;
  color: #6366f1;
  font-size: 15px;
  margin-bottom: 16px;
  word-break: break-all;
}

.auth-success-message .success-note {
  font-size: 14px;
  color: #718096;
  margin-bottom: 24px;
  line-height: 1.5;
}

.auth-success-message .auth-submit-btn {
  width: 100%;
  max-width: 200px;
}

/* Responsive Design */

@media (max-width: 600px) {
  .auth-modal-container {
    width: 95%;
    max-width: 95%;
  }

  .auth-modal-content {
    padding: 28px 20px;
  }

  .auth-modal-header h2 {
    font-size: 22px;
  }

  .auth-modal-header p {
    font-size: 13px;
  }
}/* OTP Login Modal Styles */

.otp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.otp-modal-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.otp-modal-content {
    background: white;
    border-radius: 20px;
    margin: 4px;
    padding: 48px 32px 32px;
    min-height: auto;
    display: flex;
    flex-direction: column;
}

.otp-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.otp-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.otp-close-btn svg {
    color: white;
}

/* Screen Layout */

.otp-screen {
    display: flex;
    flex-direction: column;
    gap: 32px;
    animation: fadeInSlide 0.4s ease;
}

.otp-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    -o-object-fit: contain;
       object-fit: contain;
    padding: 15px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.otp-header h2 {
    font-size: 28px;
    font-weight: 850;
    color: #1a202c;
    margin: 0;
    letter-spacing: -0.8px;
    line-height: 1.1;
}

.otp-header p {
    font-size: 15px;
    color: #64748b;
    margin: 10px 0 0;
    line-height: 1.5;
}

.phone-display {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #667eea !important;
    letter-spacing: 1px;
}

/* Form Styles */

.otp-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.otp-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.otp-form .form-group label {
    font-size: 12px;
    font-weight: 900;
    color: #000000 !important;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    margin-bottom: 6px;
    opacity: 1 !important;
}

.otp-form .form-group label svg {
    color: #667eea;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 4px 4px 4px 16px;
    transition: all 0.3s ease;
}

.phone-input-wrapper:focus-within {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.country-code {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
}

.phone-input-wrapper input[type="tel"] {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 14px 12px;
    font-size: 16px;
    color: #000000 !important;
    font-weight: 600;
    outline: none;
    box-shadow: none !important;
    opacity: 1 !important;
}

.phone-input-wrapper input::-moz-placeholder {
    color: #475569;
    opacity: 1;
}

.phone-input-wrapper input::placeholder {
    color: #475569;
    opacity: 1;
}


.otp-form .form-group input[type="text"],
.otp-form .form-group input[type="tel"] {
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    color: #000000 !important;
    background: #f8fafc;
    transition: all 0.3s ease;
    opacity: 1 !important;
}

.phone-input-wrapper input::-moz-placeholder, .otp-form .form-group input::-moz-placeholder {
    color: #64748b !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #64748b !important;
}

.phone-input-wrapper input::placeholder,
.otp-form .form-group input::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #64748b !important;
}

.otp-form .form-group input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* OTP Digit Inputs */

.otp-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 8px 0;
}

.otp-digit-input {
    width: 60px;
    height: 70px;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    border: 3px solid #e2e8f0;
    border-radius: 16px;
    background: #f7fafc;
    color: #1a202c;
    transition: all 0.3s ease;
    caret-color: #667eea;
}

.otp-digit-input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
    transform: scale(1.05);
}

.otp-digit-input:not(:-moz-placeholder) {
    border-color: #38ef7d;
    background: #f0fdf4;
}

.otp-digit-input:not(:placeholder-shown) {
    border-color: #38ef7d;
    background: #f0fdf4;
}

/* Buttons */

.otp-submit-btn {
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.otp-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.otp-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.otp-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.otp-switch-btn {
    padding: 18px 24px;
    background: #f8fafc;
    color: #4f46e5;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
    position: relative;
}

.otp-switch-btn svg {
    position: absolute;
    left: 20px;
    color: #4f46e5;
}

.otp-switch-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.otp-back-btn {
    padding: 12px 24px;
    background: transparent;
    color: #718096;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.otp-back-btn:hover {
    background: #f7fafc;
    color: #4a5568;
}

.otp-resend-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(56, 239, 125, 0.2);
}

.otp-resend-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 239, 125, 0.3);
}

.otp-resend-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* OTP Actions */

.otp-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.resend-timer {
    font-size: 14px;
    color: #718096;
    text-align: center;
}

.resend-timer strong {
    color: #667eea;
    font-weight: 700;
}

/* Error Message */

.otp-error {
    padding: 12px 16px;
    background: #fff5f5;
    border: 2px solid #fc8181;
    border-radius: 12px;
    color: #c53030;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: shake 0.5s ease;
}

/* Loading Spinner */

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Animations */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-4px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(4px);
    }
}

/* Mobile Responsive */

@media (max-width: 640px) {
    .otp-modal-container {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        margin-top: auto;
    }

    .otp-modal-content {
        padding: 32px 24px;
        min-height: 350px;
    }

    .otp-header h2 {
        font-size: 24px;
    }

    .otp-header p {
        font-size: 14px;
    }

    .otp-icon {
        width: 64px;
        height: 64px;
    }

    .otp-icon svg {
        width: 32px;
        height: 32px;
    }

    .otp-digit-input {
        width: 50px;
        height: 60px;
        font-size: 28px;
    }

    .otp-inputs {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .otp-digit-input {
        width: 45px;
        height: 55px;
        font-size: 24px;
    }

    .otp-submit-btn {
        font-size: 14px;
        padding: 14px 20px;
    }
}