@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;1,400&display=swap');

/* =============================================
   KEMBALI SPA — Sage Green Design System v3
   ============================================= */

:root {
  /* === SAGE GREEN PALETTE === */
  --sage-50:   #E9F5DB;
  --sage-100:  #CFE1B9;
  --sage-200:  #B5C99A;
  --sage-300:  #97A97C;
  --sage-400:  #87986A;
  --sage-500:  #718355;
  --white:     #FFFFFF;
  --text-dark: #1A2A14;
  --overlay:   rgba(113, 131, 85, 0.08);

  /* === STATUS COLORS === */
  --success: #87986A;
  --warning: #B5A46A;
  --error:   #C47A6A;
  --info:    #6A8E98;

  /* === TYPOGRAPHY === */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-accent:  'Lora', Georgia, serif;

  /* === FONT SIZES === */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* === SPACING === */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* === BORDER RADIUS === */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 9999px;

  /* === SHADOWS (sage-tinted, no black) === */
  --shadow-xs:    0 1px 3px  rgba(113, 131, 85, 0.08);
  --shadow-sm:    0 2px 8px  rgba(113, 131, 85, 0.10);
  --shadow-md:    0 4px 16px rgba(113, 131, 85, 0.12);
  --shadow-lg:    0 8px 32px rgba(113, 131, 85, 0.15);
  --shadow-xl:    0 16px 48px rgba(113, 131, 85, 0.18);
  --shadow-focus: 0 0 0 3px rgba(113, 131, 85, 0.25);

  /* === CONTAINER === */
  --container-padding: clamp(16px, 5vw, 80px);
  --container-xl: 1280px;
}

/* ===================== RESET ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--sage-400);
  background-color: var(--sage-50);
  -webkit-font-smoothing: antialiased;
}
/* Custom cursor on desktop only */
@media (hover: hover) {
  body { cursor: none; }
  a, button, [role="button"], input, select, textarea, label { cursor: none; }
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.2;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
p  { font-family: var(--font-body); color: var(--sage-400); line-height: 1.7; }

.heading-hero    { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 3.75rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--sage-500); }
.heading-section { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 600; line-height: 1.2; color: var(--text-dark); }
.heading-card    { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--sage-500); }
.text-body       { font-family: var(--font-body); font-size: 1rem; font-weight: 400; line-height: 1.7; color: var(--sage-400); }
.text-label      { font-family: var(--font-body); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-300); }
.text-tagline    { font-family: var(--font-accent); font-style: italic; font-size: 1.125rem; color: var(--sage-400); line-height: 1.6; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
  pointer-events: none;
}

.btn:hover::before {
  width: 300%;
  height: 300%;
}

/* Primary Button - Gradient with shimmer */
.btn-primary {
  background: linear-gradient(135deg, var(--sage-500) 0%, var(--sage-400) 50%, var(--sage-500) 100%);
  background-size: 200% 200%;
  color: var(--white);
  font-size: 0.9375rem;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(113, 131, 85, 0.35);
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn-primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 8px 25px rgba(113, 131, 85, 0.45);
  transform: translateY(-2px) scale(1.02);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 10px rgba(113, 131, 85, 0.3);
}

/* Secondary Button - Outline with fill animation */
.btn-secondary {
  background: transparent;
  color: var(--sage-500);
  font-size: 0.9375rem;
  padding: 13px 31px;
  border-radius: var(--radius-full);
  border: 2px solid var(--sage-500);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-secondary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--sage-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.btn-secondary:hover::after {
  transform: scaleX(1);
}

.btn-secondary:hover {
  color: white;
  border-color: var(--sage-500);
  transform: translateY(-2px);
}

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

/* Ghost Button - Subtle with border animation */
.btn-ghost {
  background: var(--sage-50);
  color: var(--sage-500);
  font-size: 0.875rem;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: 1px solid var(--sage-200);
  position: relative;
  overflow: hidden;
}

.btn-ghost::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--sage-100) 0%, var(--sage-50) 100%);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: -1;
}

.btn-ghost:hover::after {
  transform: translateY(0);
}

.btn-ghost:hover {
  border-color: var(--sage-400);
  transform: translateY(-1px);
}

