/* Revers personal area (2026-11-26), my reports 2026-12-01 */
.acc-page { padding: 32px 0 40px; }
.acc-page h1 { margin-bottom: 8px; }
.acc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 18px; }
.acc-grid .card { padding: 22px; }
.acc-keep { background: #fff7e6; border: 1px solid #f0d49a; border-radius: 14px; padding: 14px 16px; margin: 14px 0 18px; }
.acc-keep strong { display: block; margin-bottom: 4px; }
.acc-head { margin-bottom: 18px; }
.acc-hello-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 8px; }
.acc-hello-top .eyebrow { margin-bottom: 0; }
.acc-hello { margin: 0; overflow-wrap: anywhere; text-align: start; }
.acc-hello #ac-user { unicode-bidi: isolate; }
.acc-contact { margin: 6px 0 0; color: var(--ink-soft, #4a5160); font-size: .95rem; word-break: break-all; text-align: start; unicode-bidi: isolate; }
.acc-head #ac-logout { flex: 0 0 auto; margin: 0; }
.acc-verify { background: var(--brand-soft, #eef0ff); border-radius: 12px; padding: 10px 14px; margin: 12px 0; }
.rep-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 12px; }
.rep-card { background: #fff; border: 3px solid var(--ink, #1f2737); border-radius: 16px; padding: 16px; }
.rep-card.rep-soon { border-color: #c0392b; }
.rep-plate { font-size: 1.35rem; letter-spacing: .06em; margin: 0 0 4px; text-align: start; }
.rep-vehicle { color: var(--ink-soft, #555); margin: 0 0 8px; }
.rep-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 8px; font-size: .95rem; }
.rep-card dt { color: var(--ink-soft, #555); }
.rep-card dd { margin: 0; font-weight: 600; }
.rep-left { font-weight: 700; color: #a8231a; margin: 0 0 10px; }
.rep-soon .rep-left { color: #a8231a; }
.rep-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rep-actions .btn { min-height: 44px; padding: 8px 16px; }
.rep-del { color: #8a1515; }
.acc-danger { margin-top: 24px; font-size: .9rem; }
.acc-page input[type="text"], .acc-page input[type="email"], .acc-page input[type="tel"] { width: 100%; }
@media (max-width: 800px) { .acc-grid { grid-template-columns: 1fr; } }
/* header link: icon on desktop (label kept for screen readers), full text in the mobile menu and on wide screens */
.nav-account a { font-weight: 700; }
@media (min-width: 901px) and (max-width: 1499px) {
  .nav-account a { font-size: 0 !important; width: 40px; height: 40px; min-height: 40px; padding: 0 !important; border-radius: 50%; background: var(--brand-soft, #eef0ff); display: inline-flex; align-items: center; justify-content: center; }
  .nav-account a::before { content: ""; width: 20px; height: 20px; background: var(--ink, #1f2737);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-4.4 0-8 2.2-8 5v3h16v-3c0-2.8-3.6-5-8-5z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-4.4 0-8 2.2-8 5v3h16v-3c0-2.8-3.6-5-8-5z'/%3E%3C/svg%3E") center / contain no-repeat; }
  .nav-account a[aria-current="page"] { background: var(--ink, #1f2737); }
  .nav-account a[aria-current="page"]::before { background: #fff; }
}
/* passkeys and quick signup (2026-11-26) */
.pk-ico { width: 22px; height: 22px; fill: currentColor; flex: none; }
.pk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; }
.btn-block.pk-btn { display: flex; }
.pk-login { margin-bottom: 6px; }
.pk-login .pk-btn { font-size: 1.08rem; }
.pk-help { text-align: center; margin-top: 8px; }
.pk-or { display: flex; align-items: center; gap: 12px; color: var(--ink-soft, #4a5160); font-size: .92rem; margin: 14px 0 4px; }
.pk-or::before, .pk-or::after { content: ""; flex: 1; height: 1px; background: var(--line, #e4e2db); }
.pk-offer { text-align: center; padding: 6px 0 2px; }
.pk-offer h2 { margin: 10px 0 6px; font-size: 1.3rem; }
.pk-offer h2:focus { outline: none; }
.pk-offer p { margin: 0 0 12px; }
.pk-offer .pk-for { font-weight: 700; color: var(--brand-dark, #3d46c7); unicode-bidi: plaintext; }
.pk-offer form { text-align: start; margin-top: 8px; }
.pk-offer .link-btn { display: block; margin: 12px auto 0; }
.pk-offer-ico { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; background: var(--brand-soft, #eef0ff); color: var(--brand, #555fde); display: flex; align-items: center; justify-content: center; }
.pk-offer-ico .pk-ico { width: 38px; height: 38px; }
.pk-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--brand-soft, #eef0ff); border: 1px solid #c9cdf7; border-radius: 14px; padding: 14px 16px; margin: 14px 0; }
.pk-banner > .pk-ico { color: var(--brand, #555fde); width: 28px; height: 28px; }
.pk-banner p { margin: 0; flex: 1 1 200px; font-weight: 600; }
.pk-banner-act { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.pk-banner .pk-btn { min-height: 46px; }
.pk-panel { margin-top: 26px; padding: 22px; max-width: 640px; }
.pk-panel h2 { display: flex; align-items: center; gap: 10px; }
.pk-panel h2 .pk-ico { color: var(--brand, #555fde); }
.pk-list { list-style: none; margin: 12px 0 14px; padding: 0; display: grid; gap: 10px; }
.pk-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line, #e4e2db); border-radius: 12px; padding: 12px 14px; background: #fff; }
.pk-item strong { display: block; }
.pk-meta { display: block; font-size: .88rem; color: var(--ink-soft, #4a5160); }
.pk-empty { color: var(--ink-soft, #4a5160); }
.pk-setpw { margin-top: 18px; border-top: 1px solid var(--line, #e4e2db); padding-top: 14px; }
.pk-setpw h3 { margin: 0 0 4px; }
.acc-page input[type="password"] { width: 100%; }
@media (max-width: 520px) {
  .pk-banner-act { width: 100%; }
  .pk-banner .pk-btn { flex: 1 1 100%; }
  .pk-panel { padding: 18px; }
}
/* email code step */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.qs-code form { text-align: center; }
.code-input { display: block; width: 100%; max-width: 260px; margin: 4px auto 12px; text-align: center; font-size: 1.9rem; font-weight: 700; letter-spacing: .45em; padding: 10px 0 10px .45em; font-variant-numeric: tabular-nums; }
.qs-code .field-help { text-align: center; }
.qs-code #qs-resend:disabled { opacity: .55; cursor: default; text-decoration: none; }
.qs-email-line { display: block; font-weight: 700; color: var(--ink, #1f2737); margin: 4px 0; word-break: break-all; }

.rep-pending { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #fff6e0; border: 1px solid #f0d58a; color: #4d3b00; font-weight: 600; line-height: 1.45; font-size: .95rem; }
.rep-pending p { margin: 0 0 6px; }
.rep-pending p:last-child { margin: 0; }
.rep-card.rep-open { border-color: #c48a12; }
.rep-download-hint { margin: 0 0 10px; font-weight: 600; color: var(--ink-soft, #555); font-size: .95rem; }
.rep-docs { margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.rep-license, .rep-lien { margin: 0; }
.rep-license a, .rep-lien a { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-weight: 700; text-decoration: none; }
.rep-license a:hover, .rep-license a:focus, .rep-lien a:hover, .rep-lien a:focus { text-decoration: underline; }
.rep-license img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid #d8d4c8; background: #f6f4ee; flex: 0 0 auto; }

.rep-card.rep-building { border-color: #555fde; }
.rep-building-box { background: #eef0fe; border-color: #c5c9f2; color: #1f2737; }
.rep-building-box .rep-status { font-size: 1.05rem; }

.spam-note { margin: 10px 0 8px; font-size: 0.95rem; line-height: 1.55; color: var(--ink, #1f2737); }
.mail-note { margin: 14px 0 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.mail-note .spam-note { margin: 0; max-width: 28rem; }
.acc-verify { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
.acc-verify p { margin: 0; line-height: 1.5; }
.acc-verify .mail-note-actions { margin: 0; }
#ac-need-verify { margin: 8px 0 18px; padding: 16px 16px 8px; background: var(--brand-soft, #eef0ff); border-radius: 14px; }
#ac-need-verify h2 { margin: 0 0 10px; font-size: 1.15rem; line-height: 1.35; }
#ac-need-verify p { margin: 0 0 10px; line-height: 1.55; }
#ac-need-verify .mail-note-actions { margin: 4px 0 8px; }
#ac-need-verify .btn { font-weight: 700; }
#nv-email { word-break: break-all; }
@media (max-width: 520px) {
  .spam-note, #ac-need-verify p, .acc-verify p { font-size: 0.95rem; }
  #ac-need-verify { padding: 14px 12px 6px; }
}

.rep-keep-note { margin: 6px 0 14px; padding: 10px 14px; border-radius: 10px; background: #fff6e0; border: 1px solid #f0d58a; color: #4d3b00; font-weight: 600; line-height: 1.5; }
#ac-order-wrap { margin-top: 18px; }
.pk-offer-text { margin: 0 0 8px; font-weight: 600; }
.pk-actions { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 8px; }
.pk-panel.is-offer { background: var(--brand-soft, #eef0ff); border: 1px solid #c9cdf7; }
.pk-panel.is-status, .pk-panel.is-quiet { padding: 16px 18px; }
.pk-panel.is-status .pk-list, .pk-panel.is-quiet .pk-list { margin-bottom: 0; }
@media (max-width: 520px) {
  .pk-actions { width: 100%; }
  .pk-panel .pk-btn { flex: 1 1 100%; }
}

/* coupon admin, shown only for the coupon-admin account (2026-11-27) */
.cp-admin { margin-top: 26px; padding: 22px; max-width: 800px; }
.cp-admin h2 { margin: 0 0 8px; }
.cp-mint { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: end; margin: 14px 0 8px; }
.cp-mint label { flex: 1 1 220px; margin: 0; }
.cp-mint label[for="cp-count"] { flex: 1 1 140px; }
.cp-mint select { width: 100%; min-height: 48px; margin-top: 4px; }
.cp-mint .btn { flex: 0 0 auto; min-height: 48px; }
.cp-new { background: var(--brand-soft, #eef0ff); border: 1px solid #c9cdf7; border-radius: 14px; padding: 14px 16px; margin: 12px 0; }
.cp-new p { margin: 0 0 8px; font-weight: 700; }
.cp-new-item + .cp-new-item { margin-top: 14px; padding-top: 14px; border-top: 1px solid #c9cdf7; }
.cp-new-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cp-new-row code { direction: ltr; font-size: 1.25rem; font-weight: 700; letter-spacing: .06em; background: #fff; border-radius: 10px; padding: 10px 14px; border: 1px solid var(--line, #e4e2db); unicode-bidi: isolate; }
.cp-table-wrap { overflow-x: auto; margin-top: 16px; }
.cp-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cp-table th, .cp-table td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--line, #e4e2db); vertical-align: top; }
.cp-table th { font-weight: 700; }
.cp-table .cp-code { font-family: ui-monospace, monospace; letter-spacing: .04em; unicode-bidi: isolate; }
.cp-st { display: inline-block; font-weight: 700; border-radius: 999px; padding: 2px 10px; font-size: .85rem; }
.cp-st-unused { background: #e7f6ea; color: #1c6b2c; }
.cp-st-used { background: #eee; color: #444; }
.cp-st-disabled { background: #fde8e8; color: #8a1515; }
@media (max-width: 520px) {
  .cp-admin { padding: 18px; }
  .cp-mint .btn { flex: 1 1 100%; }
  .cp-new-row code { flex: 1 1 100%; }
}
.cp-table { min-width: 620px; }
.cp-table th, .cp-table td { white-space: nowrap; }

@media (max-width: 700px) {
  .cp-table { min-width: 0; }
  .cp-table thead { display: none; }
  .cp-table, .cp-table tbody, .cp-table tr, .cp-table td { display: block; width: 100%; }
  .cp-table tr { border: 1px solid var(--line, #e4e2db); border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; background: #fff; }
  .cp-table td { border: 0; padding: 5px 0; white-space: normal; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
  .cp-table td::before { content: attr(data-label); font-weight: 700; color: var(--ink-soft, #4a5160); flex: 0 0 auto; }
  .cp-table td.cp-code { font-size: 1rem; }
}

/* coupon share via WhatsApp or mailto (2026-11-27), admin only */
.cp-admin { max-width: 960px; }
.cp-wa-box { margin: 14px 0 4px; }
.cp-wa-box label { display: block; }
.cp-wa-box input { width: 100%; max-width: 280px; min-height: 48px; direction: ltr; }
.cp-wa-box .field-help { margin: 4px 0 0; }
.cp-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.cp-share .btn { min-height: 44px; }
.cp-share .btn.is-disabled, .cp-share a.is-disabled { opacity: 0.45; pointer-events: none; }
.cp-new .cp-share { margin-top: 12px; }
.cp-table { min-width: 960px; }
.cp-table td.cp-share-cell, .cp-table th:last-child { white-space: normal; min-width: 168px; }
.cp-wa-cell { white-space: normal; }
.cp-wa-num { font-variant-numeric: tabular-nums; direction: ltr; text-align: right; }
.cp-wa-when { font-size: 0.85em; color: var(--ink-soft, #4a5160); margin-top: 2px; }
.cp-share-cell .cp-share { margin: 0; flex-direction: column; align-items: stretch; gap: 6px; }
.cp-share-cell .cp-share .btn { white-space: nowrap; width: 100%; justify-content: center; }
@media (max-width: 700px) {
  .cp-table { min-width: 0; }
  .cp-table td.cp-share-cell { display: block; min-width: 0; }
  .cp-table td.cp-share-cell::before { display: block; margin-bottom: 8px; }
  .cp-share-cell .cp-share { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .cp-share-cell .cp-share .btn { flex: 1 1 calc(50% - 8px); width: auto; }
  .cp-new .cp-share .btn, .cp-new-row .btn, .cp-wa-box input { max-width: none; width: 100%; }
  .cp-new .cp-share .btn, .cp-new-row .btn { flex: 1 1 100%; }
}

/* header-cls-fix (2026-11-28): keep header height identical before and after the web font loads (1301-1499px viewports), so the page body does not jump */
@media (min-width: 901px) and (max-width: 1499px) { .nav-account { min-height: 44px; } }

/* report share via WhatsApp or mailto (2026-12-01), same buttons as the coupon share */
.rep-share { margin-top: 10px; }
.rep-share .cp-share { margin-top: 0; }
.rep-actions .rep-share-btn[aria-expanded="true"] { background: var(--brand-soft, #eef0ff); }

/* admin access button, only rendered for isCouponAdmin (2026-12-01) */
.acc-admin-access { margin: 14px 0 0; }
.acc-admin-access .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  font-weight: 700;
}
@media (max-width: 520px) {
  .acc-admin-access .btn { width: 100%; }
}

/* Google sign-in button (2026-12-01). Hidden until GOOGLE_CLIENT_ID is set. */
.gsi-wrap { margin: 0 0 4px; }
.gsi-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 44px; padding: 8px 16px;
  background: #fff; color: #1f1f1f;
  border: 1px solid #747775; border-radius: 14px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  cursor: pointer;
}
.gsi-btn:hover, .gsi-btn:focus { background: #f7f8f8; }
.gsi-btn:disabled { opacity: .65; cursor: default; }
.gsi-logo { width: 20px; height: 20px; flex: 0 0 20px; }
.gsi-official { min-height: 44px; }
.gsi-wrap.is-official .gsi-btn { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.gsi-wrap.is-official { position: relative; }
.gsi-wrap.is-official .gsi-official { display: flex; justify-content: center; width: 100%; }


/* "My reports" category: the list lives in #ac-reports-view, not on the first screen (2026-12-01) */
.acc-reports-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 640px;
  box-sizing: border-box;
  margin: 4px 0 8px;
  padding: 18px 20px;
  min-height: 88px;
  text-decoration: none;
  color: inherit;
  background: var(--white, #fff);
  border: 1px solid var(--line, #e4e2db);
  border-radius: 18px;
  box-shadow: var(--shadow, 0 8px 24px rgba(0,0,0,.06));
  cursor: pointer;
}
.acc-reports-tile:hover, .acc-reports-tile:focus-visible {
  border-color: var(--brand, #555fde);
}
.acc-reports-tile-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
  text-align: start;
}
.acc-reports-tile-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink, #1f2737);
  line-height: 1.3;
}
.acc-reports-tile-count {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft, #4a5160);
  line-height: 1.4;
}
.acc-reports-tile-status {
  font-size: .95rem;
  font-weight: 700;
  color: var(--brand-dark, #3d46c7);
  line-height: 1.4;
}
.acc-reports-chevron {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin-inline-start: auto;
  position: relative;
}
.acc-reports-chevron::before {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
html[dir="rtl"] .acc-reports-chevron::before {
  right: auto;
  left: 2px;
  transform: translateY(-50%) rotate(-135deg);
}
.acc-back { margin: 0 0 12px; }
.acc-back .link-btn { font-weight: 700; }
#ac-reports-heading:focus { outline: none; }
#ac-reports-heading:focus-visible { outline: 3px solid var(--focus, #555fde); outline-offset: 4px; }
@media (max-width: 520px) {
  .acc-reports-tile { padding: 16px 16px; min-height: 84px; }
  .acc-reports-tile-title { font-size: 1.2rem; }
}
