:root {
  --bg: #f8f9fc;
  --bg2: #ffffff;
  --bg3: #f0f2f8;
  --text: #1a1d2e;
  --text2: #5a5f7d;
  --border: #e4e7f0;
  --accent: #6c63ff;
  --accent2: #4f46e5;
  --accent-soft: #ede9fe;
  --success: #10b981;
  --success-soft: #d1fae5;
  --warning: #f59e0b;
  --warning-soft: #fef3c7;
  --danger: #ef4444;
  --danger-soft: #fee2e2;
  --shadow: 0 2px 16px rgba(108,99,255,0.08);
  --shadow-lg: 0 8px 32px rgba(108,99,255,0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
  --bg: #0f1117;
  --bg2: #1a1d2e;
  --bg3: #232740;
  --text: #f0f2ff;
  --text2: #8b91b8;
  --border: #2e3352;
  --accent: #7c73ff;
  --accent2: #6c63ff;
  --accent-soft: #1e1a40;
  --success-soft: #052e1e;
  --warning-soft: #2d1f00;
  --danger-soft: #2d0a0a;
  --shadow: 0 2px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
  line-height: 1.6;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ─── TOPBAR ─── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
  backdrop-filter: blur(12px);
  transition: background var(--transition), border-color var(--transition);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}

.topbar-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ─── THEME TOGGLE ─── */
.theme-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--bg3);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition);
}

.theme-btn:hover { background: var(--accent-soft); color: var(--accent); }

.msg-bell-btn { position: relative; }
.msg-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  pointer-events: none;
  line-height: 1;
  padding: 0 3px;
}

/* ─── SIDEBAR ─── */
.sidebar {
  position: fixed;
  top: 60px; left: 0;
  width: 240px;
  height: calc(100vh - 60px);
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  overflow-y: auto;
  z-index: 90;
  transition: transform var(--transition), background var(--transition);
}

.sidebar.hidden { transform: translateX(-100%); }

.sidebar-section {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text2);
  padding: 12px 10px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text2);
  transition: all var(--transition);
  position: relative;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-item .icon { font-size: 1.1rem; width: 20px; text-align: center; }

/* ─── MAIN CONTENT ─── */
.main {
  margin-left: 240px;
  margin-top: 60px;
  padding: 24px 20px;
  min-height: calc(100vh - 60px);
  transition: margin var(--transition);
}

.main.no-sidebar { margin-left: 0; }

/* ─── PAGES ─── */
.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }

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

/* ─── CARDS ─── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.card:hover { box-shadow: var(--shadow-lg); }

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.card-sub {
  font-size: 0.82rem;
  color: var(--text2);
}

/* ─── STATS GRID ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 2px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text2);
  font-weight: 500;
}

/* ─── BADGES ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-pending { background: var(--warning-soft); color: var(--warning); }
.badge-process { background: var(--accent-soft); color: var(--accent); }
.badge-resolved { background: var(--success-soft); color: var(--success); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-time-warn { background: #fff3cd; color: #92600a; }
.badge-time-alert { background: var(--danger-soft); color: var(--danger); animation: pulse-badge 2s infinite; }
@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(108,99,255,0.4); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.85; }

.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-full { width: 100%; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ─── FORMS ─── */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg3);
  color: var(--text);
  font-size: 0.9rem;
  transition: all var(--transition);
  outline: none;
  font-family: inherit;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  background: var(--bg2);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.12);
}

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

.form-hint { font-size: 0.78rem; color: var(--text2); margin-top: 5px; }

/* ─── REPORT CARDS ─── */
.report-list { display: flex; flex-direction: column; gap: 14px; }

.report-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: all var(--transition);
  cursor: pointer;
}

.report-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-1px); }

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.report-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.report-meta {
  font-size: 0.8rem;
  color: var(--text2);
  margin-top: 4px;
}

.report-desc {
  font-size: 0.88rem;
  color: var(--text2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

@media (min-width: 640px) {
  .modal-overlay { align-items: center; }
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg2);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 24px 20px 32px;
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(40px);
  transition: transform var(--transition);
}

@media (min-width: 640px) {
  .modal { border-radius: var(--radius); transform: scale(0.95); }
}

.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title { font-size: 1.1rem; font-weight: 700; }

.modal-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--bg3);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modal-close:hover { background: var(--danger-soft); color: var(--danger); }

