/* NEXO — Main Stylesheet v1.0 */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
  --bg: #06080f;
  --bg2: #0d1020;
  --bg3: #131828;
  --surface: #161c2e;
  --surface2: #1e2640;
  --border: #1f2d47;
  --border2: #2a3a5c;
  --text: #eef2ff;
  --text2: #94a3b8;
  --text3: #64748b;
  --accent: #7c3aed;
  --accent2: #5b21b6;
  --accent-glow: rgba(124,58,237,0.35);
  --cyan: #06b6d4;
  --gold: #f59e0b;
  --green: #10b981;
  --red: #ef4444;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.7);
  --nav-h: 62px;
  --top-h: 56px;
  --transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Light Theme ────────────────────────────────────────────────────────────── */
[data-theme="light"] {
  --bg: #f8fafc;
  --bg2: #f1f5f9;
  --bg3: #e2e8f0;
  --surface: #ffffff;
  --surface2: #f1f5f9;
  --border: #e2e8f0;
  --border2: #cbd5e1;
  --text: #0f172a;
  --text2: #475569;
  --text3: #94a3b8;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
}
[data-theme="light"] .bottom-nav { background: rgba(255,255,255,0.95); }
[data-theme="light"] .topbar { background: rgba(248,250,252,0.95); }
[data-theme="light"] .product-card { background: #fff; }
[data-theme="light"] .plan-basic { background: #f1f5f9; color: #475569; }


/* ─── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: var(--font-body); outline: none; border: none; background: none; color: var(--text); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── App Shell ─────────────────────────────────────────────────────────────── */
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--bg);
}

/* ─── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }

/* ─── TopBar ────────────────────────────────────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  height: var(--top-h);
  display: flex; align-items: center; gap: 10px; padding: 0 16px;
  background: rgba(6,8,15,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.topbar-logo { display: flex; align-items: center; gap: 8px; }
.topbar-logo img { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; }
.topbar-logo .brand {
  font-family: var(--font-head);
  font-size: 1.4rem; font-weight: 900;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.topbar-search {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 8px 14px;
  transition: var(--transition);
}
.topbar-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.topbar-search input { flex: 1; font-size: 0.83rem; background: none; }
.topbar-search input::placeholder { color: var(--text3); }
.topbar-actions { display: flex; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: var(--transition); position: relative;
}
.icon-btn:hover { border-color: var(--accent); }
.badge {
  position: absolute; top: -3px; right: -3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); font-size: 0.55rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}

/* ─── BottomNav ─────────────────────────────────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-around;
  background: rgba(10,13,22,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 100; padding: 0 6px;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  flex: 1; padding: 8px 4px; color: var(--text3);
  transition: var(--transition); border-radius: 10px; position: relative;
  font-size: 0.55rem; font-weight: 600; letter-spacing: 0.03em;
}
.nav-item:hover, .nav-item.active { color: var(--accent); }
.nav-item.active { background: rgba(124,58,237,0.1); }
.nav-item .nav-icon { font-size: 1.25rem; line-height: 1; }
.nav-item .nav-badge {
  position: absolute; top: 4px; right: 8px;
  background: var(--accent); color: #fff; border-radius: 99px;
  font-size: 0.5rem; font-weight: 700; padding: 1px 4px;
}
.nav-pub {
  background: linear-gradient(135deg, var(--accent), #1d4ed8) !important;
  border-radius: 50% !important; width: 48px; height: 48px;
  flex: none !important; margin-top: -22px;
  color: #fff !important; box-shadow: 0 0 20px var(--accent-glow);
  font-size: 1.4rem !important;
}

/* ─── Page Wrapper ──────────────────────────────────────────────────────────── */
.page {
  padding-top: calc(var(--top-h) + 8px);
  padding-bottom: calc(var(--nav-h) + 8px);
  min-height: 100vh;
}
.page.no-top { padding-top: 0; }
.page.no-bot { padding-bottom: 0; }
.page-content { padding: 0 14px; }

