/* ============================================================
   SwapAll — feuille de styles
   Design system repris fidèlement des maquettes Bubble de l'utilisateur
   (noir #0A0A0A + or #C9A84C, Space Grotesk + Playfair Display).
   ============================================================ */

:root {
  --black: #0A0A0A;
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --gold-dim: #8A6A28;
  --off-white: #F0EDE6;
  --mid: #1A1A1A;
  --subtle: #2A2A2A;
  --green: #4CAF50;
  --orange: #FF9500;
  --blue: #4A9EFF;
  --red: #E05A4E;
  --glass: rgba(255,255,255,0.035);
  --glass-strong: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.08);
  --gold-glow: rgba(201,168,76,0.22);
  --ease: cubic-bezier(.22,1,.36,1);
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  background: #07070A;
  color: var(--off-white);
  font-family: 'Space Grotesk', sans-serif;
  min-height: 100%;
  color-scheme: dark;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(820px 520px at 12% -8%, rgba(201,168,76,0.09), transparent 60%),
    radial-gradient(700px 480px at 108% 15%, rgba(74,158,255,0.05), transparent 60%),
    #07070A;
  background-attachment: fixed;
}

#app-root {
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  background: transparent;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 80px rgba(0,0,0,0.6);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.screens { position: relative; flex: 1; display: flex; flex-direction: column; }
.screen { display: none; flex: 1; flex-direction: column; min-height: 100vh; }
.screen.active { display: flex; animation: fadein .22s ease both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .screen.active { animation: none; } * { transition-duration: .001ms !important; } }

.scroll-area { flex: 1; overflow-y: auto; scrollbar-width: none; }
.scroll-area::-webkit-scrollbar { display: none; }