/* ─── TABS ─── */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg3);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.tab-btn {
  flex: 1;
  min-width: max-content;
  padding: 8px 12px;
  border-radius: 7px;
  border: none;
  background: none;
  color: var(--text2);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-align: center;
}

.tab-btn.active { background: var(--bg2); color: var(--accent); font-weight: 600; box-shadow: var(--shadow); }

@media (max-width: 480px) {
  .tab-btn { font-size: 0.78rem; padding: 7px 10px; }
}

/* ─── AUTH PAGE ─── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg);
}

.auth-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 12px;
}

.auth-logo h2 { font-size: 1.3rem; font-weight: 700; }
.auth-logo p { font-size: 0.85rem; color: var(--text2); margin-top: 4px; }

/* ─── LANDING ─── */
.landing {
  min-height: 100vh;
  background: var(--bg);
}

.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 40px;
  background: radial-gradient(ellipse at top, rgba(108,99,255,0.08) 0%, transparent 60%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(108,99,255,0.2);
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 700px;
  background: linear-gradient(135deg, var(--text) 40%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 18px;
}

.hero p {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text2);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 40px 20px 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }

.feature-card-new {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg2) 60%, var(--accent-soft));
}

.feature-new-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 99px;
  white-space: nowrap;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 auto 12px;
}

.feature-card h3 { font-size: 0.92rem; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 0.82rem; color: var(--text2); line-height: 1.55; }