/* Button Sizes */
.btn-sm {
  font-size: 0.8125rem;
  padding: 10px 20px;
}

.btn-lg {
  font-size: 1rem;
  padding: 16px 40px;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
  background: var(--sage-100);
  color: var(--sage-500);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-icon:hover {
  background: var(--sage-200);
  transform: rotate(90deg);
}

/* Pulse animation for CTA */
.btn-pulse {
  animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(113, 131, 85, 0.35);
  }
  50% {
    box-shadow: 0 4px 25px rgba(113, 131, 85, 0.5), 0 0 0 8px rgba(113, 131, 85, 0.1);
  }
}

/* Glow effect button */
.btn-glow {
  box-shadow: 0 0 20px rgba(113, 131, 85, 0.4), 0 4px 15px rgba(113, 131, 85, 0.3);
}

/* Success variant */
.btn-success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-success:hover {
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.45);
  transform: translateY(-2px);
}

/* Warning variant */
.btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
  transform: translateY(-2px);
}

/* ===================== CARDS ===================== */
.card-service {
  background-color: var(--white);
  border: 1px solid var(--sage-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: pointer;
}
.card-service:hover { border-color: var(--sage-300); box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.card-service-image  { width: 100%; aspect-ratio: 4/3; object-fit: cover; background-color: var(--sage-100); }
.card-service-body   { padding: 20px; }
.card-service-category { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-300); margin-bottom: 6px; }
.card-service-title  { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--sage-500); margin-bottom: 8px; }
.card-service-desc   { font-size: 0.875rem; color: var(--sage-400); line-height: 1.6; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-service-footer { display: flex; align-items: center; justify-content: space-between; }
.card-service-duration { font-size: 0.8rem; color: var(--sage-300); }
.card-service-price  { font-size: 1rem; font-weight: 700; color: var(--sage-500); }

.card-feature {
  background-color: var(--sage-50);
  border: 1px solid var(--sage-100);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  text-align: center;
}
.card-feature-icon { width: 56px; height: 56px; background-color: var(--sage-100); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--sage-500); font-size: 1.5rem; }

.card-testimonial {
  background-color: var(--white);
  border: 1px solid var(--sage-100);
  border-left: 4px solid var(--sage-300);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card-testimonial-stars  { color: var(--sage-400); font-size: 0.875rem; letter-spacing: 2px; margin-bottom: 10px; }
.card-testimonial-text   { font-family: var(--font-accent); font-style: italic; font-size: 0.9375rem; color: var(--sage-400); line-height: 1.7; margin-bottom: 16px; }
.card-testimonial-author { font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; color: var(--sage-500); }

/* ===================== FORM ===================== */
.input {
  width: 100%;
  background-color: var(--white);
  border: 1.5px solid var(--sage-200);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: var(--sage-200); }
.input:focus { border-color: var(--sage-400); box-shadow: var(--shadow-focus); }
.input:hover:not(:focus) { border-color: var(--sage-300); }

.input-label  { font-size: 0.875rem; font-weight: 500; color: var(--sage-500); margin-bottom: 6px; display: block; }
.input-helper { font-size: 0.8rem; color: var(--sage-300); margin-top: 4px; }
.input-error  { font-size: 0.8rem; color: var(--error);    margin-top: 4px; }

.textarea { resize: vertical; min-height: 100px; }

.pill-option {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--sage-200);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sage-400);
  cursor: pointer;
  transition: all 0.2s;
}
.pill-option.selected          { background-color: var(--sage-500); border-color: var(--sage-500); color: var(--white); }
.pill-option:hover:not(.selected) { border-color: var(--sage-300); background-color: var(--sage-50); }