/* ─── Auth Pages ────────────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px 20px;
  position: relative; overflow: hidden;
}
.auth-page::before {
  content: ''; position: absolute; width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.2), transparent 70%);
  top: -150px; right: -100px; pointer-events: none;
}
.auth-page::after {
  content: ''; position: absolute; width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.12), transparent 70%);
  bottom: -100px; left: -80px; pointer-events: none;
}
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 32px 28px;
  position: relative; z-index: 1;
  box-shadow: var(--shadow-lg);
}
.auth-logo {
  text-align: center; margin-bottom: 24px;
}
.auth-logo img { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 10px; object-fit: contain; }
.auth-logo h1 {
  font-family: var(--font-head); font-size: 2rem; font-weight: 900;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.auth-logo p { font-size: 0.82rem; color: var(--text2); margin-top: 4px; }
.auth-tabs {
  display: flex; background: var(--bg2); border-radius: 10px;
  padding: 4px; margin-bottom: 20px; gap: 4px;
}
.auth-tab {
  flex: 1; padding: 8px; text-align: center; border-radius: 7px;
  font-size: 0.82rem; font-weight: 600; color: var(--text3);
  transition: var(--transition); cursor: pointer;
}
.auth-tab.active { background: var(--accent); color: #fff; }

/* ─── Form Elements ─────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-label { font-size: 0.78rem; font-weight: 600; color: var(--text2); margin-bottom: 6px; display: block; }
.form-label span { color: var(--red); }
.form-input {
  width: 100%; padding: 11px 14px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.87rem; color: var(--text);
  transition: var(--transition);
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-input::placeholder { color: var(--text3); }
.form-input.error { border-color: var(--red); }
.form-error { font-size: 0.72rem; color: var(--red); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-hint { font-size: 0.72rem; color: var(--text3); margin-top: 4px; }
textarea.form-input { resize: vertical; min-height: 80px; }
select.form-input { cursor: pointer; }

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; transition: var(--transition);
  width: 100%;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5b21b6);
  color: #fff; box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text2); }
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: 7px 14px; font-size: 0.78rem; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 50%; width: auto; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ─── Cards ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-body { padding: 16px; }

/* ─── Product Grid ──────────────────────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 14px; }
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  transition: var(--transition);
}
.product-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: var(--shadow); }
.product-img {
  width: 100%; aspect-ratio: 1;
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative; overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  color: #fff; border-radius: 99px; font-size: 0.6rem; font-weight: 600;
  padding: 2px 8px;
}
.product-body { padding: 10px; }
.product-title { font-size: 0.8rem; font-weight: 600; margin-bottom: 4px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { font-family: var(--font-head); font-size: 0.9rem; font-weight: 700; color: var(--accent); }
.product-price .currency { font-size: 0.65rem; color: var(--text2); font-weight: 400; margin-left: 2px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.product-location { font-size: 0.65rem; color: var(--text3); }
.product-likes { font-size: 0.65rem; color: var(--text3); display: flex; align-items: center; gap: 3px; }

/* ─── Category Chips ────────────────────────────────────────────────────────── */
.categories {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px;
  scrollbar-width: none;
}
.categories::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0; padding: 6px 14px; border-radius: var(--radius-full);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.75rem; font-weight: 500; cursor: pointer;
  transition: var(--transition); white-space: nowrap;
}
.cat-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.cat-chip:hover:not(.active) { border-color: var(--accent); color: var(--accent); }

/* ─── Hero Banner ───────────────────────────────────────────────────────────── */
.hero {
  margin: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0a0618, #120833, #0e1118);
  border: 1px solid var(--border);
  padding: 24px 20px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.4), transparent 70%);
  top: -90px; right: -60px; pointer-events: none;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(124,58,237,0.2); border: 1px solid rgba(124,58,237,0.4);
  border-radius: 99px; padding: 3px 10px;
  font-size: 0.68rem; color: #a78bfa; margin-bottom: 10px;
}
.hero h2 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.hero p { font-size: 0.8rem; color: var(--text2); margin-bottom: 16px; }
.hero-stats { display: flex; gap: 20px; }
.hero-stat { }
.hero-stat .num { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.hero-stat .lbl { font-size: 0.65rem; color: var(--text3); }

/* ─── Section ───────────────────────────────────────────────────────────────── */
.section { margin-bottom: 20px; }
.section-head { display: flex; align-items: center; justify-content: space-between; padding: 0 14px; margin-bottom: 12px; }
.section-head h3 { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; }
.section-head a { font-size: 0.75rem; color: var(--accent); }

/* ─── Shop Cards ────────────────────────────────────────────────────────────── */
.shops-row { display: flex; gap: 12px; overflow-x: auto; padding: 0 14px 4px; scrollbar-width: none; }
.shops-row::-webkit-scrollbar { display: none; }
.shop-card {
  flex-shrink: 0; width: 140px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: var(--transition);
}
.shop-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.shop-cover { height: 60px; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.shop-info { padding: 8px; }
.shop-name { font-size: 0.75rem; font-weight: 600; margin-bottom: 2px; }
.shop-meta { font-size: 0.65rem; color: var(--text3); }
.shop-badge {
  display: inline-block; padding: 1px 7px;
  border-radius: 99px; font-size: 0.58rem; font-weight: 700;
  background: rgba(124,58,237,0.2); color: #a78bfa;
  margin-top: 4px;
}

/* ─── Messages ──────────────────────────────────────────────────────────────── */
.conv-list { padding: 0 14px; }
.conv-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--border); cursor: pointer;
  transition: var(--transition);
}
.conv-item:hover { opacity: 0.8; }
.conv-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface2); display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; flex-shrink: 0;
}
.conv-body { flex: 1; min-width: 0; }
.conv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3px; }
.conv-name { font-size: 0.85rem; font-weight: 600; }
.conv-time { font-size: 0.7rem; color: var(--text3); }
.conv-preview { font-size: 0.78rem; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-unread {
  min-width: 18px; height: 18px; border-radius: 99px;
  background: var(--accent); color: #fff; font-size: 0.6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ─── Chat ──────────────────────────────────────────────────────────────────── */
.chat-page {
  display: flex; flex-direction: column; height: 100vh;
  background: var(--bg);
}
.chat-header {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px 14px; display: flex;
  flex-direction: column; gap: 10px;
}
.msg-bubble {
  max-width: 75%; padding: 10px 14px; border-radius: 16px;
  font-size: 0.85rem; line-height: 1.45; position: relative;
}
.msg-bubble.them {
  background: var(--surface2); border-bottom-left-radius: 4px; align-self: flex-start;
}
.msg-bubble.me {
  background: var(--accent); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end;
}
.msg-time { font-size: 0.62rem; opacity: 0.6; margin-top: 4px; text-align: right; }
.chat-limit { text-align: center; font-size: 0.72rem; color: var(--text3); padding: 4px; }
.chat-input-bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--bg2); border-top: 1px solid var(--border);
}
.chat-input {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 10px 16px;
  font-size: 0.85rem; transition: var(--transition);
}
.chat-input:focus { border-color: var(--accent); }
.chat-send {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: var(--transition);
}
.chat-send:hover { background: var(--accent2); }