/* ─── FAQ ─── */
.faq-section {
  padding: 20px 16px 60px;
  max-width: 680px;
  margin: 0 auto;
}
.faq-title {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.faq-sub {
  text-align: center;
  color: var(--text2);
  font-size: 0.88rem;
  margin-bottom: 28px;
}
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item.open { border-color: var(--accent); box-shadow: var(--shadow); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.faq-q:active { background: var(--bg3); }
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-style: normal;
  transition: transform var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s cubic-bezier(.4,0,.2,1), padding 0.22s;
  padding: 0 18px;
  font-size: 0.87rem;
  color: var(--text2);
  line-height: 1.65;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 18px 16px; }

/* ─── PLANES ─── */
.plans-section {
  padding: 20px 16px 60px;
  max-width: 860px;
  margin: 0 auto;
}
.plans-title { text-align:center; font-size:1.45rem; font-weight:800; color:var(--text); margin-bottom:6px; }
.plans-sub { text-align:center; color:var(--text2); font-size:0.88rem; margin-bottom:32px; }
.plans-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media(max-width:600px){ .plans-grid { grid-template-columns:1fr; } }
.plan-card {
  background:var(--card);
  border:2px solid var(--border);
  border-radius:20px;
  padding:28px 24px;
  position:relative;
  transition:all .22s;
  display:flex; flex-direction:column;
}
.plan-card.plan-featured { border-color:var(--accent); background:linear-gradient(145deg,var(--card) 60%,var(--accent-soft)); }
.plan-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.plan-badge { position:absolute; top:-13px; left:50%; transform:translateX(-50%); background:var(--accent); color:#fff; font-size:0.7rem; font-weight:700; padding:4px 14px; border-radius:99px; white-space:nowrap; }
.plan-icon { font-size:2rem; margin-bottom:10px; }
.plan-name { font-size:1.05rem; font-weight:800; color:var(--text); margin-bottom:4px; }
.plan-price { font-size:2.5rem; font-weight:800; color:var(--accent); line-height:1; margin:10px 0 2px; }
.plan-price span { font-size:0.95rem; font-weight:500; color:var(--text2); }
.plan-desc { font-size:0.8rem; color:var(--text2); margin-bottom:18px; }
.plan-features { list-style:none; padding:0; margin:0 0 22px; display:flex; flex-direction:column; gap:9px; flex:1; }
.plan-features li { font-size:0.84rem; color:var(--text); display:flex; align-items:flex-start; gap:8px; line-height:1.4; }
.plan-features li::before { content:'✓'; color:#059669; font-weight:800; font-size:0.85rem; flex-shrink:0; margin-top:1px; }
.plan-features li.no::before { content:'✗'; color:var(--text2); }
.plan-features li.no { color:var(--text2); }
.plan-cta { display:block; text-align:center; padding:13px; border-radius:12px; font-weight:700; font-size:0.95rem; text-decoration:none; transition:all .2s; cursor:pointer; border:none; font-family:inherit; }
.plan-featured .plan-cta { background:var(--accent); color:#fff; }
.plan-featured .plan-cta:hover { opacity:.88; }
.plan-card:not(.plan-featured) .plan-cta { background:var(--bg2); color:var(--text); border:2px solid var(--border); }
.plan-card:not(.plan-featured) .plan-cta:hover { border-color:var(--accent); color:var(--accent); }

/* ─── PREVIEW ─── */
.preview-section {
  padding: 20px 16px 60px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.preview-title { font-size:1.45rem; font-weight:800; color:var(--text); margin-bottom:6px; }
.preview-sub { color:var(--text2); font-size:0.88rem; margin-bottom:40px; }
.preview-devices { display:flex; justify-content:center; align-items:flex-end; gap:32px; flex-wrap:wrap; }
.preview-label { font-size:0.78rem; color:var(--text2); margin-top:14px; font-weight:600; letter-spacing:.5px; text-transform:uppercase; }

.phone-frame {
  width:190px; flex-shrink:0;
  border:7px solid var(--text);
  border-radius:34px;
  background:var(--bg);
  box-shadow:0 20px 60px rgba(0,0,0,.22);
  overflow:hidden;
  position:relative;
}
.phone-notch {
  width:60px; height:16px;
  background:var(--text);
  border-radius:0 0 12px 12px;
  margin:0 auto 0;
}
.phone-screen { height:340px; overflow:hidden; display:flex; flex-direction:column; background:var(--bg); }

.desktop-frame {
  width:520px; flex-shrink:0;
  border:4px solid var(--text);
  border-radius:12px;
  background:var(--bg);
  box-shadow:0 20px 60px rgba(0,0,0,.22);
  overflow:hidden;
}
.desktop-bar {
  background:var(--bg2);
  border-bottom:1px solid var(--border);
  padding:8px 12px;
  display:flex; align-items:center; gap:8px;
}
.desktop-dots { display:flex; gap:5px; }
.desktop-dots span { width:9px; height:9px; border-radius:50%; }
.desktop-dots span:nth-child(1){ background:#ff5f57; }
.desktop-dots span:nth-child(2){ background:#febc2e; }
.desktop-dots span:nth-child(3){ background:#28c840; }
.desktop-url { flex:1; background:var(--bg); border-radius:5px; padding:3px 10px; font-size:0.68rem; color:var(--text2); margin:0 8px; text-align:center; border:1px solid var(--border); }
.desktop-screen { height:320px; overflow:hidden; display:flex; background:var(--bg); }

/* mock store inside frames */
.mock-store-header { background:linear-gradient(135deg,#4338ca,#7c3aed); padding:10px 12px; display:flex; align-items:center; gap:8px; flex-shrink:0; }
.mock-store-header .mock-logo { width:28px; height:28px; border-radius:8px; background:rgba(255,255,255,.2); display:flex; align-items:center; justify-content:center; font-size:13px; }
.mock-store-header .mock-title { color:#fff; font-weight:700; font-size:0.75rem; }
.mock-store-header .mock-cart { margin-left:auto; color:rgba(255,255,255,.8); font-size:14px; }
.mock-tabs { display:flex; border-bottom:1px solid var(--border); background:var(--bg2); flex-shrink:0; }
.mock-tab { flex:1; padding:7px 4px; font-size:0.65rem; font-weight:600; text-align:center; color:var(--text2); }
.mock-tab.active { color:var(--accent); border-bottom:2px solid var(--accent); }
.mock-grid { display:grid; gap:8px; padding:8px; overflow:hidden; flex:1; }
.mock-grid-2 { grid-template-columns:1fr 1fr; }
.mock-grid-3 { grid-template-columns:1fr 1fr 1fr; }
.mock-product { background:var(--card); border:1px solid var(--border); border-radius:8px; overflow:hidden; }
.mock-product-img { width:100%; aspect-ratio:1; background:linear-gradient(135deg,var(--accent-soft),rgba(108,99,255,.15)); display:flex; align-items:center; justify-content:center; font-size:18px; }
.mock-product-info { padding:5px 6px; }
.mock-product-name { font-size:0.6rem; font-weight:700; color:var(--text); margin-bottom:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mock-product-price { font-size:0.58rem; color:var(--accent); font-weight:700; }
.mock-product-btn { width:100%; padding:4px; background:var(--accent); color:#fff; border:none; border-radius:0 0 8px 8px; font-size:0.55rem; font-weight:700; cursor:pointer; }
.mock-sidebar { width:140px; flex-shrink:0; border-right:1px solid var(--border); background:var(--bg2); padding:8px; display:flex; flex-direction:column; gap:6px; }
.mock-sidebar-item { font-size:0.6rem; padding:5px 6px; border-radius:5px; color:var(--text2); }
.mock-sidebar-item.active { background:var(--accent-soft); color:var(--accent); font-weight:700; }
.mock-main { flex:1; display:flex; flex-direction:column; overflow:hidden; }

@media(max-width:700px){
  .preview-section { padding-left:0; padding-right:0; }
  .preview-devices { flex-wrap:nowrap; overflow-x:auto; justify-content:flex-start; padding:0 16px 16px; gap:20px; scrollbar-width:none; }
  .preview-devices::-webkit-scrollbar { display:none; }
  .phone-frame { flex-shrink:0; }
  .desktop-frame { flex-shrink:0; width:420px; }
  .desktop-screen { height:260px; }
}

/* ─── PROMO BUBBLE ─── */
.promo-bubble-wrap { display: none; }
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.5; }
}
.promo-bubble {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px 10px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform 0.18s, box-shadow 0.18s;
  max-width: 95vw;
  margin-bottom: 20px;
  animation: bubbleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.promo-bubble:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 28px rgba(37,211,102,0.45); }
.promo-bubble-dot {
  width: 9px; height: 9px;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulseDot 1.6s ease-in-out infinite;
}
.promo-bubble-icon { font-size: 1.1rem; flex-shrink: 0; }
.promo-bubble-text { line-height: 1.4; }
.promo-bubble-text strong { font-weight: 800; }
.promo-bubble-arrow { font-size: 1rem; flex-shrink: 0; opacity: 0.85; }

/* ─── CUSTOMER VIEW ─── */
.customer-wrap {
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: 40px;
}

.customer-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  position: relative;
}
.customer-header-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
}
.c-ctrl-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg3);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, opacity 0.15s;
}
.c-ctrl-btn:hover { background: var(--accent-soft); }

.customer-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  object-fit: cover;
  margin-bottom: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-inline: auto;
  overflow: hidden;
}

.customer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.customer-store-name { font-size: 1.2rem; font-weight: 700; }
.customer-tagline { font-size: 0.85rem; color: var(--text2); margin-top: 4px; }

.customer-content { max-width: 540px; margin: 0 auto; padding: 24px 16px; }

/* ─── VENDOR LIST ─── */
.vendor-table { width: 100%; border-collapse: collapse; }
.vendor-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
}

.vendor-table td {
  padding: 12px 14px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.vendor-table tr:last-child td { border-bottom: none; }
.vendor-table tr:hover td { background: var(--bg3); }

/* ─── TOAST ─── */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 300px;
  animation: slideIn 0.3s ease;
  transition: opacity 0.3s ease;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--accent); }

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

/* ─── EMPTY STATE ─── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text2);
}

.empty-icon { font-size: 3rem; margin-bottom: 14px; opacity: 0.5; }
.empty-state h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.empty-state p { font-size: 0.85rem; }

/* ─── AVATAR ─── */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ─── DIVIDER ─── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* ─── MOBILE SIDEBAR TOGGLE ─── */
.hamburger {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: var(--bg3);
  color: var(--text);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition);
}

/* ─── MOBILE OVERLAY ─── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 89;
  backdrop-filter: blur(2px);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  .sidebar-overlay.open { display: block; }
  .hamburger { display: flex; }

  .main {
    margin-left: 0;
    padding: 16px 14px;
  }

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

  .topbar-store-name { display: none; }
  .topbar-push-btn { display: none; }
  .landing-admin-btn { display: none; }

  .vendor-table { font-size: 0.8rem; }
  .vendor-table th, .vendor-table td { padding: 8px 10px; }

  .toast-container { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: 100%; }
}

/* ─── LOADING SPINNER ─── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── SECTION HEADER ─── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
}

/* ─── STATUS TIMELINE ─── */
.timeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 20px 0;
}

.timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.timeline-step::before {
  content: '';
  position: absolute;
  top: 14px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--border);
}

.timeline-step:last-child::before { display: none; }

.timeline-step.done::before { background: var(--accent); }

.timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}

