/* ============================================================
   Virasat - Shared Stylesheet
   Applies to all pages. DO NOT add page-specific overrides
   here; create a separate file instead.
   ============================================================ */

/* Material Symbols icon variant */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* Frosted glass panels (used on home, login) */
.glass-panel {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Frosted glass alias (used on signup) */
.ivory-glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px);
}

/* Warm-gold gradient - buttons & badges */
.signature-gradient {
  background: linear-gradient(135deg, #675b3c 0%, #817353 100%);
}

/* Orbital ring animation placeholder (home hero) */
.nexus-orbit {
  animation: none;
}

/* Floating asset nodes (home hero) */
.floating-node {
  transition: transform 0.3s ease;
}

.floating-node:hover {
  transform: translateY(-4px);
}

/* ============================================================
   Toast Notification System
   ============================================================ */

.notification-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.toast-notification {
  background: white;
  border-radius: 12px;
  padding: 16px 24px;
  margin: 8px 16px;
  box-shadow: 0 8px 24px rgba(26, 28, 27, 0.15);
  border-left: 4px solid;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 500px;
  width: 100%;
  min-width: 300px;
  pointer-events: auto;
  animation: slideInDown 0.3s ease-out forwards;
}

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

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

/* Success Notification */
.toast-notification.success {
  border-left-color: #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
}

.toast-notification.success .toast-icon {
  color: #10b981;
}

.toast-notification.success .toast-title {
  color: #059669;
}

.toast-notification.success .toast-message {
  color: #047857;
}

/* Error Notification */
.toast-notification.error {
  border-left-color: #ef4444;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.02) 100%);
}

.toast-notification.error .toast-icon {
  color: #ef4444;
}

.toast-notification.error .toast-title {
  color: #dc2626;
}

.toast-notification.error .toast-message {
  color: #b91c1c;
}

/* Warning Notification */
.toast-notification.warning {
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.02) 100%);
}

.toast-notification.warning .toast-icon {
  color: #f59e0b;
}

.toast-notification.warning .toast-title {
  color: #d97706;
}

.toast-notification.warning .toast-message {
  color: #b45309;
}

/* Info Notification */
.toast-notification.info {
  border-left-color: #3b82f6;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
}

.toast-notification.info .toast-icon {
  color: #3b82f6;
}

.toast-notification.info .toast-title {
  color: #1d4ed8;
}

