/* BOUTIQUE — REFONTE 2026-10-21 : offre VIP (.vip-*), page « Mes achats » (.ach-*), packs de perles.
   DA antique (orichalque, terre cuite, vert-de-gris sur marbre crème). Chargée en dernier ; tout est scopé
   sous #premium-panel / #inv-body avec !important là où d'anciennes feuilles (arcade-boutique, charte-pastel,
   shop-ghibli…) posent des couleurs. Contrastes WCAG AA : encre #3b2a00 sur crème/or (≥ 9:1), blanc sur
   terre cuite #a8321f (≥ 7:1), blanc sur vert-de-gris #1f6a5e (≥ 6:1), texte secondaire #6b5222 sur crème (≥ 5,5:1). */

/* ========================= OFFRE VIP ========================= */
html body #premium-panel .shop-vip {
  --v-ink: #3b2a00; --v-dim: #6b5222; --v-gold: #e3b85a; --v-gold-d: #b9871f; --v-clay: #a8321f; --v-clay-d: #6e1d10; --v-teal: #1f6a5e;
  position: relative; box-sizing: border-box; margin: 0 0 14px; padding: 14px 14px 12px; border-radius: 6px;
  background: radial-gradient(110% 80% at 50% -10%, rgba(255, 226, 140, .7), transparent 62%), linear-gradient(180deg, #fff3cf, #f3dc9a) !important;
  border: 3px solid var(--v-ink) !important; box-shadow: 0 3px 0 #7a5410; color: var(--v-ink) !important;
}
html body #premium-panel .vip-eyebrow { display: inline-block; padding: 2px 10px; margin-bottom: 8px; border-radius: 999px; background: var(--v-clay) !important; color: #fff !important; font: 900 10.5px/1.3 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
html body #premium-panel .vip-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
html body #premium-panel .vip-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(180deg, #f6d36f, var(--v-gold)); border: 3px solid var(--v-ink); font-size: 24px; color: var(--v-ink) !important; }
html body #premium-panel .vip-title { font: 900 22px/1.1 Georgia, 'Times New Roman', serif; color: var(--v-ink) !important; }
html body #premium-panel .vip-badge { display: inline-block; margin-top: 3px; padding: 2px 9px; border-radius: 999px; background: #dff0e0 !important; color: #1d4a1b !important; border: 2px solid #1d4a1b; font: 800 11px/1.3 system-ui, sans-serif; }
html body #premium-panel .vip-badge.vip-off { background: #fffaf0 !important; color: var(--v-dim) !important; border-color: var(--v-dim); }

html body #premium-panel .vip-status { display: grid; gap: 4px; margin: 6px 0 10px; padding: 8px 10px; border-radius: 5px; background: rgba(255, 255, 255, .6); border: 2px solid rgba(59, 42, 0, .25); }
html body #premium-panel .vip-st-row { display: flex; justify-content: space-between; gap: 10px; font: 600 12.5px/1.3 system-ui, sans-serif; color: var(--v-ink) !important; }
html body #premium-panel .vip-st-row span { color: var(--v-ink) !important; }
html body #premium-panel .vip-st-row b { font-weight: 800; }
html body #premium-panel .vip-st-ok { color: #1d4a1b !important; } html body #premium-panel .vip-st-wait { color: var(--v-dim) !important; } html body #premium-panel .vip-st-on { color: #7a4e00 !important; }

html body #premium-panel .vip-perks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 6px; }
html body #premium-panel .vip-perks li { position: relative; padding: 7px 8px 7px 28px; border-radius: 5px; background: rgba(255, 255, 255, .7); font: 500 12.5px/1.35 system-ui, sans-serif; color: var(--v-dim) !important; }
html body #premium-panel .vip-perks li span { color: var(--v-dim) !important; }
html body #premium-panel .vip-perks li b { display: block; color: var(--v-ink) !important; font: 800 13.5px/1.25 system-ui, sans-serif; }
html body #premium-panel .vip-perks li::before { content: '✦'; position: absolute; left: 9px; top: 7px; color: var(--v-gold-d); font-size: 13px; }

