/* App v3.4 · integration fixes for the approved prototype CSS on the real App DOM (no new visual language).
 * In the prototype the contextual Rezervări actions were <button>s; in the App they are real links. */
main.hv3 a.hv3-btn, main.hv3 a.hv3-btn:hover, main.hv3 a.hv3-btn:focus { text-decoration: none !important; }
main.hv3 .hv3-booking a.hv3-btn { display: inline-flex; align-items: center; justify-content: center; }

/* venue preview is a <dialog>: drop the UA max-height/margin so it spans the viewport like the prototype panel */
dialog.vp { max-height: none; margin: 0; border: 0; }
@media (min-width: 801px) { dialog.vp { height: 100%; left: auto; } }

/* Game Hub › „Invită jucători” drawer (app-v34-invite.js) */
html.hv3-lock { overflow: hidden; }
.hv3-overlay .hv3-err { margin: 0; color: var(--bad, #b42318); font: 500 13px 'Inter',system-ui,sans-serif; }
.hv3-overlay .hv3-df .hv3-btn[disabled] { opacity: .55; cursor: default; }
:root[data-theme] .hv3-overlay .hv3-input input, :root[data-theme] .hv3-overlay .hv3-input input:focus { border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; height: auto !important; min-height: 0 !important; padding: 0 !important; border-radius: 0 !important; }
.hv3-overlay .hv3-input:focus-within { border-color: var(--mint-line, #9fe4c0); box-shadow: 0 0 0 3px var(--mint-soft, #eafcf2); }

/* Game Hub v3.4 extra (app-v34-hub-extra.js): organiser „Anulează meciul”, dialog, banners */
main.hv3 .hv3-danger-o, .pi-dialog .pi-danger { border-color: #b4321f; color: #9b2c1f; background: transparent; }
:root[data-theme] .pi-dialog .exp-button.pi-danger { background: #9b2c1f; border-color: #9b2c1f; color: #F2EEE8; }
.pi-dialog .pi-dh { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px 12px; border-bottom: 1px solid var(--line, var(--j-line)); }
.pi-dialog .pi-dh h2 { margin: 0; font: italic 800 24px/1.1 'Rubik',Inter,sans-serif; font-style: italic; font-weight: 800; }
.pi-dialog .pi-dh p { margin: 4px 0 0; font-size: 13px; color: var(--quiet, #5f6f7f); }
.pi-dialog .pi-x { margin-left: auto; width: 38px; height: 38px; border: 1px solid var(--line, var(--j-line)); border-radius:6px; background: transparent; color: inherit; font-size: 18px; cursor: pointer; }
.pi-dialog .pi-db { padding: 16px 20px; display: grid; gap: 12px; overflow: auto; }
.pi-dialog .pi-df { padding: 14px 20px; border-top: 1px solid var(--line, var(--j-line)); display: flex; gap: 10px; justify-content: flex-end; }
.pi-dialog .pi-alert { display: grid; gap: 4px; border: 1px solid; border-radius:6px; padding: 12px 14px; font-size: 14px; }
:root[data-theme="dark"] .pi-dialog { background: var(--surface); color: var(--ink); border-color: var(--line); }

/* Profil in Dark (10.10): profile-mockup.css paints its surfaces white while the text already follows the theme,
 * so names and labels were light-on-white. Same v7.3 tokens as the other App cards. Light is unchanged. */
:root[data-theme="dark"] body.experience #playerProfilePage :is(.pm-identity, .pm-sheet, .pm-tabs, .pm-card) { background: var(--surface) !important; border-color: var(--line) !important; box-shadow: none !important; }
:root[data-theme="dark"] body.experience #playerProfilePage .pm-overview { background: var(--bg) !important; }
:root[data-theme="dark"] body.experience #playerProfilePage :is(.pm-outline, .pm-share, .pm-signout) { background: var(--surface-2) !important; border-color: var(--line) !important; color: var(--ink) !important; }
:root[data-theme="dark"] body.experience #playerProfilePage .avatar-placeholder { background: var(--mint-soft) !important; color: var(--mint-text) !important; }
:root[data-theme="dark"] body.experience #playerProfilePage .pm-stats span { color: var(--quiet) !important; }
:root[data-theme="dark"] body.experience #playerProfilePage .pm-stats > div { border-color: var(--line) !important; }
:root[data-theme="dark"] body.experience #playerProfilePage .pm-tabs button { color: var(--ink-2) !important; }
:root[data-theme="dark"] body.experience #playerProfilePage .pm-tabs button[aria-pressed="true"] { color: var(--ink) !important; border-bottom-color: var(--mint) !important; }
:root[data-theme="dark"] body.experience #playerProfilePage :is(.pm-link, .pm-link span, .pm-arrow, .pm-view-all) { color: var(--link) !important; }
:root[data-theme="dark"] body.experience #playerProfilePage .pm-formats span { background: var(--mint-soft) !important; color: var(--mint-text) !important; }

/* Authentication screens (login, signup, check email, forgot password, 2FA code): no App navigation. The v3.4 shell
 * (left nav, App top bar, mobile tabs) is for signed-in accounts; here only the logo, language and theme remain,
 * as before v3.4. body[data-view="auth"] is set by app.js showState for exactly these screens. */
:root[data-theme] body.experience[data-view="auth"] :is(.exp-app-sidebar, .exp-mobile-nav) { display: none !important; }
:root[data-theme] body.experience[data-view="auth"] .wrap > .header .exp-app-logo { display: block !important; }
/* the App wordmark is white: on these screens the top bar is the navy one (as on mobile and as before v3.4) */
:root[data-theme] body.experience[data-view="auth"] .wrap > .header:not(#v34-id) { background: var(--sq-side-bg) !important; border-bottom: 0 !important; }
:root[data-theme] body.experience[data-view="auth"] .wrap > .header .lang-switch { background: #F2EEE80b !important; border-color: #F2EEE828 !important; }
:root[data-theme] body.experience[data-view="auth"] .wrap > .header:not(#v34-id) .lang-switch button:not(.lang-active) { color: #F2EEE8 !important; }
:root[data-theme] body.experience[data-view="auth"] .wrap > .header .sq-theme-btn { background: var(--navy-2) !important; border-color: var(--navy-line) !important; color: var(--navy-ink) !important; }

/* Creează meci, 801–1099 px (live audit 12.10): next to the preview the form column is ~340 px; „Continuă” (step 1) and
 * „Publică meciul” (step 2) kept min-width 185 px and nowrap, so they ran out of the card. The controls wrap; the main
 * action takes the full row when there is no room. */
@media (min-width: 801px) and (max-width: 1099px) {
  #hostGamePage .cg-controls { flex-wrap: wrap; row-gap: 10px; }
  #hostGamePage .cg-controls button { min-width: 0; white-space: normal; padding: 9px 16px; }
  #hostGamePage :is(.cg-next, #hostGameSubmit) { min-width: 0; flex: 1 1 100%; margin-left: 0; }
}

/* current_quote (12.10): „Preț orientativ, recalculat din tarifele curente. Nu reprezintă un preț agreat.” + as_of (sq-quote.js) */
:root[data-theme] body.experience .sq-quote-note { display: grid !important; gap: 2px; margin-top: 4px; }
:root[data-theme] body.experience .sq-quote-note > span, :root[data-theme] body.experience .sq-quote-note > time { display: block; font-size: 12px !important; line-height: 1.35; color: var(--ink-2) !important; white-space: normal; overflow-wrap: anywhere; }
/* Mesaje · rândurile de conversație în Light (CIA 13.10). Baza (refinements.css + communications-v2.css, neatinse):
   previzualizarea / ora 3.8–4.3:1; selectatul = același #eafbf5 ca necititul (doar culoare, 1.1:1); bara și punctul de
   necitit #00d690 / #00dc99 ≈ 1.9:1; hover #f1faf7 abia vizibil (1.06:1) și șterge nuanța de necitit.
   - Text ≥ 4.5:1 pe fiecare fundal (alb, necitit #eafbf5, hover #eef3f2, necitit + hover #dcefe8).
   - Indicatori ≥ 3:1 față de culorile alăturate: necitit = bara + punctul #08734f; selectat = inel interior de 2 px
     #08734f (formă); focus = contur exterior #1a64cc, 3 px, la 2 px (în afara rândului); hover = fundal + nume subliniat.
   Dark e tratat în app-v34-dark.css. */
:root:not([data-theme="dark"]) body.experience .communications-v2 .conversation-row p, :root:not([data-theme="dark"]) body.experience .communications-v2 .conversation-row-time { color: #4f6380; }
:root:not([data-theme="dark"]) body.experience .communications-v2 .conversation-row:hover { background: #eef3f2; }
:root:not([data-theme="dark"]) body.experience .communications-v2 .conversation-row.unread { background: var(--j-selected); }
:root:not([data-theme="dark"]) body.experience .communications-v2 .conversation-row.unread:hover { background: #dcefe8; }
:root:not([data-theme="dark"]) body.experience .communications-v2 .conversation-row.selected { background: var(--j-selected); box-shadow: inset 0 0 0 2px #08734f; }
:root:not([data-theme="dark"]) body.experience .communications-v2 .conversation-row.selected:hover { background: #dcefe8; }
:root:not([data-theme="dark"]) body.experience .communications-v2 .conversation-row.unread::before, :root:not([data-theme="dark"]) body.experience .communications-v2 .conversation-row .unread-dot { background: #08734f; }
:root:not([data-theme="dark"]) body.experience .communications-v2 .conversation-row:focus-visible { outline: 3px solid #1a64cc !important; outline-offset: 2px !important; }
:root[data-theme] body.experience .communications-v2 .conversation-row:hover :is(strong, b) { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
/* Mesaje · panoul gol în Light: textul „Oameni. Meciuri. Conversații.” #7286a4 pe gradientul #f9fcff → #edf6fc = 3.4–3.6:1;
   aceeași nuanță ca textul rândurilor, #4f6380, ≥ 5.6:1. Dark e tratat în app-v34-dark.css. */
:root:not([data-theme="dark"]) body.experience #messagesPage .com-empty p { color: #4f6380; }
