/* =====================
   MODERN MINIMAL DESIGN
   Enhanced UX/UI with Smooth Animations
===================== */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

/* Light Mode Variables Only */
:root {
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f8fafc;
  --text-primary: #0a0a0a;
  --text-secondary: #6b7280;
  --text-tertiary: #374151;
  --border-primary: #e5e7eb;
  --border-secondary: #d1d5db;
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.1);
  --shadow-large: rgba(0, 0, 0, 0.15);
  --gradient-start: #f3a6c8;
  --gradient-mid: #d9b7ee;
  --gradient-end: #9ecbff;
  --primary-color: #3498db;
  --primary-hover: #2980b9;
  --success-color: #27ae60;
  --error-color: #e74c3c;
  --warning-color: #f39c12;
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-tap-highlight-color: transparent;
  line-height: 1.6;
  transition: var(--transition);
}

/* Enhanced Button Styles */
button {
  border: none;
  border-radius: var(--border-radius);
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

button:active {
  transform: translateY(0);
}

/* Enhanced Input Styles */
input, textarea, select {
  border: 2px solid var(--border-primary);
  border-radius: var(--border-radius);
  padding: 14px 18px;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 
    0 0 0 3px rgba(52, 152, 219, 0.1),
    0 2px 8px var(--shadow-light);
  transform: translateY(-1px);
}

input:invalid, textarea:invalid, select:invalid {
  border-color: var(--error-color);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

input:valid, textarea:valid, select:valid {
  border-color: var(--success-color);
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* Form Labels */
.label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* Form Groups */
.form-group {
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Error Messages */
.error {
  background: linear-gradient(135deg, #fee, #fdd);
  color: var(--error-color);
  padding: 16px 20px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(231, 76, 60, 0.2);
  margin-bottom: 20px;
  font-weight: 500;
  animation: slideIn 0.4s ease-out;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
}

.success {
  background: linear-gradient(135deg, #efe, #dfd);
  color: var(--success-color);
  padding: 16px 20px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(39, 174, 96, 0.2);
  margin-bottom: 20px;
  font-weight: 500;
  animation: slideIn 0.4s ease-out;
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.15);
}

.warning {
  background: linear-gradient(135deg, #fef9e7, #fef6e7);
  color: var(--warning-color);
  padding: 16px 20px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(243, 156, 18, 0.2);
  margin-bottom: 20px;
  font-weight: 500;
  animation: slideIn 0.4s ease-out;
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.15);
}

/* Enhanced Card Styles */
.card {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid var(--border-primary);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-large);
  border-color: var(--primary-color);
}

/* =====================
   LAYOUT
===================== */
.container {
  max-width: 1200px;
  margin: auto;
  padding: clamp(20px, 4vw, 40px);
}

.center {
  text-align: center;
}

/* =====================
   BRAND / HEADINGS
===================== */
h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 20px 0 16px;
  background: linear-gradient(
    135deg,
    var(--gradient-start) 0%,
    var(--gradient-mid) 45%,
    var(--gradient-end) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-weight: 400;
}

.slogan {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--text-primary);
  margin-bottom: 48px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.slogan strong {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =====================
   PRODUCT GRID
===================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

/* =====================
   CARDS
===================== */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px var(--shadow-light),
    0 8px 16px var(--shadow-medium);
  border-color: var(--border-secondary);
}

.card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card-body {
  padding: 24px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card p {
  margin: 0 0 16px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: block;
}

/* =====================
   ENHANCED BUTTONS
   Modern Design with Micro-interactions
===================== */
button, .btn-primary, .btn-secondary, .btn-outline {
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
}

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

button:disabled:hover, .btn-primary:disabled:hover, .btn-secondary:disabled:hover, .btn-outline:disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-primary);
}

button:focus, .btn-primary:focus, .btn-secondary:focus, .btn-outline:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

button:active, .btn-primary:active, .btn-secondary:active, .btn-outline:active {
  transform: scale(0.98);
}

/* Primary Button - Enhanced */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: white;
  box-shadow: 
    0 4px 14px rgba(52, 152, 219, 0.3),
    0 2px 4px rgba(52, 152, 219, 0.2);
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 20px rgba(52, 152, 219, 0.4),
    0 4px 8px rgba(52, 152, 219, 0.3);
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 
    0 4px 12px rgba(52, 152, 219, 0.3),
    0 2px 4px rgba(52, 152, 219, 0.2);
}

/* Secondary Button - Enhanced */
.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  border: 2px solid var(--border-primary);
  box-shadow: 0 2px 8px var(--shadow-light);
  border: 1px solid var(--border-primary);
}

.btn-secondary:hover {
  background: var(--border-primary);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--bg-secondary);
  color: var(--text-tertiary);
  border: 2px solid var(--border-primary);
}

.btn-outline:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-secondary);
}

/* =====================
   FORMS
===================== */
.form-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px var(--shadow-light);
  margin-bottom: 24px;
}

.form-card h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-card > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1rem;
}

label {
  display: block;
  font-size: 1rem; /* Increased from 0.9rem */
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

input {
  width: 100%;
  padding: 14px 18px;
  margin-top: 6px;
  border-radius: 12px;
  border: 2px solid var(--border-primary);
  font-size: 1rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: all 0.2s ease;
  min-height: 48px; /* Minimum touch target size */
  box-sizing: border-box;
  font-family: inherit;
}

input:focus {
  outline: none;
  border-color: var(--gradient-start);
  box-shadow: 0 0 0 3px rgba(243, 166, 200, 0.1);
  background: var(--bg-primary);
}

.hint {
  display: block;
  font-size: 1rem; /* Increased from 0.9rem */
  color: var(--text-secondary);
  margin-top: 8px;
}

/* =====================
   STEP INDICATOR
   Simple Clean Design
===================== */
.step-indicator {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
  position: relative;
  padding: 0 20px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 150px;
}

.step-dot {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 3px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.step.active .step-dot {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.step.completed .step-dot {
  background: var(--success-color);
  border-color: var(--success-color);
  color: white;
}

.step-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 1rem; /* Increased from 0.9rem */
  margin-bottom: 4px;
}

.step.active .step-label {
  color: var(--primary-color);
  font-size: 1.1rem; /* Increased from 1rem */
}

.step-description {
  font-size: 1rem; /* Increased from 0.9rem */
  color: var(--text-tertiary);
  line-height: 1.4;
  max-width: 120px;
}

.step.active .step-description {
  color: var(--text-primary);
  font-weight: 500;
}

/* =====================
   STEP CONTENT
===================== */
.step-content {
  display: none;
}

.step-content.active {
  display: block;
}

/* =====================
   PAYMENT INSTRUCTIONS
===================== */
.payment-instructions {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

.instruction-step {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.instruction-step:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px var(--shadow-light);
}

.instruction-step:last-child {
  margin-bottom: 0;
}

.step-icon {
  font-size: 1.5rem;
  margin-right: 16px;
  min-width: 40px;
  text-align: center;
  color: var(--gradient-start);
}

.step-text {
  font-size: 1rem; /* Increased from 0.95rem */
  color: var(--text-primary);
  line-height: 1.4;
}

.step-text strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}

/* =====================
   PAYMENT BOX
===================== */
.payment-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  text-align: center;
}

.payment-box h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.payment-box img {
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow-light);
  margin-bottom: 16px;
}

.payment-box strong {
  font-size: 1.25rem;
  color: var(--text-primary);
}

/* =====================
   BUTTON ROW
===================== */
.button-row {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* Loading States */
.loading-spinner {
  display: none;
  width: 4px;
  color: #000;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 
    19px -19px 0 0px, 38px -19px 0 0px, 57px -19px 0 0px,
    19px 0     0 5px, 38px 0     0 5px, 57px 0     0 5px,
    19px 19px  0 0px, 38px 19px  0 0px, 57px 19px  0 0px;
  animation: l26 2s infinite linear;
}

@keyframes l26 {
  12.5% {box-shadow: 
    19px -19px 0 0px, 38px -19px 0 0px, 57px -19px 0 5px,
    19px 0     0 5px, 38px 0     0 0px, 57px 0     0 5px,
    19px 19px  0 0px, 38px 19px  0 0px, 57px 19px  0 0px}
  25%   {box-shadow: 
    19px -19px 0 5px, 38px -19px 0 0px, 57px -19px 0 5px,
    19px 0     0 0px, 38px 0     0 0px, 57px 0     0 0px,
    19px 19px  0 0px, 38px 19px  0 5px, 57px 19px  0 0px}
  50%   {box-shadow: 
    19px -19px 0 5px, 38px -19px 0 5px, 57px -19px 0 0px,
    19px 0     0 0px, 38px 0     0 0px, 57px 0     0 0px,
    19px 19px  0 0px, 38px 19px  0 0px, 57px 19px  0 5px}
  62.5% {box-shadow: 
    19px -19px 0 0px, 38px -19px 0 0px, 57px -19px 0 0px,
    19px 0     0 5px, 38px 0     0 0px, 57px 0     0 0px,
    19px 19px  0 0px, 38px 19px  0 5px, 57px 19px  0 5px}
  75%   {box-shadow: 
    19px -19px 0 0px, 38px -19px 0 5px, 57px -19px 0 0px,
    19px 0     0 0px, 38px 0     0 0px, 57px 0     0 5px,
    19px 19px  0 0px, 38px 19px  0 0px, 57px 19px  0 5px}
  87.5% {box-shadow: 
    19px -19px 0 0px, 38px -19px 0 5px, 57px -19px 0 0px,
    19px 0     0 0px, 38px 0     0 5px, 57px 0     0 0px,
    19px 19px  0 5px, 38px 19px  0 0px, 57px 19px  0 0px}
}

.btn-loading {
  pointer-events: none;
  opacity: 0.8;
  position: relative;
}

.btn-loading .loading-spinner {
  display: inline-block;
  opacity: 1;
}

.btn-loading .btn-text {
  opacity: 0.7;
}

.btn-loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 2s infinite;
  border-radius: var(--border-radius);
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Full Page Loading Overlay */
.page-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2); /* Even brighter overlay (20% vs 40%) */
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.page-loader-overlay.active {
  display: flex;
}