html body #premium-panel .vip-offers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
html body #premium-panel .vip-offer { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 10px 10px; text-align: center; border-radius: 5px; background: #fffaf0 !important; border: 3px solid var(--v-ink); box-shadow: 0 3px 0 rgba(58, 47, 34, .6); }
html body #premium-panel .vip-offer--life { background: linear-gradient(180deg, #fff3cf, #f6d98a) !important; border-color: var(--v-gold-d); box-shadow: 0 3px 0 #7a5410, 0 0 0 2px var(--v-ink), 0 0 16px rgba(227, 184, 90, .55); }
html body #premium-panel .vip-ribbon { position: absolute; top: 0; left: 0; right: 0; padding: 3px 6px; background: linear-gradient(180deg, #f3cf6e, var(--v-gold)) !important; color: var(--v-ink) !important; border-bottom: 2px solid var(--v-ink); font: 900 10px/1.2 system-ui, sans-serif; letter-spacing: .09em; text-transform: uppercase; }
html body #premium-panel .vip-offer-k { font: 800 12px/1.2 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--v-dim) !important; }
html body #premium-panel .vip-offer--life .vip-offer-k { margin-top: 4px; }
html body #premium-panel .vip-offer-p { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px; color: var(--v-ink) !important; }
html body #premium-panel .vip-offer-p b { font: 900 24px/1.1 Georgia, 'Times New Roman', serif; color: var(--v-ink) !important; }
html body #premium-panel .vip-offer-p span { font: 700 12px/1 system-ui, sans-serif; color: var(--v-dim) !important; }
html body #premium-panel .vip-was { font: 700 13px/1 system-ui, sans-serif; color: var(--v-dim) !important; }
html body #premium-panel .vip-offer-s { font: 600 11.5px/1.3 system-ui, sans-serif; color: var(--v-dim) !important; }
html body #premium-panel .vip-offer-s span { color: var(--v-dim) !important; }
html body #premium-panel .vip-offer-s b { color: var(--v-ink) !important; }
html body #premium-panel .vip-btn { width: 100%; min-height: 44px; margin-top: auto; padding: 8px 10px; cursor: pointer; border-radius: 4px; border: 3px solid var(--v-ink) !important; font: 900 13px/1.15 system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
html body #premium-panel .vip-btn span { color: inherit !important; }
html body #premium-panel .vip-btn--xp { background: linear-gradient(180deg, #2b8372, var(--v-teal)) !important; color: #fff !important; box-shadow: 0 3px 0 #134339; }
html body #premium-panel .vip-btn--eur { background: linear-gradient(180deg, #c9482f, var(--v-clay)) !important; color: #fff !important; box-shadow: 0 3px 0 var(--v-clay-d); }
html body #premium-panel .vip-btn.vip-need { background: linear-gradient(180deg, #4a3a1c, #2d2210) !important; color: #ffe29a !important; box-shadow: 0 3px 0 #120d04; }
html body #premium-panel .vip-btn:hover { filter: brightness(1.07); }
html body #premium-panel .vip-btn:active { transform: translateY(2px); box-shadow: none; }
html body #premium-panel .vip-btn:focus-visible { outline: 3px solid var(--v-ink); outline-offset: 2px; }
html body #premium-panel .vip-hint { margin: 8px 0 0; text-align: center; color: #8a2a1a !important; font: 700 12px/1.35 system-ui, sans-serif; }
html body #premium-panel .vip-hint b, html body #premium-panel .vip-hint span { color: #8a2a1a !important; }
@media (max-width: 560px) { html body #premium-panel .vip-offers { grid-template-columns: 1fr; } html body #premium-panel .vip-perks { grid-template-columns: 1fr; } }

/* ========================= PACKS DE PERLES ========================= */
html body #premium-panel .ds-pack-coin { background: radial-gradient(90% 90% at 50% 70%, rgba(255, 226, 140, .75), rgba(255, 250, 240, .2) 75%) !important; border-radius: 6px; padding: 6px 4px 4px; min-height: 70px; align-items: flex-end; }
html body #premium-panel .ds-pearl-pile { display: block; overflow: visible; }

/* ========================= MES ACHATS ========================= */
#inv-body .ach-sec { margin: 0 0 12px; padding: 10px 12px; border-radius: 5px; background: rgba(255, 250, 240, .85) !important; border: 3px solid #3b2a00; box-shadow: 0 3px 0 rgba(58, 47, 34, .45); }
#inv-body .ach-sec h3 { margin: 0 0 6px; color: #6e1d10 !important; font: 900 14px/1.2 Georgia, 'Times New Roman', serif; letter-spacing: .06em; text-transform: uppercase; }
#inv-body .ach-hint, #inv-body .ach-line, #inv-body .ach-mut { margin: 0 0 8px; color: #6b5222 !important; font: 600 12.5px/1.4 system-ui, sans-serif; }
#inv-body .ach-line b { color: #3b2a00 !important; }
#inv-body .ach-row { display: flex; flex-wrap: wrap; gap: 8px; }
#inv-body .ach-btn { min-height: 40px; padding: 7px 14px; cursor: pointer; border-radius: 4px; border: 3px solid #3b2a00 !important; background: #fffaf0 !important; color: #3b2a00 !important; font: 900 12.5px/1.1 system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 3px 0 rgba(58, 47, 34, .6); }
#inv-body .ach-btn--main { background: linear-gradient(180deg, #f6d36f, #e3b85a) !important; }
#inv-body .ach-btn:hover { filter: brightness(1.06); } #inv-body .ach-btn:active { transform: translateY(2px); box-shadow: none; }
#inv-body .ach-btn:focus-visible { outline: 3px solid #3b2a00; outline-offset: 2px; }

/* ========================= CODE PROMO ========================= */
html body #premium-panel .shop-code { display: block !important; box-sizing: border-box; margin: 0 0 14px; padding: 10px 12px; border-radius: 6px; background: #fffaf0 !important; border: 3px solid #3b2a00 !important; box-shadow: 0 3px 0 #7a5410; }
html body #premium-panel .shop-code-lbl { display: block; margin-bottom: 6px; font: 900 12px/1.2 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #3b2a00 !important; }
html body #premium-panel .shop-code-row { display: flex; gap: 8px; }
html body #premium-panel .shop-code-row input { flex: 1; min-width: 0; min-height: 44px; box-sizing: border-box; padding: 6px 10px; border-radius: 4px; border: 2px solid #3b2a00; background: #fff !important; color: #3b2a00 !important; font: 700 15px/1.2 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
html body #premium-panel .shop-code-row input::placeholder { color: #8a7a52; text-transform: none; letter-spacing: 0; font-weight: 500; }
html body #premium-panel .shop-code-btn { min-height: 44px; padding: 6px 16px; cursor: pointer; border-radius: 4px; border: 3px solid #3b2a00 !important; background: linear-gradient(180deg, #2b8372, #1f6a5e) !important; color: #fff !important; box-shadow: 0 3px 0 #134339; font: 900 13px/1.15 system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
html body #premium-panel .shop-code-btn:disabled { opacity: .6; cursor: default; }
html body #premium-panel .shop-code-btn:focus-visible, html body #premium-panel .shop-code-row input:focus-visible { outline: 3px solid #3b2a00; outline-offset: 2px; }
html body #premium-panel .shop-code-msg { min-height: 1.2em; margin: 6px 0 0; font: 700 12.5px/1.35 system-ui, sans-serif; }
html body #premium-panel .shop-code-msg.ok { color: #1d4a1b !important; }
html body #premium-panel .shop-code-msg.err { color: #8a2a1a !important; }

/* ========================= REVUE 2026-10-22 ========================= */
/* Offre VIP (non-VIP seulement) : titre → offres (prix + bouton visibles d'emblée) → avantages. */
html body #premium-panel .shop-vip { max-width: 760px; margin-left: auto; margin-right: auto; }
html body #premium-panel .vip-headtxt { display: flex; flex-direction: column; align-items: flex-start; }
html body #premium-panel .vip-headtxt .vip-eyebrow { margin-bottom: 4px; }
html body #premium-panel .vip-title { margin: 0; }
html body #premium-panel .vip-offers { margin-bottom: 4px; }
html body #premium-panel .vip-offer-p b { font-size: 28px; }
html body #premium-panel .vip-offer--life .vip-offer-p b { font-size: 32px; }
html body #premium-panel .vip-perks-h { margin: 14px 0 8px; font: 900 12px/1.2 system-ui, sans-serif; letter-spacing: .09em; text-transform: uppercase; color: var(--v-dim) !important; }
html body #premium-panel .shop-vip .vip-perks { margin-bottom: 2px; }

/* Pastille « ⚓ VIP » : article réservé au grade (cartes de l'onglet Cosmétiques, emojis). Encre sur or : ≥ 9:1. */
html body #premium-panel .vip-chip {
  position: absolute; top: 6px; right: 6px; z-index: 3; padding: 2px 8px; border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, #f6d36f, #e3b85a); color: #3b2a00; border: 2px solid #3b2a00;
  font: 900 11px/1.25 system-ui, sans-serif; letter-spacing: .06em; white-space: nowrap; box-shadow: 0 2px 0 #7a5410;
}
html body #premium-panel .shop-emoji--grade { position: relative; }

/* Centrage des onglets : grilles à colonnes de largeur bornée (les lignes incomplètes se centrent au lieu de
   coller à gauche) et intitulés de bloc centrés. Mobile (≤ 600 px) : les 2 colonnes d'arcade-boutique restent. */
html body.ui-arcade #premium-panel :is(.premium-block-head, .cosmo-sub) { text-align: center !important; }
html body.ui-arcade #premium-panel .premium-block-head .shop-tag { display: inline-block; }
html body.ui-arcade #premium-panel :is(.ar-perles-top, .ar-perles-bottom, .ar-inv-block, .ar-hist-block) { max-width: 760px !important; margin-left: auto !important; margin-right: auto !important; }
@media (min-width: 601px) {
  html body.ui-arcade #premium-panel :is(#premium-skins, #premium-trails, #premium-flags, #shop-boosts, #ar-daily, #dovion-xp-packs, #dovion-bundles) {
    grid-template-columns: repeat(auto-fit, minmax(150px, 176px)) !important; justify-content: center !important;
  }
  html body.ui-arcade #premium-panel :is(#dovion-xp-packs, #dovion-bundles) { margin-left: auto !important; margin-right: auto !important; }
}
