 /* Enhanced responsive base styles with comprehensive mobile-first approach */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Better text rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #e0e7ff 100%);
  min-height: 100vh;
  /* Prevent horizontal scroll on mobile */
  overflow-x: hidden;
}

/* Added animations from inline styles */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translateY(0);
  }
  40%,
  43% {
    transform: translateY(-10px);
  }
  70% {
    transform: translateY(-5px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Added animation classes from inline styles */
.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

.animate-slideInRight {
  animation: slideInRight 0.4s ease-out;
}

.animate-pulse-hover:hover {
  animation: pulse 0.3s ease-in-out;
}

.animate-bounce-slow {
  animation: bounce 2s infinite;
}

.popup-animate {
  animation: popupFadeIn 0.3s ease-out;
}

/* Added mobile menu transitions from inline styles */
.mobile-menu-enter {
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu-enter-active {
  transform: translateX(0);
}

/* Added gradient and glow effects from inline styles */
.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.points-glow {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* Enhanced responsive typography system */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

/* Mobile-first typography scaling */
h1 {
  font-size: 1.75rem; /* 28px mobile */
}

h2 {
  font-size: 1.5rem; /* 24px mobile */
}

h3 {
  font-size: 1.25rem; /* 20px mobile */
}

h4 {
  font-size: 1.125rem; /* 18px mobile */
}

/* Tablet breakpoint */
@media (min-width: 640px) {
  h1 {
    font-size: 2.25rem;
  } /* 36px */
  h2 {
    font-size: 1.875rem;
  } /* 30px */
  h3 {
    font-size: 1.5rem;
  } /* 24px */
  h4 {
    font-size: 1.25rem;
  } /* 20px */
}

/* Desktop breakpoint */
@media (min-width: 1024px) {
  h1 {
    font-size: 3rem;
  } /* 48px */
  h2 {
    font-size: 2.25rem;
  } /* 36px */
  h3 {
    font-size: 1.875rem;
  } /* 30px */
  h4 {
    font-size: 1.5rem;
  } /* 24px */
}

/* Enhanced responsive navigation */
nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Responsive navigation container */
.nav-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .nav-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .nav-container {
    padding: 0 2rem;
    max-width: 1280px;
  }
}

/* Enhanced responsive logo */
.logo-gradient {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

/* Responsive navigation items */
.nav-item {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0.75rem;
  font-weight: 500;
  overflow: hidden;
  color: #1f2937 !important;
  /* Mobile-first sizing */
  padding: 0.75rem;
  font-size: 0.875rem;
  text-align: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Desktop navigation sizing */
@media (min-width: 1024px) {
  .nav-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    min-height: auto;
  }
}

@media (min-width: 1280px) {
  .nav-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

.nav-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-item:hover::before {
  opacity: 1;
}

.nav-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Enhanced responsive mobile menu */
.mobile-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(229, 231, 235, 0.5);
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

.mobile-menu .nav-item {
  margin-bottom: 0.5rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937 !important;
  background: #ffffff;
  border: 1px solid #d1d5db;
  padding: 1rem;
  min-height: 48px;
  width: 100%;
  text-align: left;
  justify-content: flex-start;
}

@media (min-width: 640px) {
  .mobile-menu .nav-item {
    font-size: 1rem;
    padding: 1.25rem;
  }
}

/* PERBAIKAN UTAMA - Enhanced responsive form elements */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #d1d5db;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  background-color: #ffffff;
  color: #1f2937;
  transition: all 0.3s ease;
  min-height: 44px;
  font-weight: 500;
  /* Better mobile input handling */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Enhanced mobile form inputs - PERBAIKAN KONFLIK */
@media (max-width: 640px) {
  .form-input {
    padding: 1rem;
    font-size: 16px; /* Prevent zoom on iOS */
    min-height: 48px;
    background-color: #ffffff;
    color: #1f2937;
    font-weight: 500;
    border: 2px solid #9ca3af;
  }
}

/* Tablet optimization */
@media (min-width: 641px) and (max-width: 1023px) {
  .form-input {
    padding: 0.9375rem 1rem;
    font-size: 0.9375rem;
    min-height: 46px;
  }
}

.form-input::placeholder {
  color: #9ca3af;
  opacity: 1;
  font-weight: 400;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background-color: #ffffff;
  color: #1f2937;
  transform: scale(1.02);
}

/* PERBAIKAN - Form input di latar belakang gelap */
.form-input[data-theme="dark"] {
  background-color: #374151;
  color: #f9fafb;
  border-color: #6b7280;
}

.form-input[data-theme="dark"]:focus {
  background-color: #4b5563;
  color: #ffffff;
  border-color: #60a5fa;
}

/* Enhanced responsive cards */
.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  color: #111827;
}

@media (min-width: 640px) {
  .card {
    padding: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .card {
    padding: 1.5rem;
  }
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Enhanced responsive buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Mobile button optimization */
@media (max-width: 640px) {
  .btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    min-height: 48px;
    width: 100%;
  }
}

/* Tablet button optimization */
@media (min-width: 641px) and (max-width: 1023px) {
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    min-height: 46px;
  }
}

/* Added social login button styles from inline styles */
.social-login-btn {
  transition: all 0.3s ease;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  font-weight: 500;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .social-login-btn {
    font-size: 1rem;
  }
}

.social-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.google-btn {
  background: #4285f4;
  color: white;
}
.google-btn:hover {
  background: #357ae8;
  border-color: #357ae8;
}

.facebook-btn {
  background: #1877f2;
  color: white;
}
.facebook-btn:hover {
  background: #166fe5;
  border-color: #166fe5;
}

.twitter-btn {
  background: #1da1f2;
  color: white;
}
.twitter-btn:hover {
  background: #0d8bd9;
  border-color: #0d8bd9;
}

.email-btn {
  background: #6b7280;
  color: white;
}
.email-btn:hover {
  background: #4b5563;
  border-color: #4b5563;
}

/* Added confirmation modal styles from inline styles */
.confirmation-modal {
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.7);
  padding: 0.75rem;
}

@media (min-width: 640px) {
  .confirmation-modal {
    padding: 1rem;
  }
}

.confirmation-content {
  animation: fadeInUp 0.4s ease-out;
  max-height: 95vh;
  overflow-y: auto;
  border-radius: 1rem;
  background: #ffffff;
  width: 100%;
  max-width: 90vw;
}

@media (min-width: 640px) {
  .confirmation-content {
    max-width: 600px;
    border-radius: 1.5rem;
    max-height: 90vh;
  }
}

@media (min-width: 1024px) {
  .confirmation-content {
    max-width: 800px;
  }
}

.order-summary-item {
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .order-summary-item {
    padding: 1rem;
    border-radius: 0.75rem;
  }
}

.price-breakdown {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 2px solid #3b82f6;
}

/* Added auth tab styles from inline styles */
.auth-tabs {
  border-bottom: 2px solid #e5e7eb;
  display: flex;
  width: 100%;
}

.auth-tab {
  padding: 0.75rem 1rem;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
  font-size: 0.875rem;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .auth-tab {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

.auth-tab.active {
  border-bottom-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
  font-weight: 600;
}

/* Enhanced responsive task type buttons */
.task-type-btn {
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #ffffff;
  cursor: pointer;
  padding: 0.75rem;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .task-type-btn {
    min-height: 100px;
    padding: 1rem;
  }
}

@media (min-width: 1024px) {
  .task-type-btn {
    min-height: 120px;
    padding: 1.25rem;
  }
}

.task-type-btn:hover {
  border-color: #3b82f6;
  background: #eff6ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.task-type-btn.selected {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* Enhanced responsive grid system */
.responsive-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .responsive-grid {
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .responsive-grid {
    gap: 1.5rem;
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1280px) {
  .responsive-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Enhanced responsive popup system - merged from popup-styles.css */
.popup-base {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999999;
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .popup-base {
    padding: 1rem;
  }
}

@media (min-width: 1024px) {
  .popup-base {
    padding: 1.5rem;
  }
}

.popup-base.popup-visible {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 90vw;
  max-height: 95vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  width: 100%;
}

@media (min-width: 640px) {
  .popup-content {
    max-width: 500px;
    border-radius: 1.5rem;
    max-height: 90vh;
  }
}

@media (min-width: 1024px) {
  .popup-content {
    max-width: 600px;
  }
}

.popup-base.popup-visible .popup-content {
  transform: translateY(0);
}

.popup-header {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 1rem 1rem 0 0;
}

@media (min-width: 640px) {
  .popup-header {
    padding: 1.5rem;
    border-radius: 1.5rem 1.5rem 0 0;
  }
}

.popup-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .popup-header h3 {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .popup-header h3 {
    font-size: 1.25rem;
  }
}

.popup-body {
  padding: 1rem;
  color: #374151;
}

@media (min-width: 640px) {
  .popup-body {
    padding: 1.5rem;
  }
}

.popup-body p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .popup-body p {
    font-size: 1rem;
  }
}

.popup-footer {
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 0 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .popup-footer {
    padding: 1.5rem;
    flex-direction: row;
    justify-content: flex-end;
    border-radius: 0 0 1.5rem 1.5rem;
  }
}

.popup-footer button {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  width: 100%;
}

@media (min-width: 640px) {
  .popup-footer button {
    width: auto;
    min-width: 100px;
  }
}

.popup-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .popup-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 1rem;
  }
}

.popup-success .popup-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.popup-error .popup-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.popup-warning .popup-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.popup-info .popup-icon {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Enhanced responsive modal system */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 0.75rem;
}

@media (min-width: 640px) {
  .modal {
    padding: 1rem;
  }
}

.modal-content {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 500px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #111827;
}

@media (min-width: 640px) {
  .modal-content {
    padding: 2rem;
    border-radius: 1.5rem;
    max-height: 90vh;
  }
}

/* Enhanced responsive form groups */
.form-group {
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .form-group {
    margin-bottom: 1.5rem;
  }
}

/* PERBAIKAN - Form label consistency */
.form-label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .form-label {
    font-size: 0.9375rem;
  }
}

/* Enhanced responsive containers */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0.75rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

/* Enhanced responsive spacing system */
.spacing-sm {
  padding: 0.75rem;
}

.spacing-md {
  padding: 1rem;
}

.spacing-lg {
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .spacing-sm {
    padding: 1rem;
  }
  .spacing-md {
    padding: 1.5rem;
  }
  .spacing-lg {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .spacing-sm {
    padding: 1.25rem;
  }
  .spacing-md {
    padding: 2rem;
  }
  .spacing-lg {
    padding: 2.5rem;
  }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .animate-fadeInUp,
  .animate-slideInRight,
  .mobile-menu-enter {
    animation: none;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Enhanced mobile menu animations */
.mobile-menu-enter {
  animation: slideDown 0.3s ease-out;
}

.mobile-menu-enter-active {
  transform: translateX(0);
}

/* Enhanced responsive image handling */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive image containers */
.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
}

.image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Enhanced responsive file upload areas */
.file-upload-area {
  border: 2px dashed #d1d5db;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
  position: relative;
  cursor: pointer;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .file-upload-area {
    padding: 2rem;
    min-height: 140px;
    border-radius: 1rem;
  }
}

@media (min-width: 1024px) {
  .file-upload-area {
    padding: 2.5rem;
    min-height: 160px;
  }
}

.file-upload-area:hover {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  transform: translateY(-1px);
}

.file-upload-area.dragover {
  border-color: #10b981;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.file-upload-area.has-file {
  border-color: #10b981;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

/* Enhanced responsive uploaded file display */
.uploaded-file {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 2px solid #0ea5e9;
  border-radius: 0.75rem;
  padding: 1rem;
  margin: 0.75rem 0;
  position: relative;
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .uploaded-file {
    padding: 1.25rem;
    border-radius: 1rem;
  }
}

.uploaded-file:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.25);
}

/* Enhanced responsive package cards */
.package-card {
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 1rem;
  background: #ffffff;
  padding: 1rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (min-width: 640px) {
  .package-card {
    padding: 1.25rem;
    min-height: 240px;
  }
}

@media (min-width: 1024px) {
  .package-card {
    padding: 1.5rem;
    min-height: 280px;
  }
}

.package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: #3b82f6;
}

.package-card.premium {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
}

.package-card.premium:hover {
  border-color: #f59e0b;
}

/* Enhanced responsive badges */
.package-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(45deg, #f59e0b, #eab308);
  color: white;
  padding: 4px 8px;
  border-radius: 1rem;
  font-size: 0.625rem;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

@media (min-width: 640px) {
  .package-badge {
    padding: 4px 12px;
    font-size: 0.75rem;
  }
}

/* Enhanced responsive quest cards */
.quest-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(229, 231, 235, 0.5);
  border-radius: 1rem;
  padding: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
  .quest-card {
    padding: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .quest-card {
    padding: 1.5rem;
  }
}

.quest-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

/* Enhanced responsive voucher options */
.voucher-option {
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 1rem;
  padding: 1rem;
  background: #ffffff;
}

@media (min-width: 640px) {
  .voucher-option {
    padding: 1.25rem;
  }
}

.voucher-option:hover:not(.selected) {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.voucher-option.selected {
  border-color: #10b981 !important;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

/* Enhanced responsive pagination */
.pagination-wrapper {
  border-top: 1px solid #e5e7eb;
  margin-top: 1rem;
  padding-top: 1rem;
  border-radius: 0.5rem;
}

.pagination-info {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
}

@media (min-width: 640px) {
  .pagination-info {
    font-size: 0.875rem;
    text-align: left;
  }
}

.pagination-btn {
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  min-height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .pagination-btn {
    min-height: 44px;
    min-width: 44px;
  }
}

.pagination-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #f3f4f6;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-current {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.75rem;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .pagination-current {
    font-size: 0.875rem;
  }
}

/* Enhanced responsive payment status badges */
.payment-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
  min-height: 32px;
}

@media (min-width: 640px) {
  .payment-status-badge {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    min-height: 36px;
  }
}

.payment-status-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Payment status colors */
.payment-failed {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  color: #7f1d1d !important;
  border-color: #dc2626;
  box-shadow: 0 2px 8px rgba(248, 113, 113, 0.3);
}

.payment-success {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #14532d !important;
  border-color: #059669;
  box-shadow: 0 2px 8px rgba(52, 211, 153, 0.3);
}

.payment-pending {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #78350f !important;
  border-color: #d97706;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.payment-processing {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  color: #1e3a8a !important;
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.3);
}

/* Enhanced responsive points display */
.points-display {
  background: linear-gradient(135deg, #f59e0b 0%, #eab308 50%, #f97316 100%);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
}

@media (min-width: 640px) {
  .points-display {
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
  }
}

@media (min-width: 1024px) {
  .points-display {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
  }
}

/* Enhanced responsive focus analysis */
.focus-checkbox-item {
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem;
  background: white;
  min-height: 80px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .focus-checkbox-item {
    padding: 1.25rem;
    border-radius: 1rem;
  }
}

.focus-checkbox-item:hover {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.focus-checkbox-item.selected {
  border-color: #10b981;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

/* Enhanced responsive tables */
.responsive-table {
  width: 100%;
  overflow-x: auto;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  -webkit-overflow-scrolling: touch;
}

.responsive-table table {
  width: 100%;
  min-width: 600px; /* Prevent table from becoming too narrow */
  background: #ffffff;
  border-collapse: collapse;
}

.responsive-table table th,
.responsive-table table td {
  font-size: 0.875rem;
  padding: 0.75rem;
}

@media (max-width: 640px) {
  .responsive-table {
    margin: 0 -0.75rem;
    border-radius: 0;
  }

  .responsive-table table {
    min-width: 500px;
  }

  .responsive-table table th,
  .responsive-table table td {
    font-size: 0.75rem !important;
    padding: 0.5rem !important;
    white-space: nowrap;
  }

  .responsive-table table th {
    font-size: 0.6875rem !important;
  }
}

/* Enhanced responsive utilities */
.hide-mobile {
  display: none;
}

@media (min-width: 640px) {
  .hide-mobile {
    display: block;
  }
}

.show-mobile {
  display: block;
}

@media (min-width: 640px) {
  .show-mobile {
    display: none;
  }
}

.text-responsive {
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .text-responsive {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .text-responsive {
    font-size: 1.125rem;
  }
}

/* Enhanced responsive touch targets */
@media (max-width: 640px) {
  button,
  .btn,
  input[type="button"],
  input[type="submit"],
  a.btn {
    min-height: 48px;
    min-width: 48px;
    font-size: 1rem;
  }

  .nav-item {
    padding: 1rem !important;
    min-height: 48px;
  }

  /* Increase tap area for small interactive elements */
  .checkbox,
  .radio {
    min-height: 20px;
    min-width: 20px;
  }
}

/* Enhanced focus states for better accessibility */
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Enhanced responsive loading states */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@media (min-width: 640px) {
  .loading::after {
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
  }
}

/* Enhanced responsive order cards */
.order-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem;
  background: #ffffff;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .order-card {
    padding: 1.25rem;
    border-radius: 1rem;
  }
}

.order-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
  border-color: #3b82f6;
}

/* Enhanced responsive filter buttons */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .filter-buttons {
    justify-content: flex-start;
  }
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  min-height: 40px;
  flex: 1;
  max-width: 120px;
}

@media (min-width: 640px) {
  .filter-btn {
    font-size: 0.875rem;
    flex: none;
    min-width: 80px;
  }
}

/* Enhanced responsive cropper */
#cropper-modal {
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#cropper-modal img {
    max-width: 100%;
    max-height: 500px;
    display: block;
    margin: 0 auto;
}

#cropper-modal .modal-body {
    width: 100%;
    max-width: 800px;
    height: auto;
}

.cropper-modal {
  background: rgba(0, 0, 0, 0.9) !important;
  padding: 0.5rem;
}

@media (min-width: 640px) {
  .cropper-modal {
    padding: 1rem;
  }
}

.cropper-container {
  max-width: 100% !important;
  max-height: 70vh !important;
  height: auto !important;
}

.cropper-canvas {
  max-width: 100% !important;
  max-height: 100% !important;
}

.cropper-crop-box,
.cropper-view-box {
  border-radius: 0 !important;
}

#cropper-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

/* Enhanced responsive animations and micro-interactions */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 640px) {
  .hover-lift:hover {
    transform: translateY(-1px);
  }
}

/* Added questionnaire modal styles from popup-styles.css */
.questionnaire-modal {
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.6);
  padding: 0.75rem;
}