/* ---------- HEADER ---------- */
.app-header { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--glass-border); gap: 10px; position: sticky; top: 0; z-index: 6; background: rgba(7,7,10,0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.app-logo { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 900; color: var(--gold); letter-spacing: 3px; white-space: nowrap; }
.app-logo span { color: var(--off-white); }
.header-title { font-size: 12.5px; font-weight: 600; color: #aaa; letter-spacing: 1px; text-transform: uppercase; flex: 1; }
.header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.back-btn, .action-circle-sm { width: 34px; height: 34px; background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(8px); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #ccc; cursor: pointer; flex-shrink: 0; transition: transform .15s var(--ease), background .2s; }
.back-btn:active, .action-circle-sm:active { transform: scale(.92); background: var(--glass-strong); }
.cancel-btn, .mark-all { font-size: 11px; color: var(--gold); background: none; border: none; cursor: pointer; white-space: nowrap; }
.btn-reset { background: none; border: none; color: inherit; font-family: inherit; cursor: pointer; }

/* ---------- WELCOME / LANDING (full-bleed marketing page, breaks out of the 460px app shell) ---------- */
#scr-welcome.screen.active {
  position: fixed; inset: 0; width: 100vw; max-width: none; z-index: 200;
  overflow-y: auto; background: var(--black); display: block;
}
.lp { color: var(--off-white); }
.lp hr { border: none; border-top: 1px solid #1a1a1a; }
.lp-nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #1f1f1f; position: sticky; top: 0; background: rgba(10,10,10,0.95); backdrop-filter: blur(12px); z-index: 10; }
.lp-nav .auth-logo { margin: 0; font-size: 19px; letter-spacing: 3px; }
.lp-nav-link { background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.3); color: var(--gold); padding: 8px 16px; font-size: 12px; letter-spacing: .5px; border-radius: 20px; white-space: nowrap; font-family: inherit; cursor: pointer; }

.lp-hero { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 56px 24px; position: relative; overflow: hidden; }
.lp-hero::before { content: ''; position: absolute; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none; }
.lp-eyebrow { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; font-weight: 500; }
.lp-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(38px, 8vw, 92px); font-weight: 900; line-height: .97; letter-spacing: -1px; margin-bottom: 22px; }
.lp-hero h1 .gold { color: var(--gold); }
.lp-hero-sub { font-size: 15.5px; color: #888; max-width: 480px; line-height: 1.7; margin-bottom: 32px; font-weight: 300; }
.lp-hero-sub strong { color: var(--off-white); font-weight: 500; }
.lp-cta-row { display: flex; gap: 12px; flex-wrap: nowrap; justify-content: center; margin-bottom: 40px; }
.lp-cta-row .btn-primary, .lp-cta-row .btn-secondary { width: auto; padding: 15px 28px; margin: 0; }

.lp-swap-demo { display: flex; align-items: center; gap: 18px; max-width: 480px; justify-content: center; }
.lp-swap-item { background: var(--mid); border: 1px solid #2a2a2a; padding: 16px 22px; text-align: center; border-radius: 10px; flex: 1; }
.lp-swap-item .emoji { font-size: 26px; margin-bottom: 8px; }
.lp-swap-item .label { font-size: 10.5px; color: #555; letter-spacing: 1px; text-transform: uppercase; }
.lp-swap-item .value { font-size: 12px; color: var(--gold); font-weight: 600; margin-top: 4px; }
.lp-swap-arrow { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lp-swap-arrow .icon { font-size: 20px; color: var(--gold); animation: lp-pulse 2s infinite; }
.lp-ai-badge { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: #555; border: 1px solid #333; padding: 3px 7px; border-radius: 6px; }
@keyframes lp-pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.lp-section { padding: 72px 24px; max-width: 1000px; margin: 0 auto; }
.lp-section-eyebrow { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.lp-section-title { font-family: 'Playfair Display', serif; font-size: clamp(26px, 4vw, 42px); font-weight: 700; margin-bottom: 44px; max-width: 580px; line-height: 1.18; }
.lp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2px; }
.lp-step { background: var(--mid); padding: 30px 24px; border-top: 2px solid transparent; }
.lp-step-num { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 900; color: var(--gold-dim); margin-bottom: 12px; line-height: 1; opacity: .7; }
.lp-step h3 { font-size: 14.5px; font-weight: 600; margin-bottom: 8px; }
.lp-step p { font-size: 12.5px; color: #666; line-height: 1.6; }

.lp-categories { background: var(--mid); padding: 60px 24px; }
.lp-cat-grid { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; max-width: 820px; margin: 0 auto; }
.lp-cat-tag { background: #222; border: 1px solid #333; padding: 9px 18px; font-size: 12.5px; letter-spacing: .5px; color: #888; border-radius: 20px; }

.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2px; margin-bottom: 44px; }
.lp-plans-4 { grid-template-columns: repeat(auto-fit, minmax(208px, 1fr)); }
.lp-plan { background: var(--mid); padding: 32px 26px; border-top: 2px solid #2a2a2a; position: relative; }
.lp-plan.active-now { border-top-color: var(--green); }
.lp-plan-badge { position: absolute; top: -1px; right: 20px; background: var(--subtle); color: #999; font-size: 9.5px; font-weight: 700; letter-spacing: 1.2px; padding: 5px 11px; text-transform: uppercase; border-radius: 0 0 6px 6px; }
.lp-plan-badge.live { background: var(--green); color: #052b06; }
.lp-plan-name { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #666; margin-bottom: 14px; }
.lp-plan-price { font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 900; color: var(--off-white); line-height: 1; }
.lp-plan-price span { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 400; color: #555; }
.lp-plan hr { border: none; border-top: 1px solid #2a2a2a; margin: 20px 0; }
.lp-plan-feature { font-size: 12.5px; color: #888; padding: 5px 0; display: flex; gap: 9px; align-items: flex-start; }
.lp-plan-feature .check { color: var(--gold); font-size: 11px; margin-top: 2px; }
.lp-plan.dim .lp-plan-feature { color: #555; }
.lp-roadmap-note { font-size: 12.5px; color: #666; line-height: 1.7; max-width: 640px; }

.lp-score-section { background: var(--mid); padding: 60px 24px; }
.lp-score-content { max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.lp-score-content h2 { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; margin-bottom: 16px; }
.lp-score-content p { font-size: 13.5px; color: #888; line-height: 1.8; margin-bottom: 14px; }
.lp-score-visual { background: var(--black); border: 1px solid #2a2a2a; border-radius: 16px; padding: 28px; }
.lp-score-display { text-align: center; margin-bottom: 20px; }
.lp-score-number { font-family: 'Playfair Display', serif; font-size: 60px; font-weight: 900; color: var(--gold); line-height: 1; }
.lp-score-label { font-size: 10.5px; color: #666; letter-spacing: 2px; text-transform: uppercase; margin-top: 8px; }
.lp-factor-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #1a1a1a; font-size: 12.5px; }
.lp-factor-row:last-child { border-bottom: none; }
.lp-factor-row .name { color: #aaa; }
.lp-factor-row .value { color: var(--gold); font-weight: 600; }

.lp-faq { max-width: 760px; margin: 0 auto; padding: 60px 24px; }
.lp-faq-item { border-bottom: 1px solid #1a1a1a; padding: 18px 0; }
.lp-faq-q { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.lp-faq-a { font-size: 13px; color: #888; line-height: 1.7; }

.lp-cta-final { text-align: center; padding: 72px 24px; background: linear-gradient(180deg, transparent, rgba(201,168,76,0.05)); }
.lp-cta-final h2 { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 700; margin-bottom: 14px; }
.lp-cta-final p { font-size: 14px; color: #888; margin-bottom: 26px; }

.lp-footer { border-top: 1px solid #1a1a1a; padding: 32px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; max-width: 1000px; margin: 0 auto; }
.lp-footer p { font-size: 11.5px; color: #333; letter-spacing: .5px; }

@media (max-width: 760px) {
  .lp-score-content { grid-template-columns: 1fr; }
  .lp-cta-row { flex-direction: column; width: 100%; max-width: 320px; }
  .lp-cta-row .btn-primary, .lp-cta-row .btn-secondary { width: 100%; }
}

.welcome-back { position: absolute; top: 16px; left: 16px; color: #555; font-size: 12px; z-index: 2; }

/* ---------- AUTH (connexion / inscription) ---------- */
.auth-screen { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 32px 26px; position: relative; overflow: hidden; }
.auth-screen::before { content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(201,168,76,0.13) 0%, transparent 70%); top: -12%; left: 50%; transform: translateX(-50%); pointer-events: none; z-index: 0; }
.auth-screen > *:not(.welcome-back) { position: relative; z-index: 1; }
.auth-logo { font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 900; color: var(--gold); letter-spacing: 4px; text-align: center; margin-bottom: 4px; text-shadow: 0 0 40px rgba(201,168,76,0.3); }
.auth-logo span { color: var(--off-white); }
.auth-tagline { font-size: 11px; color: #555; text-align: center; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 36px; }
.auth-error { background: rgba(224,90,78,0.1); border: 1px solid rgba(224,90,78,0.3); backdrop-filter: blur(8px); color: var(--red); font-size: 11.5px; padding: 11px 13px; border-radius: var(--r-sm); margin-bottom: 14px; display: none; }
.auth-error.show { display: block; }
.auth-switch { text-align: center; font-size: 12px; color: #555; margin-top: 18px; }
.auth-switch button { color: var(--gold); background: none; border: none; cursor: pointer; font-weight: 600; font-family: inherit; }
.auth-loading { text-align: center; font-size: 11px; color: #555; margin-top: 10px; display: none; }
.auth-loading.show { display: block; }

/* ---------- FIELDS / BUTTONS ---------- */
.field-label { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: #555; margin-bottom: 7px; display: block; }
.field-block { margin-bottom: 14px; }
.field-input, .field-select, .field-textarea {
  width: 100%; background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--r-sm);
  padding: 13px 14px; font-size: 13px; color: var(--off-white); font-family: 'Space Grotesk', sans-serif;
  backdrop-filter: blur(8px); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field-input::placeholder, .field-textarea::placeholder { color: #4a4a4a; }
.field-input:focus, .field-select:focus, .field-textarea:focus {
  outline: none; border-color: var(--gold-dim); background: rgba(201,168,76,0.05); box-shadow: 0 0 0 3px var(--gold-glow);
}
/* Le select natif a son propre panneau déroulant que le CSS ne peut pas
   "glass-ifier" ; on force au moins un thème sombre lisible dessus. */
.field-select { color-scheme: dark; }
.field-select option { background-color: #1A1A1A; color: #F0EDE6; }

/* Chrome colore les champs auto-remplis en jaune clair avec du texte noir,
   illisible sur notre thème sombre. On neutralise ce style forcé. */
.field-input:-webkit-autofill,
.field-input:-webkit-autofill:hover,
.field-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--off-white);
  -webkit-box-shadow: 0 0 0 1000px rgba(26,26,26,0.95) inset;
  box-shadow: 0 0 0 1000px rgba(26,26,26,0.95) inset;
  transition: background-color 9999s ease-in-out 0s, color 9999s ease-in-out 0s;
  caret-color: var(--off-white);
}
.field-textarea { resize: vertical; min-height: 80px; }
.field-row { display: flex; gap: 10px; }
.field-row .field-block { flex: 1; }
.btn-primary, .btn-secondary, .btn-danger {
  width: 100%; font-family: 'Space Grotesk', sans-serif; border: none; cursor: pointer; border-radius: var(--r-sm); text-align: center;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), opacity .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--black); padding: 14px; font-size: 13px;
  font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px;
  box-shadow: 0 10px 28px -10px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:active { transform: scale(.97); box-shadow: 0 4px 14px -8px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-secondary { background: var(--glass); color: #bbb; padding: 13px; font-size: 12px; font-weight: 600; border: 1px solid var(--glass-border); backdrop-filter: blur(8px); }
.btn-secondary:active { transform: scale(.97); background: var(--glass-strong); }
.btn-danger { background: rgba(224,90,78,0.1); color: var(--red); padding: 12px; font-size: 12px; font-weight: 700; border: 1px solid rgba(224,90,78,0.3); }
.btn-danger:active { transform: scale(.97); }

/* ---------- SEARCH / FEED CARDS (communs) ---------- */
.search-section { padding: 12px 16px; border-bottom: 1px solid #111; }
.search-wrap { position: relative; margin-bottom: 10px; }
.search-bar { width: 100%; background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(8px); border-radius: var(--r-md); padding: 12px 34px 12px 38px; font-size: 13px; color: var(--off-white); font-family: 'Space Grotesk', sans-serif; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.search-bar:focus { outline: none; border-color: var(--gold-dim); box-shadow: 0 0 0 3px var(--gold-glow); }
.search-bar::placeholder { color: #555; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 15px; pointer-events: none; }
.filters-advanced { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.filters-advanced::-webkit-scrollbar { display: none; }
.filter-chip { flex-shrink: 0; background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(8px); padding: 6px 13px; border-radius: 20px; font-size: 10px; color: #777; white-space: nowrap; display: flex; align-items: center; gap: 4px; cursor: pointer; font-family: inherit; transition: all .2s var(--ease); }
.filter-chip.active { background: rgba(201,168,76,0.15); border-color: var(--gold-dim); color: var(--gold); box-shadow: 0 0 16px -6px var(--gold-glow); }
.filter-chip:active { transform: scale(.95); }

.section-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #444; margin-bottom: 10px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.section-action, .see-all { font-size: 10px; color: var(--gold); background: none; border: none; cursor: pointer; letter-spacing: .5px; font-family: inherit; }

.empty-state { text-align: center; padding: 40px 20px; color: #444; font-size: 12px; }
.empty-state .emoji { font-size: 36px; display: block; margin-bottom: 10px; }

/* FEED */
.feed-hero { padding: 16px 16px 4px; }
.feed-greeting { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 700; margin-bottom: 2px; }
.feed-greeting-sub { font-size: 11px; color: #555; margin-bottom: 14px; }
.feed-stats-row { display: flex; gap: 8px; margin-bottom: 4px; }
.feed-stat { flex: 1; background: var(--glass); backdrop-filter: blur(8px); border-radius: var(--r-sm); padding: 12px; text-align: center; border: 1px solid var(--glass-border); }
.feed-stat-num { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 900; color: var(--gold); }
.feed-stat-label { font-size: 8.5px; color: #444; text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }
.feed-section { padding: 14px 16px; border-bottom: 1px solid var(--glass-border); }
.feed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feed-card { background: var(--glass); backdrop-filter: blur(8px); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--glass-border); cursor: pointer; text-align: left; color: inherit; font-family: inherit; width: 100%; box-shadow: 0 10px 24px -14px rgba(0,0,0,0.6); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.feed-card:active { transform: scale(.97); }
.feed-card-img { height: 84px; background: linear-gradient(135deg,#1a1a1a,#252525); display: flex; align-items: center; justify-content: center; font-size: 34px; position: relative; }
.feed-card-score { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,0.75); backdrop-filter: blur(6px); border: 1px solid var(--gold-dim); padding: 2px 7px; border-radius: 12px; font-size: 10px; color: var(--gold); font-weight: 700; }
.feed-card-info { padding: 9px; }
.feed-card-name { font-size: 11.5px; font-weight: 600; margin-bottom: 2px; }
.feed-card-meta { font-size: 9.5px; color: #555; }

.results-list, .exchange-list { padding: 10px 16px 16px; display: flex; flex-direction: column; gap: 9px; }
.result-card { background: var(--glass); backdrop-filter: blur(8px); border-radius: var(--r-md); padding: 11px 13px; display: flex; gap: 10px; align-items: center; border: 1px solid var(--glass-border); cursor: pointer; width: 100%; text-align: left; color: inherit; font-family: inherit; box-shadow: 0 10px 24px -16px rgba(0,0,0,0.6); transition: transform .18s var(--ease); }
.result-card:active { transform: scale(.98); }
.result-img { width: 52px; height: 52px; background: var(--subtle); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.result-info { flex: 1; min-width: 0; }
.result-name { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.result-meta { font-size: 10px; color: #555; margin-bottom: 5px; }
.result-right { text-align: right; flex-shrink: 0; }
.result-score { font-size: 14px; font-weight: 700; color: var(--gold); margin-bottom: 4px; }

/* ---------- DETAIL ---------- */
.header-relative { position: relative; }
.app-header.floating { position: absolute; top: 0; left: 0; right: 0; z-index: 10; background: none; border-bottom: none; }
.photo-gallery { position: relative; height: 230px; background: linear-gradient(135deg, #1a1a1a, #252525); display: flex; align-items: center; justify-content: center; font-size: 92px; }
.score-overlay { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.75); border: 1px solid var(--gold-dim); padding: 6px 12px; border-radius: 20px; font-size: 13px; color: var(--gold); font-weight: 700; backdrop-filter: blur(8px); box-shadow: 0 0 20px -4px var(--gold-glow); }

.main-info { padding: 16px; border-bottom: 1px solid #111; }
.item-title { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.item-meta-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.meta-tag { font-size: 10px; background: var(--subtle); padding: 3px 10px; border-radius: 4px; color: #666; }
.meta-tag.condition { background: rgba(76,175,80,0.1); color: var(--green); border: 1px solid rgba(76,175,80,0.2); }

.score-section { background: var(--glass); backdrop-filter: blur(8px); border: 1px solid var(--glass-border); border-radius: var(--r-md); padding: 14px; margin-bottom: 4px; }
.score-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.score-title { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: #444; }
.score-value { font-size: 21px; font-weight: 900; color: var(--gold); font-family: 'Playfair Display', serif; }
.score-bar { height: 6px; background: #222; border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.score-bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold-dim), var(--gold)); border-radius: 3px; }
.score-details { display: flex; gap: 0; }
.score-detail { flex: 1; text-align: center; border-right: 1px solid #222; padding: 0 4px; }
.score-detail:last-child { border-right: none; }
.score-detail-val { font-size: 12px; font-weight: 700; color: var(--off-white); }
.score-detail-label { font-size: 8px; color: #444; text-transform: uppercase; letter-spacing: 0.5px; }

.description-section, .seller-section { padding: 14px 16px; border-bottom: 1px solid #111; }
.description-text { font-size: 12.5px; color: #777; line-height: 1.7; white-space: pre-wrap; }
.seller-card { background: var(--glass); backdrop-filter: blur(8px); border-radius: var(--r-md); padding: 13px; display: flex; align-items: center; gap: 12px; cursor: pointer; border: 1px solid var(--glass-border); width: 100%; text-align: left; color: inherit; font-family: inherit; transition: transform .15s var(--ease); }
.seller-card:active { transform: scale(.98); }
.seller-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-light), var(--gold)); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--black); font-weight: 900; font-family: 'Playfair Display', serif; flex-shrink: 0; box-shadow: 0 4px 16px -4px var(--gold-glow); }
.seller-info { flex: 1; }
.seller-name { font-size: 14px; font-weight: 700; margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
.seller-stats { font-size: 11px; color: #555; }

.cta-bottom { padding: 14px 16px; display: flex; gap: 10px; }
.btn-message, .btn-swap { border: none; cursor: pointer; font-family: 'Space Grotesk', sans-serif; transition: transform .15s var(--ease), box-shadow .2s var(--ease); }
.btn-message { flex: 1; background: var(--glass); backdrop-filter: blur(8px); border: 1px solid var(--glass-border); border-radius: var(--r-sm); padding: 14px; text-align: center; font-size: 13px; font-weight: 600; color: var(--off-white); display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn-message:active, .btn-swap:active { transform: scale(.97); }
.btn-swap { flex: 2; background: linear-gradient(135deg, var(--gold-light), var(--gold)); border-radius: var(--r-sm); padding: 14px; text-align: center; font-size: 13px; font-weight: 800; color: var(--black); letter-spacing: 1px; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 10px 28px -10px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-swap:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* ---------- DEPOSIT (dépôt d'objet) ---------- */
.deposit-content { padding: 16px; }
.gauge-block { text-align: center; padding: 8px 0 18px; }
.gauge { position: relative; width: 128px; height: 128px; margin: 0 auto 14px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-num .n { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 34px; color: var(--gold); line-height: 1; }
.gauge-num .l { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: #444; margin-top: 4px; }
.gauge-breakdown { display: flex; flex-direction: column; gap: 8px; text-align: left; margin-bottom: 16px; }
.gauge-row { display: grid; grid-template-columns: 96px 1fr 30px; align-items: center; gap: 8px; }
.gauge-row .lbl { font-size: 11px; color: #777; }
.gauge-row .val { font-size: 11px; color: var(--off-white); text-align: right; font-weight: 600; }

/* ---------- EXCHANGES LIST ---------- */
.exchange-tabs { display: flex; border-bottom: 1px solid #111; }
.exchange-tab { flex: 1; padding: 11px 0; text-align: center; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #444; border-bottom: 2px solid transparent; background: none; border-top: none; border-left: none; border-right: none; cursor: pointer; font-family: inherit; }
.exchange-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.exchange-row { background: var(--glass); backdrop-filter: blur(8px); border-radius: var(--r-md); padding: 13px; display: flex; gap: 10px; align-items: center; border: 1px solid var(--glass-border); cursor: pointer; width: 100%; text-align: left; color: inherit; font-family: inherit; box-shadow: 0 10px 24px -16px rgba(0,0,0,0.6); transition: transform .15s var(--ease); }
.exchange-row:active { transform: scale(.98); }
.exchange-emojis { font-size: 20px; display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.exchange-emojis .arrow { font-size: 11px; color: var(--gold); }
.exchange-row-info { flex: 1; min-width: 0; }
.exchange-row-title { font-size: 12.5px; font-weight: 600; margin-bottom: 2px; }
.exchange-row-meta { font-size: 10.5px; color: #555; }
.exchange-status { font-size: 9px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.exchange-status.proposed { background: rgba(74,158,255,0.15); color: var(--blue); }
.exchange-status.accepted { background: rgba(76,175,80,0.15); color: var(--green); }
.exchange-status.declined { background: rgba(224,90,78,0.15); color: var(--red); }
.exchange-status.completed { background: rgba(201,168,76,0.15); color: var(--gold); }

.exchange-actions { display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid #111; }
.exchange-actions button { flex: 1; }

/* ---------- CHAT ---------- */
.chat-log { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; overflow-y: auto; }
.chat-bubble { max-width: 74%; padding: 10px 14px; border-radius: 16px; font-size: 12.5px; line-height: 1.45; box-shadow: 0 6px 16px -10px rgba(0,0,0,0.5); }
.chat-bubble.them { align-self: flex-start; background: var(--glass-strong); backdrop-filter: blur(8px); border: 1px solid var(--glass-border); border-bottom-left-radius: 4px; color: #ddd; }
.chat-bubble.you { align-self: flex-end; background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--black); border-bottom-right-radius: 4px; font-weight: 500; box-shadow: 0 8px 20px -10px var(--gold-glow); }
.chat-bubble.sys { align-self: center; background: none; box-shadow: none; color: #444; font-size: 9.5px; text-transform: uppercase; letter-spacing: .8px; }
.chat-input-row { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--glass-border); background: rgba(7,7,10,0.6); backdrop-filter: blur(16px); }
.chat-input { flex: 1; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 20px; padding: 10px 15px; color: var(--off-white); font-family: 'Space Grotesk', sans-serif; font-size: 12.5px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.chat-input:focus { outline: none; border-color: var(--gold-dim); box-shadow: 0 0 0 3px var(--gold-glow); }
.chat-send { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--black); border: none; font-size: 14px; flex-shrink: 0; cursor: pointer; box-shadow: 0 6px 18px -6px var(--gold-glow); transition: transform .15s var(--ease); }
.chat-send:active { transform: scale(.9); }

/* ---------- PROFILE ---------- */
.profile-hero { padding: 22px 18px 18px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--glass-border); }
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-light), var(--gold)); display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--black); font-weight: 900; font-family: 'Playfair Display', serif; flex-shrink: 0; position: relative; box-shadow: 0 8px 24px -6px var(--gold-glow); }
.profile-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.profile-location { font-size: 11px; color: #555; }

.stats-row { display: flex; border-bottom: 1px solid var(--glass-border); }
.stat { flex: 1; padding: 15px 0; text-align: center; border-right: 1px solid var(--glass-border); }
.stat:last-child { border-right: none; }
.stat-num { font-size: 20px; font-weight: 700; color: var(--off-white); font-family: 'Playfair Display', serif; }
.stat-num.gold { color: var(--gold); }
.stat-label { font-size: 9px; color: #444; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

.plan-banner { margin: 14px 16px; padding: 14px 16px; background: var(--glass); backdrop-filter: blur(8px); border: 1px solid var(--glass-border); border-radius: var(--r-md); }
.plan-banner-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.plan-banner-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; color: var(--gold); }
.plan-banner-soon { font-size: 9.5px; color: #666; text-transform: uppercase; letter-spacing: 0.6px; }
.plan-banner-row { display: flex; justify-content: space-between; font-size: 12px; color: #999; padding: 3px 0; }
.plan-banner-row span:last-child { color: var(--off-white); font-weight: 600; }

.objects-section { padding: 14px 16px; border-bottom: 1px solid #111; }
.objects-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.objects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.obj-card { background: var(--glass); backdrop-filter: blur(8px); border-radius: var(--r-sm); padding: 11px 9px; text-align: center; border: 1px solid var(--glass-border); cursor: pointer; transition: transform .15s var(--ease); }
.obj-card:active { transform: scale(.96); }
.obj-emoji { font-size: 22px; margin-bottom: 4px; }
.obj-name { font-size: 10px; color: #aaa; margin-bottom: 3px; }
.obj-score { font-size: 11px; color: var(--gold); font-weight: 700; }
.obj-status { font-size: 9px; color: var(--green); margin-top: 2px; }

/* ---------- NAV ---------- */
.app-nav { display: flex; border-top: 1px solid var(--glass-border); padding: 9px 0 14px; background: rgba(7,7,10,0.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); position: sticky; bottom: 0; z-index: 5; }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 8px; color: #3a3a3a; letter-spacing: 0.5px; text-transform: uppercase; background: none; border: none; cursor: pointer; font-family: inherit; transition: color .2s var(--ease), transform .15s var(--ease); }
.nav-item.active { color: var(--gold); }
.nav-item:active { transform: scale(.9); }
.nav-icon { font-size: 17px; }
.nav-deposit { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: none; cursor: pointer; }
.deposit-circle { width: 40px; height: 40px; background: linear-gradient(135deg, var(--gold-light), var(--gold)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--black); font-weight: 700; margin-top: -18px; border: 3px solid #07070A; box-shadow: 0 8px 22px -6px var(--gold-glow); transition: transform .15s var(--ease); }
.nav-deposit:active .deposit-circle { transform: scale(.92); }
.deposit-label { font-size: 8px; color: var(--gold); letter-spacing: 0.5px; text-transform: uppercase; }

/* ---------- TOAST ---------- */
#toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px); background: rgba(26,26,26,0.85); backdrop-filter: blur(16px); border: 1px solid var(--gold-dim); color: var(--off-white); padding: 11px 19px; border-radius: 20px; font-size: 12px; opacity: 0; pointer-events: none; transition: all .25s var(--ease); z-index: 100; max-width: 90%; text-align: center; box-shadow: 0 12px 32px -12px rgba(0,0,0,0.6); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.loading-spinner { width: 22px; height: 22px; border: 2px solid #333; border-top-color: var(--gold); border-radius: 50%; animation: spin .7s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- PHOTOS (vraies images) ---------- */
.feed-card-img img, .result-img img, .photo-gallery img, .obj-emoji img {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
}
.result-img, .photo-gallery { position: relative; overflow: hidden; }
.obj-card { position: relative; }
.obj-emoji { position: relative; width: 100%; height: 44px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 6px; margin-bottom: 4px; }
.obj-emoji img { border-radius: 6px; }

.deposit-photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 4px; }
.deposit-photo { position: relative; aspect-ratio: 1; background: var(--glass); backdrop-filter: blur(8px); border: 1px dashed var(--glass-border); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 20px; color: #333; cursor: pointer; overflow: hidden; transition: transform .15s var(--ease); }
.deposit-photo:active { transform: scale(.95); }
.deposit-photo span { pointer-events: none; }
.deposit-photo.filled { border-style: solid; border-color: var(--gold-dim); }
.deposit-photo img { width: 100%; height: 100%; object-fit: cover; }
.deposit-photo-remove { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,0.75); color: #fff; border: none; font-size: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }

.gallery-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 2; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.dot.active { background: var(--gold); width: 14px; border-radius: 3px; }

/* ---------- NOTIF BADGE (point rouge sur la cloche) ---------- */
.notif-badge-dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 1.5px solid var(--black); }

/* ---------- NOTIFICATIONS ---------- */
.tabs { display: flex; border-bottom: 1px solid #111; }
.tab { flex: 1; padding: 11px 0; text-align: center; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #444; border-bottom: 2px solid transparent; background: none; border-top: none; border-left: none; border-right: none; cursor: pointer; font-family: inherit; }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-badge { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; background: var(--gold); color: var(--black); border-radius: 50%; font-size: 8px; font-weight: 700; margin-left: 4px; }
.group-label { padding: 10px 16px 6px; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: #333; }
.notif-item { padding: 13px 16px; display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--glass-border); position: relative; width: 100%; background: none; border-left: none; border-right: none; border-top: none; text-align: left; color: inherit; font-family: inherit; cursor: pointer; transition: background .2s var(--ease); }
.notif-item.unread { background: rgba(201,168,76,0.04); }
.notif-item:active { background: var(--glass-strong); }
.unread-indicator { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }
.notif-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.notif-icon.proposal { background: rgba(201,168,76,0.15); }
.notif-icon.message { background: rgba(74,158,255,0.15); }
.notif-icon.exchange { background: rgba(76,175,80,0.15); }
.notif-icon.rating { background: rgba(255,149,0,0.15); }
.notif-content { flex: 1; }
.notif-text { font-size: 12px; line-height: 1.5; margin-bottom: 4px; color: var(--off-white); }
.notif-text.read { color: #666; }
.notif-text strong { color: var(--gold); font-weight: 600; }
.notif-time { font-size: 10px; color: #444; }

/* ---------- RATING / REVIEWS ---------- */
.rate-prompt { background: rgba(201,168,76,0.06); backdrop-filter: blur(8px); border: 1px solid rgba(201,168,76,0.2); border-radius: var(--r-md); padding: 13px; margin: 12px 16px; box-shadow: 0 10px 28px -16px var(--gold-glow); }
.rate-title { font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.stars-row { display: flex; gap: 6px; margin-bottom: 8px; }
.star { font-size: 24px; background: none; border: none; cursor: pointer; filter: grayscale(1) opacity(.4); padding: 0; }
.star.on { filter: none; }
.rate-sub { font-size: 10px; color: #555; }

.reviews-section { padding: 14px 16px; }
.review-card { background: var(--glass); backdrop-filter: blur(8px); border: 1px solid var(--glass-border); border-radius: var(--r-sm); padding: 11px 13px; margin-bottom: 8px; }
.review-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.reviewer { display: flex; align-items: center; gap: 6px; }
.reviewer-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--subtle); display: flex; align-items: center; justify-content: center; font-size: 10px; color: #aaa; font-weight: 700; }
.reviewer-name { font-size: 11px; font-weight: 600; }
.review-stars { font-size: 11px; color: var(--gold); }
.review-text { font-size: 11px; color: #666; line-height: 1.5; }
.review-date { font-size: 9px; color: #333; margin-top: 4px; }