.timeline-step.done .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.timeline-step.current .timeline-dot {
  background: var(--bg2);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text2);
  text-align: center;
}

.timeline-step.done .timeline-label,
.timeline-step.current .timeline-label { color: var(--accent); }

/* ─── PASSWORD INPUT WRAP ─── */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap .form-input {
  padding-right: 44px;
}

.input-eye {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  color: var(--text2);
  line-height: 1;
  transition: color var(--transition);
}

.input-eye:hover { color: var(--accent); }

/* ─── SEARCH BAR ─── */
.search-bar-wrap {
  position: relative;
  margin-bottom: 14px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
}

.search-bar {
  width: 100%;
  padding: 11px 14px 11px 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg2);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  transition: all var(--transition);
}

.search-bar:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.12);
}

/* ─── PLATFORM CHIP ─── */
.platform-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ─── REPORT ACCOUNT ROW ─── */
.report-account {
  font-size: 0.78rem;
  color: var(--text2);
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── INFO GRID (modal) ─── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

@media (max-width: 480px) {
  .info-grid { grid-template-columns: 1fr; }
}

.info-item { display: flex; flex-direction: column; gap: 4px; }

.info-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  word-break: break-word;
}

.info-box {
  background: var(--bg3);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
  word-break: break-word;
}

/* ─── CREDENTIALS PANEL ─── */
.credentials-panel {
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin: 14px 0;
  border: 1px solid var(--border);
}

