/* ============================================================
   VELORA FASHION — Auth, Checkout, Account, Tracking Styles
   Fully responsive · Bug-fixed
   ============================================================ */

/* ============ AUTH PAGES (Sign In / Sign Up) ============ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rose) 0%, #f5e8e0 100%);
  padding: 40px 20px;
}

.auth-card {
  background: white;
  max-width: 440px;
  width: 100%;
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  animation: authFade 0.5s ease;
}
@keyframes authFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-card h1 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 6px;
}
.auth-card .auth-sub {
  text-align: center;
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 32px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--softblack);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px; /* Prevents iOS zoom */
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: white;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--champagne);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
}

.auth-btn {
  width: 100%;
  padding: 14px;
  background: var(--softblack);
  color: white;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.3s;
  margin-top: 8px;
  cursor: pointer;
  min-height: 48px;
}
.auth-btn:hover { background: var(--champagne); }

.auth-error {
  background: #fde8e8;
  color: #c0392b;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.auth-error.show { display: block; }

.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--gray);
}
.auth-switch a {
  color: var(--champagne);
  font-weight: 500;
  text-decoration: underline;
}

/* ============================================================
   NAVBAR USER MENU — FIXED RESPONSIVE
   ============================================================ */
#nav-auth-slot {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border: 1px solid var(--softblack);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--softblack);
  background: transparent;
  transition: all 0.3s;
  min-height: 36px;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.btn-signin:hover {
  background: var(--softblack);
  color: white;
}

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--champagne);
  color: white;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.user-avatar:hover { transform: scale(1.08); }

.user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: white;
  min-width: 220px;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s;
  z-index: 999;
}
.user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.user-dropdown-header {
  padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 6px;
}
.user-dropdown-header strong {
  display: block;
  font-size: 14px;
}
.user-dropdown-header small {
  color: var(--gray);
  font-size: 12px;
}
.user-dropdown a,
.user-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 8px;
  color: var(--softblack);
  background: none;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.user-dropdown a:hover,
.user-dropdown button:hover { background: var(--rose); }
.user-dropdown .logout-btn { color: #c0392b; }

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding: 40px 0 80px;
}

.checkout-section {
  background: white;
  border: 1px solid var(--rose);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}
.checkout-section h2 {
  font-size: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}
.checkout-section h2 .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--champagne);
  color: white;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  flex-shrink: 0;
}

/* Payment methods */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.payment-option {
  position: relative;
  padding: 20px 18px;
  border: 2px solid #eee;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
}
.payment-option:hover { border-color: var(--rose); }
.payment-option.selected {
  border-color: var(--champagne);
  background: rgba(201,162,39,0.05);
}
.payment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.payment-option .pm-icon {
  font-size: 26px;
  margin-bottom: 8px;
  display: block;
}
.payment-option .pm-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.payment-option .pm-desc {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.4;
}

/* Payment details panel */
.payment-details {
  margin-top: 20px;
  padding: 20px;
  background: var(--lightgray);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  display: none;
}
.payment-details.show { display: block; }
.payment-details .highlight {
  background: white;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 8px 0;
  font-family: monospace;
  font-size: 14px;
  letter-spacing: 1px;
  word-break: break-all;
}
.payment-details .label {
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Order summary */
.checkout-summary {
  background: var(--rose);
  padding: 28px;
  border-radius: 16px;
  height: fit-content;
  position: sticky;
  top: 100px;
}
.checkout-summary h3 {
  font-size: 18px;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
}
.summary-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.6);
}
.summary-item img {
  width: 56px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.summary-item-info {
  flex: 1;
  font-size: 13px;
  min-width: 0;
}
.summary-item-info .name {
  font-weight: 500;
  word-break: break-word;
}
.summary-item-info .meta {
  color: var(--gray);
  font-size: 11px;
}
.summary-item-info .price {
  color: var(--champagne);
  font-weight: 600;
  margin-top: 4px;
}

/* Confirmation modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  overflow-y: auto;
}
.modal-overlay.show { display: flex; }
.modal {
  background: white;
  border-radius: 20px;
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: authFade 0.4s ease;
  max-height: 90vh;
  overflow-y: auto;
  margin: auto;
}
.modal .check-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #27ae60;
  color: white;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.modal h2 { margin-bottom: 8px; }
.modal p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 24px;
}

/* ============================================================
   ACCOUNT PAGE
   ============================================================ */
.account-header {
  background: var(--rose);
  padding: 60px 0 40px;
}
.account-header h1 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 4px;
}
.account-header p {
  color: var(--gray);
  font-size: 14px;
}