@media (min-width: 640px) {
  .questionnaire-modal {
    padding: 1rem;
  }
}

.questionnaire-content {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 95vw;
  max-height: 95vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .questionnaire-content {
    max-width: 800px;
    border-radius: 1.5rem;
    max-height: 90vh;
  }
}

@media (min-width: 1024px) {
  .questionnaire-content {
    max-width: 1000px;
  }
}

.questionnaire-header {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  padding: 1rem;
  border-radius: 1rem 1rem 0 0;
}

@media (min-width: 640px) {
  .questionnaire-header {
    padding: 1.5rem;
    border-radius: 1.5rem 1.5rem 0 0;
  }
}

.questionnaire-header h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .questionnaire-header h3 {
    font-size: 1.25rem;
  }
}

.questionnaire-body {
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
  max-height: calc(95vh - 200px);
}

@media (min-width: 640px) {
  .questionnaire-body {
    padding: 1.5rem;
    max-height: calc(90vh - 200px);
  }
}

/* Added question item styles from popup-styles.css */
.question-item {
  background: #f9fafb;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .question-item {
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
  }
}

.question-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}

.question-number {
  background: #3b82f6;
  color: white;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.75rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .question-number {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
  }
}

.question-title {
  font-weight: 600;
  color: #111827;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .question-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .question-title {
    font-size: 1.125rem;
  }
}