.credentials-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.cred-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.cred-row:last-child { margin-bottom: 0; }

.cred-label {
  font-size: 0.78rem;
  color: var(--text2);
  font-weight: 600;
  min-width: 90px;
  flex-shrink: 0;
}

.cred-value {
  font-size: 0.88rem;
  color: var(--text);
  font-family: monospace;
  flex: 1;
  word-break: break-all;
}

.btn-copy {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text2);
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-copy:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0 4px;
  font-weight: 600;
  text-decoration: underline;
  transition: opacity var(--transition);
}

.btn-link:hover { opacity: 0.7; }

/* ─── RESPONSE BOX ─── */
.response-box {
  background: var(--accent-soft);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  border-left: 3px solid var(--accent);
  line-height: 1.6;
  word-break: break-word;
}

.waiting-msg {
  text-align: center;
  color: var(--text2);
  font-size: 0.85rem;
  padding: 14px 0;
}

/* ─── SUCCESS CARD ─── */
.success-card {
  text-align: center;
  padding: 32px 20px;
}

.success-icon { font-size: 3.5rem; margin-bottom: 14px; }
.success-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.success-sub { color: var(--text2); font-size: 0.9rem; margin-bottom: 20px; }

.track-box {
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 20px;
  text-align: left;
  border: 1px dashed var(--border);
}

.success-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── CUSTOMER FORM ─── */
.customer-form-card { padding: 24px 20px; }
.customer-form-title { font-size: 1rem; font-weight: 700; margin-bottom: 20px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

.required { color: var(--danger); font-size: 0.8rem; }
.optional { color: var(--text2); font-size: 0.78rem; font-weight: 400; }

.radio-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.radio-option {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 10px 18px; cursor: pointer;
  font-size: 0.95rem; font-weight: 500; color: var(--text);
  transition: all var(--transition); flex: 1; min-width: 130px;
}
.radio-option:has(input:checked) {
  border-color: var(--accent); background: var(--accent-soft); color: var(--accent);
}
.radio-option input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; }

.btn-lg { padding: 14px 20px; font-size: 1rem; }

/* ─── CREDENTIALS PAGE ─── */
.cred-list { display: flex; flex-direction: column; gap: 14px; }

.cred-card { padding: 18px; }

.cred-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.cred-fields { display: flex; flex-direction: column; gap: 10px; }

