[v-cloak] {
  display: none !important;
}

/* ============================================== */
/* 🎨 MODERN SHADCN / TAILWIND DESIGN SYSTEM TOKENS */
/* ============================================== */
:root {
  --background: #fafafa;
  --foreground: #09090b;
  
  --card: #ffffff;
  --card-foreground: #09090b;
  
  --popover: #ffffff;
  --popover-foreground: #09090b;
  
  --primary: #2563eb;
  --primary-foreground: #ffffff;
  --primary-hover: #1d4ed8;
  
  --secondary: #f4f4f5;
  --secondary-foreground: #18181b;
  --secondary-hover: #e4e4e7;
  
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  
  --accent: #f4f4f5;
  --accent-foreground: #18181b;
  
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  
  --success: #10b981;
  --success-foreground: #ffffff;
  --success-light: #ecfdf5;
  
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  
  --border: #e4e4e7;
  --border-subtle: #f4f4f5;
  --input: #e4e4e7;
  --ring: #2563eb;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(0, 0, 0, 0.08), 0 4px 8px -4px rgba(0, 0, 0, 0.04);
  --shadow-popover: 0 16px 40px -8px rgba(0, 0, 0, 0.14), 0 4px 16px -2px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================== */
/* 🎈 MODERN MOTION POPOVER SYSTEM (Shadcn UI Style) */
/* ============================================== */
.has-popover {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.motion-popover {
  position: absolute;
  z-index: 99999;
  background: #ffffff;
  border: 1px solid rgba(228, 228, 231, 0.9);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-popover);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95) translateY(6px);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.18s;
  pointer-events: none;
  min-width: 230px;
  max-width: 320px;
  color: #09090b;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Hover trigger with grace window */
.has-popover:hover > .motion-popover,
.motion-popover:hover,
.has-popover.is-open > .motion-popover {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Grace area bridging gap */
.motion-popover::before {
  content: '';
  position: absolute;
  inset: -10px;
  z-index: -1;
}

/* Placement variants */
.popover-bottom {
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.95) translateY(4px);
  transform-origin: top center;
}
.has-popover:hover > .popover-bottom,
.popover-bottom:hover {
  transform: translateX(-50%) scale(1) translateY(0);
}

.popover-bottom-start {
  top: calc(100% + 8px);
  left: 0;
  transform: scale(0.95) translateY(4px);
  transform-origin: top left;
}
.has-popover:hover > .popover-bottom-start,
.popover-bottom-start:hover {
  transform: scale(1) translateY(0);
}

.popover-bottom-end {
  top: calc(100% + 8px);
  right: 0;
  transform: scale(0.95) translateY(4px);
  transform-origin: top right;
}
.has-popover:hover > .popover-bottom-end,
.popover-bottom-end:hover {
  transform: scale(1) translateY(0);
}

.popover-top {
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.95) translateY(-4px);
  transform-origin: bottom center;
}
.has-popover:hover > .popover-top,
.popover-top:hover {
  transform: translateX(-50%) scale(1) translateY(0);
}

.popover-top-start {
  bottom: calc(100% + 8px);
  left: 0;
  transform: scale(0.95) translateY(-4px);
  transform-origin: bottom left;
}
.has-popover:hover > .popover-top-start,
.popover-top-start:hover {
  transform: scale(1) translateY(0);
}

.popover-top-end {
  bottom: calc(100% + 8px);
  right: 0;
  transform: scale(0.95) translateY(-4px);
  transform-origin: bottom right;
}
.has-popover:hover > .popover-top-end,
.popover-top-end:hover {
  transform: scale(1) translateY(0);
}

.popover-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #09090b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.popover-desc {
  font-size: 0.78rem;
  color: #71717a;
  line-height: 1.45;
  margin: 0;
}

.popover-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: #f4f4f5;
  color: #52525b;
  border: 1px solid #e4e4e7;
}

/* ============================================== */
/* HEADER & NAVIGATION (Minimalist Framer Aesthetic) */
/* ============================================== */
.app-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #3f3f46;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #09090b;
  letter-spacing: -0.02em;
}

.brand-text p {
  font-size: 0.76rem;
  color: var(--muted-foreground);
}

.nav-tabs {
  display: flex;
  gap: 4px;
  background: #f4f4f5;
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid #e4e4e7;
}