.toast-notification.info .toast-message {
  color: #1e40af;
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.toast-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toast-title {
  font-weight: 600;
  font-size: 14px;
  font-family: 'Manrope', sans-serif;
}

.toast-message {
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
}

/* ============================================================
   Mobile Responsive - myvault.html  (max-width: 767px)
   ============================================================ */

/* ── Bottom nav bar (always visible and FIXED) ───────────────────────── */
.mobile-bottom-tab {
  flex: 1 1 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  color: #7d766b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  padding: 7px 0 !important;
  overflow: hidden !important;
}
.mobile-bottom-tab .material-symbols-outlined { font-size: 20px !important; }
.mobile-bottom-tab .mbn-lbl,
.mobile-bottom-tab span:last-child {
  font-size: 9px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  padding: 0 2px !important;
}
.mobile-bottom-tab.active { color: #675b3c; }
.mobile-bottom-tab.active .material-symbols-outlined { font-variation-settings: 'FILL' 1; }

@media (max-width: 767px) {
  #mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    height: 64px !important;
    overflow: hidden !important;
  }
  
  body, html {
    overflow-x: hidden !important;
    width: 100% !important;
  }
  
  main {
    margin-bottom: 64px !important;
    overflow-x: hidden !important;
    width: 100% !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    scroll-behavior: smooth !important;
  }
}

/* ── Artha tab bar (inside Artha section) ────────────────────── */
.al-mobile-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  color: #7d766b;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.al-mobile-tab .material-symbols-outlined { font-size: 19px; }
.al-mobile-tab.active { color: #675b3c; border-bottom-color: #675b3c; font-weight: 600; }

@media (max-width: 767px) {

  /* ── 1. Artha 3-col grid → single column ─────────────────── */
  /* Container uses remaining vertical space */
  .al-mobile-tabs-outer {
    display: flex;
  }

  .artha-layout {
    grid-template-columns: 1fr !important;
    height: 100% !important;
    min-height: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-top: 1px solid #cec5b8 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* ── 2. Centre panel hidden by default; al-right always renders (hosts tab bar);
        al-left is a bottom-sheet (hidden until al-history-open) ─────────────────── */
  .artha-layout .al-centre {
    display: none !important;
    order: 2 !important;
    flex: 1 !important;
    overflow: hidden !important;
  }
  .artha-layout .al-right {
    display: flex !important;
    flex-direction: column !important;
    order: 1 !important;
    border-left: none !important;
    overflow: hidden !important;
    min-height: 0 !important;
  }

  /* ── 3. Chat mode: al-right shrinks to just its tab bar; al-centre fills below ── */
  .artha-layout.al-mobile-show-chat .al-right {
    flex: 0 0 auto !important;
    height: auto !important;
  }
  .artha-layout.al-mobile-show-chat .al-right .al-right-body {
    display: none !important;
  }
  .artha-layout.al-mobile-show-chat .al-centre {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
  }

  /* ── Any right-panel tab (Snapshot/Alerts/Insights/Goals/Plan): al-right fills, chat hidden ── */
  .artha-layout.al-mobile-show-right .al-right {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
  }
  .artha-layout.al-mobile-show-right .al-centre {
    display: none !important;
  }

  /* ── al-left as a slide-up bottom sheet for Chat History (mobile only) ── */
  .artha-layout .al-left {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 64px !important;                 /* sit above the bottom nav */
    top: auto !important;
    max-height: 70vh !important;
    background: #fff !important;
    z-index: 9997 !important;
    border-top: 1px solid #ece8e0 !important;
    box-shadow: 0 -6px 20px rgba(26,28,27,.15) !important;
    border-top-left-radius: 14px !important;
    border-top-right-radius: 14px !important;
    transform: translateY(110%) !important;
    transition: transform .22s ease !important;
    padding-top: 6px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    visibility: hidden !important;
  }
  .artha-layout.al-history-open .al-left {
    transform: translateY(0) !important;
    visibility: visible !important;
  }
  /* Hide the brand + net worth card in the history sheet (Snapshot has NW) */
  .artha-layout .al-left .al-brand,
  .artha-layout .al-left .al-nw-card {
    display: none !important;
  }
  /* Backdrop */
  .artha-layout.al-history-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(26,28,27,.35);
    z-index: 9996;
  }

  /* ── 4. Chat adjustments - fixed positioning ─────────────── */
  .artha-layout .al-chat-hdr {
    flex-shrink: 0 !important;
    overflow: hidden !important;
  }
  .artha-layout .al-watching {
    flex-shrink: 0 !important;
    overflow: hidden !important;
    padding: 5px 12px !important;
    font-size: 10px !important;
  }
  .artha-layout .al-chat-scroll {
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    scroll-behavior: smooth !important;
    padding: 12px 12px 8px !important;
    min-height: 0 !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cec5b8 transparent !important;
  }
  .artha-layout .al-chips-row {
    flex-shrink: 0 !important;
    padding: 6px 12px 4px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    scroll-behavior: smooth !important;
    flex-wrap: nowrap !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cec5b8 transparent !important;
  }
  .artha-layout .al-chip {
    flex-shrink: 0;
  }
  .artha-layout .al-chat-input-area {
    flex-shrink: 0 !important;
    padding: 8px 12px 10px !important;
    overflow: hidden !important;
  }
  .artha-layout .al-input-wrap {
    padding: 8px 8px 8px 12px !important;
  }

  /* ── 5. Right panel (Snapshot) adjustments ──────────────── */
  .artha-layout .al-right {
    flex-direction: column !important;
  }
  .artha-layout .al-right-tabs {
    flex-shrink: 0 !important;
    overflow: hidden !important;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: #fff !important;
  }
  .artha-layout .al-right-body {
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    scroll-behavior: smooth !important;
    min-height: 0 !important;
    padding: 12px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cec5b8 transparent !important;
  }
  .artha-layout .al-r-lbl          { margin-top: 12px !important; }
  .artha-layout .al-metric-grid    { grid-template-columns: 1fr 1fr !important; }

  /* ── 6. Left panel (Conversations) adjustments ─────────── */
  .artha-layout .al-left {
    flex-direction: column !important;
  }
  .artha-layout .al-brand {
    flex-shrink: 0 !important;
    overflow: hidden !important;
  }
  .artha-layout .al-nw-card        { margin: 10px 12px 0 !important; }
  .artha-layout .al-alert-strip    { margin: 6px 12px 0 !important; }
  .artha-layout .al-new-conv       { margin: 8px 12px 0 !important; }
  .artha-layout .al-conv-list {
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    scroll-behavior: smooth !important;
    min-height: 0 !important;
    padding: 0 6px 10px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cec5b8 transparent !important;
  }

  /* ── 7. Section content padding ─────────────────────────── */
  #section-artha:not(.hidden) {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    height: calc(100dvh - 180px) !important;   /* leave room for top nav + bottom nav */
    min-height: 400px !important;
    margin-bottom: 0 !important;
  }

  #section-assets,
  #section-liabilities,
  #section-life-coverage,
  #section-documents,
  #section-dashboard {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    scroll-behavior: smooth !important;
    padding-bottom: 20px !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(103, 91, 60, 0.2) transparent !important;
  }

  /* ── 8. Main content area proper scrolling ─────────────────── */
  .flex.flex-col.pt-20.min-h-screen {
    padding-top: 80px !important;
    min-height: 100vh !important;
    padding-bottom: 80px !important;
  }

  /* ── 9. Section header: title + action button ──────────── */
  #section-assets .flex.justify-between.items-start,
  #section-liabilities .flex.justify-between.items-start,
  #section-life-coverage .flex.justify-between.items-start,
  #section-documents .flex.justify-between.items-start {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: flex-start !important;
  }

  /* ── 10. Chat bubble mobile adjustments ──────────────────── */
  .artha-layout .al-ai-bbl         { max-width: 96% !important; padding: 10px 13px !important; font-size: 12.5px !important; }
  .artha-layout .al-u-bbl          { max-width: 90% !important; padding: 10px 13px !important; font-size: 12.5px !important; }
  .artha-layout .al-av-ai,
  .artha-layout .al-av-user        { width: 24px !important; height: 24px !important; font-size: 10px !important; border-radius: 7px !important; }
  .artha-layout .al-ai-bbl         { margin-left: 30px !important; }
  .artha-layout .al-u-bbl          { margin-right: 30px !important; }

  /* ── 11. Prevent content jump on scroll, browser-agnostic ─── */
  * {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  /* ── 11b. Firefox scrollbar styling for mobile ────────────── */
  ::-moz-scrollbar {
    width: 4px;
    height: 4px;
  }
  ::-moz-scrollbar-track {
    background: transparent;
  }
  ::-moz-scrollbar-thumb {
    background: #cec5b8;
    border-radius: 2px;
  }

  /* ── 12. Proof-of-life card - stack on mobile ─────────────── */
  .grid.grid-cols-2.gap-6 { grid-template-columns: 1fr !important; }

  /* ── 13. Dashboard KPI: 2 cols on mobile (already handled by grid-cols-2) ── */
  /* Dashboard analytics row 1 is handled by md:grid-cols-3 in HTML */
}