/* Prevent scrolling when overlay is active */
body.page-loading {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

.page-loader-overlay .loading-spinner {
  display: block;
  transform: scale(2); /* Scale up without translateX */
  margin: 0 auto; /* Center horizontally */
}

/* Product Gallery */
.product-gallery {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.gallery-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.gallery-thumbnails {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.thumbnail {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.thumbnail:hover {
  border-color: var(--gradient-start);
  transform: scale(1.1);
}

.thumbnail.active {
  border-color: var(--gradient-start);
  opacity: 1;
}

/* Product Badges */
.product-badges {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
}

.badge.new {
  background: rgba(34, 197, 94, 0.9);
  color: white;
}

.badge.popular {
  background: rgba(239, 68, 68, 0.9);
  color: white;
}

.badge.limited {
  background: rgba(245, 158, 11, 0.9);
  color: white;
}

/* Newsletter Section */
.newsletter-section {
  background: var(--bg-secondary);
  padding: 60px 40px;
  border-radius: 20px;
  text-align: center;
  margin: 60px 0;
}

.newsletter-content {
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.newsletter-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0 0 30px 0;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 15px;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 16px 20px;
  border: 2px solid var(--border-primary);
  border-radius: 25px;
  font-size: 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--gradient-start);
  box-shadow: 0 0 0 3px rgba(243, 166, 200, 0.1);
}

.newsletter-btn {
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(243, 166, 200, 0.3);
}

/* Admin Link */
.admin-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.admin-link:hover {
  color: var(--gradient-start);
}

/* Login Modal */
.login-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.login-card {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
  min-width: 350px;
  max-width: 90%;
}

.login-card h2 {
  color: var(--text-primary);
  margin: 0 0 15px 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.login-card p {
  color: var(--text-secondary);
  margin: 0 0 25px 0;
  font-size: 1rem;
}

#admin-password-input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 25px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

#admin-password-input:focus {
  outline: none;
  border-color: var(--gradient-start);
}

.login-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.login-btn {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
}

.login-btn.go {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
}

.login-btn.go:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(243, 166, 200, 0.3);
}

.login-btn.cancel {
  background: #f3f4f6;
  color: var(--text-secondary);
}

.login-btn.cancel:hover {
  background: #e5e7eb;
}

/* Email Editor Modal */
.email-editor-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.email-editor-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.email-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
  border-bottom: 1px solid var(--border-primary);
}

.email-editor-header h3 {
  color: var(--text-primary);
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.email-editor-form {
  padding: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-primary);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gradient-start);
}

.email-preview {
  margin: 20px 0;
  padding: 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
}

.email-preview h4 {
  color: var(--text-primary);
  margin: 0 0 15px 0;
  font-size: 1rem;
  font-weight: 600;
}

.preview-frame {
  min-height: 200px;
  border: 1px dashed var(--border-primary);
  border-radius: 4px;
  padding: 15px;
  background: white;
  overflow: auto;
}

.email-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid var(--border-primary);
}

.preview-btn {
  padding: 10px 20px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 2px solid var(--border-primary);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.preview-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--gradient-start);
}

.send-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(243, 166, 200, 0.3);
}

/* Simple Charts */
.simple-chart {
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bar-chart {
  display: flex;
  align-items: end;
  gap: 15px;
  height: 100%;
  width: 100%;
  padding: 20px;
}

.bar {
  flex: 1;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  border-radius: 8px 8px 0 0;
  position: relative;
  min-height: 20px;
  display: flex;
  align-items: end;
  justify-content: center;
  padding-bottom: 10px;
}

.bar span {
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  position: absolute;
  bottom: -25px;
  white-space: nowrap;
}

.pie-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 20px;
}

.pie-segment {
  padding: 15px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  text-align: center;
  font-size: 0.9rem;
}

/* Admin Dashboard */
.admin-dashboard {
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.admin-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-primary);
  margin-bottom: 30px;
}

.admin-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.admin-nav {
  display: flex;
  gap: 15px;
}

.admin-nav-btn {
  padding: 10px 20px;
  border: 2px solid var(--border-primary);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.admin-nav-btn.active {
  background: var(--gradient-start);
  color: white;
  border-color: var(--gradient-start);
}

.admin-nav-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--gradient-start);
}

.admin-main {
  display: grid;
  gap: 30px;
}

.stats-section {
  margin-bottom: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--bg-secondary);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-light);
}

.stat-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(243, 166, 200, 0.1);
  border-radius: 12px;
}

.stat-content {
  flex: 1;
}

.stat-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text-primary);
}

.stat-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.stat-change {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
}

.stat-change.positive {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.stat-change.negative {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.charts-section {
  margin-bottom: 30px;
}

.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.chart-card {
  background: var(--bg-secondary);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid var(--border-primary);
}

.chart-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  color: var(--text-primary);
}

.chart-container {
  height: 350px;
  position: relative;
}

.newsletter-section {
  margin-bottom: 30px;
}

.newsletter-card {
  background: var(--bg-secondary);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid var(--border-primary);
}

.newsletter-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  color: var(--text-primary);
}

.newsletter-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.subscriber-count {
  text-align: center;
}

.subscriber-count span {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gradient-start);
  display: block;
  margin-bottom: 8px;
}

.subscriber-count p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.newsletter-send-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(243, 166, 200, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .admin-container {
    padding: 15px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .charts-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .admin-header {
    flex-direction: column;
    gap: 15px;
  }
}

/* Story Button */
.story-button-container {
  text-align: center;
  margin: 40px auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.story-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 30px;
  border: 2px solid var(--gradient-start);
  color: var(--gradient-start);
  background: linear-gradient(135deg, rgba(243, 166, 200, 0.05) 0%, rgba(52, 152, 219, 0.05) 100%);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(243, 166, 200, 0.2);
}

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

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

.story-btn:hover {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(243, 166, 200, 0.4);
  border-color: transparent;
}

.btn-icon {
  font-size: 1.3rem;
  animation: pulse 2s ease-in-out infinite;
}

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

/* =====================
   OUR STORY PAGE
   Beautiful Story Layout
===================== */
.story-header {
  text-align: center;
  padding: 40px 0;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
  border-radius: 20px;
  margin-bottom: 40px;
}

.story-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.story-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-spacer {
  width: 120px;
}

.story-hero {
  text-align: center;
  padding: 60px 0;
  background: var(--bg-secondary);
  border-radius: 20px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin: 0 0 20px 0;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 500;
}

.hero-decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.chromink-icon {
  position: absolute;
  font-size: 8rem;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.art-icon {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.ink-icon {
  bottom: 20%;
  right: 10%;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.story-content {
  display: grid;
  gap: 30px;
  margin-bottom: 60px;
}

.story-card {
  background: var(--bg-primary);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow-light);
  display: flex;
  align-items: flex-start;
  gap: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.story-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--shadow-medium);
}

.story-card.featured {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
}

.story-card.featured h3,
.story-card.featured p {
  color: white;
}

.card-icon {
  font-size: 3rem;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(243, 166, 200, 0.1);
  border-radius: 20px;
}

.story-card.featured .card-icon {
  background: rgba(255, 255, 255, 0.2);
}

.card-content {
  flex: 1;
  min-width: 0;
}

.story-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: var(--text-primary);
}

.story-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.story-values {
  text-align: center;
  padding: 60px 0;
  background: var(--bg-secondary);
  border-radius: 20px;
  margin-bottom: 60px;
}

.values-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 50px 0;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.value-item {
  background: var(--bg-primary);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.value-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-light);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.value-content {
  text-align: center;
}

.value-item h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: var(--text-primary);
}

.value-item p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.story-cta {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  border-radius: 20px;
  color: white;
  margin-bottom: 60px;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 20px 0;
}

.cta-content p {
  font-size: 1.2rem;
  margin: 0 0 30px 0;
  opacity: 0.9;
}

.story-cta .btn-primary {
  background: white;
  color: var(--gradient-start);
  font-weight: 700;
  padding: 16px 40px;
  font-size: 1.1rem;
}

.story-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.story-footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border-primary);
  color: var(--text-secondary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .story-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .story-card {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }
  
  .card-icon {
    margin: 0 auto 20px;
  }
  
  .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .nav-spacer {
    width: 80px;
  }
}