.cred-field-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cred-field-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text2);
  min-width: 110px;
  flex-shrink: 0;
}

.cred-field-val-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.cred-field-input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg3);
  color: var(--text);
  font-size: 0.88rem;
  font-family: monospace;
  outline: none;
  transition: all var(--transition);
}

.cred-field-input:focus {
  border-color: var(--accent);
  background: var(--bg2);
}

@media (max-width: 480px) {
  .cred-field-row { flex-direction: column; align-items: flex-start; }
  .cred-field-val-wrap { width: 100%; }
}

/* ─── CONFIG SECTIONS ─── */
.config-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ─── TOPBAR STORE NAME ─── */
.topbar-store-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 400px) {
  .topbar-store-name { max-width: 80px; }
  .btn-outline.icon-only span { display: none; }
}

/* ─── CUSTOMER AUTH TABS ─── */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: all var(--transition);
}

.auth-tab.active {
  background: var(--bg2);
  color: var(--accent);
  box-shadow: var(--shadow);
}

.auth-panel { display: none; }
.auth-panel.active { display: block; }

/* ─── CUSTOMER WELCOME ─── */
.customer-welcome {
  font-size: 1rem;
  color: var(--text2);
  margin-bottom: 16px;
  padding: 0 2px;
}

/* ─── CUSTOMER TOPBAR ─── */
.customer-topbar {
  position: fixed;
  background: var(--bg2) !important;
}

/* ─── FILE UPLOAD ─── */
.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg3);
  position: relative;
  overflow: hidden;
}

.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.file-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-upload-icon { font-size: 2rem; margin-bottom: 8px; }
.file-upload-text { font-size: 0.88rem; color: var(--text2); font-weight: 500; }
.file-upload-hint { font-size: 0.75rem; color: var(--text2); margin-top: 4px; opacity: 0.7; }

.file-preview {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
}

.file-preview-wrap {
  position: relative;
}

.file-preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── REPORT IMAGE (vendor modal) ─── */
.report-image {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  display: block;
  margin-bottom: 14px;
  transition: opacity var(--transition);
}

.report-image:hover { opacity: 0.9; }

/* ─── PUSH NOTIFICATION BANNER ─── */
.push-banner {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.push-banner-icon { font-size: 1.8rem; flex-shrink: 0; }
.push-banner-text { flex: 1; min-width: 0; }
.push-banner-text strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.push-banner-text span { font-size: 0.82rem; opacity: 0.85; }
.push-banner-btn {
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
  flex-shrink: 0;
}
.push-banner-btn:hover { background: rgba(255,255,255,0.3); }
.push-banner-dismiss {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

/* ─── PAGINATION ─── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 20px;
  flex-wrap: wrap;
  padding: 0 4px;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pagination-info {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text2);
  margin-top: 8px;
}

@media (max-width: 480px) {
  .page-btn { min-width: 34px; height: 34px; font-size: 0.82rem; }
}

/* ─── BANNER MENSAJE ADMIN ─── */
.vendor-msg-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: min(380px, calc(100vw - 32px));
  background: var(--bg2);
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(108,99,255,0.25);
  z-index: 9999;
  transform: translateY(120%) scale(0.95);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), opacity 0.35s ease;
}
.vendor-msg-banner.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.vendor-msg-banner-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}
.vendor-msg-banner-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text1);
  margin-bottom: 8px;
}
.vendor-msg-banner-body {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.5;
  white-space: pre-wrap;
  margin-bottom: 16px;
}
.vendor-msg-banner-close {
  width: 100%;
  padding: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.vendor-msg-banner-close:hover { opacity: 0.85; }

/* ─── MENSAJES ENVIADOS (superadmin) ─── */
.vendor-msg-sent {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  background: var(--bg3);
}
.vendor-msg-sent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 4px;
}
.vendor-msg-sent-to { font-size: 0.82rem; color: var(--text2); }
.vendor-msg-sent-date { font-size: 0.78rem; color: var(--text3); }
.vendor-msg-sent-title { font-weight: 700; color: var(--text1); margin-bottom: 4px; }
.vendor-msg-sent-body { font-size: 0.85rem; color: var(--text2); white-space: pre-wrap; }

