:root {
  color-scheme: dark;
  --bg: #06110f;
  --bg-soft: #0b1b17;
  --panel: rgba(17, 36, 31, .88);
  --panel-strong: #10241f;
  --panel-light: #17312a;
  --gold: #e0b85d;
  --gold-light: #f7dda0;
  --gold-dark: #98702d;
  --cream: #fff6df;
  --text: #f7f7f2;
  --muted: #95a9a2;
  --line: rgba(229, 196, 117, .18);
  --success: #68d39a;
  --danger: #ff9a8d;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(199, 155, 62, .15), transparent 35%),
    linear-gradient(180deg, #081613 0%, var(--bg) 42%, #040b0a 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
[hidden] { display: none !important; }

.ambient { position: fixed; pointer-events: none; filter: blur(80px); opacity: .18; border-radius: 50%; z-index: 0; }
.ambient-one { width: 220px; height: 220px; background: #c99a3d; right: -90px; top: 180px; }
.ambient-two { width: 260px; height: 260px; background: #176d52; left: -140px; top: 680px; }

.app-shell { position: relative; z-index: 1; width: min(100%, 760px); margin: 0 auto; padding: calc(14px + var(--safe-top)) 18px calc(42px + var(--safe-bottom)); }
.topbar { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: #241706; font-family: Georgia, serif; font-weight: 700; font-size: 20px;
  background: radial-gradient(circle at 32% 28%, #ffe4a1, #d3a445 54%, #806022 100%);
  border: 1px solid rgba(255, 239, 189, .45);
  box-shadow: inset 0 0 0 4px rgba(78, 52, 9, .18), 0 8px 22px rgba(202, 151, 48, .2);
}
.brand-title { font-size: 14px; font-weight: 850; letter-spacing: .16em; }
.brand-subtitle { margin-top: 4px; color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 7px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(224, 184, 93, .1); }
.status-dot.live { background: var(--success); box-shadow: 0 0 0 4px rgba(104, 211, 154, .1); }
.status-dot.error { background: var(--danger); box-shadow: 0 0 0 4px rgba(255, 154, 141, .1); }

.icon-button { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; display: grid; place-items: center; color: var(--text); background: rgba(17, 37, 31, .75); cursor: pointer; }
.icon-button svg { width: 21px; height: 21px; fill: currentColor; }
.menu-popover {
  position: absolute; top: 52px; right: 0; z-index: 20; min-width: min(330px, calc(100vw - 36px)); padding: 8px;
  border-radius: 18px; background: rgba(15, 34, 29, .98); border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow); backdrop-filter: blur(18px);
}
.menu-popover button { width: 100%; border: 0; background: transparent; color: var(--text); padding: 12px 11px; border-radius: 12px; display: flex; align-items: center; gap: 11px; text-align: left; cursor: pointer; }
.menu-popover button:hover { background: rgba(255,255,255,.06); }
.menu-popover svg { width: 19px; height: 19px; fill: none; stroke: var(--gold-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hero-card, .holdings-card, .warning-panel {
  border: 1px solid rgba(255,255,255,.07); background: linear-gradient(145deg, rgba(22, 47, 40, .94), rgba(9, 25, 21, .95)); box-shadow: var(--shadow); backdrop-filter: blur(14px);
}
.hero-card { border-radius: var(--radius-xl); padding: 24px 20px 19px; overflow: hidden; position: relative; }
.hero-card::before { content: ""; position: absolute; width: 260px; height: 260px; right: -130px; top: -120px; border-radius: 50%; border: 1px solid rgba(224,184,93,.18); box-shadow: inset 0 0 80px rgba(224,184,93,.08); }
.hero-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 7px; color: var(--gold); font-size: 10px; font-weight: 850; letter-spacing: .18em; }
h1, h2, h3 { margin: 0; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(25px, 6vw, 36px); line-height: 1.12; font-weight: 500; color: var(--cream); }
.quote-source-summary { margin-top: 4px; font-family: inherit; font-size: 12px; line-height: 1.45; font-weight: 650; color: var(--muted); }
.quote-source-summary .timezone-note { white-space: nowrap; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: 29px; font-weight: 500; color: var(--cream); }
h3 { font-size: 17px; }
.refresh-orb { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(224,184,93,.25); background: rgba(224,184,93,.08); color: var(--gold-light); display: grid; place-items: center; cursor: pointer; }
.refresh-orb svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.refresh-orb.loading svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.quote-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 24px; position: relative; z-index: 1; }
.quote-card { min-height: 112px; padding: 17px; border-radius: 20px; background: rgba(5, 16, 13, .52); border: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; gap: 15px; }
.quote-featured { background: linear-gradient(120deg, rgba(216,170,67,.16), rgba(5,16,13,.45)); border-color: rgba(224,184,93,.2); }
.quote-icon { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-content: center; text-align: center; color: #30200a; font-family: Georgia, serif; font-weight: 800; box-shadow: 0 10px 25px rgba(0,0,0,.24); }
.quote-icon span { font-size: 22px; line-height: .9; }
.quote-icon small { font-family: inherit; font-size: 10px; text-transform: uppercase; margin-top: 4px; }
.coin-icon, .napoleon-icon { border-radius: 50%; background: radial-gradient(circle at 35% 25%, #ffe6a8, #d6aa50 55%, #7c581e); border: 1px solid rgba(255,239,188,.5); box-shadow: inset 0 0 0 4px rgba(77,49,7,.18), 0 10px 25px rgba(0,0,0,.24); }
.bar-icon { border-radius: 9px; transform: perspective(100px) rotateY(-8deg); background: linear-gradient(145deg, #f9d77d, #b6842e); border: 1px solid rgba(255,239,188,.5); }
.napoleon-icon span { font-size: 27px; font-style: italic; }
.quote-copy { min-width: 0; display: grid; gap: 3px; }
.quote-label { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.quote-main { color: var(--cream); font-size: clamp(24px, 7vw, 34px); letter-spacing: -.035em; white-space: nowrap; }
.quote-alt { color: var(--gold-light); font-size: 14px; font-weight: 650; }
.skeleton { min-width: 110px; }
body.loading .skeleton { color: transparent !important; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.11), rgba(255,255,255,.05)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.section-divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 30px 3px; }
.section-divider span { height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.section-divider span:last-child { background: linear-gradient(90deg, var(--line), transparent); }
.divider-gem { width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 16px rgba(224,184,93,.55); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.text-button { border: 0; background: transparent; color: var(--gold-light); font-weight: 700; cursor: pointer; padding: 8px 0; }
.portfolio-hero { position: relative; overflow: hidden; border-radius: var(--radius-xl); min-height: 190px; padding: 26px 22px; background: linear-gradient(135deg, #c6983e, #826022 68%, #5e4319); color: #211606; box-shadow: 0 22px 55px rgba(113,78,23,.28); }
.portfolio-label { font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.portfolio-total { margin-top: 8px; font-size: clamp(42px, 12vw, 65px); font-weight: 900; letter-spacing: -.055em; line-height: 1; position: relative; z-index: 1; }
.portfolio-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 19px; position: relative; z-index: 1; }
.tax-pill { display: inline-flex; margin-top: 0; padding: 7px 10px; border-radius: 999px; background: rgba(255,246,223,.21); border: 1px solid rgba(255,246,223,.22); font-size: 11px; font-weight: 750; position: relative; z-index: 1; }
.valuation-source { color: rgba(33,22,6,.78); font-size: 11px; font-weight: 800; }
.portfolio-glow { position: absolute; width: 210px; height: 210px; right: -65px; top: -55px; border-radius: 50%; background: radial-gradient(circle, rgba(255,244,206,.38), transparent 65%); }
.portfolio-glow::after { content:"Au"; position: absolute; right: 53px; top: 54px; width: 90px; height: 90px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,246,223,.35); font-family: Georgia, serif; font-size: 34px; opacity: .35; }
.value-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 12px; }
.value-card { padding: 17px 15px; min-width: 0; border-radius: 19px; background: rgba(17,36,31,.88); border: 1px solid rgba(255,255,255,.07); }
.value-card span, .value-card small { display: block; color: var(--muted); }
.value-card span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.value-card strong { display: block; margin: 8px 0 4px; font-size: clamp(19px, 5vw, 26px); color: var(--cream); letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.value-card small { font-size: 10px; }

.holdings-card { border-radius: var(--radius-lg); margin-top: 12px; padding: 18px; box-shadow: none; }
.holdings-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.holdings-header div:first-child { min-width: 0; }
.holdings-header span { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weight-badge { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: rgba(224,184,93,.1); border: 1px solid rgba(224,184,93,.15); color: var(--gold-light); font-size: 11px; font-weight: 750; }
.holdings-list { margin-top: 15px; display: grid; gap: 9px; }
.holding-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 13px; border-radius: 14px; background: rgba(5,16,13,.42); }
.holding-row .holding-name { min-width: 0; display: flex; align-items: center; gap: 10px; }
.holding-coin { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(224,184,93,.13); color: var(--gold-light); font-size: 11px; font-weight: 800; }
.holding-name div { min-width: 0; }
.holding-name strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.holding-name small { color: var(--muted); font-size: 10px; }
.holding-value { text-align: right; }
.holding-value strong { display: block; font-size: 13px; }
.holding-value small { color: var(--muted); font-size: 10px; }
.empty-state { padding: 18px 4px 4px; text-align: center; color: var(--muted); }
.empty-coin { margin: 0 auto 10px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); font-size: 24px; border: 1px dashed rgba(224,184,93,.35); }
.empty-state p { margin: 0 auto 12px; max-width: 290px; font-size: 13px; }
.empty-state button { border: 0; border-radius: 12px; padding: 10px 14px; color: #211606; background: var(--gold); font-weight: 800; cursor: pointer; }
.warning-panel { margin-top: 16px; border-color: rgba(255,154,141,.2); border-radius: 18px; padding: 15px; color: #ffd5cf; }
.warning-panel p { color: #c8aaa5; font-size: 12px; margin: 5px 0 0; }
footer { padding: 25px 4px 4px; color: #71857e; font-size: 10px; line-height: 1.55; }
.dealer-footer-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 0; color: var(--gold-light); font-size: 12px; font-weight: 750; text-decoration: none; }
.dealer-footer-link::after { content: "↗"; font-size: 11px; }
footer p { margin: 0; }
.source-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 15px; border-top: 1px solid rgba(255,255,255,.05); margin-top: 12px; padding-top: 12px; }

.sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.66); backdrop-filter: blur(5px); }
.bottom-sheet { position: fixed; z-index: 51; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 760px); max-height: 92vh; display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; background: #0d201b; border: 1px solid rgba(255,255,255,.08); border-bottom: 0; border-radius: 28px 28px 0 0; box-shadow: 0 -24px 70px rgba(0,0,0,.45); overflow: hidden; animation: sheetIn .25s ease-out; }
@keyframes sheetIn { from { transform: translate(-50%, 100%); } }
.sheet-handle { width: 42px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.2); margin: 10px auto 3px; }
.sheet-header { padding: 13px 19px 15px; display: flex; align-items: center; justify-content: space-between; }
.sheet-header h2 { font-size: 28px; }
.sheet-close { background: rgba(255,255,255,.05); }
.sheet-close svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sheet-content { overflow-y: auto; overscroll-behavior: contain; padding: 0 18px 24px; }
.grams-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px; border-radius: 17px; background: rgba(224,184,93,.08); border: 1px solid rgba(224,184,93,.15); }
.grams-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--gold-light); background: rgba(224,184,93,.1); font-family: Georgia, serif; font-size: 21px; }
.grams-copy { min-width: 0; }
.grams-copy strong, .grams-copy span { display: block; }
.grams-copy strong { font-size: 13px; }
.grams-copy span { color: var(--muted); font-size: 10px; margin-top: 3px; }
.grams-input-wrap { display: flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 11px; background: rgba(0,0,0,.25); }
.grams-input-wrap input { width: 67px; border: 0; outline: 0; background: transparent; color: var(--cream); text-align: right; font-weight: 800; }
.grams-input-wrap span { color: var(--muted); font-size: 12px; }
.search-wrap { position: relative; margin: 14px 0; }
.search-wrap svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search-wrap input { width: 100%; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(5,16,13,.55); color: var(--text); padding: 13px 13px 13px 42px; outline: 0; }
.search-wrap input::placeholder { color: #6f837c; }
.product-groups { display: grid; gap: 18px; }
.product-group h3 { margin: 0 0 8px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }
.product-list { display: grid; gap: 7px; }
.product-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 11px; align-items: center; min-height: 60px; padding: 9px 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,.06); background: rgba(5,16,13,.38); }
.product-check { appearance: none; width: 21px; height: 21px; border-radius: 7px; border: 1px solid rgba(224,184,93,.45); display: grid; place-content: center; cursor: pointer; }
.product-check::before { content: ""; width: 9px; height: 5px; border-left: 2px solid #251703; border-bottom: 2px solid #251703; transform: rotate(-45deg) scale(0); transition: transform .15s ease; }
.product-check:checked { background: var(--gold); }
.product-check:checked::before { transform: rotate(-45deg) scale(1); }
.product-copy { min-width: 0; }
.product-copy strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-copy span { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.quantity-stepper { display: grid; grid-template-columns: 30px 35px 30px; align-items: center; border-radius: 11px; background: rgba(255,255,255,.04); overflow: hidden; opacity: .35; pointer-events: none; }
.product-row.selected .quantity-stepper { opacity: 1; pointer-events: auto; }
.quantity-stepper button { height: 33px; border: 0; color: var(--gold-light); background: transparent; font-size: 18px; cursor: pointer; }
.quantity-stepper input { width: 35px; height: 33px; border: 0; color: var(--cream); background: transparent; text-align: center; font-weight: 800; outline: 0; -moz-appearance: textfield; }
.quantity-stepper input::-webkit-inner-spin-button { display: none; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; padding: 13px 18px calc(13px + var(--safe-bottom)); background: rgba(9,24,20,.98); border-top: 1px solid rgba(255,255,255,.07); }
.primary-button, .secondary-button { min-height: 48px; border-radius: 14px; font-weight: 850; cursor: pointer; }
.primary-button { border: 0; background: linear-gradient(135deg, #f0cc78, #bd8c35); color: #241704; }
.secondary-button { border: 1px solid rgba(255,255,255,.1); background: transparent; color: var(--text); }
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(24px + var(--safe-bottom)); transform: translateX(-50%); max-width: calc(100% - 36px); padding: 11px 15px; border-radius: 999px; background: #f7e1aa; color: #241704; box-shadow: var(--shadow); font-size: 12px; font-weight: 800; animation: toastIn .2s ease-out; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }
body.sheet-open { overflow: hidden; }

@media (min-width: 620px) {
  .app-shell { padding-left: 26px; padding-right: 26px; }
  .quote-grid { grid-template-columns: 1.08fr .92fr; }
  .quote-card:last-child { grid-column: 1 / -1; }
  .quote-card:last-child .quote-copy { grid-template-columns: auto auto; column-gap: 18px; align-items: baseline; }
  .quote-card:last-child .quote-label { grid-column: 1 / -1; }
  .bottom-sheet { bottom: 16px; border-radius: 28px; max-height: calc(100vh - 32px); border-bottom: 1px solid rgba(255,255,255,.08); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* Fiscalité par possession — v2.3 */
.tax-value-card { grid-column: 1 / -1; }
.holding-tax-meta { display: block; color: var(--gold-light) !important; margin-top: 2px; }
.holding-value small { display: block; }
.product-row { grid-template-rows: auto auto; }
.tax-editor { display: none; grid-column: 1 / -1; padding: 10px 0 2px 32px; border-top: 1px solid rgba(255,255,255,.06); }
.product-row.selected .tax-editor { display: block; }
.standalone-tax-editor { margin-top: 10px; padding: 13px 14px; border-radius: 17px; background: rgba(5,16,13,.38); border: 1px solid rgba(255,255,255,.06); transition: opacity .15s ease; }
.tax-editor-disabled { opacity: .45; }
.tax-editor-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.tax-editor-title strong { font-size: 12px; }
.tax-editor-title span { color: var(--muted); font-size: 9px; }
.tax-mode-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.tax-mode-button { min-width: 0; padding: 9px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); color: var(--text); text-align: left; cursor: pointer; }
.tax-mode-button strong, .tax-mode-button small { display: block; }
.tax-mode-button strong { font-size: 11px; }
.tax-mode-button small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.tax-mode-button.active { border-color: rgba(224,184,93,.5); background: rgba(224,184,93,.12); }
.tax-mode-button.active strong { color: var(--gold-light); }
.tax-mode-button:disabled { cursor: default; }
.invoice-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.invoice-fields[hidden] { display: none; }
.invoice-fields label { min-width: 0; }
.invoice-fields label > span { display: block; color: var(--muted); font-size: 9px; margin: 0 0 5px 2px; }
.invoice-fields input { width: 100%; min-width: 0; box-sizing: border-box; height: 38px; padding: 8px 9px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; outline: 0; background: rgba(0,0,0,.22); color: var(--cream); font-size: 11px; }
.money-input { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(0,0,0,.22); overflow: hidden; }
.money-input input { border: 0; background: transparent; }
.money-input span { padding-right: 10px; color: var(--muted); font-size: 11px; }
.tax-preview { margin: 8px 2px 0; color: var(--muted); font-size: 9px; line-height: 1.45; }

@media (max-width: 430px) {
  .tax-editor { padding-left: 0; }
  .invoice-fields { grid-template-columns: 1fr; }
  .holding-row { align-items: start; }
}

/* Sources détaillées — v2.5 */
.quote-card { align-items: flex-start; }
.quote-icon { margin-top: 3px; }
.quote-copy { width: 100%; }
.data-source-link { color: var(--gold-light); text-decoration: underline; text-decoration-color: rgba(224,184,93,.32); text-underline-offset: 2px; }
.data-source-link:hover, .data-source-link:focus-visible { color: #f2d790; text-decoration-color: currentColor; }
.value-card small .data-source-link, .valuation-source .data-source-link { color: inherit; }
.source-line .data-source-link { color: var(--gold-light); }
.tax-reference-line { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 8px; color: #71857e; }
.tax-reference-line a { color: #94a79f; text-decoration: underline; text-decoration-color: rgba(148,167,159,.35); text-underline-offset: 2px; }

@media (min-width: 720px) {
  .quote-card { min-height: 154px; }
}


/* Plus-value par possession — v2.5.3 */
.holding-gain { font-weight: 800; margin-top: 2px; }
.holding-gain-positive { color: #b8dca5 !important; }
.holding-gain-negative { color: #efaaa3 !important; }
.holding-gain-neutral { color: var(--muted) !important; }

/* Sauvegarde locale des positions — v2.5.8 */
.menu-popover button { line-height: 1.25; }


/* Effacement complet des positions — v2.5.8 */
.clear-holdings-zone { margin: 24px 0 6px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.07); text-align: center; }
.clear-holdings-zone p { margin: 8px auto 0; max-width: 420px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.danger-button { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 14px; border: 1px solid rgba(239,112,103,.38); background: rgba(145,36,30,.12); color: #efaaa3; font-weight: 850; cursor: pointer; }
.danger-button:hover, .danger-button:focus-visible { border-color: rgba(239,112,103,.65); background: rgba(145,36,30,.2); }

.dealer-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; font-size: 12px; }
.dealer-footer-links > span { color: var(--muted); font-weight: 700; }
