@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500;600;700&family=DM+Mono:wght@300;400;500&display=swap');

:root {
  /* UI/UX Pro Max Dashboard Unified 3-Color Vibrant Token System */
  --bg:          #f8fafc;
  --bg2:         #ffffff;
  --bg3:         rgba(241, 245, 249, 0.75);
  --card:        rgba(255, 255, 255, 0.88);
  --card2:       #ffffff;
  --border:      rgba(0, 185, 174, 0.14);
  --border2:     rgba(0, 185, 174, 0.38);
  --text:        #0f172a;
  --muted:       #64748b;
  --muted2:      #475569;

  --primary:     #00B9AE;       /* 60% Dominance: Teal / Cyan */
  --primary-hover:#009990;
  --primary-glow:rgba(0, 185, 174, 0.18);
  --secondary:   #ec4899;       /* 30% Support: Vibrant Magenta */
  --secondary-hover:#db2777;
  --secondary-glow:rgba(236, 72, 153, 0.18);
  --accent:      #06b6d4;       /* 10% Focus: Cyber Cyan */
  --accent-hover:#0891b2;
  --accent-glow: rgba(6, 182, 212, 0.18);

  --blue:        #00B9AE;
  --blue-dim:    rgba(0, 185, 174, 0.12);
  --pink:        #ec4899;
  --pink-dim:    rgba(236, 72, 153, 0.12);
  --cyan:        #06b6d4;
  --cyan-dim:    rgba(6, 182, 212, 0.12);

  /* Status, Energy & Highlight Tokens */
  --yellow:        #f59e0b;       /* Energy Gold */
  --yellow-dim:    rgba(245, 158, 11, 0.12);
  --yellow-light:  #fde68a;       /* Soft Yellow Highlight */
  --yellow-dark:   #854d0e;       /* Contrast Yellow Text */
  --yellow-bg:     #fefce8;       /* Light Yellow Card BG */
  --yellow-border: #fef08a;       /* Light Yellow Border */

  --green:         #10b981;       /* Emerald Green */
  --green-dim:     rgba(16, 185, 129, 0.12);
  --green-dark:    #14532d;       /* Dark Green Container Surface */
  --green-border:  #166534;       /* Dark Green Container Border */

  --red:           #ef4444;       /* Ruby Red */
  --red-dim:       rgba(239, 68, 68, 0.12);
  --red-light:     #fca5a5;       /* Soft Red Highlight */
  --red-bg:        #ffe4e6;       /* Light Red Badge BG */
  --red-text:      #e11d48;       /* Deep Red Badge Text */

  --gray:          #64748b;       /* Slate Neutral */
  --gray-dim:      rgba(100, 116, 139, 0.1);
  --gray-light:    #cbd5e1;       /* Light Gray Border */
  --gray-dark:     #1e293b;       /* Dark Slate Text */
  --white:         #ffffff;       /* Pure White */
  --black:         #000000;       /* Pure Black */

  /* Daraz Dark Theme Tokens */
  --daraz-bg:            #0d0f12;
  --daraz-surface:       #151820;
  --daraz-border:        #222530;
  --daraz-orange:        #f77f00;
  --daraz-orange-hover:  #e07000;
  --daraz-purple-bg:     #1a0f1f;
  --daraz-purple-border: #7c3aed;
  --daraz-brown-bg:      #1a1000;
  --daraz-brown-avatar:  #451a03;

  /* Shopify Theme Generator Tokens */
  --sp-cta-pink:     #FF4B72;
  --sp-cta-dark:     #1a1a1a;
  --sp-light-bg:     #f8fafc;
  --sp-preview-bg:   #f1f5f9;
  --sp-muted-text:   #94a3b8;

  /* Accent & Specialized Theme Tokens */
  --yellow-accent:       #facc15;
  --orange-accent:       #fb923c;
  --daraz-brand-orange:  #ff6600;
  --green-success-accent:#22c55e;
  --purple-accent:       #8b5cf6;

  --font-head: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', 'DM Mono', monospace;

  /* Aliases for backwards compatibility */
  --bg-color:      var(--bg);
  --surface-color: var(--card);
  --text-main:     var(--text);
  --text-muted:    var(--muted);
  --glass-border:  var(--border);
  --gold:          var(--yellow);
  --danger:        var(--red);
  --success:       var(--green);

  /* Loader & Skeleton Tokens (UI/UX Pro Max) */
  --skeleton-bg:      rgba(148, 163, 184, 0.12);
  --skeleton-shimmer: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(0, 185, 174, 0.14) 50%, rgba(255,255,255,0) 100%);
  --progress-glow:    0 0 10px rgba(0, 185, 174, 0.6), 0 0 20px rgba(6, 182, 212, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-head);
}