/* ─── CHAT REPORTE ─── */
.chat-section { margin-top: 4px; }
.chat-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text1);
  margin-bottom: 10px;
}
.chat-messages {
  max-height: 280px;
  overflow-y: auto;
  padding: 10px;
  background: var(--bg3);
  border-radius: 12px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}
.chat-msg {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 0.87rem;
  line-height: 1.45;
  word-break: break-word;
}
.chat-msg-mine {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg-theirs {
  align-self: flex-start;
  background: var(--bg2);
  color: var(--text1);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-msg-time {
  font-size: 0.7rem;
  opacity: 0.6;
  margin-top: 4px;
}
.chat-msg-mine .chat-msg-time { color: rgba(255,255,255,0.8); }
.chat-input-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}
.chat-input { flex: 1; margin: 0; }
.chat-empty {
  text-align: center;
  color: var(--text3);
  font-size: 0.82rem;
  padding: 20px 0;
}

.chat-unread-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--success);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ─── LANDING MOBILE ─── */
@media (max-width: 600px) {
  .hero {
    min-height: 75vh;
    padding: 70px 18px 28px;
  }
  .hero p { margin-bottom: 22px; }
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 28px 14px 40px;
  }
  .feature-card { padding: 18px 10px 14px; }
  .feature-icon {
    width: 38px;
    height: 38px;
    font-size: 17px;
    margin-bottom: 9px;
  }
  .feature-card h3 { font-size: 0.8rem; }
  .feature-card p { font-size: 0.74rem; line-height: 1.45; }
  .feature-new-badge { font-size: 0.62rem; padding: 2px 9px; }
}

/* ═══════════════════════════════════════════════════════════ */
/* ─── STORE — TIENDA WEB ─────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════ */

/* ── Store wrapper ── */
.store-wrap {
  padding-bottom: 24px;
}

/* ── Balance hero card ── */
.store-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 40%, #6d28d9 100%);
  border-radius: 22px;
  padding: 22px 20px 18px;
  color: #fff;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.store-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.store-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -20px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.store-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.store-hero-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 4px;
}
.store-hero-balance {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -.5px;
  line-height: 1;
}
.store-hero-balance span {
  font-size: 1.1rem;
  font-weight: 600;
  margin-right: 3px;
  opacity: .8;
}
.store-recharge-btn {
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 50px;
  padding: 9px 18px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.store-recharge-btn:hover {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.5);
  transform: translateY(-1px);
}
.store-recharge-btn:active { transform: scale(.96); }

/* ── Store nav tabs ── */
.store-tabs {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 4px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}
.store-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.65);
  font-size: .83rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
}
.store-tab-btn.active {
  background: #fff;
  color: #4338ca;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

/* ── Catalog grid ── */
.store-catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (min-width: 680px) {
  #c-section-store.customer-content {
    max-width: 900px;
  }
  .store-catalog-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (min-width: 1100px) {
  #c-section-store.customer-content {
    max-width: 1200px;
  }
  .store-catalog-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

/* ── Product card ── */
.store-product-card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  border: 1px solid var(--border);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
  position: relative;
}
.store-product-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 12px 36px rgba(99,82,255,.2);
  border-color: rgba(109,40,217,.25);
}

/* ── Product image ── */
.store-product-img-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 65%;
  background: linear-gradient(135deg, #ede9fe, #dbeafe);
  overflow: hidden;
  flex-shrink: 0;
}
[data-theme="dark"] .store-product-img-wrap {
  background: linear-gradient(135deg, #1e1b4b, #1e3a5f);
}
.store-product-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.store-product-card:hover .store-product-img { transform: scale(1.07); }

.store-product-img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

/* ── Badge overlay ── */
.store-badge-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .6px;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  box-shadow: 0 3px 12px rgba(0,0,0,.3);
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* ── Info button ── */
.store-info-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: .8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  z-index: 2;
}
.store-info-btn:hover {
  background: rgba(99,82,255,.8);
  transform: scale(1.1);
}