.account-tabs {
  display: flex;
  gap: 8px;
  margin: 32px 0 24px;
  border-bottom: 1px solid #eee;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.account-tabs::-webkit-scrollbar { display: none; }
.account-tab {
  padding: 12px 20px;
  font-size: 14px;
  color: var(--gray);
  background: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}
.account-tab.active {
  color: var(--champagne);
  border-bottom-color: var(--champagne);
  font-weight: 500;
}

.order-card {
  border: 1px solid var(--rose);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  background: white;
}
.order-card-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.order-id {
  font-weight: 600;
  font-size: 14px;
}
.order-date {
  color: var(--gray);
  font-size: 12px;
}
.order-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.order-status.pending { background: #fff3cd; color: #856404; }
.order-status.confirmed { background: #d1ecf1; color: #0c5460; }
.order-status.shipped { background: #d4edda; color: #155724; }
.order-status.completed { background: #d4edda; color: #155724; }

.order-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  font-size: 13px;
  margin-bottom: 12px;
}
.order-meta .label {
  color: var(--gray);
  font-size: 11px;
}
.order-meta .value {
  font-weight: 500;
  word-break: break-word;
}

.order-total {
  text-align: right;
  font-size: 15px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}
.order-total strong {
  color: var(--champagne);
  font-size: 18px;
  font-family: 'Playfair Display', serif;
}

/* ============================================================
   GOOGLE SIGN-IN BUTTON
   ============================================================ */
.google-btn {
  width: 100%;
  padding: 13px 16px;
  background: white;
  border: 1.5px solid #dadce0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #3c4043;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 20px;
  min-height: 48px;
}
.google-btn:hover {
  background: #f8f9fa;
  border-color: #c6c6c6;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.google-btn:active {
  background: #f1f3f4;
}
.google-btn svg {
  flex-shrink: 0;
}

/* ============ DIVIDER ("OR") ============ */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray);
  font-size: 11px;
  letter-spacing: 2px;
  margin: 24px 0;
  font-weight: 500;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e5e5;
}

/* ============================================================
   ORDER TRACKING WIDGET
   ============================================================ */
.tracking-widget {
  background: #fafafa;
  border-radius: 14px;
  padding: 20px;
  margin: 16px 0;
  border: 1px solid #eee;
}

.tracking-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tracking-label {
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.tracking-current {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--softblack);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  line-height: 1.3;
}

.tracking-icon { font-size: 20px; }

.tracking-desc {
  font-size: 13px;
  color: var(--gray);
}

.tracking-progress-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  min-width: 80px;
}

.tracking-progress-num {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--champagne);
}

.tracking-progress-label {
  font-size: 10px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tracking-bar {
  height: 6px;
  background: #e8e8e8;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
}

.tracking-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--champagne), #e8c766);
  border-radius: 20px;
  transition: width 0.6s ease;
}

/* --- Tracking Steps --- */
.tracking-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  margin-left: 4px;
}

.tracking-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  padding: 10px 0;
}

.tracking-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: -10px;
  width: 2px;
  background: #e0e0e0;
}

.tracking-step.done::before {
  background: var(--champagne);
}

.tracking-step-marker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  background: #f0f0f0;
  color: #999;
  border: 2px solid #f0f0f0;
  transition: all 0.3s;
  z-index: 1;
}

.tracking-step.done .tracking-step-marker {
  background: var(--champagne);
  color: white;
  border-color: var(--champagne);
}