/* ===================== BADGE ===================== */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em; }
.badge-pending    { background: #FEF3C7; color: #92400E; }
.badge-confirmed  { background: var(--sage-50); color: var(--sage-500); border: 1px solid var(--sage-200); }
.badge-ontheway   { background: #DBEAFE; color: #1E40AF; }
.badge-inprogress { background: var(--sage-100); color: var(--sage-500); }
.badge-done       { background: #D1FAE5; color: #065F46; }
.badge-cancelled  { background: #FEE2E2; color: #991B1B; }
.badge-unpaid     { background: #FEF3C7; color: #92400E; }
.badge-paid       { background: var(--sage-50); color: var(--sage-500); }
.badge-waiting    { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; } /* QRIS menunggu konfirmasi admin */
.badge-cash       { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; } /* Cash / bayar ke terapis */

/* ===================== STEP INDICATOR ===================== */
.step-indicator { display: flex; align-items: center; justify-content: center; padding: 20px 0; }
.step-item      { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.step-circle    { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 600; z-index: 1; }
.step-circle.done    { background: var(--sage-500); color: white; }
.step-circle.active  { background: var(--sage-500); color: white; box-shadow: 0 0 0 4px var(--sage-100); }
.step-circle.pending { background: var(--sage-100); color: var(--sage-300); }
.step-label          { font-size: 0.7rem; font-weight: 500; color: var(--sage-300); white-space: nowrap; }
.step-label.active   { color: var(--sage-500); font-weight: 600; }
.step-connector      { flex: 1; height: 1.5px; background-color: var(--sage-200); min-width: 32px; margin-bottom: 22px; }
.step-connector.done { background-color: var(--sage-500); }

/* ===================== MODAL ===================== */
.modal-overlay { position: fixed; inset: 0; background-color: rgba(26,42,20,0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn 0.2s ease; }
.modal         { background-color: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; animation: scaleIn 0.25s ease; }
.modal-header  { padding: 24px 24px 0; display: flex; align-items: center; justify-content: space-between; }
.modal-title   { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--sage-500); }
.modal-body    { padding: 20px 24px; }
.modal-footer  { padding: 0 24px 24px; display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }

@media (max-width: 480px) {
  .modal { border-radius: var(--radius-xl) var(--radius-xl) 0 0; max-height: 95vh; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-header { padding: 20px 16px 0; }
  .modal-body   { padding: 16px; }
  .modal-footer { padding: 0 16px 24px; }
}

.bottom-sheet { position: fixed; bottom: 0; left: 0; right: 0; background-color: var(--white); border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: 0 -8px 32px rgba(113,131,85,0.15); padding: 16px 20px 32px; z-index: 200; }
.bottom-sheet-handle { width: 40px; height: 4px; background-color: var(--sage-200); border-radius: 2px; margin: 0 auto 20px; }

/* ===================== QRIS CARD ===================== */
.qris-card    { background: var(--white); border: 2px solid var(--sage-100); border-radius: var(--radius-xl); padding: 32px 24px; text-align: center; max-width: 340px; margin: 0 auto; box-shadow: var(--shadow-md); }
.qris-image   { width: 220px; height: 220px; border: 1px solid var(--sage-100); border-radius: var(--radius-md); margin: 0 auto 20px; background-color: var(--sage-50); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.qris-image img { width: 100%; height: 100%; object-fit: cover; }
.qris-amount  { font-family: var(--font-body); font-size: 1.5rem; font-weight: 700; color: var(--sage-500); margin-bottom: 8px; }
.qris-expire  { font-size: 0.8rem; color: var(--sage-300); margin-bottom: 20px; }
.qris-instructions { background-color: var(--sage-50); border-radius: var(--radius-md); padding: 12px 16px; font-size: 0.8rem; color: var(--sage-400); text-align: left; line-height: 1.7; }

/* ===================== TABLE ===================== */
.table-wrapper { background: var(--white); border: 1px solid var(--sage-100); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.table-scroll  { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-family: var(--font-body); font-size: 0.875rem; min-width: 600px; }
.table thead tr { background-color: var(--sage-50); border-bottom: 1px solid var(--sage-100); }
.table th { padding: 12px 16px; text-align: left; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage-300); white-space: nowrap; }
.table tbody tr { border-bottom: 1px solid var(--sage-50); transition: background 0.15s; }
.table tbody tr:hover { background-color: var(--sage-50); }
.table tbody tr:last-child { border-bottom: none; }
.table td { padding: 14px 16px; color: var(--sage-400); vertical-align: middle; }
.table td.td-primary { font-weight: 600; color: var(--text-dark); }

/* ===================== TOAST ===================== */
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); max-width: 360px; font-family: var(--font-body); font-size: 0.875rem; background: var(--white); border-left: 4px solid; }
.toast-success { border-color: var(--success); }
.toast-warning { border-color: var(--warning); }
.toast-error   { border-color: var(--error); }
.toast-info    { border-color: var(--info); }
.toast-title   { font-weight: 600; color: var(--text-dark); margin-bottom: 2px; }
.toast-message { color: var(--sage-400); line-height: 1.5; }

/* ===================== NAVBAR ===================== */
.navbar {
  background-color: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sage-100);
  height: 68px;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-logo  { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--sage-500); letter-spacing: -0.01em; }
.navbar-link  { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--sage-400); text-decoration: none; transition: color 0.2s; }
.navbar-link:hover, .navbar-link.active { color: var(--sage-500); }

/* ===================== SIDEBAR ADMIN ===================== */
.sidebar { width: 240px; background-color: var(--white); border-right: 1px solid var(--sage-100); height: 100vh; position: fixed; top: 0; left: 0; padding: 24px 0; display: flex; flex-direction: column; }
.sidebar-logo { padding: 0 20px 24px; border-bottom: 1px solid var(--sage-100); font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--sage-500); display: flex; align-items: center; gap: 10px; }
.sidebar-nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 20px; margin: 2px 8px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; color: var(--sage-400); cursor: pointer; transition: all 0.2s; text-decoration: none; }
.sidebar-nav-item:hover { background-color: var(--sage-50); color: var(--sage-500); }
.sidebar-nav-item.active { background-color: var(--sage-100); color: var(--sage-500); font-weight: 600; }

@media (max-width: 1024px) {
  .sidebar { width: 200px; }
}

/* ===================== SPINNER ===================== */
.spinner { width: 20px; height: 20px; border: 2px solid var(--sage-200); border-top-color: var(--sage-500); border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }

/* ===================== SECTION HELPERS ===================== */
.section { padding: var(--space-20) var(--container-padding); }
.section-header { text-align: center; margin-bottom: var(--space-12); }
.section-label  { display: block; margin-bottom: var(--space-3); }
.container      { max-width: var(--container-xl); margin: 0 auto; }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes pulse   { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }

.animate-fade-in  { animation: fadeIn 0.4s ease both; }
.animate-slide-up { animation: slideUp 0.5s ease both; }
.animate-scale-in { animation: scaleIn 0.3s ease both; }

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--sage-50); }
::-webkit-scrollbar-thumb { background: var(--sage-200); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--sage-300); }