body {
  background: var(--bg);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 185, 174, 0.08), transparent 35%),
    radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.08), transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.05), transparent 45%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-head);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

/* Glassmorphism utility */
.glass {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06), 0 0 16px rgba(0, 185, 174, 0.04);
}

header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

nav button {
  background: rgba(0, 185, 174, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 185, 174, 0.25);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 8px;
  cursor: pointer;
  margin-left: 1rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

nav button:hover {
  background: rgba(0, 185, 174, 0.2);
  border-color: rgba(0, 185, 174, 0.5);
  color: var(--primary-hover);
  transform: translateY(-1px);
}

/* ── Animated Sign In Button & Pointing Hand ── */
@keyframes handPointNudge {
  0%, 100% {
    transform: translateX(0) scale(1);
  }
  50% {
    transform: translateX(3px) scale(1.18);
  }
}

@keyframes buttonGentleFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 2px 8px rgba(0, 185, 174, 0.15);
  }
  50% {
    transform: translateY(-2.5px) scale(1.04);
    box-shadow: 0 6px 18px rgba(0, 185, 174, 0.35);
    border-color: rgba(0, 185, 174, 0.7);
  }
}

.nav-signin-btn, .signin-nudge-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  background: linear-gradient(135deg, rgba(0, 185, 174, 0.14), rgba(6, 182, 212, 0.22)) !important;
  color: var(--primary) !important;
  border: 1.5px solid rgba(0, 185, 174, 0.45) !important;
  font-weight: 700 !important;
  animation: buttonGentleFloat 1.8s ease-in-out infinite !important;
  cursor: pointer !important;
}

.nav-signin-btn:hover, .signin-nudge-btn:hover {
  animation-play-state: paused !important;
  transform: translateY(-2px) scale(1.06) !important;
  background: linear-gradient(135deg, rgba(0, 185, 174, 0.25), rgba(6, 182, 212, 0.35)) !important;
  border-color: rgba(0, 185, 174, 0.9) !important;
  box-shadow: 0 8px 24px rgba(0, 185, 174, 0.45) !important;
}

.pointing-hand {
  display: inline-block;
  font-size: 1.05rem;
  line-height: 1;
  animation: handPointNudge 0.9s ease-in-out infinite;
}

/* Button System (Dashboard Parity) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--white);
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-head);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-hover) 100%);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--blue-dim);
  color: var(--primary);
  border: 1px solid var(--border2);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-secondary:hover {
  background: var(--primary-glow);
  border-color: var(--border2);
  color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--primary-glow);
}

main {
  flex: 1;
  width: 100%;
}

/* Views */
.view {
  display: none;
  width: 100%;
  max-width: 1200px;
  animation: fadeIn 0.4s ease forwards;
}
.view.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

/* Hero Section */
.hero {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.hero h1 span {
  color: var(--primary);
}
.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.pricing-card {
  padding: 3rem;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-radius: 16px;
}
.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border2);
  box-shadow: 0 16px 40px rgba(0, 185, 174, 0.15);
}
.pricing-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.pricing-card .discount-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}
.pricing-card .price-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 1rem;
}
.pricing-card .original-price {
  font-size: 1.25rem;
  color: #64748b;
  text-decoration: line-through;
  font-weight: 500;
}
.pricing-card .price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
}
.pricing-card ul {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}
.pricing-card li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Forms */
.form-container {
  width: 100%;
  max-width: 450px;
  padding: 2.5rem;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 1.5rem;
  width: 100%;
  text-align: left;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}
.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-head);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-group input:focus {
  outline: none;
  border-color: rgba(0, 185, 174, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 185, 174, 0.18);
  background: #ffffff;
}
.form-container .btn-primary {
  width: 100%;
  margin-top: 1rem;
}

.switch-form {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}
.switch-form a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.switch-form a:hover {
  text-decoration: underline;
}
  text-decoration: underline;
}

/* Dashboard / Product Hunt */
.dashboard-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
}
.product-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.15);
}
.product-img {
  width: 100%;
  height: 200px;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 8px;
  object-fit: cover;
}
.product-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.product-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.trend-badge {
  display: inline-block;
  background: rgba(0, 255, 136, 0.15);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* Status Message */
.status-msg {
  text-align: center;
  padding: 3rem;
  max-width: 500px;
}
.status-msg h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.status-msg p {
  color: var(--text-muted);
  line-height: 1.6;
}
.status-msg .icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  animation: slideInRight 0.3s ease;
}
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 2px dashed var(--glass-border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
  color: var(--text-muted);
}
.file-upload-label:hover {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.05);
}
.file-upload-label i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
input[type="file"] {
  display: none;
}