/* Hide feedback floater tab on mobile (< 768px) */
@media (max-width: 767px) {
  #feedback-tab { display: none !important; }
}

/* ============================================================
   ONBOARDING TUTORIAL SYSTEM
   ============================================================ */

/* Spotlight Overlay */
.tutorial-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  pointer-events: none;
}

.spotlight-border {
  stroke: #817353;
  stroke-width: 1.5;
  opacity: 0.5;
}

.spotlight-glow {
  opacity: 0.1;
}

/* Backdrop */
.tutorial-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 14, 12, 0.15);
  z-index: 9996;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(1px);
}

.tutorial-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal wrapper */
.tutorial-modal {
  position: fixed;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9) translateY(10px);
  transition: top 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), left 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease, transform 0.4s ease;
}

.tutorial-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

/* Card - white, clean, matches the app's card style */
.tutorial-card {
  background: #ffffff;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  position: relative;
  border: 1px solid rgba(103, 91, 60, 0.1);
  box-shadow: 0 4px 6px rgba(26,28,27,0.04), 0 16px 48px rgba(26,28,27,0.11);
  overflow: hidden;
}

/* Slim progress bar at very top of card */
.tutorial-progress-track {
  height: 2px;
  background: rgba(103, 91, 60, 0.08);
  width: 100%;
  overflow: hidden;
}

.tutorial-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #675B3C, #817353);
  transition: width 0.4s ease;
}

/* Inner padding */
.tutorial-inner {
  padding: 28px 30px 24px;
}

/* Close button */
.tutorial-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: rgba(103, 91, 60, 0.3);
  transition: color 0.2s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1;
}

.tutorial-close:hover {
  color: #675B3C;
  background: rgba(103, 91, 60, 0.07);
}

.tutorial-close .material-symbols-outlined {
  font-size: 17px;
}

/* Two-column body */
.tutorial-body {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-right: 6px;
}

.tutorial-icon-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 68px;
  padding-top: 2px;
}

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

/* Icon - subtle, warm, app-matching */
.tutorial-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 11px;
  background: rgba(103, 91, 60, 0.08);
  border: 1px solid rgba(103, 91, 60, 0.1);
  color: #675B3C;
  flex-shrink: 0;
}