@media (max-width: 480px) {
  .story-nav {
    flex-direction: column;
    gap: 20px;
  }
  
  .nav-spacer {
    display: none;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .chromink-icon {
    font-size: 6rem;
  }
}

/* =====================
   MOBILE OPTIMIZATIONS
   Better Mobile Performance
===================== */
@media (max-width: 768px) {
  /* Increase font sizes for mobile readability */
  body {
    font-size: 16px; /* Ensure base font is at least 16px */
  }
  
  .hint {
    font-size: 1rem; /* 16px */
  }
  
  .step-description {
    font-size: 1rem; /* 16px */
  }
  
  .step-label {
    font-size: 1rem; /* 16px */
  }
  
  .step-text {
    font-size: 1rem; /* 16px */
  }
  
  .payment-info span {
    font-size: 1rem; /* 16px */
  }
  
  .instruction-step .step-text {
    font-size: 1rem; /* 16px */
  }
  
  /* Improve touch targets */
  button, .btn-primary, .btn-secondary, .btn-outline {
    font-size: 1.1rem;
    padding: 16px 32px;
    min-height: 48px; /* Minimum touch target size */
    width: 100%; /* Full width on mobile */
    max-width: none; /* Remove max-width constraints */
  }
  
  .size-btn {
    font-size: 1rem;
    padding: 12px 20px;
    min-height: 48px;
    min-width: 48px;
  }
  
  /* Improve spacing */
  .step-indicator {
    margin-bottom: 32px;
  }
  
  .form-card {
    padding: 24px 16px; /* Reduced padding for smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .qr-card {
    padding: 20px 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Fix content width */
  .container {
    padding: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* =====================
   PRIVACY MODAL
===================== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay.hidden {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 25px 50px var(--shadow-medium);
  background: white; /* White background for readability */
}

.modal-card h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-card h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: var(--text-primary); /* Ensure dark text on white background */
}

.modal-card p {
  margin-bottom: 16px;
  line-height: 1.6;
  color: var(--text-secondary); /* Ensure readable text on white background */
}

.modal-card ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.modal-card li {
  margin-bottom: 8px;
  color: var(--text-secondary); /* Ensure readable text on white background */
}

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

/* =====================
   COMING SOON
===================== */
.coming-soon {
  position: relative;
  overflow: hidden;
}

.coming-soon::after {
  content: 'Coming Soon';
  position: absolute;
  top: 20px;
  right: -30px;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
  padding: 8px 40px;
  font-size: 0.8rem;
  font-weight: 600;
  transform: rotate(45deg);
  box-shadow: 0 2px 10px rgba(243, 166, 200, 0.3);
}

.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
  padding: 8px 40px;
  font-size: 1rem; /* Increased from 0.8rem */
  font-weight: 600;
  transform: rotate(45deg);
  box-shadow: 0 2px 10px rgba(243, 166, 200, 0.3);
}

/* =====================
   FOOTER
===================== */
.site-footer {
  margin-top: 60px;
  padding: 32px 20px;
  text-align: center;
  border-top: 1px solid var(--border-primary);
  background: var(--bg-secondary);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

input[type="file"] {
  padding: 16px;
  min-height: 48px; /* Minimum touch target size */
  border: 2px dashed var(--border-primary);
  background: var(--bg-secondary);
  cursor: pointer;
  font-size: 1rem; /* Increased from 0.9rem */
}

.privacy-link {
  color: var(--gradient-start);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.privacy-link:hover {
  color: var(--gradient-end);
  text-decoration: underline;
}

/* =====================
   SUCCESS PAGE
===================== */
.success-container {
  text-align: center;
  max-width: 600px;
  margin: auto;
  position: relative;
  z-index: 10;
  padding: 40px 20px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  color: white;
}

/* Confetti Canvas */
#confetti {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }
  
  .form-card {
    padding: 24px;
  }
  
  .button-row {
    flex-direction: column;
  }
  
  .step {
    margin: 0 30px;
  }
  
  .step-indicator::before {
    width: 120px;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .form-card {
    padding: 20px;
  }
  
  .payment-box {
    padding: 20px;
  }
  
  .modal-card {
    padding: 20px;
    background: white; /* Ensure white background on mobile */
    margin: 16px; /* Add margin for mobile */
    max-width: calc(100vw - 32px); /* Ensure it fits screen */
  }
}

/* =====================
   LANGUAGE TOGGLE
===================== */
.lang-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-primary);
  border-radius: 25px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--shadow-light);
}

.lang-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px var(--shadow-medium);
}

/* =====================
   LANG TOGGLE (MOBILE)
===================== */
.lang-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-primary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 20px var(--shadow-medium);
}

/* =====================
   THAI LANGUAGE SUPPORT
===================== */
[lang="th"] {
  font-family: 'Sarabun', 'Prompt', 'Kanit', -apple-system, BlinkMacSystemFont, sans-serif;
}

[lang="th"] h1,
[lang="th"] h2,
[lang="th"] h3 {
  font-weight: 700;
}

[lang="th"] .card p,
[lang="th"] .form-card > p,
[lang="th"] .step-text {
  line-height: 1.8;
}

[lang="th"] .instruction-step {
  padding: 16px 12px;
  margin-bottom: 12px;
}

[lang="th"] .instruction-step .step-icon {
  margin-right: 12px;
  flex-shrink: 0;
}

[lang="th"] .instruction-step .step-text {
  flex: 1;
  font-size: 0.9rem;
}