.question-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .question-options {
    gap: 0.75rem;
  }
}

.question-option {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
}

@media (min-width: 640px) {
  .question-option {
    padding: 1rem;
    border-radius: 0.75rem;
  }
}

.question-option:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.question-option.selected {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

/* Added rating and NPS styles from popup-styles.css */
.rating-stars {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .rating-stars {
    gap: 0.5rem;
    justify-content: flex-start;
  }
}

.rating-star {
  width: 2rem;
  height: 2rem;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  font-weight: bold;
  color: #6b7280;
  background: #ffffff;
}

@media (min-width: 640px) {
  .rating-star {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
}

.rating-star:hover {
  border-color: #3b82f6;
  background: #eff6ff;
  color: #3b82f6;
}

.rating-star.selected {
  border-color: #3b82f6;
  background: #3b82f6;
  color: white;
}

.nps-scale {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #fef2f2, #fef9c3, #f0fdf4);
  border-radius: 1rem;
  padding: 0.75rem;
  gap: 0.25rem;
  overflow-x: auto;
}

@media (min-width: 640px) {
  .nps-scale {
    padding: 1rem;
    gap: 0.5rem;
  }
}

.nps-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.nps-number {
  width: 2rem;
  height: 2rem;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.75rem;
  background: #ffffff;
  transition: all 0.3s ease;
  color: #374151;
}

@media (min-width: 640px) {
  .nps-number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
  }
}

.nps-option:hover .nps-number {
  border-color: #3b82f6;
  background: #eff6ff;
  color: #3b82f6;
}

.nps-option.selected .nps-number {
  border-color: #3b82f6;
  background: #3b82f6;
  color: white;
}

.nps-label {
  font-size: 0.625rem;
  color: #6b7280;
  margin-top: 0.25rem;
  text-align: center;
}

@media (min-width: 640px) {
  .nps-label {
    font-size: 0.75rem;
  }
}

/* PERBAIKAN - Enhanced textarea and form validation styles */
.textarea-responsive {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #d1d5db;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  background: #ffffff;
  color: #1f2937;
  resize: vertical;
  min-height: 80px;
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .textarea-responsive {
    padding: 1rem;
    font-size: 1rem;
    min-height: 100px;
  }
}

.textarea-responsive:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input.validation-error {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
  animation: shake 0.5s ease-in-out;
}

.form-input.validation-success {
  border-color: #10b981 !important;
  background-color: #f0fdf4 !important;
}

/* Added toast notification styles */
.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: #ef4444;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 99999;
  max-width: calc(100vw - 2rem);
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .toast {
    max-width: 400px;
    font-size: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
  }
}

.toast.toast-visible {
  transform: translateX(0);
}

.toast.toast-success {
  background: #10b981;
}

.toast.toast-warning {
  background: #f59e0b;
}

.toast.toast-info {
  background: #3b82f6;
}

/* Added loading overlay styles */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1rem;
}

.loading-content {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  max-width: 300px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 640px) {
  .loading-content {
    padding: 2rem;
    max-width: 400px;
  }
}

.loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #f3f4f6;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@media (min-width: 640px) {
  .loading-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border-width: 4px;
  }
}