.tracking-step.active .tracking-step-marker {
  background: white;
  color: var(--champagne);
  border-color: var(--champagne);
  box-shadow: 0 0 0 4px rgba(201,162,39,0.15);
  animation: pulseStep 2s infinite;
}

@keyframes pulseStep {
  0%, 100% { box-shadow: 0 0 0 4px rgba(201,162,39,0.15); }
  50% { box-shadow: 0 0 0 8px rgba(201,162,39,0.05); }
}

.tracking-step-body {
  flex: 1;
  padding-top: 6px;
  min-width: 0;
}

.tracking-step-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--softblack);
}

.tracking-step.upcoming .tracking-step-label {
  color: #aaa;
}

.tracking-step-time {
  font-size: 11px;
  color: var(--gray);
  margin-top: 2px;
}

/* --- Next Up indicator --- */
.tracking-next {
  margin-top: 16px;
  padding: 12px 16px;
  background: white;
  border-radius: 10px;
  border-left: 3px solid var(--champagne);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tracking-next-label {
  font-size: 10px;
  color: var(--gray);
  letter-spacing: 1.5px;
  font-weight: 600;
}

.tracking-next-value {
  color: var(--softblack);
  font-weight: 500;
}

.tracking-complete {
  margin-top: 16px;
  padding: 14px 16px;
  background: #d4edda;
  color: #155724;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

/* --- Compact mode --- */
.tracking-widget.compact {
  padding: 12px 16px;
  background: white;
  margin: 12px 0;
}

.tracking-widget.compact .tracking-steps.compact {
  flex-direction: row;
  gap: 4px;
  margin: 0;
}

.tracking-widget.compact .tracking-step {
  flex-direction: column;
  align-items: center;
  padding: 0;
  flex: 1;
  gap: 4px;
}

.tracking-widget.compact .tracking-step::before {
  left: 50%;
  top: 17px;
  right: -50%;
  bottom: auto;
  width: auto;
  height: 2px;
  transform: translateX(50%);
}

.tracking-widget.compact .tracking-step:last-child::before {
  display: none;
}

.tracking-widget.compact .tracking-step-marker {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.tracking-widget.compact .tracking-step-label {
  font-size: 10px;
  text-align: center;
  line-height: 1.2;
}

/* --- Order timeline collapse --- */
.order-timeline-toggle {
  background: none;
  border: none;
  color: var(--champagne);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
  text-decoration: underline;
}

/* --- Demo simulation controls --- */
.demo-controls {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  background: #fff8e1;
  border-radius: 10px;
  border-left: 3px solid #f0ad4e;
  font-size: 11px;
  align-items: center;
  flex-wrap: wrap;
}

.demo-controls .demo-label {
  color: #856404;
  font-weight: 600;
}

.demo-btn {
  padding: 4px 10px;
  background: white;
  border: 1px solid #f0ad4e;
  color: #856404;
  border-radius: 20px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.demo-btn:hover {
  background: #f0ad4e;
  color: white;
}

/* ============================================================
   RESPONSIVE — LARGE TABLETS (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .checkout-layout {
    gap: 28px;
  }
  .checkout-section {
    padding: 24px;
  }
  .checkout-summary {
    padding: 24px;
  }
}

/* ============================================================
   RESPONSIVE — TABLETS (≤900px)
   ============================================================ */
@media (max-width: 900px) {
  /* Checkout stacks */
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0 60px;
  }
  .checkout-summary {
    position: static;
  }
  .payment-methods {
    grid-template-columns: 1fr;
  }

  /* Navbar auth slot */
  #nav-auth-slot {
    gap: 6px;
  }
  .btn-signin {
    padding: 7px 14px;
    font-size: 12px;
    min-height: 32px;
  }
  .user-avatar {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  /* User dropdown */
  .user-dropdown {
    min-width: 200px;
    right: -8px;
  }

  /* Tracking widget */
  .tracking-current {
    font-size: 18px;
  }
  .tracking-progress-num {
    font-size: 18px;
  }
}

/* ============================================================
   RESPONSIVE — SMALL TABLETS / LARGE PHONES (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Auth page */
  .auth-page {
    padding: 24px 16px;
    align-items: flex-start;
    padding-top: 40px;
  }
  .auth-card {
    padding: 32px 24px;
    border-radius: 16px;
  }
  .auth-card h1 {
    font-size: 24px;
  }
  .auth-card .auth-sub {
    margin-bottom: 24px;
  }

  /* Checkout sections */
  .checkout-section {
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 16px;
  }
  .checkout-section h2 {
    font-size: 17px;
    margin-bottom: 16px;
    gap: 8px;
  }
  .checkout-section h2 .step-num {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  /* Payment option */
  .payment-option {
    padding: 16px 14px;
  }
  .payment-option .pm-icon {
    font-size: 22px;
  }
  .payment-option .pm-title {
    font-size: 13px;
  }

  /* Checkout summary */
  .checkout-summary {
    padding: 20px;
    border-radius: 14px;
  }
  .summary-item img {
    width: 48px;
    height: 64px;
  }
  .summary-item-info {
    font-size: 12px;
  }

  /* Modal */
  .modal {
    padding: 28px 24px;
  }
  .modal .check-icon {
    width: 60px;
    height: 60px;
    font-size: 30px;
  }

  /* Account header */
  .account-header {
    padding: 40px 0 24px;
  }

  /* Tracking */
  .tracking-widget {
    padding: 16px;
    border-radius: 12px;
  }
  .tracking-header {
    gap: 12px;
    margin-bottom: 16px;
  }
  .tracking-current {
    font-size: 17px;
  }
  .tracking-progress-badge {
    padding: 8px 12px;
    min-width: 70px;
  }
  .tracking-progress-num {
    font-size: 18px;
  }
  .tracking-step-marker {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .tracking-step:not(:last-child)::before {
    left: 15px;
    top: 36px;
  }
  .tracking-step-label {
    font-size: 13px;
  }
}

/* ============================================================
   RESPONSIVE — PHONES (≤600px)
   ============================================================ */
@media (max-width: 600px) {
  /* Navbar auth slot */
  .btn-signin {
    padding: 6px 12px;
    font-size: 11px;
    min-height: 30px;
  }
  .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }

  /* Auth card */
  .auth-card {
    padding: 28px 20px;
  }
  .auth-card h1 {
    font-size: 22px;
  }
  .auth-card .auth-sub {
    font-size: 13px;
  }

  /* Form */
  .form-group {
    margin-bottom: 16px;
  }
  .form-group label {
    font-size: 12px;
  }
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 12px 14px;
  }

  /* Google button */
  .google-btn {
    font-size: 13px;
    padding: 12px 14px;
    min-height: 44px;
  }

  /* Checkout */
  .checkout-section {
    padding: 16px;
  }
  .payment-option {
    padding: 14px 12px;
  }
  .payment-option .pm-icon {
    font-size: 20px;
    margin-bottom: 6px;
  }

  /* Modal */
  .modal {
    padding: 24px 20px;
    border-radius: 16px;
  }
  .modal h2 {
    font-size: 20px;
  }
  .modal p {
    font-size: 13px;
  }

  /* Order card */
  .order-card {
    padding: 16px;
  }
  .order-meta {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 12px;
  }
  .order-total strong {
    font-size: 16px;
  }

  /* Tracking */
  .tracking-current {
    font-size: 16px;
    gap: 6px;
  }
  .tracking-icon {
    font-size: 18px;
  }
  .tracking-step-marker {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }
  .tracking-step:not(:last-child)::before {
    left: 14px;
    top: 34px;
  }
  .tracking-step-label {
    font-size: 12px;
  }
  .tracking-next {
    font-size: 12px;
    padding: 10px 12px;
    gap: 8px;
  }
  .demo-controls {
    font-size: 10px;
    padding: 8px 10px;
    gap: 6px;
  }
  .demo-btn {
    font-size: 10px;
    padding: 3px 8px;
  }
}

/* ============================================================
   RESPONSIVE — SMALL PHONES (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  /* Navbar */
  .btn-signin {
    padding: 6px 10px;
    font-size: 10px;
    min-height: 28px;
    border-width: 1px;
  }
  .user-avatar {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }

  /* User dropdown — position fix */
  .user-dropdown {
    right: -10px;
    min-width: 190px;
  }
  .user-dropdown-header {
    padding: 10px 12px;
  }
  .user-dropdown-header strong {
    font-size: 13px;
  }
  .user-dropdown-header small {
    font-size: 11px;
  }
  .user-dropdown a,
  .user-dropdown button {
    padding: 9px 12px;
    font-size: 13px;
  }

  /* Auth page */
  .auth-page {
    padding: 20px 12px;
  }
  .auth-card {
    padding: 24px 18px;
    border-radius: 14px;
  }
  .auth-card h1 {
    font-size: 20px;
  }

  /* Checkout */
  .checkout-section {
    padding: 14px;
    border-radius: 12px;
  }
  .checkout-section h2 {
    font-size: 15px;
    margin-bottom: 14px;
  }
  .checkout-section h2 .step-num {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  /* Payment option */
  .payment-option .pm-title {
    font-size: 12px;
  }
  .payment-option .pm-desc {
    font-size: 11px;
  }

  /* Modal */
  .modal-overlay {
    padding: 12px;
  }
  .modal {
    padding: 24px 16px;
    border-radius: 14px;
  }
  .modal .check-icon {
    width: 56px;
    height: 56px;
    font-size: 28px;
    margin-bottom: 16px;
  }

  /* Tracking */
  .tracking-widget {
    padding: 14px;
  }
  .tracking-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .tracking-progress-badge {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    min-width: auto;
  }
  .tracking-progress-num {
    font-size: 16px;
  }
  .tracking-progress-label {
    font-size: 9px;
  }
  .tracking-bar {
    margin-bottom: 18px;
  }

  /* Order meta — single column */
  .order-meta {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   RESPONSIVE — VERY SMALL PHONES (≤360px)
   ============================================================ */
@media (max-width: 360px) {
  .btn-signin {
    padding: 5px 8px;
    font-size: 10px;
    min-height: 26px;
  }
  .user-avatar {
    width: 28px;
    height: 28px;
    font-size: 9px;
  }

  .auth-card {
    padding: 20px 14px;
  }
  .auth-card h1 {
    font-size: 18px;
  }

  .checkout-section {
    padding: 12px;
  }

  .tracking-current {
    font-size: 15px;
  }
  .tracking-step-marker {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }
  .tracking-step:not(:last-child)::before {
    left: 13px;
    top: 32px;
  }
}

/* ============================================================
   NAVBAR OVERFLOW PREVENTION
   ============================================================ */
.navbar {
  overflow-x: clip;
}

.nav-inner {
  min-width: 0;
}

.nav-icons {
  flex-shrink: 0;
}

/* Prevent logo overlap */
@media (max-width: 768px) {
  .logo {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ============================================================
   ACCESSIBILITY — Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .auth-card,
  .modal,
  .tracking-step.active .tracking-step-marker {
    animation: none !important;
  }
  .tracking-bar-fill,
  .user-avatar,
  .btn-signin,
  .google-btn {
    transition: none !important;
  }
}

/* ============ GOOGLE SIGN IN (Real SDK) ============ */
.g_id_signin {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  min-height: 44px;
}

.g_id_signin > div {
  width: 100% !important;
}

.g_id_signin iframe {
  width: 100% !important;
  max-width: 100% !important;
}

/* Loading state habang naka-load ang Google SDK */
#g_id_onload + .g_id_signin::before {
  content: "";
  display: block;
  width: 100%;
  height: 44px;
  background: #f8f9fa;
  border-radius: 10px;
}

@media (max-width: 480px) {
  .g_id_signin iframe {
    min-width: 100% !important;
  }
}