[lang="th"] .instruction-step .step-text strong {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

[lang="th"] .button-row {
  gap: 12px;
}

[lang="th"] .form-card {
  padding: 32px 24px;
}

[lang="th"] .payment-instructions {
  padding: 20px;
}

[lang="th"] .instructions-toggle {
  padding: 16px 20px;
}

[lang="th"] .instructions-title {
  font-size: 1rem;
  gap: 10px;
}

/* Thai Font Import */
@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@400;500;600;700&display=swap');

/* =====================
   INDEX PAGE STYLES
===================== */

/* Development Notice Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.modal-content.dev-notice {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
  padding: 20px 20px 0;
  text-align: center;
}

.modal-header h2 {
  margin: 0;
  color: #333;
  font-size: 24px;
}

.modal-body {
  padding: 20px;
  color: #666;
  line-height: 1.6;
}

.modal-body ul {
  margin: 10px 0;
  padding-left: 20px;
}

.modal-body a {
  color: #3b82f6;
  text-decoration: none;
}

.modal-body a:hover {
  text-decoration: underline;
}

.modal-footer {
  padding: 0 20px 20px;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #f3a6c8 0%, #d9b7ee 50%, #9ecbff 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Hero */
.hero {
  padding: 72px 0 48px;
  text-align: center;
}

.brand-gradient {
  background: linear-gradient(135deg, #f3a6c8 0%, #d9b7ee 50%, #9ecbff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(243, 166, 200, .15), rgba(158, 203, 255, .15));
  border: 1px solid rgba(243, 166, 200, .4);
  border-radius: 40px;
  padding: 6px 16px;
  font-size: .78rem;
  font-weight: 700;
  color: #9d5b7b;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* Story btn */
.story-button-container {
  margin: 28px 0 48px;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.story-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 40px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  font-size: .9rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  transition: all .25s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.story-btn:hover {
  border-color: #f3a6c8;
  color: #9d5b7b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 166, 200, .25);
}

.faq-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 40px;
  border: 1.5px solid #e5e7eb;
  background: linear-gradient(135deg, #f8a5c2, #87cefa);
  font-size: .9rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: all .25s ease;
  box-shadow: 0 2px 10px rgba(248, 165, 194, .2);
}

.faq-btn:hover {
  background: linear-gradient(135deg, #f6a1c0, #85cdfa);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(248, 165, 194, .3);
}

/* Animated Navigation */
.nav-container {
  cursor: pointer;
  position: fixed;
  top: 5%;
  right: 5%;
  width: 30px;
  height: 20px;
  z-index: 1001;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.nav-container.hidden {
  opacity: 0;
  pointer-events: none;
}

.bars {
  width: 30px;
  height: 4px;
  background: #000;
}

.bars::before,
.bars::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 4px;
  background: #000;
}

.bars::before {
  margin-top: 9px;
}

.bars::after {
  margin-top: 18px;
}

nav {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f8a5c2 50%, #87cefa 75%, #667eea 100%);
  background-size: 400% 400%;
  animation: navGradientShift 15s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  right: -200vw;
  z-index: 1000;
  transition: right 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

nav.open {
  right: 0;
}

/* Navigation Gradient Animation */
@keyframes navGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

nav ul {
  list-style: none;
}

nav ul li {
  margin: 50px 0;
}

nav ul li a {
  color: #fafafa;
  font-size: 2.5em;
  text-decoration: none;
  font-weight: 700;
  position: relative;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

nav ul li a:after {
  content: '';
  width: 100%;
  position: absolute;
  height: 3px;
  border-radius: 5px;
  background: #fff;
  bottom: -10px;
  left: 0;
  transform-origin: left;
  transition: transform .5s ease;
  transform: scaleX(0);
}

nav ul li a:hover:after {
  transform: scaleX(1);
}

nav ul li a:hover {
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(-3px);
}

nav .close {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

nav .close::before {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  transition: all 0.3s ease;
}

nav h2 {
  position: absolute;
  top: 5%;
  left: 5%;
  opacity: 0;
  pointer-events: none;
  color: #fff;
  font-size: 3em;
  font-weight: 900;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

nav .close div::before,
nav .close div::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 4px;
  background: #fff;
  transition: background .5s ease;
}

nav .close div::before {
  transform: rotate(-45deg);
}

nav .close div::after {
  transform: rotate(45deg);
}

nav .close:hover div::before,
nav .close:hover div::after {
  background: #f8a5c2;
}

nav .close:hover {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

@media (max-width: 992px) {
  .nav-container {
    top: 3%;
    right: 3%;
  }
}

/* Page Footer */
.page-footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: #666;
}

.page-footer .copyright {
  color: #666;
  font-weight: 500;
}

.page-footer a {
  color: #666;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-footer a:hover {
  color: #f8a5c2;
}

@media (max-width: 768px) {
  .page-footer {
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
  }
}

/* Products heading */
.section-heading {
  text-align: center;
  margin-bottom: 36px;
}

.section-heading h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #111827;
}

.section-heading p {
  color: #6b7280;
  font-size: .9rem;
  margin-top: 4px;
}

/* Product cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 64px;
}

.card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 20px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .1);
}

.card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform .4s ease;
}

.card:hover img {
  transform: scale(1.04);
}

.card-body {
  padding: 22px 20px 24px;
}

.card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px;
}

.card-body p {
  font-size: .85rem;
  color: #6b7280;
  margin: 0 0 14px;
  line-height: 1.5;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.price-badge {
  font-size: 1.3rem;
  font-weight: 800;
  color: #111827;
}

.card-actions {
  display: flex;
  gap: 10px;
}

.btn-order {
  flex: 1;
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  font-family: 'Inter', sans-serif;
}

.btn-order:hover {
  background: #1f2937;
  transform: translateY(-1px);
}

.btn-info {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: .88rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: background .2s;
  font-family: 'Inter', sans-serif;
}

.btn-info:hover {
  background: #f3f4f6;
}

/* Coming Soon badge */
.card.coming-soon {
  opacity: .75;
}

.coming-soon-badge {
  display: inline-block;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  color: #92400e;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* Footer */
.site-footer-bar {
  border-top: 1px solid #f0f0f0;
  padding: 32px 0;
  text-align: center;
  color: #9ca3af;
  font-size: .8rem;
  margin-top: 48px;
}

.site-footer-bar a {
  color: #9ca3af;
  text-decoration: none;
}

.site-footer-bar a:hover {
  color: #f3a6c8;
}

/* Privacy modal */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.overlay.hidden {
  display: none;
}

.modal-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
}

.modal-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.modal-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 20px 0 8px;
  color: #374151;
}

.modal-card p,
.modal-card li {
  font-size: .9rem;
  color: #6b7280;
  line-height: 1.7;
}

.modal-card ul {
  padding-left: 18px;
  margin: 8px 0;
}

.btn-close-modal {
  margin-top: 24px;
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px 28px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .2s;
}

.btn-close-modal:hover {
  background: #374151;
}

/* Newsletter */
.newsletter-section {
  background: linear-gradient(135deg, #fdf2f8 0%, #eff6ff 100%);
  border-top: 1px solid #f0e0ee;
  border-bottom: 1px solid #f0e0ee;
  padding: 72px 24px;
  text-align: center;
  margin: 48px -30px 0;
}

.newsletter-content {
  max-width: 520px;
  margin: 0 auto;
}

.newsletter-title {
  font-size: 2rem;
  font-weight: 900;
  color: #111827;
  margin-bottom: 10px;
  letter-spacing: -.5px;
}

.newsletter-description {
  color: #6b7280;
  font-size: .95rem;
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto 16px;
}

.newsletter-input {
  flex: 1;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: .92rem;
  color: #111827;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: border-color .2s, box-shadow .2s;
}

.newsletter-input:focus {
  border-color: #f3a6c8;
  box-shadow: 0 0 0 3px rgba(243, 166, 200, .2);
}

.newsletter-btn {
  background: linear-gradient(135deg, #f3a6c8, #d9b7ee);
  color: #111;
  border: none;
  border-radius: 12px;
  padding: 13px 24px;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  transition: opacity .2s, transform .15s;
  box-shadow: 0 4px 14px rgba(243, 166, 200, .4);
}

.newsletter-btn:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.newsletter-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.nl-status {
  font-size: .85rem;
  font-weight: 600;
  min-height: 20px;
  margin-top: 4px;
}

.nl-status.ok {
  color: #059669;
}

.nl-status.fail {
  color: #ef4444;
}

/* Product popup */
.product-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-popup.hidden {
  display: none;
}

.popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(6px);
}

.popup-content {
  position: relative;
  background: #fff;
  border-radius: 24px;
  max-width: 840px;
  max-height: 90vh;
  width: 100%;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
  display: grid;
  grid-template-columns: 1fr 1fr;
  animation: popIn .35s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, .9);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close:hover {
  background: #111827;
  color: #fff;
}

.popup-gallery {
  border-radius: 24px 0 0 24px;
  overflow: hidden;
  background: #f9fafb;
}

.main-image {
  width: 100%;
  height: 380px;
  overflow: hidden;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.main-image:hover img {
  transform: scale(1.05);
}

.thumbnail-grid {
  display: flex;
  gap: 8px;
  padding: 12px;
}

.popup-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  opacity: .65;
  border: 2px solid transparent;
  transition: opacity .2s, border-color .2s;
}

.popup-thumb:hover,
.popup-thumb.active {
  opacity: 1;
  border-color: #f3a6c8;
}

.image-nav {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .6);
  border-radius: 20px;
  padding: 7px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: .8rem;
}

.image-nav button {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background .15s;
}

.image-nav button:hover {
  background: rgba(255, 255, 255, .2);
}

.popup-details {
  padding: 32px 28px;
}

.popup-details h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.price-tag {
  font-size: 1.6rem;
  font-weight: 900;
  color: #111827;
  margin: 12px 0 20px;
}

.size-selector label {
  font-weight: 700;
  font-size: .85rem;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.size-options {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.size-btn {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 9px 18px;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Inter', sans-serif;
}

.size-btn:hover {
  border-color: #d9b7ee;
  background: #fdf2f8;
}

.size-btn.selected {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.description {
  margin: 20px 0;
}

.description h3 {
  font-weight: 700;
  font-size: .88rem;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

.description p {
  font-size: .88rem;
  color: #6b7280;
  line-height: 1.7;
}

.popup-actions {
  margin-top: 24px;
}

.btn-popup-order {
  width: 100%;
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .2s, transform .15s;
}

.btn-popup-order:hover {
  background: #374151;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .popup-content {
    grid-template-columns: 1fr;
  }

  .popup-gallery {
    border-radius: 24px 24px 0 0;
  }

  .main-image {
    height: 240px;
  }

  .newsletter-form {
    flex-direction: column;
  }
  
  /* Mobile improvements for main page */
  .hero {
    padding: 48px 0 32px;
  }
  
  .brand-gradient {
    font-size: 2.5rem;
  }
  
  .slogan {
    font-size: 1.1rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  
  .card {
    border-radius: 16px;
  }
  
  .card img {
    height: 200px;
  }
  
  .card-body {
    padding: 18px 16px 20px;
  }
  
  .card-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .btn-order, .btn-info {
    width: 100%;
    padding: 14px;
    font-size: 0.95rem;
  }
  
  .section-heading h2 {
    font-size: 1.4rem;
  }
  
  .section-heading p {
    font-size: 0.85rem;
  }
  
  .newsletter-section {
    padding: 48px 20px;
    margin: 32px -20px 0;
  }
  
  .newsletter-title {
    font-size: 1.6rem;
  }
  
  .newsletter-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .brand-gradient {
    font-size: 2.2rem;
  }
  
  .hero {
    padding: 32px 0 24px;
  }
  
  .card img {
    height: 180px;
  }
  
  .card-body {
    padding: 16px 14px 18px;
  }
  
  .price-badge {
    font-size: 1.1rem;
  }
  
  .newsletter-section {
    padding: 40px 16px;
  }
  
  .newsletter-title {
    font-size: 1.4rem;
  }
}

/* =====================
   FAQ PAGE STYLES
===================== */

/* FAQ Page Specific Styles */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgba(248, 165, 194, 0.05) 0%, rgba(135, 206, 250, 0.05) 100%);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.faq-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.faq-title {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #f8a5c2, #87cefa);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  animation: fadeInDown 0.8s ease-out;
}

.faq-subtitle {
  font-size: 20px;
  color: #666;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.faq-search {
  max-width: 600px;
  margin: 0 auto 50px;
  position: relative;
  animation: fadeIn 0.8s ease-out 0.4s both;
}

.faq-search-input {
  width: 100%;
  padding: 18px 60px 18px 25px;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.faq-search-input:focus {
  outline: none;
  border-color: #f8a5c2;
  box-shadow: 0 8px 30px rgba(248, 165, 194, 0.2);
  transform: translateY(-2px);
}

.faq-search-icon {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #f8a5c2;
}

.faq-categories {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  animation: fadeIn 0.8s ease-out 0.6s both;
}

.faq-category-btn {
  padding: 12px 24px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.9);
  color: #666;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.faq-category-btn:hover,
.faq-category-btn.active {
  background: linear-gradient(135deg, #f8a5c2, #87cefa);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(248, 165, 194, 0.3);
}

.faq-section {
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.faq-section-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.faq-section-icon {
  font-size: 28px;
  background: linear-gradient(135deg, #f8a5c2, #87cefa);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.faq-question {
  padding: 25px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
  user-select: none;
  pointer-events: auto !important;
}

.faq-question:hover {
  color: #f8a5c2;
}

.faq-question.active {
  color: #f8a5c2;
  background: linear-gradient(135deg, rgba(248, 165, 194, 0.05), rgba(135, 206, 250, 0.05));
}

.faq-toggle {
  font-size: 24px;
  transition: transform 0.3s ease;
  color: #f8a5c2;
}

.faq-question.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #f8f9fa;
  border-radius: 0 0 12px 12px;
  margin-top: -2px;
  position: relative;
  z-index: 5;
  line-height: 1.6;
}

.faq-answer.active {
  max-height: 1000px;
  padding: 0 30px 25px 30px;
  overflow: visible;
}

.faq-contact-banner {
  background: linear-gradient(135deg, #f8a5c2, #87cefa);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  margin-top: 60px;
  color: white;
  animation: fadeInUp 0.8s ease-out 1s both;
}

.faq-contact-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
}

.faq-contact-text {
  font-size: 18px;
  margin-bottom: 25px;
  opacity: 0.95;
}

.faq-contact-btn {
  display: inline-block;
  padding: 15px 35px;
  background: white;
  color: #f8a5c2;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.faq-contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 18px;
  display: none;
}

.no-results-icon {
  font-size: 60px;
  margin-bottom: 20px;
  opacity: 0.5;
}

/* FAQ Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Dark mode support */
.dark .faq-container {
  background: linear-gradient(135deg, rgba(45, 27, 61, 0.05) 0%, rgba(26, 58, 82, 0.05) 100%);
}

.dark .faq-title {
  background: linear-gradient(135deg, #f8a5c2, #87cefa);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark .faq-subtitle {
  color: #aaa;
}

.dark .faq-search-input {
  background: rgba(30, 30, 30, 0.9);
  border-color: #444;
  color: #fff;
}

.dark .faq-search-input:focus {
  border-color: #f8a5c2;
}

.dark .faq-category-btn {
  background: rgba(30, 30, 30, 0.9);
  border-color: #444;
  color: #aaa;
}

.dark .faq-category-btn:hover,
.dark .faq-category-btn.active {
  background: linear-gradient(135deg, #f8a5c2, #87cefa);
  color: #2d1b3d;
}

.dark .faq-section-title {
  color: #fff;
}

.dark .faq-item {
  background: rgba(30, 30, 30, 0.95);
}

.dark .faq-question {
  color: #fff;
}

.dark .faq-question:hover {
  color: #f8a5c2;
}

.dark .faq-answer {
  color: #aaa;
}

/* FAQ Responsive design */
@media (max-width: 768px) {
  .faq-container {
    padding: 30px 15px;
  }

  .faq-title {
    font-size: 36px;
  }

  .faq-subtitle {
    font-size: 18px;
  }

  .faq-search-input {
    padding: 15px 50px 15px 20px;
    font-size: 16px;
  }

  .faq-categories {
    gap: 10px;
  }

  .faq-category-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .faq-section-title {
    font-size: 20px;
  }

  .faq-question {
    padding: 20px 25px;
    font-size: 16px;
  }

  .faq-answer.active {
    padding: 0 25px 20px 25px;
  }

  .faq-contact-banner {
    padding: 30px 20px;
  }

  .faq-contact-title {
    font-size: 24px;
  }

  .faq-contact-text {
    font-size: 16px;
  }
}

/* =====================
   ORDER PAGE STYLES
===================== */

/* Order Summary Styles */
.order-summary {
  background: var(--bg-tertiary);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-primary);
}

.summary-item:last-child {
  border-bottom: none;
}

.discount-row {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.discount-input {
  display: flex;
  gap: 10px;
  align-items: center;
}

.discount-input input {
  flex: 1;
  padding: 10px;
  border: 2px solid var(--border-primary);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.btn-small {
  padding: 10px 20px;
  font-size: 14px;
  white-space: nowrap;
}

.total-row {
  background: var(--bg-secondary);
  margin: 0 -20px;
  padding: 15px 20px;
  margin-top: 10px;
  border-radius: 0 0 12px 12px;
}

.total-price {
  font-size: 20px;
  font-weight: bold;
  color: #27ae60;
}

/* Size Button Styles */
.size-btn {
  padding: 8px 16px;
  border: 2px solid var(--border-primary);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.size-btn:hover {
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.size-btn.selected {
  background: #000000;
  color: white;
  border-color: #000000;
  transform: scale(1.05);
}

/* QR Card Styles */
.qr-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border-primary);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.qr-info h3 {
  margin: 0 0 12px 0;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.qr-info p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Mobile Responsive QR */
#dynamicQR {
  max-width: 280px !important;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.instruction-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .instruction-steps {
    grid-template-columns: 1fr 1fr;
  }
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.payment-option {
  border: 2px solid var(--border-primary);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.payment-option:hover {
  border-color: var(--text-primary);
}

.payment-option input[type="radio"] {
  display: none;
}

.payment-label {
  display: flex;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  gap: 15px;
}

.payment-option input[type="radio"]:checked + .payment-label {
  background: var(--bg-tertiary);
}

.payment-icon {
  font-size: 32px;
  width: 50px;
  text-align: center;
}

.payment-info {
  flex: 1;
}

.payment-info strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.payment-info span {
  color: var(--text-secondary);
  font-size: 14px;
}

.cash-info {
  background: var(--bg-tertiary);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-primary);
}

.info-item:last-child {
  border-bottom: none;
}

.info-item strong {
  color: var(--text-primary);
}

/* Step Indicator */
.step-indicator {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-secondary);
  padding: 20px 0;
  border-bottom: 2px solid var(--border-primary);
  backdrop-filter: blur(10px);
  flex-direction: row !important;
  gap: 40px;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: #e0e0e0;
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  margin: 0 40px;
}

.step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #666;
  transition: all 0.3s ease;
  margin-bottom: 8px;
}

.step.active .step-dot {
  background: #000;
  color: #fff;
  transform: scale(1.1);
}

.step.completed .step-dot {
  background: #4CAF50;
  color: #fff;
}

.step-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.step.active .step-label {
  color: #000;
  font-weight: 600;
}

.step.completed .step-label {
  color: #4CAF50;
}

/* Step Content */
.step-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.step-content.active {
  display: block;
}

/* Dark Mode Toggle */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.dark .theme-toggle {
  background: #1f2937;
  border-color: #374151;
}

/* Collapsible Instructions */
.instructions-toggle {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.instructions-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.instructions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.instructions-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
}

.chevron-icon {
  transition: transform 0.3s ease;
}

.instructions-toggle.expanded .chevron-icon {
  transform: rotate(180deg);
}

.payment-instructions {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.instructions-toggle.expanded .payment-instructions {
  max-height: 1000px;
  margin-top: 20px;
}

.dark .instructions-toggle {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-color: #374151;
}

.dark .instructions-title {
  color: #f3f4f6;
}

/* Blur Overlay for Loading */
.blur-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.blur-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* Loader */
.loader {
  width: 161.5px;
  aspect-ratio: 1;
  display: grid;
  border-radius: 50%;
  background: conic-gradient(#25b09b 25%,#f03355 0 50%,#514b82 0 75%,#ffa516 0);
  animation: l22 2s infinite linear;
}

.loader::before,
.loader::after {
   content: "";
   grid-area: 1/1;
   margin: 15%;
   border-radius: 50%;
   background: inherit;
   animation: inherit;
}

.loader::after {
   margin: 25%;
   animation-duration: 3s;
}

@keyframes l22 {
  100% {transform: rotate(1turn)}
}

/* Order Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  .step-indicator {
    flex-direction: column !important;
    gap: 15px;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-primary);
  }
  
  .step {
    width: 100%;
    text-align: center;
  }
  
  .qr-card {
    padding: 20px;
  }
  
  #dynamicQR {
    max-width: 240px !important;
  }
  
  .form-group {
    flex-direction: column;
  }
  
  .form-group label {
    margin-bottom: 8px;
  }
  
  .button-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .button-row button {
    width: 100%;
  }
  
  .payment-label {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .payment-icon {
    width: auto;
  }
}

@media (max-width: 480px) {
  #dynamicQR {
    max-width: 200px !important;
  }
  
  .qr-card {
    padding: 15px;
  }
  
  .order-summary {
    padding: 15px;
  }
  
  .summary-item {
    padding: 10px 0;
    font-size: 0.9rem;
  }
}

/* =====================
   STORY PAGE STYLES
===================== */

/* Story Hero */
.story-hero {
  text-align: center;
  padding: 80px 24px 60px;
  background: linear-gradient(135deg, #fdf2f8 0%, #eff6ff 100%);
  border-bottom: 1px solid #f0e0ee;
}

.story-hero-label {
  display: inline-block;
  background: rgba(243, 166, 200, .2);
  border: 1px solid rgba(243, 166, 200, .5);
  border-radius: 40px;
  padding: 5px 16px;
  font-size: .75rem;
  font-weight: 700;
  color: #9d5b7b;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 20px;
}

.story-hero h1 {
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #f3a6c8, #d9b7ee, #9ecbff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 12px;
  line-height: 1.1;
}

.story-hero p {
  font-size: 1.15rem;
  color: #6b7280;
  font-weight: 500;
  margin: 0;
}

/* Story Main Layout */
.story-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px;
}

/* Story Cards */
.story-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 64px;
}

.story-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 20px;
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}

.story-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .09);
}

.story-card.featured {
  background: linear-gradient(135deg, #fdf2f8, #eff6ff);
  border-color: rgba(243, 166, 200, .4);
}

.card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(243, 166, 200, .2), rgba(158, 203, 255, .2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.card-content h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: #111827;
}

.card-content p {
  font-size: .9rem;
  color: #6b7280;
  line-height: 1.7;
  margin: 0;
}

/* Values Section */
.values-section {
  margin-bottom: 64px;
}

.values-section h2 {
  font-size: 1.6rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 32px;
  color: #111827;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.value-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .09);
}

.value-emoji {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.value-card h4 {
  font-size: .95rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: #111827;
}

.value-card p {
  font-size: .82rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.55;
}

/* Story CTA */
.story-cta {
  text-align: center;
  background: linear-gradient(135deg, #fdf2f8, #eff6ff);
  border: 1px solid rgba(243, 166, 200, .3);
  border-radius: 24px;
  padding: 52px 32px;
  margin-bottom: 48px;
}

.story-cta h2 {
  font-size: 1.7rem;
  font-weight: 900;
  color: #111827;
  margin-bottom: 10px;
}

.story-cta p {
  color: #6b7280;
  font-size: .95rem;
  margin-bottom: 28px;
}

.btn-cta {
  display: inline-block;
  background: #111827;
  color: #fff;
  text-decoration: none;
  border-radius: 14px;
  padding: 15px 32px;
  font-size: .95rem;
  font-weight: 700;
  transition: background .2s, transform .15s;
}

.btn-cta:hover {
  background: #374151;
  transform: translateY(-2px);
}

/* Story Footer */
footer {
  text-align: center;
  padding: 32px 24px;
  font-size: .8rem;
  color: #6b7280;
  border-top: 1px solid #f0f0f0;
}

/* Story Responsive Design */
@media (max-width: 768px) {
  .story-hero {
    padding: 60px 20px 40px;
  }
  
  .story-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }
  
  .story-hero p {
    font-size: 1rem;
  }
  
  .story-section {
    padding: 48px 20px;
  }
  
  .story-section h2 {
    font-size: 2rem;
  }
  
  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .value-card {
    padding: 24px;
  }
  
  .story-cta {
    padding: 48px 20px;
  }
  
  .story-cta h2 {
    font-size: 2rem;
  }
  
  .btn-cta {
    padding: 16px 32px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .story-hero {
    padding: 40px 16px 32px;
  }
  
  .story-hero h1 {
    font-size: clamp(1.8rem, 12vw, 2.8rem);
  }
  
  .story-hero p {
    font-size: 0.95rem;
  }
  
  .story-section {
    padding: 32px 16px;
  }
  
  .story-section h2 {
    font-size: 1.6rem;
  }
  
  .value-card {
    padding: 20px;
  }
  
  .value-emoji {
    font-size: 2rem;
    margin-bottom: 12px;
  }
  
  .value-card h4 {
    font-size: 1.1rem;
  }
  
  .value-card p {
    font-size: 0.9rem;
  }
  
  .story-cta {
    padding: 32px 16px;
  }
  
  .story-cta h2 {
    font-size: 1.6rem;
  }
  
  .btn-cta {
    padding: 14px 24px;
    font-size: 0.95rem;
  }
  
  footer {
    padding: 24px 16px;
    font-size: 0.75rem;
  }
}

/* =====================
   SUCCESS PAGE STYLES
===================== */

/* Success Page Layout */
body.success-page {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #fdf2f8 0%, #eff6ff 60%, #f5f3ff 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-x: hidden;
  overflow-y: auto;
}

.success-page canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.success-card {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(243, 166, 200, .3);
  border-radius: 28px;
  padding: 52px 44px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(243, 166, 200, .2), 0 4px 20px rgba(0, 0, 0, .08);
  animation: riseIn .6s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: scale(.88) translateY(30px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f3a6c8, #d9b7ee);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 8px 24px rgba(243, 166, 200, .4);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(243, 166, 200, .4);
  }

  50% {
    transform: scale(1.06);
    box-shadow: 0 12px 32px rgba(243, 166, 200, .6);
  }
}

.success-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: -.5px;
  margin-bottom: 8px;
}

.success-sub {
  color: #6b7280;
  font-size: .92rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.order-box {
  background: linear-gradient(135deg, #fdf2f8, #eff6ff);
  border: 1.5px solid rgba(243, 166, 200, .4);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.order-box-label {
  font-size: .72rem;
  font-weight: 700;
  color: #9d5b7b;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 8px;
}

.order-code {
  font-size: 1.5rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}

.success-steps {
  text-align: left;
  background: #f9fafb;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 28px;
}

.step-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.step-row:last-child {
  border-bottom: none;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3a6c8, #d9b7ee);
  color: #111;
  font-size: .75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text {
  font-size: .85rem;
  color: #374151;
  font-weight: 500;
}

.btn-home {
  display: block;
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .2s, transform .15s;
  text-decoration: none;
  text-align: center;
}

.btn-home:hover {
  background: #374151;
  transform: translateY(-1px);
}

/* Success Page Responsive Design */
@media (max-width: 768px) {
  .success-page {
    padding: 16px;
  }
  
  .success-card {
    padding: 40px 24px;
    border-radius: 20px;
  }
  
  .success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
  }
  
  .success-title {
    font-size: 2rem;
    margin-bottom: 16px;
  }
  
  .success-sub {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  
  .order-box {
    margin-bottom: 24px;
  }
  
  .order-box-label {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }
  
  .order-code {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }
  
  .success-steps {
    margin-bottom: 28px;
  }
  
  .step-row {
    padding: 8px 0;
  }
  
  .step-num {
    width: 26px;
    height: 26px;
    font-size: .75rem;
  }
  
  .step-text {
    font-size: .85rem;
  }
  
  .btn-home {
    padding: 14px 24px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .success-page {
    padding: 12px;
  }
  
  .success-card {
    padding: 32px 20px;
    border-radius: 16px;
  }
  
  .success-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
  }
  
  .success-title {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }
  
  .success-sub {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  
  .order-box {
    margin-bottom: 20px;
  }
  
  .order-box-label {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  
  .order-code {
    font-size: 1.5rem;
    margin-bottom: 6px;
  }
  
  .success-steps {
    margin-bottom: 24px;
  }
  
  .step-row {
    padding: 8px 0;
  }
  
  .step-num {
    width: 26px;
    height: 26px;
    font-size: .75rem;
  }
  
  .step-text {
    font-size: .85rem;
  }
  
  .btn-home {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

/* =====================
   404 PAGE STYLES
===================== */

/* 404 Page Layout */
.error-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f8a5c2 50%, #87cefa 75%, #667eea 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.error-content {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 30px;
  padding: 80px 50px;
  max-width: 650px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  position: relative;
  z-index: 2;
  animation: slideUp 0.8s ease-out;
}

.error-code {
  font-size: 140px;
  font-weight: 900;
  background: linear-gradient(135deg, #f8a5c2, #87cefa, #764ba2);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 25px;
  text-shadow: 0 10px 30px rgba(248, 165, 194, 0.3);
  animation: float 4s ease-in-out infinite, glow 3s ease-in-out infinite alternate;
}

.error-title {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #333, #666);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 25px;
  line-height: 1.2;
  animation: fadeIn 1s ease-out 0.3s both;
}

.error-message {
  font-size: 20px;
  color: #555;
  margin-bottom: 50px;
  line-height: 1.6;
  animation: fadeIn 1s ease-out 0.6s both;
}

.error-actions {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeIn 1s ease-out 0.9s both;
}

.error-404 .btn-home {
  background: linear-gradient(135deg, #f8a5c2, #87cefa);
  color: white;
  padding: 18px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 25px rgba(248, 165, 194, 0.4);
  position: relative;
  overflow: hidden;
}

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

.error-404 .btn-home:hover::before {
  left: 100%;
}

.error-404 .btn-home:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(248, 165, 194, 0.5);
}

.btn-secondary {
  background: transparent;
  color: #764ba2;
  padding: 18px 40px;
  border: 3px solid #764ba2;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.btn-secondary:hover {
  background: #764ba2;
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(118, 75, 162, 0.4);
}

.error-illustration {
  font-size: 100px;
  margin-bottom: 40px;
  animation: bounce 3s ease-in-out infinite, rotate 10s linear infinite;
  filter: drop-shadow(0 10px 20px rgba(248, 165, 194, 0.3));
}

/* Background decorations */
.bg-decoration {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(248, 165, 194, 0.1), rgba(135, 206, 250, 0.1));
  animation: float 8s ease-in-out infinite;
  backdrop-filter: blur(5px);
}

.bg-decoration:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 5%;
  left: 5%;
  animation-delay: 0s;
}

.bg-decoration:nth-child(2) {
  width: 200px;
  height: 200px;
  top: 60%;
  right: 10%;
  animation-delay: 3s;
}

.bg-decoration:nth-child(3) {
  width: 150px;
  height: 150px;
  bottom: 15%;
  left: 15%;
  animation-delay: 6s;
}

.bg-decoration:nth-child(4) {
  width: 100px;
  height: 100px;
  top: 20%;
  right: 20%;
  animation-delay: 9s;
}

/* 404 Page Animations */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes errorFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(5deg); }
  50% { transform: translateY(-10px) rotate(-5deg); }
  75% { transform: translateY(-30px) rotate(3deg); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-40px) scale(1.1); }
  60% { transform: translateY(-20px) scale(1.05); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes glow {
  from { filter: drop-shadow(0 10px 30px rgba(248, 165, 194, 0.3)); }
  to { filter: drop-shadow(0 15px 40px rgba(135, 206, 250, 0.4)); }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 404 Page Dark mode */
.dark .error-container {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #2d1b3d 50%, #1a3a52 75%, #1a1a2e 100%);
  background-size: 400% 400%;
}

.dark .error-content {
  background: rgba(20, 20, 20, 0.98);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.dark .error-title {
  background: linear-gradient(135deg, #fff, #ccc);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark .error-message {
  color: #aaa;
}

.dark .btn-secondary {
  color: #f8a5c2;
  border-color: #f8a5c2;
}

.dark .btn-secondary:hover {
  background: #f8a5c2;
  color: #2d1b3d;
}

/* 404 Page Responsive Design */
@media (max-width: 768px) {
  .error-content {
    padding: 50px 25px;
    margin: 20px;
  }

  .error-code {
    font-size: 100px;
  }

  .error-title {
    font-size: 28px;
  }

  .error-message {
    font-size: 18px;
    margin-bottom: 40px;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .error-404 .btn-home, .btn-secondary {
    width: 100%;
    max-width: 280px;
    padding: 16px 30px;
    font-size: 16px;
  }

  .error-illustration {
    font-size: 80px;
    margin-bottom: 30px;
  }

  .bg-decoration:nth-child(1) {
    width: 200px;
    height: 200px;
  }

  .bg-decoration:nth-child(2) {
    width: 150px;
    height: 150px;
  }

  .bg-decoration:nth-child(3) {
    width: 100px;
    height: 100px;
  }

  .bg-decoration:nth-child(4) {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .error-content {
    padding: 40px 20px;
  }

  .error-code {
    font-size: 80px;
  }

  .error-title {
    font-size: 24px;
  }

  .error-message {
    font-size: 16px;
  }

  .error-404 .btn-home, .btn-secondary {
    padding: 14px 25px;
    font-size: 15px;
  }
}

/* =====================
   ADMIN PAGE STYLES
===================== */

/* Admin Page Variables */
:root {
  --admin-bg: #f5f7fa;
  --admin-surface: #ffffff;
  --admin-surface2: #f0f2f5;
  --admin-border: #e2e8f0;
  --admin-accent: #f3a6c8;
  --admin-accent2: #9ecbff;
  --admin-accent3: #d9b7ee;
  --admin-blue: #3b82f6;
  --admin-green: #10b981;
  --admin-red: #ef4444;
  --admin-yellow: #f59e0b;
  --admin-purple: #8b5cf6;
  --admin-text: #111827;
  --admin-muted: #6b7280;
  --admin-radius: 14px;
  --admin-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 16px rgba(0, 0, 0, .06);
  --admin-shadow-lg: 0 10px 40px rgba(0, 0, 0, .12);
}

/* Admin Page Layout */
body.admin-page {
  background: var(--admin-bg);
  color: var(--admin-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
}

/* Login Wall */
#login-wall {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #fdf2f8 0%, #eff6ff 50%, #f5f3ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

#login-wall.hidden {
  display: none;
}

.login-box {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 24px;
  padding: 52px 44px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--admin-shadow-lg);
  text-align: center;
  animation: popIn .35s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(.9) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.login-logo {
  font-size: 2.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, #f3a6c8, #d9b7ee, #9ecbff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1.5px;
  margin-bottom: 4px;
}

.login-sub {
  color: var(--admin-muted);
  font-size: .85rem;
  margin-bottom: 36px;
  font-weight: 500;
}

.login-box input[type="password"] {
  width: 100%;
  background: var(--admin-surface2);
  border: 2px solid var(--admin-border);
  border-radius: 12px;
  color: var(--admin-text);
  font-size: 1rem;
  padding: 14px 18px;
  outline: none;
  font-family: inherit;
  letter-spacing: 3px;
  margin-bottom: 14px;
  transition: border-color .2s, box-shadow .2s;
}

.login-box input[type="password"]::placeholder {
  letter-spacing: 0;
  color: var(--admin-muted);
}

.login-box input[type="password"]:focus {
  border-color: #f3a6c8;
  box-shadow: 0 0 0 3px rgba(243, 166, 200, .18);
}

.login-btns {
  display: flex;
  gap: 10px;
}

.btn-go {
  flex: 1;
  background: linear-gradient(135deg, #f3a6c8, #d9b7ee);
  color: #111;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  box-shadow: 0 4px 12px rgba(243, 166, 200, .4);
}

.btn-go:hover {
  opacity: .88;
  transform: translateY(-1px);
}

.btn-go:active {
  transform: translateY(0);
}

.btn-go:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.btn-cancel-login {
  flex: 1;
  background: var(--admin-surface2);
  color: var(--admin-muted);
  border: 1.5px solid var(--admin-border);
  border-radius: 12px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.btn-cancel-login:hover {
  background: var(--admin-border);
  color: var(--admin-text);
}

.login-error {
  color: var(--admin-red);
  font-size: .83rem;
  margin-top: 12px;
  min-height: 18px;
  text-align: left;
}

/* Dashboard */
#dashboard {
  display: none;
}

#dashboard.visible {
  display: block;
}

/* Topbar */
.topbar {
  background: var(--admin-surface);
  border-bottom: 1px solid var(--admin-border);
  padding: 0 32px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.topbar-brand {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f3a6c8, #9ecbff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.5px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-btn {
  background: var(--admin-surface2);
  border: 1px solid var(--admin-border);
  color: var(--admin-text);
  border-radius: 9px;
  padding: 7px 16px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.topbar-btn:hover {
  background: var(--admin-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.topbar-btn.danger {
  color: var(--admin-red);
  border-color: rgba(239, 68, 68, .25);
}

.topbar-btn.danger:hover {
  background: rgba(239, 68, 68, .06);
}

/* Dashboard Content */
.dash-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 32px;
}

.page-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--admin-text);
  margin-bottom: 4px;
}

.page-sub {
  color: var(--admin-muted);
  font-size: .85rem;
  margin-bottom: 32px;
}

/* Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--admin-shadow);
  transition: transform .2s, box-shadow .2s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--admin-shadow-lg);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--admin-text);
  line-height: 1;
  margin-bottom: 3px;
}

.stat-label {
  font-size: .75rem;
  color: var(--admin-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #eee 25%, #ddd 50%, #eee 75%);
  background-size: 400% 100%;
  animation: skel 1.3s ease infinite;
  border-radius: 6px;
  color: transparent !important;
  min-width: 60px;
}

/* Charts Grid */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 720px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 24px;
  box-shadow: var(--admin-shadow);
}

.chart-card h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--admin-text);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.chart-wrap {
  position: relative;
  height: 220px;
}

/* Newsletter Panel */
.newsletter-panel {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 26px;
  box-shadow: var(--admin-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.nl-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--admin-text);
  margin-bottom: 3px;
}

.nl-info p {
  color: var(--admin-muted);
  font-size: .85rem;
}

.nl-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-compose {
  background: linear-gradient(135deg, #f3a6c8, #d9b7ee);
  color: #111;
  border: none;
  border-radius: 10px;
  padding: 11px 20px;
  font-size: .878rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  box-shadow: 0 3px 10px rgba(243, 166, 200, .35);
}

.btn-compose:hover {
  opacity: .88;
  transform: translateY(-1px);
}

.btn-quick-send {
  background: var(--admin-surface2);
  border: 1.5px solid var(--admin-border);
  color: var(--admin-text);
  border-radius: 10px;
  padding: 11px 20px;
  font-size: .878rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

.btn-quick-send:hover {
  background: var(--admin-border);
}

/* Email Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.hidden {
  display: none;
}

.email-modal {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  box-shadow: var(--admin-shadow-lg);
  animation: popIn .3s ease;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.modal-head h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close {
  background: var(--admin-surface2);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  color: var(--admin-muted);
}

.modal-close:hover {
  background: var(--admin-border);
  color: var(--admin-text);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--admin-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 7px;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--admin-surface2);
  border: 1.5px solid var(--admin-border);
  border-radius: 10px;
  color: var(--admin-text);
  font-size: .93rem;
  padding: 12px 15px;
  outline: none;
  font-family: inherit;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}

.field input:focus,
.field textarea:focus {
  border-color: #f3a6c8;
  box-shadow: 0 0 0 3px rgba(243, 166, 200, .15);
}

.preview-box {
  background: #fff;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 18px;
  min-height: 80px;
  margin-top: 8px;
  color: #333;
  font-size: .9rem;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.btn-preview2 {
  background: var(--admin-surface2);
  border: 1px solid var(--admin-border);
  color: var(--admin-text);
  border-radius: 10px;
  padding: 11px 20px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

.btn-preview2:hover {
  background: var(--admin-border);
}

.btn-send-email {
  background: linear-gradient(135deg, var(--admin-green), #059669);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 11px 22px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  box-shadow: 0 3px 10px rgba(16, 185, 129, .3);
}

.btn-send-email:hover {
  opacity: .88;
  transform: translateY(-1px);
}

.btn-send-email:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--admin-text);
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), opacity .3s;
  box-shadow: var(--admin-shadow-lg);
  max-width: 300px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.ok {
  border-color: var(--admin-green);
  color: var(--admin-green);
}

.toast.fail {
  border-color: var(--admin-red);
  color: var(--admin-red);
}

/* Section Headers */
.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--admin-text);
  margin: 28px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* PWA Install Button Styles */
.pwa-install-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(243, 166, 200, 0.3);
  transition: all 0.3s ease;
  font-family: inherit;
}

.pwa-install-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(243, 166, 200, 0.4);
}

.pwa-install-btn:active {
  transform: translateY(0);
}

/* PWA Offline Indicator */
.pwa-offline-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #f39c12;
  color: white;
  text-align: center;
  padding: 8px;
  font-weight: 600;
  z-index: 10000;
  display: none;
}

.pwa-offline-indicator.show {
  display: block;
}

/* PWA Splash Screen */
.pwa-splash {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: opacity 0.3s ease;
}

.pwa-splash.hide {
  opacity: 0;
  pointer-events: none;
}

.pwa-splash img {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
}

.pwa-splash h1 {
  font-size: 2rem;
  margin: 0;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Legal Pages Styles */
.privacy-policy, .terms-of-service {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.policy-content, .terms-content {
  text-align: left;
  margin-top: 40px;
}

.policy-section, .terms-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px var(--shadow-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.policy-section::before, .terms-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 45%, var(--gradient-end) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.policy-section:hover::before, .terms-section:hover::before {
  opacity: 1;
}

.policy-section:hover, .terms-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-medium);
  border-color: var(--border-secondary);
}

.policy-section h2, .terms-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.policy-section h3, .terms-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 12px 0;
  padding-left: 16px;
  border-left: 3px solid var(--gradient-start);
}

.policy-section p, .terms-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.policy-section ul, .terms-section ul {
  margin: 16px 0;
  padding-left: 0;
  list-style: none;
}

.policy-section li, .terms-section li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
}

.policy-section li::before, .terms-section li::before {
  content: '▸';
  position: absolute;
  left: 8px;
  color: var(--gradient-start);
  font-weight: 700;
  font-size: 1.1rem;
}

.policy-section strong, .terms-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

.policy-section a, .terms-section a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.policy-section a:hover, .terms-section a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.back-to-home {
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-primary);
}

.back-to-home .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  border: none;
  border-radius: 30px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(243, 166, 200, 0.3);
}

.back-to-home .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(243, 166, 200, 0.4);
}

/* Enhanced Typography for Legal Pages */
.privacy-policy h1, .terms-of-service h1 {
  margin-bottom: 8px;
}

.privacy-policy .subtitle, .terms-of-service .subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-weight: 400;
}

/* Responsive Design for Legal Pages */
@media (max-width: 768px) {
  .privacy-policy, .terms-of-service {
    padding: 20px 16px;
  }
  
  .policy-section, .terms-section {
    padding: 24px 20px;
    margin-bottom: 24px;
  }
  
  .policy-section h2, .terms-section h2 {
    font-size: 1.3rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .policy-section h3, .terms-section h3 {
    font-size: 1.1rem;
    padding-left: 12px;
  }
  
  .policy-section li, .terms-section li {
    padding-left: 24px;
  }
  
  .back-to-home .btn-primary {
    padding: 14px 24px;
    font-size: 1rem;
  }
}

/* =====================
   MOBILE-FIRST RESPONSIVE DESIGN
   Enhanced for all devices
===================== */

/* Base Mobile Styles */
@media (max-width: 768px) {
  :root {
    --border-radius: 8px;
    --transition: all 0.2s ease;
  }
  
  body {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .container {
    padding: 16px;
  }
  
  /* Typography */
  h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  
  .slogan {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
  }
  
  /* Navigation */
  nav {
    padding: 16px;
  }
  
  nav h2 {
    font-size: 1.2rem;
  }
  
  nav ul li a {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  /* Grid Layout */
  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Cards */
  .card {
    border-radius: 12px;
  }
  
  .card img {
    height: 200px;
  }
  
  .card-body {
    padding: 16px;
  }
  
  .card h3 {
    font-size: 1rem;
  }
  
  .card p {
    font-size: 0.9rem;
  }
  
  /* Buttons */
  button, .btn-primary, .btn-secondary, .btn-outline {
    padding: 12px 20px;
    font-size: 14px;
    min-height: 44px;
  }
  
  /* Forms */
  input, textarea, select {
    padding: 12px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 44px;
  }
  
  .form-card {
    padding: 24px 20px;
    border-radius: 16px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Step Indicator */
  .step-indicator {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }
  
  .step {
    max-width: 100%;
    flex-direction: row;
    text-align: left;
  }
  
  .step-dot {
    width: 40px;
    height: 40px;
    font-size: 14px;
    margin-bottom: 0;
    margin-right: 12px;
  }
  
  .step-label {
    font-size: 0.9rem;
  }
  
  .step-description {
    font-size: 0.8rem;
    max-width: none;
  }
  
  /* Newsletter */
  .newsletter-section {
    padding: 32px 20px;
    margin: 32px 0;
  }
  
  .newsletter-title {
    font-size: 1.5rem;
  }
  
  .newsletter-description {
    font-size: 1rem;
  }
  
  .newsletter-form {
    flex-direction: column;
    max-width: 100%;
  }
  
  .newsletter-input {
    margin-bottom: 12px;
  }
  
  /* Product Popup */
  .product-popup {
    padding: 0;
  }
  
  .popup-content {
    flex-direction: column;
    max-height: 100vh;
    overflow-y: auto;
  }
  
  .popup-gallery {
    max-height: 300px;
  }
  
  .popup-details {
    padding: 20px;
  }
  
  /* Footer */
  .page-footer {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    text-align: center;
  }
  
  .page-footer a {
    font-size: 14px;
  }
  
  /* PWA Install Button */
  .pwa-install-btn {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .container {
    padding: 12px;
  }
  
  .card-body {
    padding: 12px;
  }
  
  .form-card {
    padding: 20px 16px;
  }
  
  .newsletter-section {
    padding: 24px 16px;
  }
  
  .step-indicator {
    padding: 12px;
  }
  
  .step {
    padding: 8px;
  }
  
  .step-dot {
    width: 36px;
    height: 36px;
  }
  
  /* Touch-friendly spacing */
  button, .btn-primary, .btn-secondary, .btn-outline {
    margin: 8px 0;
  }
  
  input, textarea, select {
    margin: 8px 0;
  }
}

/* Tablet Devices */
@media (min-width: 769px) and (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .container {
    padding: 24px;
  }
  
  .form-card {
    padding: 32px 28px;
  }
  
  .newsletter-section {
    padding: 48px 32px;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .step-indicator {
    flex-direction: row;
    overflow-x: auto;
  }
  
  .step {
    min-width: 120px;
  }
  
  .newsletter-section {
    padding: 24px 20px;
  }
  
  .hero {
    padding: 20px 0;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .card img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Dark Mode Support (Mobile) */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
  :root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #404040;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-tertiary: #d0d0d0;
    --border-primary: #404040;
    --border-secondary: #555555;
  }
}

/* Reduced Motion (Accessibility) */
@media (prefers-reduced-motion: reduce) and (max-width: 768px) {
  * {
    transition: none !important;
    animation: none !important;
  }
  
  .card:hover {
    transform: none !important;
  }
  
  button:hover {
    transform: none !important;
  }
}

/* Mobile Admin Dashboard Specific */
@media (max-width: 768px) {
  .admin-dashboard {
    padding: 0;
  }
  
  .admin-container {
    padding: 16px;
  }
  
  .admin-header {
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
  }
  
  .admin-header h1 {
    font-size: 1.5rem;
  }
  
  .admin-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .admin-nav-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .stat-card {
    padding: 20px;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .stat-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
  }
  
  .charts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .chart-card {
    padding: 20px;
  }
  
  .chart-container {
    height: 250px;
  }
  
  .email-editor-card {
    width: 100%;
    max-height: none;
  }
  
  .email-editor-header {
    padding: 16px;
  }
  
  .email-editor-form {
    padding: 16px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 12px;
    font-size: 16px;
  }
  
  .email-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .preview-btn,
  .send-btn {
    width: 100%;
    padding: 12px;
  }
}

/* Mobile Order Form Specific */
@media (max-width: 768px) {
  .order-form {
    padding: 16px;
  }
  
  .size-selector {
    flex-direction: column;
    gap: 8px;
  }
  
  .size-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .payment-instructions {
    padding: 16px;
  }
  
  .instruction-step {
    padding: 8px;
    margin-bottom: 8px;
  }
  
  .step-icon {
    font-size: 1.2rem;
    margin-right: 12px;
    min-width: 30px;
  }
  
  .step-text {
    font-size: 0.9rem;
  }
  
  .payment-box {
    padding: 20px;
  }
  
  .payment-box img {
    max-width: 100%;
    height: auto;
  }
  
  .button-row {
    flex-direction: column;
    gap: 12px;
  }
  
  .button-row button {
    width: 100%;
  }
}

/* Mobile Legal Pages Specific */
@media (max-width: 768px) {
  .privacy-policy, .terms-of-service {
    padding: 20px 16px;
  }
  
  .policy-section, .terms-section {
    padding: 20px 16px;
    margin-bottom: 20px;
    border-radius: 16px;
  }
  
  .policy-section h2, .terms-section h2 {
    font-size: 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .policy-section h3, .terms-section h3 {
    font-size: 1rem;
    padding-left: 12px;
    margin: 16px 0 8px 0;
  }
  
  .policy-section p, .terms-section p {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }
  
  .policy-section li, .terms-section li {
    font-size: 0.9rem;
    padding-left: 20px;
    margin-bottom: 8px;
  }
  
  .policy-section li::before, .terms-section li::before {
    left: 4px;
    font-size: 1rem;
  }
  
  .back-to-home {
    margin-top: 32px;
    padding-top: 24px;
  }
  
  .back-to-home .btn-primary {
    padding: 12px 24px;
    font-size: 1rem;
  }
}

/* Mobile FAQ Page Specific */
@media (max-width: 768px) {
  .faq-container {
    padding: 16px;
  }
  
  .faq-item {
    margin-bottom: 16px;
    border-radius: 12px;
  }
  
  .faq-question {
    padding: 16px;
    font-size: 1rem;
    line-height: 1.4;
  }
  
  .faq-answer {
    padding: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .faq-icon {
    font-size: 1.2rem;
    margin-right: 12px;
  }
}

/* Mobile Story Page Specific */
@media (max-width: 768px) {
  .story-container {
    padding: 16px;
  }
  
  .story-hero {
    padding: 32px 16px;
  }
  
  .story-title {
    font-size: 1.8rem;
  }
  
  .story-subtitle {
    font-size: 1rem;
  }
  
  .story-section {
    padding: 24px 16px;
  }
  
  .story-section h2 {
    font-size: 1.3rem;
  }
  
  .story-section p {
    font-size: 0.9rem;
  }
  
  .story-image {
    height: 200px;
    margin: 16px 0;
  }
}

/* Mobile Success Page Specific */
@media (max-width: 768px) {
  .success-container {
    padding: 16px;
  }
  
  .success-content {
    padding: 32px 20px;
  }
  
  .success-icon {
    font-size: 3rem;
    margin-bottom: 16px;
  }
  
  .success-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }
  
  .success-message {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  
  .success-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .success-actions button {
    width: 100%;
  }
}

/* Mobile 404 Page Specific */
@media (max-width: 768px) {
  .error-container {
    padding: 16px;
  }
  
  .error-content {
    padding: 32px 20px;
  }
  
  .error-code {
    font-size: 4rem;
  }
  
  .error-title {
    font-size: 1.5rem;
  }
  
  .error-message {
    font-size: 1rem;
  }
  
  .error-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .error-actions button {
    width: 100%;
  }
}

/* Mobile Navigation Enhancements */
@media (max-width: 768px) {
  .nav-container {
    top: 12px;
    right: 12px;
  }
  
  .bars {
    width: 24px;
    height: 18px;
  }
  
  .bars span {
    height: 2px;
    margin: 4px 0;
  }
  
  nav {
    width: 280px;
    right: -280px;
  }
  
  nav.active {
    right: 0;
  }
  
  .close {
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
  }
  
  .close div {
    width: 20px;
    height: 2px;
  }
}

/* Mobile Touch Optimizations */
@media (max-width: 768px) {
  /* Increase touch targets */
  .card-actions button {
    min-height: 44px;
    padding: 12px 16px;
  }
  
  .size-options button {
    min-height: 44px;
  }
  
  .newsletter-btn {
    min-height: 44px;
  }
  
  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }
  
  /* Smooth scrolling for touch */
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Better tap feedback */
  button:active {
    transform: scale(0.98);
  }
  
  /* Focus styles for keyboard navigation */
  button:focus,
  input:focus,
  select:focus,
  textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

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

.policy-section, .terms-section {
  animation: fadeInUp 0.6s ease-out;
}

.policy-section:nth-child(2) { animation-delay: 0.1s; }
.policy-section:nth-child(3) { animation-delay: 0.2s; }
.policy-section:nth-child(4) { animation-delay: 0.3s; }
.policy-section:nth-child(5) { animation-delay: 0.4s; }
.policy-section:nth-child(6) { animation-delay: 0.5s; }

.terms-section:nth-child(2) { animation-delay: 0.1s; }
.terms-section:nth-child(3) { animation-delay: 0.2s; }
.terms-section:nth-child(4) { animation-delay: 0.3s; }
.terms-section:nth-child(5) { animation-delay: 0.4s; }
.terms-section:nth-child(6) { animation-delay: 0.5s; }

/* Admin Responsive Design */
@media (max-width: 640px) {
  .topbar {
    padding: 0 16px;
  }

  .dash-main {
    padding: 22px 16px;
  }

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

  .topbar-brand {
    font-size: 1rem;
  }

  .login-box {
    padding: 36px 22px;
  }
}
.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  background-color: WHITE;
  background-image: none;
  border: 1px solid #747775;
  -webkit-border-radius: 20px;
  border-radius: 20px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: 'Roboto', arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  vertical-align: middle;
  white-space: nowrap;
  width: auto;
  max-width: 400px;
  min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 10px;
  min-width: 20px;
  width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  -webkit-align-items: center;
  align-items: center;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  -webkit-flex-grow: 1;
  flex-grow: 1;
  font-family: 'Inter', 'Roboto', arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  -webkit-transition: opacity .218s;
  transition: opacity .218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: #ffffff61;
  border-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
  opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state, 
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: #303030;
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: #303030;
  opacity: 8%;
}