/* ── AliExpress Formula Estimate Row ── */
.formula-estimate-row {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: rgba(250, 204, 21, 0.06);
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: 6px;
  margin-bottom: 8px;
  font-family: var(--font-mono, monospace);
}
.fe-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.5px;
  color: #facc15; text-transform: uppercase;
}
.fe-price {
  font-size: 13px; font-weight: 700; color: var(--text);
}
.fe-icon { font-size: 13px; }
.fe-note {
  font-size: 9px; color: var(--text-muted); margin-left: auto;
}

/* ── AliExpress Supplier Badges ── */
.ali-badge {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 8px; font-weight: 700; padding: 2px 5px;
  border-radius: 3px; white-space: nowrap;
}
.badge-verified {
  background: rgba(0, 185, 174, 0.12); color: #00B9AE;
  border: 1px solid rgba(0, 185, 174, 0.25);
}
.badge-shipping {
  background: rgba(22,163,74,0.12); color: #16a34a;
  border: 1px solid rgba(22,163,74,0.25);
}
.badge-moq {
  background: rgba(139,92,246,0.12); color: #8b5cf6;
  border: 1px solid rgba(139,92,246,0.25);
}
.src-flag { font-size: 10px; }

/* ── Source filter chip AliExpress-only ── */
.chip.s-ali.active {
  background: rgba(250,204,21,0.12);
  border-color: rgba(250,204,21,0.35);
  color: #facc15;
}

/* ── China Sourcing Group Panel ── */
.china-sourcing-panel {
  margin-top: 8px;
  margin-bottom: 10px;
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: 8px;
  background: rgba(250, 204, 21, 0.03);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.china-sourcing-panel:hover {
  border-color: rgba(250, 204, 21, 0.45);
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.08);
}

.china-sourcing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: rgba(250, 204, 21, 0.08);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
  width: 100%;
  border: none;
  outline: none;
  text-align: left;
  font-family: inherit;
}

.china-sourcing-header:hover {
  background: rgba(250, 204, 21, 0.15);
}

.cs-header-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cs-title-flag {
  font-size: 13px;
  line-height: 1;
}

.cs-title-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #facc15;
  text-transform: uppercase;
}

.cs-preview-badge {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
}

.cs-toggle-btn-wrap {
  display: flex;
  align-items: center;
}