.tutorial-icon .material-symbols-outlined {
  font-size: 22px;
  font-variation-settings: 'FILL' 1, 'wght' 400;
}

/* Step label */
.tutorial-step-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(103, 91, 60, 0.4);
  margin-top: 8px;
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
}

/* Typography */
.tutorial-heading {
  font-size: 18px;
  font-weight: 700;
  color: #1a1c1b;
  margin: 0 0 6px 0;
  line-height: 1.3;
  font-family: 'Manrope', sans-serif;
}

.tutorial-subheading {
  font-size: 11px;
  color: #817353;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px 0;
  display: none;
}

.tutorial-text {
  font-size: 13.5px;
  color: #7d766b;
  line-height: 1.65;
  margin: 0 0 12px 0;
}

/* Benefit - quiet italic note, no box */
.tutorial-benefit {
  display: none;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(103, 91, 60, 0.07);
}

.tutorial-benefit .material-symbols-outlined {
  font-size: 13px;
  color: #817353;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.6;
}

.tutorial-benefit span#tutorial-benefit-text {
  font-size: 11.5px;
  line-height: 1.55;
  color: #9c9284;
  font-style: italic;
}

/* Divider before controls */
.tutorial-divider {
  height: 1px;
  background: rgba(103, 91, 60, 0.07);
  margin: 0 0 16px;
}

/* Controls */
.tutorial-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.tutorial-btn-secondary,
.tutorial-btn-primary {
  flex: 1;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  min-height: 38px;
  letter-spacing: 0.1px;
}

.tutorial-btn-secondary {
  background: transparent;
  color: #7d766b;
  border: 1px solid rgba(103, 91, 60, 0.18);
}

.tutorial-btn-secondary:hover {
  background: rgba(103, 91, 60, 0.05);
  color: #4b463c;
  border-color: rgba(103, 91, 60, 0.28);
}

.tutorial-btn-secondary:active {
  transform: scale(0.98);
}

.tutorial-btn-primary {
  background: linear-gradient(135deg, #675B3C 0%, #817353 100%);
  color: white;
  border: none;
}

.tutorial-btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 14px rgba(103, 91, 60, 0.28);
}

.tutorial-btn-primary:active {
  transform: scale(0.98);
  box-shadow: none;
}

/* Skip */
.tutorial-skip {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: rgba(103, 91, 60, 0.28);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0 0;
  transition: color 0.2s ease;
  font-family: inherit;
  text-align: center;
}

.tutorial-skip:hover {
  color: rgba(103, 91, 60, 0.5);
}

/* ─────────────────────────────────────────────────────────── */
/* RESPONSIVE TUTORIAL STYLES */
/* ─────────────────────────────────────────────────────────── */

@media (min-width: 768px) {
  .tutorial-inner {
    padding: 30px 34px 26px;
  }
  .tutorial-heading {
    font-size: 19px;
  }
}

@media (max-width: 767px) {
  .tutorial-modal {
    padding: 12px;
    align-items: flex-end;
  }
  .tutorial-card {
    max-width: 100%;
    border-radius: 14px 14px 10px 10px;
  }
  .tutorial-inner {
    padding: 20px 20px 18px;
  }
  .tutorial-body {
    flex-direction: column;
    gap: 12px;
    padding-right: 0;
  }
  .tutorial-icon-col {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
  .tutorial-step-label {
    margin-top: 0;
    text-align: left;
  }
  .tutorial-heading {
    font-size: 16px;
  }
  .tutorial-text {
    font-size: 13px;
    margin-bottom: 10px;
  }
}

@media (max-width: 399px) {
  .tutorial-controls {
    flex-direction: column;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .tutorial-card { max-height: 92vh; overflow-y: auto; }
  .tutorial-inner { padding: 16px 22px; }
  .tutorial-body { flex-direction: row; }
  .tutorial-icon-col { flex-direction: column; width: 64px; }
  .tutorial-step-label { text-align: center; margin-top: 8px; }
  .tutorial-heading { font-size: 16px; }
}

@media (hover: none) and (pointer: coarse) {
  .tutorial-btn-secondary,
  .tutorial-btn-primary { min-height: 44px; }
  .tutorial-close { width: 34px; height: 34px; }
}

/* ─────────────────────────────────────────────────────────── */
/* TUTORIAL ANIMATIONS */
/* ─────────────────────────────────────────────────────────── */

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

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

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

@keyframes smoothMove {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes confettiFall {
  to {
    transform: translateY(100vh) rotateZ(720deg);
    opacity: 0;
  }
}