.nav-tab {
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 500;
  border: none;
  background: transparent;
  color: #71717a;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-tab:hover {
  color: #18181b;
  background: rgba(255, 255, 255, 0.5);
}

.nav-tab.active {
  background: #ffffff;
  color: #09090b;
  box-shadow: var(--shadow-xs);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Layout */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Scanner Card */
.scanner-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.scanner-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #10b981, #ef4444);
}

.scanner-input-group {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.scanner-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.scanner-icon {
  position: absolute;
  left: 18px;
  font-size: 24px;
  color: #3b82f6;
}

.scanner-input {
  width: 100%;
  padding: 16px 18px 16px 56px;
  font-size: 1.25rem;
  font-weight: 600;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s;
  background: #f8fafc;
  color: #0f172a;
}

.scanner-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.btn-scan {
  padding: 0 28px;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-scan:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.quick-waves-bar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-wave-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.quick-wave-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #cbd5e1;
}

/* ==================================================== */
/* RECOMMENDATION HERO BANNER & COLOR CODING */
/* ==================================================== */
.recommendation-hero {
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  color: #ffffff !important;
  background: linear-gradient(135deg, #059669 0%, #10b981 60%, #34d399 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.35);
  animation: fadeIn 0.3s ease;
  transition: all 0.3s ease;
}

.hero-matched {
  background: linear-gradient(135deg, #059669 0%, #10b981 60%, #34d399 100%) !important;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.35) !important;
}

.hero-special {
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 50%, #ef4444 100%) !important;
  border: 2px solid #fecaca;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.45) !important;
  animation: alertPulse 2s infinite ease-in-out;
}

.hero-fuzzy {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 60%, #fbbf24 100%) !important;
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.35) !important;
}

.hero-notfound {
  background: linear-gradient(135deg, #334155 0%, #475569 60%, #64748b 100%) !important;
  box-shadow: 0 10px 25px -5px rgba(71, 85, 105, 0.35) !important;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero-main h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.package-big-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.special-alert-banner {
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid #ffffff;
  padding: 10px 16px;
  border-radius: 12px;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  animation: bounceAlert 1s infinite alternate;
}

.hero-tags {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.badge-white {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.badge-special-tag {
  background: #ffffff;
  color: #b91c1c;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-stats-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-item .stat-label {
  font-size: 0.8rem;
  opacity: 0.85;
}

.stat-item .stat-value {
  font-size: 1.6rem;
  font-weight: 700;
}

/* ==================================================== */
/* MANUAL PACKAGE ENTRY / SELECTOR CARD */
/* ==================================================== */
.manual-select-card {
  background: #ffffff;
  border: 2px solid #3b82f6;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.25s ease;
}

.manual-select-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.manual-select-header h3 {
  font-size: 1.15rem;
  color: #1e293b;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-package-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pkg-pill-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #1e293b;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.pkg-pill-btn:hover {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1d4ed8;
}

.pkg-pill-btn.active {
  background: #2563eb;
  border-color: #1d4ed8;
  color: white;
  font-weight: 700;
}

.special-req-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.req-pill-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.req-pill-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.req-pill-btn.active {
  background: #dc2626;
  border-color: #b91c1c;
  color: white;
  font-weight: 700;
}

/* Grid Layout */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: #d4d4d8;
}

.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.card-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.card-body {
  padding: 1.25rem;
}

/* Table styling */
.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.custom-table th {
  text-align: left;
  padding: 10px 14px;
  background: #f8fafc;
  color: var(--muted-foreground);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border);
}

.custom-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f4f4f5;
  color: #18181b;
  font-weight: 500;
}

.custom-table tr:hover td {
  background: #f8fafc;
}

.row-has-special td {
  background: #fff5f5 !important;
}

.row-has-special:hover td {
  background: #fee2e2 !important;
}

/* Progress bar */
.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: #f4f4f5;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 4px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
}
.badge-success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.badge-primary { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.badge-warning { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.badge-danger { background: #fef2f2; color: #b91c1c; border-color: #fecaca; font-weight: 700; }
.badge-red-solid { background: #dc2626; color: #ffffff; font-weight: 700; }

/* Buttons (Modern Shadcn System) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}

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

.btn-primary { 
  background: #18181b; 
  color: #fafafa; 
  border-color: #27272a; 
  box-shadow: var(--shadow-xs);
}
.btn-primary:hover { 
  background: #27272a; 
}

.btn-blue {
  background: #2563eb;
  color: white;
  border-color: #1d4ed8;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
}
.btn-blue:hover {
  background: #1d4ed8;
}

.btn-emerald {
  background: #059669;
  color: white;
  border-color: #047857;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.25);
}
.btn-emerald:hover {
  background: #047857;
}

.btn-secondary {
  background: #f4f4f5;
  color: #18181b;
  border-color: #e4e4e7;
}
.btn-secondary:hover {
  background: #e4e4e7;
}

.btn-outline { 
  background: #ffffff; 
  border-color: #e4e4e7; 
  color: #18181b; 
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover { 
  background: #f4f4f5; 
  border-color: #d4d4d8; 
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: #71717a;
}
.btn-ghost:hover {
  background: #f4f4f5;
  color: #18181b;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 0.78rem;
  border-radius: 6px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 92%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.modal-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--foreground);
  letter-spacing: -0.01em;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fafafa;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #27272a;
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--input);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  background: #ffffff;
  color: var(--foreground);
  transition: all 0.15s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes alertPulse {
  0%, 100% {
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
  }
  50% {
    box-shadow: 0 10px 35px rgba(220, 38, 38, 0.7);
  }
}

@keyframes bounceAlert {
  0% { transform: translateY(0); }
  100% { transform: translateY(-3px); }
}

@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .package-big-title { font-size: 2rem; }
}

/* ==================================================== */
/* MOBILE & RESPONSIVE VERTICAL SCREEN OPTIMIZATIONS    */
/* ==================================================== */
@media (max-width: 768px), (pointer: coarse) {
  body {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
  }

  .header-content {
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 0.8rem;
    gap: 8px;
  }

  .brand {
    justify-content: space-between;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 20px;
    border-radius: 8px;
  }

  .brand-text h1 {
    font-size: 1.1rem;
  }

  .brand-text p {
    display: none;
  }

  .header-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
  }

  .header-actions .btn {
    padding: 4px 8px;
    font-size: 0.75rem;
  }

  /* Nav Tabs - Horizontal Smooth Touch Scrolling */
  .nav-tabs {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 4px;
    gap: 4px;
    scrollbar-width: none;
  }

  .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .nav-tab {
    padding: 6px 12px;
    font-size: 0.82rem;
    flex-shrink: 0;
  }

  .main-container {
    padding: 0.6rem 0.8rem 4rem 0.8rem;
  }

  /* Cards & Forms */
  .card {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
  }

  .card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .scanner-card {
    padding: 1.2rem 1rem;
  }

  .scanner-input-group {
    flex-direction: column;
    gap: 8px;
  }

  .scanner-input {
    font-size: 1rem;
    padding: 12px 14px;
  }

  .btn-scan {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 1rem;
  }

  /* Recommendation Hero */
  .recommendation-hero {
    padding: 1.2rem;
    border-radius: 14px;
  }

  .package-big-title {
    font-size: 1.8rem;
    word-break: break-word;
  }

  .hero-tags {
    flex-wrap: wrap;
    gap: 6px;
  }

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

  /* Tables on mobile */
  .card-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .custom-table {
    min-width: 600px;
    font-size: 0.82rem;
  }

  .custom-table th, .custom-table td {
    padding: 8px 10px;
  }

  /* Modal cards full on mobile */
  .modal-overlay {
    padding: 8px;
    align-items: flex-end;
  }

  .modal-card {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 90vh !important;
    border-radius: 16px 16px 0 0 !important;
    margin-bottom: 0;
  }

  .modal-body {
    padding: 1rem;
  }
}

/* ============================================== */
/* 🔐 OTP 6-DIGIT PIN INPUT MODAL STYLES (iOS/Modern Motion Style) */
/* ============================================== */
.otp-modal-card {
  max-width: 440px !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.8) !important;
  overflow: hidden;
  padding: 0 !important;
}

.otp-modal-header {
  padding: 24px 24px 12px 24px;
  text-align: center;
  position: relative;
}

.otp-modal-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 14px auto;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.otp-modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.otp-modal-desc {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.5;
}

.otp-wrapper {
  padding: 18px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.otp-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  transition: transform 0.2s ease;
}

.otp-row.is-error {
  animation: otpShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.otp-cell {
  position: relative;
  width: 50px;
  height: 54px;
  background: #F4F4F9;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: text;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.otp-cell:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.otp-cell.is-focused {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.18), 0 4px 12px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.otp-cell.is-filled {
  background: #ffffff;
  border-color: #94a3b8;
}

.otp-cell.is-error {
  border-color: #FF3B30 !important;
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.25) !important;
  background: #fef2f2 !important;
}

.otp-cell.is-success {
  border-color: #34C759 !important;
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.3) !important;
  background: #f0fdf4 !important;
  animation: successPop 0.35s ease-out;
}

.otp-input-hidden {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: text;
  z-index: 2;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 1.2rem;
}

.otp-char-display {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  pointer-events: none;
  animation: otpRollIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
}

.otp-char-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1e293b;
  display: inline-block;
  animation: otpRollIn 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.otp-caret-line {
  position: absolute;
  width: 2px;
  height: 22px;
  background: #2563eb;
  border-radius: 2px;
  animation: otpBlink 1s infinite;
  pointer-events: none;
}

.otp-error-text {
  font-size: 0.84rem;
  color: #dc2626;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: fadeIn 0.2s ease;
}

.otp-success-text {
  font-size: 0.84rem;
  color: #16a34a;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: fadeIn 0.2s ease;
}

.otp-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}

/* Keyframes */
@keyframes otpShake {
  0%, 100% { transform: translateX(0); }
  15%, 55%, 85% { transform: translateX(-7px); }
  35%, 75% { transform: translateX(7px); }
}

@keyframes otpBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes otpRollIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.6);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes successPop {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ==================================================== */
/* NOTIFICATION STACK / HOVER-EXPANDING DOWNLOAD SUITE  */
/* Inspired by beui.dev/components/blocks/notification-stack */
/* ==================================================== */
.download-stack-wrapper {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.download-stack-root {
  position: relative;
  display: block;
  width: 100%;
  max-width: 440px;
  min-width: 320px;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  border-radius: 24px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  font-family: inherit;
}

.download-stack-root:hover,
.download-stack-root:focus-within {
  background: #ffffff;
  border-color: #d4d4d8;
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.06);
  z-index: 50;
}

/* Stack Layers container */
.download-stack-cards {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Individual File Card */
.download-card-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  padding: 10px 14px;
  text-decoration: none;
  color: #18181b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, clip-path;
}

.download-card-item:hover {
  background: #f8fafc;
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}

.download-card-item:active {
  transform: scale(0.98);
}

.download-card-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f4f4f5;
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 1px solid #e4e4e7;
  transition: transform 0.2s ease;
}

.download-card-item:hover .download-card-icon {
  transform: scale(1.08);
  background: #eff6ff;
  border-color: #bfdbfe;
}

.download-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.download-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #09090b;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

.download-card-desc {
  font-size: 0.76rem;
  color: #71717a;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-card-trailing {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2563eb;
  padding: 4px 10px;
  background: #eff6ff;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
  transition: all 0.18s ease;
}

.download-card-item:hover .download-card-trailing {
  background: #2563eb;
  color: #ffffff;
  border-color: #1d4ed8;
}

/* Collapsed state: Stacked Peek Effect (NotificationStack style) */
.download-stack-root:not(:hover):not(:focus-within) .download-card-item:nth-child(n+2) {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.95);
}

/* Top Card in collapsed state */
.download-stack-root:not(:hover):not(:focus-within) .download-card-item:first-child {
  border-color: #e4e4e7;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05),
              0 6px 0 -2px #f4f4f5,
              0 6px 0 -1px #e4e4e7,
              0 12px 0 -4px #f4f4f5,
              0 12px 0 -3px #e4e4e7;
  margin-bottom: 8px;
}

/* Stack Footer */
.download-stack-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 6px 2px 6px;
  font-size: 0.82rem;
  color: #71717a;
  border-top: 1px solid transparent;
  transition: all 0.2s ease;
}

.download-stack-root:hover .download-stack-footer,
.download-stack-root:focus-within .download-stack-footer {
  border-top-color: #f4f4f5;
  padding-top: 8px;
}

.download-stack-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ea580c;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.download-stack-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: #27272a;
}

.download-stack-zip-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #18181b;
  color: #fafafa;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.download-stack-zip-btn:hover {
  background: #27272a;
  transform: translateY(-1px);
}