.cs-plus-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.18);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.4);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.china-sourcing-panel.expanded .cs-plus-btn {
  transform: rotate(45deg);
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.china-sourcing-content {
  padding: 10px 10px 4px 10px;
  border-top: 1px solid rgba(250, 204, 21, 0.15);
  background: var(--bg2);
  display: none;
}

.china-sourcing-panel.expanded .china-sourcing-content {
  display: block;
  animation: csSlideDown 0.2s ease-out forwards;
}

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

/* ── Hot AliExpress Section (Reverse Signal) ── */
.hot-ali-section {
  margin-bottom: 8px;
  border: 1px solid rgba(251,146,60,0.25);
  border-radius: 6px;
  overflow: hidden;
}
.hot-ali-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 10px;
  background: rgba(251,146,60,0.08);
  border-bottom: 1px solid rgba(251,146,60,0.15);
}
.hot-ali-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.5px;
  color: #fb923c; text-transform: uppercase;
}
.hot-ali-boost {
  font-size: 8px; font-weight: 700;
  background: rgba(251,146,60,0.15); color: #fb923c;
  border: 1px solid rgba(251,146,60,0.3);
  border-radius: 3px; padding: 1px 5px;
}
.hot-ali-chips { display: flex; flex-direction: column; gap: 0; }
.hot-ali-chip {
  display: block; padding: 6px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s ease; cursor: pointer;
}
.hot-ali-chip:last-child { border-bottom: none; }
.hot-ali-chip:hover { background: rgba(251,146,60,0.06); }
.hot-ali-title {
  display: block; font-size: 10px; color: var(--text);
  line-height: 1.35; margin-bottom: 3px;
}
.hot-ali-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.hot-ali-price {
  font-size: 10px; font-weight: 700; color: #facc15;
  font-family: var(--font-mono, monospace);
}
.hot-ali-orders { font-size: 9px; color: var(--text-muted); }
.hot-ali-score-bar {
  height: 2px; background: rgba(255,255,255,0.07);
  border-radius: 2px; overflow: hidden;
}
.hot-ali-score-fill {
  height: 100%;
  background: linear-gradient(90deg, #fb923c, #facc15);
  border-radius: 2px; transition: width 0.4s ease;
}

/* ── Daraz Connect Button (topbar) ── */
.daraz-connect-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 6px; font-size: 11px; font-weight: 700;
  background: rgba(255,102,0,0.12); color: #ff6600;
  border: 1px solid rgba(255,102,0,0.35);
  cursor: pointer; transition: all 0.2s ease; white-space: nowrap;
}
.daraz-connect-btn:hover { background: rgba(255,102,0,0.22); border-color: rgba(255,102,0,0.6); }
.daraz-connect-btn.connected { background: rgba(34,197,94,0.12); color: #22c55e; border-color: rgba(34,197,94,0.35); }

/* ── Export to Daraz Button (card) ── */
.export-daraz-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; margin-top: 10px; padding: 8px 12px;
  border-radius: 7px; font-size: 11px; font-weight: 700;
  background: rgba(255,102,0,0.10); color: #ff6600;
  border: 1px solid rgba(255,102,0,0.30);
  cursor: pointer; transition: all 0.2s ease;
}
.export-daraz-btn:hover:not(:disabled) { background: rgba(255,102,0,0.20); border-color: rgba(255,102,0,0.55); transform: translateY(-1px); }
.export-daraz-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.export-daraz-btn.success { background: rgba(34,197,94,0.12); color: #22c55e; border-color: rgba(34,197,94,0.35); }
.export-daraz-btn.error   { background: rgba(239,68,68,0.10);  color: #ef4444; border-color: rgba(239,68,68,0.30); }
.edb-icon { font-size: 13px; }

/* ── Export Modal ── */
.daraz-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; backdrop-filter: blur(4px);
}
.daraz-modal {
  background: var(--bg2, #1a1a1a); border: 1px solid var(--border, #2a2a2a);
  border-radius: 12px; padding: 28px; width: 380px; max-width: 94vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.daraz-modal-title { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.daraz-modal-sub   { font-size: 11px; color: var(--muted2, #6b7280); margin-bottom: 20px; }
.daraz-step-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border, #2a2a2a);
}
.daraz-step-row:last-of-type { border-bottom: none; }
.daraz-step-icon  { font-size: 18px; width: 24px; text-align: center; }
.daraz-step-text  { font-size: 12px; color: var(--muted, #9ca3af); }
.daraz-step-text strong { color: var(--text, #fff); font-weight: 700; }
.daraz-step-status { margin-left: auto; font-size: 11px; font-weight: 700; }
.step-pending { color: var(--muted2, #6b7280); }
.step-running { color: #facc15; }
.step-done    { color: #22c55e; }
.step-error   { color: #ef4444; }
.daraz-modal-close {
  margin-top: 18px; width: 100%; padding: 9px;
  border-radius: 7px; font-size: 12px; font-weight: 700;
  background: var(--bg3, #252525); color: var(--muted, #9ca3af);
  border: 1px solid var(--border, #2a2a2a); cursor: pointer;
}

/* ── E8 Price Collapse Risk Section ── */
.price-collapse-section {
  margin-bottom: 8px;
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 6px;
  padding: 8px 10px;
  background: rgba(239,68,68,0.05);
}
.pc-header {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 4px; flex-wrap: wrap;
}
.pc-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.4px;
  padding: 2px 7px; border-radius: 4px; border: 1px solid;
  text-transform: uppercase;
}
.pc-score {
  font-size: 10px; font-weight: 700;
  font-family: var(--font-mono, monospace);
  margin-left: auto;
}
.pc-floor {
  font-size: 9px; font-weight: 600;
  color: var(--muted2, #6b7280);
  font-family: var(--font-mono, monospace);
}
.pc-eta {
  font-size: 9px; font-weight: 700;
  margin-bottom: 4px;
}
.pc-signals { display: flex; flex-direction: column; gap: 2px; }
.pc-signal {
  font-size: 9px; color: var(--muted, #9ca3af);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL LOADERS & SKELETONS (UI/UX PRO MAX)
   ═══════════════════════════════════════════════════════════════ */

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

@keyframes spinnerRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.02); }
}

.shimmer-box {
  position: relative;
  overflow: hidden;
  background: var(--skeleton-bg, rgba(148, 163, 184, 0.12));
  border-radius: 6px;
}

.shimmer-box::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--skeleton-shimmer);
  animation: shimmerWave 1.6s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-loading {
  position: relative !important;
  pointer-events: none !important;
  color: transparent !important;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  top: 50%;
  left: 50%;
  margin: -7px 0 0 -7px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spinnerRotate 0.6s linear infinite;
  box-sizing: border-box;
}