/* ── Card body ── */
.store-product-body {
  padding: 13px 13px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.store-product-name {
  font-weight: 700;
  font-size: .92rem;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Plan pills ── */
.store-plan-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.store-plan-pill {
  padding: 5px 11px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text2);
  font-size: .71rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.store-plan-pill.active,
.store-plan-pill:hover {
  background: linear-gradient(135deg, #6d28d9, #a855f7);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 10px rgba(109,40,217,.35);
}

/* ── Price row ── */
.store-price-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.store-product-price {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -.3px;
  line-height: 1;
}
.store-stock-label {
  font-size: .72rem;
  font-weight: 600;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 4px;
}
.store-stock-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.store-stock-label.low { color: #f59e0b; }
.store-stock-label.out { color: #ef4444; }

/* ── Quantity control ── */
.store-qty-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.store-qty-label {
  font-size: .75rem;
  color: var(--text2);
  font-weight: 500;
}
.store-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg2);
  border-radius: 50px;
  overflow: hidden;
  border: 1.5px solid var(--border);
}
.store-qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.store-qty-btn:active {
  background: var(--accent);
  color: #fff;
}
.store-qty-val {
  min-width: 30px;
  text-align: center;
  font-weight: 800;
  font-size: .9rem;
  color: var(--text);
  user-select: none;
}

/* ── Buy button ── */
.store-buy-btn {
  width: 100%;
  padding: 11px 4px;
  border: none;
  border-radius: 13px;
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #a855f7 100%);
  color: #fff;
  font-weight: 800;
  font-size: .87rem;
  cursor: pointer;
  transition: all .2s cubic-bezier(.34,1.56,.64,1);
  letter-spacing: .2px;
  box-shadow: 0 4px 15px rgba(109,40,217,.35);
  margin-top: auto;
}
.store-buy-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(109,40,217,.5);
}
.store-buy-btn:active:not(:disabled) { transform: scale(.96); }
.store-buy-btn:disabled {
  background: var(--bg2);
  color: var(--text2);
  cursor: not-allowed;
  box-shadow: none;
}

/* ── Cart FAB button ── */
.store-cart-fab {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 150;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(99,82,255,.45);
  transition: transform .2s, box-shadow .2s;
}
.store-cart-fab:hover  { transform: scale(1.08); box-shadow: 0 8px 28px rgba(99,82,255,.55); }
.store-cart-fab:active { transform: scale(.94); }
.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ef4444;
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
  pointer-events: none;
}

/* ── Catalog header ── */
.store-catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.store-catalog-count {
  font-size: .8rem;
  color: var(--text2);
  font-weight: 500;
}

/* ── Badge pill (modal) ── */
.store-badge-pill {
  display: inline-block;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ── Badge colors ── */
.store-badge-perfil    { background: linear-gradient(135deg,#7c3aed,#a855f7); }
.store-badge-cuenta    { background: linear-gradient(135deg,#1d4ed8,#3b82f6); }
.store-badge-premium   { background: linear-gradient(135deg,#92400e,#d97706); }
.store-badge-oferta    { background: linear-gradient(135deg,#b91c1c,#ef4444); }
.store-badge-renovación { background: linear-gradient(135deg,#065f46,#10b981); }
.store-badge-default   { background: linear-gradient(135deg,#374151,#6b7280); }

/* ── Vendor store-badge (superadmin list) ── */
.store-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .3px;
}

/* ── Purchases list ── */
.store-purchase-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.store-purchase-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.store-purchase-name {
  font-weight: 700;
  font-size: .92rem;
  color: var(--text);
}
.store-purchase-price {
  font-weight: 800;
  font-size: .9rem;
  color: var(--accent);
}
.store-purchase-meta {
  font-size: .75rem;
  color: var(--text2);
}
.store-cred-toggle {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: all .2s;
}
.store-cred-toggle:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Delivery success bounce ── */
@keyframes deliveryBounce {
  0%   { transform: scale(0.55) translateY(24px); opacity: 0; }
  62%  { transform: scale(1.04) translateY(-4px); opacity: 1; }
  80%  { transform: scale(0.97) translateY(2px); }
  100% { transform: scale(1)    translateY(0);    opacity: 1; }
}
.modal-delivery-bounce {
  animation: deliveryBounce 0.52s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
}

/* ── Dark mode ── */
[data-theme="dark"] .store-product-card {
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
[data-theme="dark"] .store-product-card:hover {
  box-shadow: 0 12px 36px rgba(99,82,255,.3);
}
[data-theme="dark"] .store-hero {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #4c1d95 100%);
}