/* ===================== SKELETON ===================== */
.skeleton { background: linear-gradient(90deg, var(--sage-100) 25%, var(--sage-50) 50%, var(--sage-100) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }

/* ===================== FOCUS ===================== */
:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-sm); }

/* ===================== UTILITY ===================== */
/* Suspense fallback centering — replaces inline flex styles */
.page-loader { display: flex; align-items: center; justify-content: center; min-height: 100vh; }

/* Status text colors — replaces inline color styles */
.text-status-success { color: var(--sage-500); font-weight: 700; }
.text-status-pending { color: #f59e0b; font-weight: 700; }
.text-status-error   { color: #dc2626; font-weight: 700; }
.text-icon-qris      { color: #92400E; }
.text-icon-cash      { color: #1E40AF; }

/* Payment page qris placeholder text */
.qris-placeholder-text { font-size: 0.8rem; color: var(--sage-400); margin-top: 8px; text-align: center; }
.qris-placeholder-icon { font-size: 3rem; color: var(--sage-300); }

/* Cash confirm spinner */
.spinner-sm { width: 16px; height: 16px; margin-right: 6px; flex-shrink: 0; }

/* ===================== MOBILE GLOBAL FIXES ===================== */
/* NOTE: overflow-x: hidden on html/body MUST NOT be used — it breaks position:fixed elements
   (mobile bottom nav, sidebar, modals, toasts). Instead, prevent overflow per-section. */

/* iOS input zoom prevention — font-size must be >= 16px */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px;
  }
}

/* Minimum touch target size (WCAG) */
button, a, [role="button"] {
  -webkit-tap-highlight-color: transparent;
}

/* Pill options wrap nicely on mobile */
@media (max-width: 480px) {
  .pill-option { padding: 8px 14px; font-size: 0.8125rem; }
  .step-label { font-size: 0.625rem; }
  .step-connector { min-width: 20px; }
}