/* ─── Profile ───────────────────────────────────────────────────────────────── */
.profile-header {
  background: linear-gradient(135deg, #0a0618, #120833);
  border-bottom: 1px solid var(--border); padding: 24px 20px 20px;
  text-align: center;
}
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; border: 3px solid var(--border2);
}
.profile-name { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.profile-plan {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 12px; border-radius: 99px;
  font-size: 0.72rem; font-weight: 700; margin-bottom: 10px;
}
.plan-basic { background: rgba(100,116,139,0.2); color: #94a3b8; border: 1px solid #334155; }
.plan-premium { background: rgba(245,158,11,0.15); color: var(--gold); border: 1px solid rgba(245,158,11,0.3); }
.plan-nexo { background: rgba(124,58,237,0.2); color: #a78bfa; border: 1px solid rgba(124,58,237,0.4); }

/* ─── Plans ─────────────────────────────────────────────────────────────────── */
.plans-grid { display: flex; flex-direction: column; gap: 12px; padding: 0 14px; }
.plan-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; position: relative; overflow: hidden;
  transition: var(--transition);
}
.plan-card.featured { border-color: var(--accent); box-shadow: 0 0 24px var(--accent-glow); }
.plan-card .plan-name { font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.plan-card .plan-price { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.plan-card .plan-price span { font-size: 0.75rem; color: var(--text2); font-weight: 400; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.plan-features li { font-size: 0.8rem; display: flex; align-items: center; gap: 8px; }
.plan-features li::before { content: '✓'; color: var(--green); font-weight: 700; }

/* ─── Publish / Shop Setup ──────────────────────────────────────────────────── */
.publish-page { padding: 70px 14px 80px; }
.publish-header { margin-bottom: 20px; }
.publish-header h2 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.publish-header p { font-size: 0.8rem; color: var(--text2); }
.img-upload {
  width: 100%; aspect-ratio: 16/9;
  border: 2px dashed var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; cursor: pointer; transition: var(--transition); background: var(--surface);
  margin-bottom: 14px;
}
.img-upload:hover { border-color: var(--accent); }
.img-upload-icon { font-size: 2rem; }
.img-upload-text { font-size: 0.8rem; color: var(--text2); }

/* ─── Detail Page ───────────────────────────────────────────────────────────── */
.detail-img {
  width: 100%; aspect-ratio: 4/3;
  background: var(--surface2); display: flex; align-items: center;
  justify-content: center; font-size: 6rem; position: relative;
}
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-actions-row { display: flex; gap: 10px; padding: 14px; }
.detail-body { padding: 0 14px 14px; }
.detail-price { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.detail-title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.detail-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.detail-meta span { font-size: 0.75rem; color: var(--text2); display: flex; align-items: center; gap: 4px; }
.detail-desc { font-size: 0.85rem; color: var(--text2); line-height: 1.6; margin-bottom: 16px; }
.seller-row {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 14px; cursor: pointer;
}
.social-btns { display: flex; gap: 10px; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-facebook { background: #1877f2; color: #fff; }
.interact-row {
  display: flex; align-items: center; gap: 16px; padding: 10px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.interact-btn { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text2); cursor: pointer; transition: var(--transition); }
.interact-btn:hover { color: var(--accent); }
.interact-btn.liked { color: var(--red); }

/* ─── AI Assistant ──────────────────────────────────────────────────────────── */
.ai-fab {
  position: fixed; bottom: calc(var(--nav-h) + 14px); right: 16px;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #fff; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow); z-index: 90;
  transition: var(--transition); border: none; cursor: pointer;
}
.ai-fab:hover { transform: scale(1.1); }
.ai-panel {
  position: fixed; bottom: calc(var(--nav-h) + 70px); right: 14px;
  width: calc(100% - 28px); max-width: 360px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-lg); z-index: 89;
  display: flex; flex-direction: column;
  max-height: 420px; transform: scale(0.9) translateY(20px);
  opacity: 0; pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.ai-panel.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }
.ai-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(6,182,212,0.1));
  border-bottom: 1px solid var(--border);
}
.ai-avatar { font-size: 1.6rem; }
.ai-title { font-family: var(--font-head); font-size: 0.9rem; font-weight: 700; }
.ai-sub { font-size: 0.68rem; color: var(--green); }
.ai-messages { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ai-msg {
  max-width: 85%; padding: 9px 13px; border-radius: 14px;
  font-size: 0.82rem; line-height: 1.45;
}
.ai-msg.bot { background: var(--surface); align-self: flex-start; border-bottom-left-radius: 4px; }
.ai-msg.user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.ai-typing span {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--text3); margin: 0 2px; animation: aiType 1.2s infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiType { 0%,80%,100%{transform:scale(0.6);opacity:0.4} 40%{transform:scale(1);opacity:1} }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; }
.ai-chip {
  padding: 4px 10px; background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3);
  border-radius: 99px; font-size: 0.7rem; color: #a78bfa; cursor: pointer;
  transition: var(--transition);
}
.ai-chip:hover { background: rgba(124,58,237,0.3); }
.ai-input-bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-top: 1px solid var(--border);
}
.ai-input {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: 99px; padding: 8px 14px; font-size: 0.82rem;
  transition: var(--transition);
}
.ai-input:focus { border-color: var(--accent); }
.ai-send {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
}

/* ─── Toast ─────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: calc(var(--nav-h) + 16px); left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 20px;
  font-size: 0.82rem; box-shadow: var(--shadow); z-index: 999;
  opacity: 0; pointer-events: none; white-space: nowrap;
  transition: all 0.3s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { border-color: var(--red); color: var(--red); }
.toast.success { border-color: var(--green); color: var(--green); }

/* ─── Loading ───────────────────────────────────────────────────────────────── */
.spinner {
  width: 32px; height: 32px; border: 3px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-screen {
  position: fixed; inset: 0; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 999; gap: 16px;
}

/* ─── Misc ──────────────────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text2); }
.text-xs { font-size: 0.72rem; }
.text-sm { font-size: 0.82rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mb-2 { margin-bottom: 8px; }
.font-head { font-family: var(--font-head); }
.verified-badge { color: var(--cyan); font-size: 0.75rem; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--text2); }
.empty-state .icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: 0.85rem; }
.limit-bar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 12px;
}
.limit-bar-track { height: 4px; background: var(--bg); border-radius: 99px; margin-top: 6px; overflow: hidden; }
.limit-bar-fill { height: 100%; background: var(--accent); border-radius: 99px; transition: width 0.4s; }
.store-lock {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px; padding: 30px; text-align: center;
  background: var(--surface); border-radius: var(--radius);
  border: 1px dashed var(--border);
}

/* ─── Animations ────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.35s ease forwards; }

@keyframes pulse-glow {
  0%,100%{ box-shadow: 0 0 10px var(--accent-glow); }
  50%{ box-shadow: 0 0 24px rgba(124,58,237,0.6); }
}

/* ─── Skeleton Loading ──────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ─── Payment Modal ──────────────────────────────────────────────────────────── */
.payment-method-btn {
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.payment-method-btn:hover, .payment-method-btn:active {
  border-color: var(--accent) !important;
  background: var(--surface2) !important;
  transform: translateY(-1px);
}

/* ─── Plan Features ──────────────────────────────────────────────────────────── */
.plan-features li {
  font-size: 0.78rem;
  color: var(--text2);
  padding: 3px 0;
  list-style: none;
}

/* ─── Hero Stats améliorés ──────────────────────────────────────────────────── */
.hero-stat .num {
  font-size: 1.3rem;
  font-weight: 900;
  font-family: var(--font-head);
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