/* Enhanced responsive safe display */
.safe-display {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Responsive text truncation */
.truncate-mobile {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .truncate-mobile {
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
  }
}

/* Enhanced responsive scrollbars */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 #f7fafc;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f7fafc;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* Responsive landscape orientation handling */
@media (max-height: 500px) and (orientation: landscape) {
  .modal-content {
    max-height: 95vh;
    padding: 1rem;
  }

  .cropper-container {
    max-height: 250px !important;
  }

  nav {
    position: relative;
  }
}

/* Enhanced responsive print styles */
@media print {
  nav,
  .mobile-menu,
  .modal,
  .toast,
  .popup {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .card {
    background: white !important;
    border: 1px solid #000 !important;
    box-shadow: none !important;
  }
}

/* Enhanced responsive utilities for common layouts */
.flex-responsive {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .flex-responsive {
    flex-direction: row;
    align-items: center;
  }
}

.grid-responsive {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid-responsive {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-responsive {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card,
  .form-input,
  .btn {
    border-width: 2px;
    border-color: #000000;
  }

  .text-gray-600 {
    color: #000000 !important;
  }

  .bg-blue-50 {
    background: #ffffff !important;
  }
}

/* Enhanced responsive focus analysis checkboxes */
.focus-checkbox-item .check-icon {
  width: 20px;
  height: 20px;
  border: 2px solid #6b7280;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .focus-checkbox-item .check-icon {
    width: 24px;
    height: 24px;
  }
}

.focus-checkbox-item.selected .check-icon {
  background: #10b981;
  border-color: #10b981;
}

.focus-checkbox-item .check-icon svg {
  opacity: 0;
  transition: opacity 0.3s ease;
  width: 12px;
  height: 12px;
}

@media (min-width: 640px) {
  .focus-checkbox-item .check-icon svg {
    width: 14px;
    height: 14px;
  }
}

.focus-checkbox-item.selected .check-icon svg {
  opacity: 1;
}

/* Enhanced responsive notes area */
.focus-notes-area {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 0.75rem;
}

.focus-checkbox-item.selected .focus-notes-area {
  max-height: 150px;
}

@media (min-width: 640px) {
  .focus-checkbox-item.selected .focus-notes-area {
    max-height: 200px;
  }
}

/* Enhanced responsive comparison file elements */
.comparison-file-counter {
  background: linear-gradient(45deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 4px 8px;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (min-width: 640px) {
  .comparison-file-counter {
    padding: 6px 12px;
    font-size: 0.875rem;
    gap: 6px;
  }
}

.cost-indicator {
  background: linear-gradient(45deg, #10b981, #059669);
  color: white;
  padding: 3px 8px;
  border-radius: 0.75rem;
  font-size: 0.6875rem;
  font-weight: bold;
}

@media (min-width: 640px) {
  .cost-indicator {
    padding: 4px 10px;
    font-size: 0.75rem;
  }
}

/* Enhanced responsive safe areas for modern devices */
@supports (padding: max(0px)) {
  .popup-base {
    padding-top: max(0.75rem, env(safe-area-inset-top));
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }

  @media (min-width: 640px) {
    .popup-base {
      padding-top: max(1rem, env(safe-area-inset-top));
      padding-bottom: max(1rem, env(safe-area-inset-bottom));
      padding-left: max(1rem, env(safe-area-inset-left));
      padding-right: max(1rem, env(safe-area-inset-right));
    }
  }
}

/* Enhanced responsive interaction states */
.interactive {
  transition: all 0.3s ease;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.interactive:hover {
  transform: translateY(-1px);
}

.interactive:active {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .interactive:active {
    transform: scale(0.98);
  }
}

.security-indicator {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(45deg, #10b981, #059669);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
  display: none;
}

.security-indicator.active {
  display: flex;
  align-items: center;
  gap: 8px;
}

.security-indicator i {
  color: #34d399;
}

/* Enhanced Session Status Indicator */
.session-status {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.session-status.active {
  opacity: 1;
  animation: securityPulse 2s infinite;
}

.session-status.inactive {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  opacity: 1;
}

@keyframes securityPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

/* Enhanced Security Form Styles */
.security-form {
  border: 2px solid #10b981;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.security-badge {
  background: linear-gradient(45deg, #10b981, #059669);
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Enhanced Password Strength Indicator */
.password-strength-indicator {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  transition: width 0.3s ease, background-color 0.3s ease;
  border-radius: 2px;
}

.strength-weak { background: #ef4444; width: 25%; }
.strength-fair { background: #f97316; width: 50%; }
.strength-good { background: #eab308; width: 75%; }
.strength-strong { background: #10b981; width: 100%; }

/* Enhanced Security Warning Styles */
.security-warning {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.security-warning h4 {
  color: #92400e;
  font-weight: bold;
  margin-bottom: 8px;
}

.security-warning p {
  color: #d97706;
  font-size: 14px;
}

/* Enhanced Login Security Styles */
.secure-login-btn {
  position: relative;
  overflow: hidden;
}

.secure-login-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.secure-login-btn:hover::after {
  left: 100%;
}

/* Enhanced Security Validation Styles */
.validation-secure {
  border-color: #10b981 !important;
  background-color: #f0fdf4 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

.validation-error {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
  animation: secureShake 0.5s ease-in-out;
}

@keyframes secureShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Enhanced Security Animations */
@keyframes securityFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.security-animate-fadeInUp {
  animation: securityFadeInUp 0.6s ease-out;
}

/* Enhanced Device Fingerprint Styles */
.device-fingerprint-indicator {
  position: fixed;
  bottom: 60px;
  right: 20px;
  width: 30px;
  height: 30px;
  background: linear-gradient(45deg, #3b82f6, #1d4ed8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.device-fingerprint-indicator.active {
  opacity: 0.7;
}

.device-fingerprint-indicator:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Keep all existing styles */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
  40%, 43% { transform: translateY(-10px); }
  70% { transform: translateY(-5px); }
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.animate-fadeInUp { animation: fadeInUp 0.6s ease-out; }
.animate-slideInRight { animation: slideInRight 0.4s ease-out; }
.animate-pulse-hover:hover { animation: pulse 0.3s ease-in-out; }
.animate-bounce-slow { animation: bounce 2s infinite; }

/* Keep all other existing styles unchanged */
.mobile-menu-enter {
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu-enter-active {
  transform: translateX(0);
}

.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.points-glow {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}
/* Enhanced security indicator styles */
.security-indicator {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: linear-gradient(45deg, #10b981, #059669);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  z-index: 1000;
}

.session-timer {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-family: monospace;
  z-index: 1000;
  display: none;
}

/* Security animation styles */
@keyframes securityPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
}

.security-pulse {
  animation: securityPulse 2s infinite;
}

/* Enhanced form security styles */
.secure-form {
  position: relative;
}

.secure-form::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #10b981, #059669, #10b981);
  border-radius: 14px;
  z-index: -1;
  animation: securityPulse 3s infinite;
}

/* Session indicator styles */
.session-active {
  border-left: 4px solid #10b981;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.session-warning {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.session-expired {
  border-left: 4px solid #ef4444;
  background: linear-gradient(135deg, #fee2e2, #fecaca);
}

/* All existing styles remain the same... */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translateY(0);
  }
  40%,
  43% {
    transform: translateY(-10px);
  }
  70% {
    transform: translateY(-5px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

.animate-slideInRight {
  animation: slideInRight 0.4s ease-out;
}

.animate-pulse-hover:hover {
  animation: pulse 0.3s ease-in-out;
}

.animate-bounce-slow {
  animation: bounce 2s infinite;
}

.mobile-menu-enter {
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu-enter-active {
  transform: translateX(0);
}

.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.points-glow {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translateY(0);
  }
  40%,
  43% {
    transform: translateY(-10px);
  }
  70% {
    transform: translateY(-5px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

.animate-slideInRight {
  animation: slideInRight 0.4s ease-out;
}

.animate-pulse-hover:hover {
  animation: pulse 0.3s ease-in-out;
}

.animate-bounce-slow {
  animation: bounce 2s infinite;
}

.mobile-menu-enter {
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu-enter-active {
  transform: translateX(0);
}

.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.points-glow {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

  .social-login-btn {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.google-btn { background: #4285f4; color: white; }
.google-btn:hover { background: #357ae8; border-color: #357ae8; }

.facebook-btn { background: #1877f2; color: white; }
.facebook-btn:hover { background: #166fe5; border-color: #166fe5; }

.twitter-btn { background: #1da1f2; color: white; }
.twitter-btn:hover { background: #0d8bd9; border-color: #0d8bd9; }

.email-btn { background: #6b7280; color: white; }
.email-btn:hover { background: #4b5563; border-color: #4b5563; }

.confirmation-modal {
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.7);
}

.confirmation-content {
  animation: fadeInUp 0.4s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

.order-summary-item {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
}

.price-breakdown {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 2px solid #3b82f6;
}

.auth-tabs {
  border-bottom: 2px solid #e5e7eb;
}

.auth-tab {
  padding: 12px 24px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.auth-tab.active {
  border-bottom-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.form-input {
  transition: all 0.3s ease;
}

.form-input:focus {
  transform: scale(1.02);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

.cropper-crop-box,
.cropper-view-box {
  border-radius: 4px !important;
}

.cropper-view-box {
  box-shadow: 0 0 0 2px #3b82f6;
  outline: 0;
}

.cropper-face {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

.cropper-line {
  background-color: #3b82f6;
}

.cropper-point {
  background-color: #3b82f6;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.cropper-dashed {
  border-color: rgba(59, 130, 246, 0.5);
}

.cropper-center {
  background-color: transparent;
}

/* Quest Styles */
.quest-card {
  transition: all 0.3s ease;
}

.quest-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.quest-type-daily {
  background: linear-gradient(45deg, #3B82F6, #1D4ED8);
  color: white;
}

.quest-type-weekly {
  background: linear-gradient(45deg, #10B981, #059669);
  color: white;
}

.quest-type-milestone {
  background: linear-gradient(45deg, #F59E0B, #D97706);
  color: white;
}

.quest-reward {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border: 2px solid #F59E0B;
}

.filter-active {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Exchange Card Styles */
.exchange-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.exchange-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.exchange-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.exchange-card.disabled:hover {
  transform: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.category-voucher {
  background: linear-gradient(135deg, #3B82F6, #1E40AF);
  color: white;
}

.category-hiburan {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
}

.category-ewallet {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
}

.requirement-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

/* Voucher selection styles */
.voucher-option {
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.voucher-option:hover:not(.selected) {
  border-color: #3B82F6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.voucher-option.selected {
  border-color: #10B981 !important;
  background: linear-gradient(135deg, #D1FAE5, #A7F3D0) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.voucher-code {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  letter-spacing: 1px;
}

.no-vouchers {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border: 2px dashed #F59E0B;
}

/* poin and Voucher Package Styles */
.poin-glow {
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
}

.package-card {
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: #3B82F6;
}

.package-card.premium {
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: white;
}

.package-card.premium:hover {
  border-color: #F59E0B;
}

.poin-input {
  transition: all 0.3s ease;
}

.poin-input:focus {
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.package-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(45deg, #F59E0B, #EAB308);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.package-timer {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: bold;
}

.voucher-list {
  max-height: 120px;
  overflow-y: auto;
}

.voucher-list::-webkit-scrollbar {
  width: 4px;
}

.voucher-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.voucher-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

.poin-balance {
  background: linear-gradient(135deg, #FFC107, #FF9800);
  color: white;
  border-radius: 20px;
  padding: 8px 16px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* Improved Pagination Styles */
.pagination-wrapper {
  border-top: 1px solid #e5e7eb;
  margin-top: 1rem;
  padding-top: 1rem;
}

.pagination-info {
  font-size: 0.875rem;
  color: #6b7280;
}

.pagination-btn {
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
}

.pagination-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #f3f4f6;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-current {
  font-weight: 600;
  color: #1f2937;
}

/* Questionnaire Styles */
.questionnaire-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 2px solid transparent;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.questionnaire-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.questionnaire-badge {
  background: linear-gradient(45deg, #FFD700, #FFA500);
  animation: pulse 2s infinite;
}

/* Modal Styles for Questionnaire */
.questionnaire-modal {
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.6);
}

.question-item {
  transition: all 0.3s ease;
}

.question-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Rating stars animation */
@keyframes starGlow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.rating-stars:hover {
  animation: starGlow 1.5s infinite;
}

/* Progress indicators */
.progress-indicator {
  background: linear-gradient(90deg, #3B82F6, #1D4ED8);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* Enhanced File upload styles */
.file-upload-area {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
  position: relative;
  cursor: pointer;
}

.file-upload-area:hover {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  transform: translateY(-1px);
}

.file-upload-area.dragover {
  border-color: #10b981;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.file-upload-area.has-file {
  border-color: #10b981;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.uploaded-file {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 2px solid #0ea5e9;
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
  position: relative;
  transition: all 0.3s ease;
}

.uploaded-file:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.25);
}

.comparison-file-counter {
  background: linear-gradient(45deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cost-indicator {
  background: linear-gradient(45deg, #10b981, #059669);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

/* Enhanced focus analysis checkboxes */
.focus-checkbox-item {
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  background: white;
}

.focus-checkbox-item:hover {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.focus-checkbox-item.selected {
  border-color: #10b981;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.focus-checkbox-item .check-icon {
  width: 20px;
  height: 20px;
  border: 2px solid #6b7280;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.focus-checkbox-item.selected .check-icon {
  background: #10b981;
  border-color: #10b981;
}

.focus-checkbox-item .check-icon svg {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.focus-checkbox-item.selected .check-icon svg {
  opacity: 1;
}

.focus-notes-area {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.focus-checkbox-item.selected .focus-notes-area {
  max-height: 200px;
}

/* File validation styles */
.file-valid {
  border-color: #10b981 !important;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0) !important;
}

.file-invalid {
  border-color: #ef4444 !important;
  background: linear-gradient(135deg, #fee2e2, #fecaca) !important;
}

.file-progress {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}

.file-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  transition: width 0.3s ease;
}

/* Page length input styles */
.page-length-input {
  position: relative;
}

.page-length-input input {
  padding-right: 80px;
}

.page-length-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #3b82f6;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
}

/* Enhanced validation feedback */
.validation-error {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
  animation: shake 0.5s ease-in-out;
}

.validation-success {
  border-color: #10b981 !important;
  background-color: #f0fdf4 !important;
}

/* Payment error styles */
.payment-error-modal {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border: 2px solid #ef4444;
}

.payment-success-modal {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border: 2px solid #10b981;
}

/* Enhanced price calculation display */
.price-breakdown {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #3b82f6;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.price-item:last-child {
  border-bottom: none;
  font-weight: bold;
  font-size: 1.1em;
  color: #1d4ed8;
}

/* Loading overlay styles */
.payment-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.payment-loading-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  margin: 0 1rem;
}

/* Enhanced error message styles */
.error-details {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
  font-size: 14px;
  color: #991b1b;
}

.error-code {
  font-family: monospace;
  background: #fee2e2;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
}

/* Coming Soon Button Styles - Enhanced */
.task-type-coming-soon {
  position: relative;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border: 2px solid #d1d5db !important;
  cursor: not-allowed;
  opacity: 0.75;
  transition: all 0.3s ease;
  overflow: hidden;
}

.task-type-coming-soon:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: #d1d5db !important;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
}

.task-type-coming-soon i {
  color: #9ca3af !important;
}

.task-type-coming-soon .font-medium {
  color: #6b7280 !important;
}

.coming-soon-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(45deg, #ff6b35, #ff8e53);
  color: white;
  font-size: 8px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
  animation: shimmer 2s infinite linear;
  background: linear-gradient(45deg, #ff6b35, #ff8e53, #ff6b35);
  background-size: 200px 100%;
}

.coming-soon-text {
  color: #ff6b35 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Shimmer effect for coming soon badge */
.coming-soon-badge {
  background: linear-gradient(
    90deg,
    #ff6b35 0%,
    #ffa726 50%,
    #ff6b35 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
}
/* Small responsive fixes for signup/login form */
.auth-modal, .auth-card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(2,6,23,0.08);
}

@media (max-width: 420px) {
  .form-input { padding: 0.9rem 0.9rem; font-size: 15px; }
  .social-login-btn { padding: 0.85rem; font-size: 15px; }
  .email-btn { padding: 0.85rem; }
}

/* Ensure modal scrollable on small screens */
.auth-modal .modal-body {
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
/* =========================
   Modern / Elegant Auth CSS
   (Paste this at the end of styles.css)
   ========================= */

/* Color system (clashing palettes intentionally) */
:root{
  --bg-card: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(250,250,255,0.95));
  --glass-border: rgba(255,255,255,0.35);
  --accent-1: #ff6b6b; /* warm red */
  --accent-2: #ffb86b; /* orange */
  --accent-3: #7c5cff; /* purple */
  --accent-4: #00c2ff; /* cyan */
  --accent-5: #34d399; /* green */
  --muted: #6b7280;
  --text: #0f172a;
}

/* Modal container override (keeps internal scroll) */
#login-modal {
  background: linear-gradient(180deg, rgba(2,6,23,0.55), rgba(2,6,23,0.35));
  padding: 1.25rem !important;
  align-items:center;
  justify-content:center;
  -webkit-overflow-scrolling: touch;
}

/* Card */
#login-modal > div.bg-white.rounded-lg {
  width:100%;
  max-width:720px;
  border-radius:14px;
  background: var(--bg-card);
  box-shadow:
    0 8px 30px rgba(12, 18, 36, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.6);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  display:flex;
  flex-direction:column;
  animation: popupFadeIn 260ms ease;
  max-height: calc(100vh - 56px);
}

/* Inner scroll area */
#login-modal .p-6 {
  padding:1.25rem;
  overflow-y:auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(100vh - 96px);
}

/* Title + close */
#login-modal .flex.justify-between {
  align-items:center;
}
#login-modal h3 { color: var(--text); font-weight:700; letter-spacing:-0.2px; }

/* Auth tabs */
.auth-tabs {
  display:flex;
  border-radius: 12px;
  overflow:hidden;
  box-shadow: 0 6px 18px rgba(12,18,36,0.06);
  border: 1px solid rgba(15,23,42,0.04);
}
.auth-tab {
  padding:10px 12px;
  flex:1;
  text-align:center;
  cursor:pointer;
  background: transparent;
  color: var(--muted);
  font-weight:600;
  transition: all .22s ease;
}
.auth-tab:hover { color: var(--text); transform: translateY(-2px); }
.auth-tab.active {
  background: linear-gradient(90deg, rgba(255,255,255,0.5), rgba(255,255,255,0.03));
  color: var(--text);
  box-shadow: inset 0 -3px 0 rgba(124,92,255,0.12), 0 8px 20px rgba(124,92,255,0.06);
}

/* Social buttons row */
#login-modal .space-y-3 { gap: .6rem; display:flex; flex-direction:column; }

/* Base social button styling */
.social-login-btn {
  display:flex;
  align-items:center;
  gap:12px;
  padding: .85rem 1rem;
  border-radius: 12px;
  font-weight:700;
  min-height:48px;
  border: 0;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 8px 22px rgba(2,6,23,0.06);
  text-decoration:none;
  color: #fff !important;
  overflow: hidden;
  position: relative;
}

/* Icon container */
.social-login-btn i { width:22px; height:22px; display:inline-flex; align-items:center; justify-content:center; font-size:18px; }

/* Hover lift */
.social-login-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(2,6,23,0.12); }

/* GOOGLE - multi-color gradient (not white) */
.social-login-btn.google-btn,
.g_id_signin, .g_id_signin > div, .g_id_signin button {
  background: linear-gradient(135deg, #4285F4 0%, #DB4437 42%, #F4B400 62%, #0F9D58 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 10px 30px rgba(66,133,244,0.16) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* subtle overlay effect */
.social-login-btn.google-btn::after {
  content: "";
  position: absolute;
  right: -40%;
  top: -30%;
  width: 120%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(255,255,255,0.12), transparent 30%);
  transform: rotate(-25deg);
  pointer-events:none;
}

/* FACEBOOK - deep blue glass */
.social-login-btn.facebook-btn {
  background: linear-gradient(135deg, #1877f2 0%, #145ce0 100%) !important;
  color: #fff !important;
  box-shadow: 0 10px 30px rgba(24,119,242,0.12);
}

/* TWITTER - cyan pop */
.social-login-btn.twitter-btn {
  background: linear-gradient(135deg, #00c2ff 0%, #0077b6 100%) !important;
  color: #061826 !important;
  box-shadow: 0 10px 30px rgba(0,194,255,0.12);
}

/* EMAIL button - elegant neutral */
.social-login-btn.email-btn {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%) !important;
  color: #0f172a !important;
  border: 1px solid rgba(15,23,42,0.06) !important;
  box-shadow: 0 6px 18px rgba(2,6,23,0.06);
}

/* Distinct left icon backgrounds (micro badges) */
.social-login-btn i {
  border-radius:8px;
  padding:6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.google-btn i { background: rgba(255,255,255,0.15); }
.facebook-btn i { background: rgba(255,255,255,0.12); }
.twitter-btn i { background: rgba(255,255,255,0.10); }
.email-btn i { background: rgba(15,23,42,0.06); color: inherit; }

/* ensure Google One Tap rendered element inherits our style */
.g_id_signin [role="button"], .g_id_signin button, .g_id_signin > div {
  border-radius: 10px !important;
  padding: .65rem 1rem !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

/* Input fields: modern look */
.form-input {
  border-radius: 12px !important;
  border: 1px solid rgba(15,23,42,0.06) !important;
  padding: .95rem 1rem !important;
  background: linear-gradient(180deg, #ffffff, #fbfdff) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  transition: box-shadow .18s ease, transform .12s ease, border-color .12s ease;
}
.form-input:focus {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(124,92,255,0.08);
  border-color: rgba(124,92,255,0.88);
}

/* Separator 'atau' styling (fancier) */
.relative .w-full.border-t {
  border-top: 1px dashed rgba(15,23,42,0.06);
}
.relative .relative .px-2 {
  background: linear-gradient(90deg,#ffffff, #f3f4f6);
  color: var(--muted);
  font-weight:600;
}

/* Form buttons full-width */
.email-btn, .social-login-btn { width:100%; }

/* Small screen tweaks */
@media (max-width: 520px) {
  #login-modal > div.bg-white.rounded-lg { max-width: 96%; border-radius: 10px; }
  .auth-tab { font-size:14px; padding:10px 6px; }
  .social-login-btn { padding: .8rem .85rem; gap:10px; font-size:15px; min-height:46px; border-radius:10px; }
  .form-input { padding: .85rem .9rem; }
}

/* Accessibility focus */
.social-login-btn:focus, .auth-tab:focus, .email-btn:focus {
  outline: 3px solid rgba(124,92,255,0.12);
  outline-offset: 2px;
}

/* Fallback stronger specificity to override other rules (apply only if buttons still white) */
#login-modal .social-login-btn.google-btn,
#login-modal .g_id_signin,
#login-modal .g_id_signin > div,
#login-modal .g_id_signin button {
  background: linear-gradient(135deg, #4285F4 0%, #DB4437 42%, #F4B400 62%, #0F9D58 100%) !important;
  color:#fff !important;
  border: none !important;
}

.cropper-view-box {
  outline: 2px solid #4ade80 !important; /* hijau terang */
  outline-color: rgba(74, 222, 128, 0.75) !important;
}

.cropper-dashed {
  border-color: rgba(255, 255, 255, 0.8) !important;
}

/* ========================================
   MOBILE OPTIMIZATION - SMALLER TEXT SIZES
   Fix untuk popup, form, navigasi, dan semua text yang terlalu besar di mobile
   ======================================== */

/* Mobile-specific text size reductions for ALL content */
@media (max-width: 640px) {

  /* ===== POPUP & MODAL TEXT OPTIMIZATIONS ===== */

  /* Popup headers - reduce size significantly */
  .popup-header h3,
  .modal-content h3,
  .confirmation-content h3,
  .questionnaire-header h3 {
    font-size: 0.9375rem !important; /* 15px */
    line-height: 1.3;
  }

  /* Popup body text - smaller and more readable */
  .popup-body,
  .popup-body p,
  .popup-body div,
  .modal-content p,
  .confirmation-content p {
    font-size: 0.8125rem !important; /* 13px */
    line-height: 1.5;
  }

  /* Popup labels and small text */
  .popup-body strong,
  .popup-body label,
  .modal-content strong,
  .modal-content label {
    font-size: 0.75rem !important; /* 12px */
  }

  /* Transaction popup specific */
  .order-summary-item,
  .order-summary-item div,
  .order-summary-item p,
  .order-summary-item span {
    font-size: 0.75rem !important; /* 12px */
  }

  .order-summary-item strong {
    font-size: 0.8125rem !important; /* 13px */
  }

  /* Price breakdown text */
  .price-breakdown,
  .price-breakdown div,
  .price-breakdown span,
  .price-item {
    font-size: 0.75rem !important; /* 12px */
  }

  .price-item:last-child {
    font-size: 0.875rem !important; /* 14px for total */
  }

  /* ===== FORM ELEMENTS ===== */

  /* Form labels - smaller */
  .form-label,
  label {
    font-size: 0.75rem !important; /* 12px */
  }

  /* Form helper text */
  .form-group small,
  .form-hint,
  .text-sm,
  .text-xs {
    font-size: 0.6875rem !important; /* 11px */
  }

  /* ===== ORDER STATUS & NAVIGATION ===== */

  /* Filter buttons - reduce text */
  .filter-btn,
  .filter-buttons button {
    font-size: 0.6875rem !important; /* 11px */
    padding: 0.5rem 0.75rem !important;
  }

  /* Order card text */
  .order-card,
  .order-card p,
  .order-card div,
  .order-card span {
    font-size: 0.75rem !important; /* 12px */
  }

  .order-card h4,
  .order-card .font-semibold {
    font-size: 0.8125rem !important; /* 13px */
  }

  /* Payment status badges */
  .payment-status-badge {
    font-size: 0.625rem !important; /* 10px */
    padding: 0.25rem 0.5rem !important;
    min-height: 28px !important;
  }

  /* ===== BUY POINTS SECTION ===== */

  /* Points display text */
  .points-display,
  .points-display span {
    font-size: 0.75rem !important; /* 12px */
  }

  /* Point calculation text */
  #point-calculation,
  .point-info,
  .point-text {
    font-size: 0.6875rem !important; /* 11px */
  }

  /* Package cards */
  .package-card h3,
  .package-card h4 {
    font-size: 0.875rem !important; /* 14px */
  }

  .package-card p,
  .package-card span,
  .package-card div {
    font-size: 0.75rem !important; /* 12px */
  }

  .package-badge {
    font-size: 0.5625rem !important; /* 9px */
  }

  /* ===== QUEST & EXCHANGE CARDS ===== */

  .quest-card h4,
  .exchange-card h4 {
    font-size: 0.8125rem !important; /* 13px */
  }

  .quest-card p,
  .quest-card span,
  .exchange-card p,
  .exchange-card span {
    font-size: 0.6875rem !important; /* 11px */
  }

  /* ===== TASK TYPE BUTTONS ===== */

  .task-type-btn,
  .task-type-btn span,
  .task-type-btn div {
    font-size: 0.75rem !important; /* 12px */
  }

  .task-type-btn .font-medium {
    font-size: 0.8125rem !important; /* 13px */
  }

  /* ===== VOUCHER OPTIONS ===== */

  .voucher-option,
  .voucher-option p,
  .voucher-option span {
    font-size: 0.75rem !important; /* 12px */
  }

  .voucher-code {
    font-size: 0.6875rem !important; /* 11px */
  }

  /* ===== QUESTIONNAIRE ===== */

  .question-title {
    font-size: 0.8125rem !important; /* 13px */
  }

  .question-option,
  .question-option label {
    font-size: 0.75rem !important; /* 12px */
  }

  .question-number {
    width: 1.25rem !important;
    height: 1.25rem !important;
    font-size: 0.6875rem !important;
  }

  /* ===== GENERAL TEXT ELEMENTS ===== */

  /* Card titles */
  .card h3,
  .card h4 {
    font-size: 0.875rem !important; /* 14px */
  }

  /* Card body text */
  .card p,
  .card span,
  .card div:not(.card):not([class*="grid"]):not([class*="flex"]) {
    font-size: 0.75rem !important; /* 12px */
  }

  /* ===== UPLOADED FILE DISPLAY ===== */

  .uploaded-file,
  .uploaded-file span,
  .uploaded-file p {
    font-size: 0.6875rem !important; /* 11px */
  }

  /* ===== PAGINATION ===== */

  .pagination-info,
  .pagination-current {
    font-size: 0.6875rem !important; /* 11px */
  }

  /* ===== TOAST NOTIFICATIONS ===== */

  .toast,
  .toast p {
    font-size: 0.8125rem !important; /* 13px */
  }

  /* ===== AUTH/LOGIN FORMS ===== */

  .auth-tab {
    font-size: 0.8125rem !important; /* 13px */
  }

  .social-login-btn span {
    font-size: 0.8125rem !important; /* 13px */
  }

  /* ===== SECURITY & ERROR MESSAGES ===== */

  .error-details,
  .security-warning p,
  .validation-message {
    font-size: 0.75rem !important; /* 12px */
  }

  /* ===== LOADING STATES ===== */

  .loading-content p,
  .payment-loading-content p {
    font-size: 0.8125rem !important; /* 13px */
  }

  /* ===== DESCRIPTION & HELPER TEXT ===== */

  .text-gray-500,
  .text-gray-600,
  .description,
  .helper-text,
  .hint-text {
    font-size: 0.6875rem !important; /* 11px */
    line-height: 1.4;
  }

  /* ===== BADGES & TAGS ===== */

  .badge,
  .tag,
  .requirement-badge,
  .category-badge {
    font-size: 0.625rem !important; /* 10px */
  }

  /* ===== SPECIFIC FORM FIELD OPTIMIZATIONS ===== */

  /* Select dropdowns */
  select.form-input option {
    font-size: 14px !important; /* Prevent iOS zoom */
  }

  /* Textarea */
  textarea.form-input,
  .textarea-responsive {
    font-size: 14px !important; /* Prevent iOS zoom */
  }

  /* ===== RESPONSIVE HEADINGS IN POPUPS ===== */

  .popup-content h1 {
    font-size: 1.125rem !important; /* 18px */
  }

  .popup-content h2 {
    font-size: 1rem !important; /* 16px */
  }

  .popup-content h3 {
    font-size: 0.9375rem !important; /* 15px */
  }

  .popup-content h4 {
    font-size: 0.875rem !important; /* 14px */
  }

  .popup-content h5,
  .popup-content h6 {
    font-size: 0.8125rem !important; /* 13px */
  }

  /* ===== BUTTON TEXT ===== */

  .btn span,
  button span {
    font-size: 0.8125rem !important; /* 13px */
  }

  .btn-sm,
  .btn-small {
    font-size: 0.75rem !important; /* 12px */
  }

  /* ===== FILE UPLOAD AREA ===== */

  .file-upload-area p,
  .file-upload-area span {
    font-size: 0.75rem !important; /* 12px */
  }

  /* ===== FOCUS ANALYSIS ===== */

  .focus-checkbox-item label,
  .focus-checkbox-item span {
    font-size: 0.75rem !important; /* 12px */
  }

  .focus-notes-area textarea::placeholder {
    font-size: 0.6875rem !important; /* 11px */
  }

  /* ===== CROPPER CONTROLS ===== */

  .cropper-modal button,
  .cropper-controls button {
    font-size: 0.75rem !important; /* 12px */
  }

  /* ===== COMPARISON FILE ELEMENTS ===== */

  .comparison-file-counter {
    font-size: 0.625rem !important; /* 10px */
  }

  .cost-indicator {
    font-size: 0.625rem !important; /* 10px */
  }

  /* ===== NAVIGATION ITEMS ===== */

  .nav-item span {
    font-size: 0.8125rem !important; /* 13px */
  }

  /* Mobile menu items */
  .mobile-menu .nav-item {
    font-size: 0.8125rem !important; /* 13px */
  }
}

/* Extra small devices optimization (< 380px) */
@media (max-width: 380px) {

  /* Even smaller text for very small screens */
  .popup-header h3 {
    font-size: 0.875rem !important; /* 14px */
  }

  .popup-body,
  .popup-body p {
    font-size: 0.75rem !important; /* 12px */
  }

  .form-label,
  label {
    font-size: 0.6875rem !important; /* 11px */
  }

  .order-card p,
  .order-card div {
    font-size: 0.6875rem !important; /* 11px */
  }

  .filter-btn {
    font-size: 0.625rem !important; /* 10px */
    padding: 0.375rem 0.5rem !important;
  }

  .btn {
    font-size: 0.75rem !important; /* 12px */
  }
}

/* ========================================
   MOBILE SCALE REDUCTION - SMALLER BOXES & ELEMENTS
   Mengurangi ukuran kotak-kotak dan elemen besar di mobile
   ======================================== */

@media (max-width: 640px) {

  /* ===== REDUCE PADDING & MARGINS ===== */

  /* Cards - reduce padding significantly */
  .card {
    padding: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    border-radius: 0.75rem !important;
  }

  .order-card {
    padding: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }

  .quest-card,
  .exchange-card {
    padding: 0.75rem !important;
  }

  .package-card {
    padding: 0.75rem !important;
    min-height: 140px !important;
  }

  /* ===== POPUP & MODAL SIZE REDUCTION ===== */

  /* Popup content - smaller overall */
  .popup-content {
    max-width: 95vw !important;
    padding: 0 !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }

  .popup-header {
    padding: 0.75rem !important;
  }

  .popup-body {
    padding: 0.75rem !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
  }

  .popup-footer {
    padding: 0.75rem !important;
    gap: 0.5rem !important;
  }

  /* Modal content */
  .modal-content {
    padding: 1rem !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }

  .confirmation-content {
    padding: 0 !important;
  }

  /* Order confirmation popup specific */
  #transaction-popup .popup-body {
    max-height: 70vh !important;
  }

  #order-confirmation-content {
    max-height: none !important;
  }

  /* ===== FORM ELEMENTS REDUCTION ===== */

  /* Form inputs - smaller height */
  .form-input {
    padding: 0.625rem 0.75rem !important;
    min-height: 40px !important;
  }

  /* Form groups - less spacing */
  .form-group {
    margin-bottom: 0.75rem !important;
  }

  /* Textarea - smaller */
  .textarea-responsive {
    min-height: 70px !important;
    padding: 0.625rem 0.75rem !important;
  }

  /* ===== BUTTONS REDUCTION ===== */

  /* All buttons - smaller */
  .btn,
  button {
    padding: 0.625rem 1rem !important;
    min-height: 40px !important;
    border-radius: 0.625rem !important;
  }

  .social-login-btn {
    padding: 0.625rem 0.875rem !important;
    min-height: 40px !important;
  }

  /* Popup footer buttons */
  .popup-footer button {
    padding: 0.625rem 1rem !important;
    min-height: 40px !important;
  }

  /* ===== TASK TYPE BUTTONS ===== */

  .task-type-btn {
    min-height: 70px !important;
    padding: 0.625rem !important;
  }

  /* ===== ORDER SUMMARY ITEMS ===== */

  .order-summary-item {
    padding: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    border-radius: 0.5rem !important;
  }

  .order-summary-item h4 {
    font-size: 0.75rem !important;
    margin-bottom: 0.125rem !important;
  }

  .order-summary-item p {
    font-size: 0.6875rem !important;
    line-height: 1.3 !important;
  }

  .order-summary-item .text-xl {
    font-size: 1rem !important;
  }

  .order-summary-item .text-lg {
    font-size: 0.875rem !important;
  }

  .order-summary-item .text-sm {
    font-size: 0.6875rem !important;
  }

  .order-summary-item .text-xs {
    font-size: 0.625rem !important;
  }

  .order-summary-item i {
    font-size: 1rem !important;
    margin-right: 0.5rem !important;
  }

  .order-summary-item .flex {
    gap: 0.5rem !important;
  }

  .order-summary-item .mr-3 {
    margin-right: 0.5rem !important;
  }

  /* ===== PRICE BREAKDOWN ===== */

  .price-breakdown {
    padding: 0.75rem !important;
    margin-top: 0.75rem !important;
    border-radius: 0.75rem !important;
  }

  .price-item {
    padding: 0.5rem 0 !important;
  }

  /* ===== FILTER BUTTONS ===== */

  .filter-btn {
    padding: 0.5rem 0.75rem !important;
    min-height: 36px !important;
    border-radius: 0.5rem !important;
  }

  .filter-buttons {
    gap: 0.375rem !important;
  }

  /* ===== AUTH TABS ===== */

  .auth-tab {
    padding: 0.625rem 0.75rem !important;
    min-height: 40px !important;
  }

  /* ===== NAVIGATION ITEMS ===== */

  .nav-item {
    padding: 0.625rem !important;
    min-height: 40px !important;
  }

  .mobile-menu .nav-item {
    padding: 0.75rem !important;
    min-height: 44px !important;
    margin-bottom: 0.375rem !important;
  }

  /* ===== QUESTION ITEMS ===== */

  .question-item {
    padding: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }

  .question-option {
    padding: 0.625rem !important;
    min-height: 40px !important;
  }

  /* ===== UPLOADED FILE DISPLAY ===== */

  .uploaded-file {
    padding: 0.75rem !important;
    margin: 0.5rem 0 !important;
  }

  /* ===== FILE UPLOAD AREA ===== */

  .file-upload-area {
    padding: 1rem !important;
    min-height: 100px !important;
  }

  /* ===== BADGES - SMALLER ===== */

  .payment-status-badge {
    padding: 0.25rem 0.5rem !important;
    min-height: 24px !important;
  }

  .package-badge {
    padding: 3px 8px !important;
    top: -6px !important;
    right: -6px !important;
  }

  /* ===== POINTS DISPLAY ===== */

  .points-display {
    padding: 0.5rem 0.75rem !important;
  }

  /* ===== FOCUS CHECKBOX ITEMS ===== */

  .focus-checkbox-item {
    padding: 0.75rem !important;
    min-height: 70px !important;
  }

  /* ===== VOUCHER OPTIONS ===== */

  .voucher-option {
    padding: 0.75rem !important;
  }

  /* ===== PAGINATION ===== */

  .pagination-wrapper {
    margin-top: 0.75rem !important;
    padding-top: 0.75rem !important;
  }

  .pagination-btn {
    min-height: 36px !important;
    min-width: 36px !important;
  }

  /* ===== TOAST NOTIFICATIONS ===== */

  .toast {
    padding: 0.625rem 0.875rem !important;
  }

  /* ===== LOADING CONTENT ===== */

  .loading-content {
    padding: 1.25rem !important;
  }

  .payment-loading-content {
    padding: 1.25rem !important;
  }

  /* ===== QUESTIONNAIRE ===== */

  .questionnaire-header {
    padding: 0.75rem !important;
  }

  .questionnaire-body {
    padding: 0.75rem !important;
  }

  /* ===== RATING & NPS ELEMENTS ===== */

  .rating-star {
    width: 1.75rem !important;
    height: 1.75rem !important;
  }

  .nps-number {
    width: 1.75rem !important;
    height: 1.75rem !important;
  }

  .nps-scale {
    padding: 0.625rem !important;
    gap: 0.25rem !important;
  }

  /* ===== SPACING UTILITIES ===== */

  .spacing-sm {
    padding: 0.625rem !important;
  }

  .spacing-md {
    padding: 0.75rem !important;
  }

  .spacing-lg {
    padding: 1rem !important;
  }

  /* ===== CONTAINER PADDING ===== */

  .container {
    padding: 0 0.625rem !important;
  }

  /* ===== GRID GAPS ===== */

  .responsive-grid {
    gap: 0.5rem !important;
  }

  /* ===== ICONS - SMALLER ===== */

  .popup-icon {
    width: 1.75rem !important;
    height: 1.75rem !important;
    margin-right: 0.625rem !important;
  }

  .question-number {
    width: 1.25rem !important;
    height: 1.25rem !important;
  }

  /* ===== AUTH MODAL SPECIFIC ===== */

  #login-modal .p-6,
  #login-modal > div.bg-white.rounded-lg {
    padding: 1rem !important;
  }

  .auth-modal,
  .auth-card {
    padding: 0.75rem !important;
  }

  /* ===== COMPARISON FILE ELEMENTS ===== */

  .comparison-file-counter {
    padding: 3px 6px !important;
  }

  .cost-indicator {
    padding: 2px 6px !important;
  }

  /* ===== SECURITY ELEMENTS ===== */

  .security-warning {
    padding: 0.75rem !important;
    margin: 0.75rem 0 !important;
    border-radius: 0.75rem !important;
  }

  .security-badge {
    padding: 3px 8px !important;
  }

  /* ===== ERROR DETAILS ===== */

  .error-details {
    padding: 0.75rem !important;
    margin-top: 0.75rem !important;
  }

  /* ===== CROPPER MODAL ===== */

  .cropper-modal {
    padding: 0.5rem !important;
  }

  /* ===== COMING SOON BADGE ===== */

  .coming-soon-badge {
    padding: 2px 6px !important;
    top: 6px !important;
    right: 6px !important;
  }

  /* ===== REDUCE BORDER RADIUS FOR TIGHTER LOOK ===== */

  .card,
  .modal-content,
  .popup-content,
  .btn,
  button,
  .form-input {
    border-radius: 0.625rem !important;
  }

  /* ===== REDUCE GAPS BETWEEN ELEMENTS ===== */

  .space-y-4 > * + * {
    margin-top: 0.75rem !important;
  }

  .space-y-3 > * + * {
    margin-top: 0.5rem !important;
  }

  .space-y-2 > * + * {
    margin-top: 0.375rem !important;
  }

  /* ===== REDUCE VERTICAL SPACING ===== */

  .mb-4,
  .my-4 {
    margin-bottom: 0.75rem !important;
  }

  .mb-6,
  .my-6 {
    margin-bottom: 1rem !important;
  }

  .mt-4 {
    margin-top: 0.75rem !important;
  }

  .mt-6 {
    margin-top: 1rem !important;
  }

  .py-4 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  .py-6 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .px-4 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .px-6 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* ===== REDUCE LINE HEIGHT FOR TIGHTER TEXT ===== */

  p,
  div,
  span {
    line-height: 1.4 !important;
  }

  h1, h2, h3, h4, h5, h6 {
    line-height: 1.3 !important;
    margin-bottom: 0.375rem !important;
  }

  /* ===== TITLE SELECTION (generateTitleOptions) SPECIFIC ===== */

  #title-selection-section {
    padding: 0.75rem !important;
  }

  #title-selection-section .bg-gradient-to-br {
    padding: 1rem !important;
  }

  #title-selection-section h3 {
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
  }

  #title-selection-section p {
    font-size: 0.75rem !important;
  }

  #title-selection-section .w-16 {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }

  #title-selection-section .text-2xl {
    font-size: 1rem !important;
  }

  #title-selection-section .text-lg {
    font-size: 0.8125rem !important;
  }

  #title-selection-section .text-xl {
    font-size: 0.875rem !important;
  }

  #title-selection-section label div {
    padding: 0.75rem !important;
  }

  #title-selection-section .space-y-4 {
    gap: 0.5rem !important;
  }

  #title-selection-section .mb-8 {
    margin-bottom: 1rem !important;
  }

  #title-selection-section .space-x-4 {
    gap: 0.5rem !important;
  }

  #title-selection-section button {
    padding: 0.625rem 1rem !important;
    font-size: 0.75rem !important;
  }

  #title-selection-section button i {
    font-size: 0.875rem !important;
    margin-right: 0.375rem !important;
  }

  #title-selection-section .w-6 {
    width: 1.25rem !important;
    height: 1.25rem !important;
  }

  #title-selection-section .px-3 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  #title-selection-section .py-1 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
  }

  #title-selection-section .text-xs {
    font-size: 0.625rem !important;
  }

  #title-selection-section .px-8 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  #title-selection-section .py-4 {
    padding-top: 0.625rem !important;
    padding-bottom: 0.625rem !important;
  }
}

/* Extra small devices - even more compact */
@media (max-width: 380px) {

  /* Further reduction for very small screens */
  .card,
  .order-card,
  .quest-card,
  .exchange-card {
    padding: 0.625rem !important;
  }

  .popup-header,
  .popup-body,
  .popup-footer {
    padding: 0.625rem !important;
  }

  .form-input {
    padding: 0.5rem 0.625rem !important;
    min-height: 36px !important;
  }

  .btn,
  button {
    padding: 0.5rem 0.75rem !important;
    min-height: 36px !important;
  }

  .order-summary-item {
    padding: 0.375rem !important;
  }

  .order-summary-item h4 {
    font-size: 0.6875rem !important;
  }

  .order-summary-item p {
    font-size: 0.625rem !important;
  }

  #title-selection-section h3 {
    font-size: 0.875rem !important;
  }

  #title-selection-section p {
    font-size: 0.6875rem !important;
  }

  #title-selection-section .bg-gradient-to-br {
    padding: 0.75rem !important;
  }

  .responsive-table table th,
  .responsive-table table td {
    font-size: 0.6875rem !important;
    padding: 0.375rem !important;
  }

  .task-type-btn {
    min-height: 60px !important;
    padding: 0.5rem !important;
  }

  .package-card {
    min-height: 120px !important;
    padding: 0.625rem !important;
  }

  .mobile-menu .nav-item {
    padding: 0.625rem !important;
    min-height: 40px !important;
  }

  .filter-btn {
    padding: 0.375rem 0.625rem !important;
    min-height: 32px !important;
  }

  .container {
    padding: 0 0.5rem !important;
  }

  .responsive-grid {
    gap: 0.375rem !important;
  }
}

/* Title Selection - Mobile Optimized for Android */
@media (max-width: 640px) {
  #title-selection-section {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }

  #title-selection-section .bg-gradient-to-br {
    padding: 1rem !important;
  }

  #title-selection-section h3 {
    font-size: 1.125rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.4 !important;
  }

  #title-selection-section p {
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
  }

  #title-selection-section .w-16.h-16 {
    width: 3rem !important;
    height: 3rem !important;
    margin-bottom: 0.75rem !important;
  }

  #title-selection-section .text-2xl {
    font-size: 1.25rem !important;
  }

  #title-selection-section .space-y-4 {
    gap: 0.75rem !important;
  }

  #title-selection-section label > div {
    padding: 0.875rem !important;
  }

  #title-selection-section label p {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
  }

  #title-selection-section .flex.flex-col.sm\:flex-row {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  #title-selection-section button {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
  }

  #title-selection-section .text-sm {
    font-size: 0.8rem !important;
  }
}