/*
 * The promo codes hub (/amazon-promo-codes, its ?item= modal) and the pages
 * that share its shell (/amazon-coupons, /amazon-subscribe-and-save, the
 * per-store promo code and coupon pages), in the homepage v2 design.
 *
 * Loaded AFTER /v2/home.css, whose tokens (keyed on html.dark, the site's own
 * toggle, never Tailwind dark:) and fonts this file builds on. Everything is
 * scoped under .cv2 or a .cv2-* class. Plain CSS outside the Vite build, so
 * there is no compiled-class trap: a rule written here always exists.
 *
 * Mobile first. The base rules are the 390px phone; wider screens add.
 */

.cv2 { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
/* Type on the page body only: the shared site header and footer sit inside
   .cv2 and keep their own. */
.cv2-main, .cv2-modal { font-family: var(--hv2-font); color: var(--text); -webkit-font-smoothing: antialiased; }
:where(.cv2) *, :where(.cv2) *::before, :where(.cv2) *::after { box-sizing: border-box; }
:where(.cv2) a { color: inherit; }
:where(.cv2) button { font: inherit; color: inherit; }
.cv2 :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.cv2-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.cv2-main { width: 100%; max-width: 1248px; margin: 0 auto; padding: 16px 16px 72px; flex: 1 0 auto; }
.cv2-main.is-narrow { max-width: 820px; }

.cv2-crumbs { display: none; margin: 0 0 14px; font-size: 13px; color: var(--text-faint); }
.cv2-crumbs a { text-decoration: none; }
.cv2-crumbs a:hover { color: var(--text); text-decoration: underline; }
.cv2-crumbs span[aria-current] { color: var(--text-muted); }

/* ------------------------------------------------------------- hero */
.cv2-hero { margin: 0 0 16px; padding: 18px 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.cv2-live { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; margin-bottom: 10px; border-radius: 999px; background: var(--ok-soft); border: 1px solid var(--ok-edge); color: var(--ok); font-size: 12px; font-weight: 700; }
.cv2-live--sns { background: rgba(14, 165, 233, .10); border-color: rgba(14, 165, 233, .35); color: #0369A1; }
html.dark .cv2-live--sns { color: #7DD3FC; }
.cv2-live__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.cv2-hero__title { margin: 0; font-family: var(--hv2-display); font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; color: var(--text); text-wrap: balance; }
.cv2-hero__sub { margin: 8px 0 0; max-width: 640px; font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.cv2-hero__sub a { color: var(--cta); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
html.dark .cv2-hero__sub a { color: #8FB8FF; }

/* ---------------------------------------------------------- toolbar */
.cv2-toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.cv2-search { position: relative; flex: 1 1 auto; min-width: 0; }
.cv2-search__icon { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--text-faint); pointer-events: none; }
.cv2-search__spin { position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--text-faint); animation: cv2Spin .8s linear infinite; }
/* 16px: iOS Safari zooms the page on focus into anything smaller. */
.cv2-input { width: 100%; height: 46px; padding: 0 40px 0 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-family: inherit; font-size: 16px; outline: none; -webkit-appearance: none; appearance: none; transition: border-color .15s var(--hv2-ease); }
.cv2-input::placeholder { color: var(--text-faint); }
.cv2-input:focus { border-color: var(--cta); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cta) 18%, transparent); }
.cv2-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.cv2-toolbar__row { display: flex; gap: 8px; }
.cv2-select { flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 36px 0 14px; border-radius: 12px; border: 1px solid var(--border); background-color: var(--surface); color: var(--text); font-family: inherit; font-size: 16px; font-weight: 600; -webkit-appearance: none; appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A94A7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; }
.cv2-select:focus { outline: none; border-color: var(--cta); }
.cv2-submit { display: none; height: 46px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--cta); color: var(--cta-text); font-size: 15px; font-weight: 700; cursor: pointer; }
.cv2-submit:hover { background: var(--cta-hover); }

/* Filter chips: one row that scrolls sideways on a phone, wraps above it. */
.cv2-chips { display: flex; align-items: center; gap: 8px; margin: 0 -16px 14px; padding: 2px 16px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cv2-chips::-webkit-scrollbar { display: none; }
.cv2-chip { height: 38px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted) !important; font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer; transition: border-color .15s var(--hv2-ease), background-color .15s var(--hv2-ease), color .15s var(--hv2-ease); }
.cv2-chip:hover { color: var(--text) !important; border-color: var(--border-strong); }
.cv2-chip.is-on { background: var(--text); border-color: var(--text); color: var(--bg) !important; }
.cv2-chip--submit { margin-left: auto; border-style: dashed; background: transparent; color: var(--brand) !important; }
.cv2-chip--submit:hover { color: var(--brand) !important; border-color: var(--brand); }

.cv2-count { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.cv2-count a { margin-left: 6px; color: var(--cta); text-decoration: underline; text-underline-offset: 3px; }
html.dark .cv2-count a { color: #8FB8FF; }

/* ------------------------------------------------------------- grid */
.cv2-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.cv2-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: border-color .15s var(--hv2-ease), box-shadow .2s var(--hv2-ease), transform .2s var(--hv2-ease); }
.cv2-card__link { position: absolute; inset: 0; z-index: 2; border-radius: 20px; }
.cv2-card__img { position: relative; height: 148px; background: #FFFFFF; border-bottom: 1px solid var(--divider); }
.cv2-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; display: block; }
.cv2-card__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 34px; background: var(--surface-2); }
.cv2-badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; pointer-events: none; }
.cv2-badges__l { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.cv2-badge { height: 22px; padding: 0 7px; display: inline-flex; align-items: center; gap: 3px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.cv2-badge--off { background: var(--pct-bg); color: var(--pct-text); font-variant-numeric: tabular-nums; }
html:not(.dark) .cv2-badge--off { background: #0B7A3E; color: #FFFFFF; }
.cv2-badge--new { background: #DC2626; color: #FFFFFF; text-transform: uppercase; }
.cv2-badge--direct { background: rgba(124, 77, 219, .92); color: #FFFFFF; }
.cv2-badge--bolt { background: #141922; color: #F5C451; padding: 0 6px; animation: cv2Glow 2.4s ease-in-out infinite; }
.cv2-badge--bolt svg { width: 13px; height: 13px; }
.cv2-badge--variants { position: absolute; left: 8px; bottom: 8px; background: rgba(20, 25, 34, .82); color: #FFFFFF; font-weight: 700; }
@keyframes cv2Glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } 50% { box-shadow: 0 0 12px 2px rgba(245, 158, 11, .55); } }

.cv2-card__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.cv2-card__title { margin: 0; min-height: 2.7em; font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cv2-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; min-height: 24px; }
.cv2-card__now { font-family: var(--hv2-font); font-size: 21px; line-height: 1; font-weight: 800; letter-spacing: -.015em; color: var(--price); font-variant-numeric: tabular-nums; }
.cv2-card__now.is-plain { color: var(--text); }
.cv2-card__was { font-size: 12.5px; color: var(--text-faint); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.cv2-card__with { font-size: 11.5px; font-weight: 600; color: var(--text-muted); }
.cv2-card__foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.cv2-reveal { height: 38px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; border: 1px dashed var(--code-border); background: var(--code-bg); color: var(--code); font-size: 13.5px; font-weight: 700; }
.cv2-reveal svg { width: 16px; height: 16px; flex-shrink: 0; }
/* Fixed height, no wrap: the verified stamp's length varies ("5M" vs
   "11MO") and must never resize the card. */
.cv2-trust { height: 18px; display: flex; align-items: center; gap: 6px; overflow: hidden; font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--text-faint); }
.cv2-trust__ok { color: var(--ok); overflow: hidden; text-overflow: ellipsis; }
.cv2-trust__votes { overflow: hidden; text-overflow: ellipsis; }
.cv2-trust__count { flex-shrink: 0; }

@media (hover: hover) and (pointer: fine) {
    .cv2-card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-lift); }
}

.cv2-empty { grid-column: 1 / -1; padding: 40px 20px; border-radius: 20px; border: 1px dashed var(--border-strong); text-align: center; color: var(--text-muted); font-size: 14px; }
.cv2-empty__icon { margin: 0 0 8px; font-size: 30px; }
.cv2-empty__title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--text); }
.cv2-empty a { color: var(--cta); text-decoration: underline; text-underline-offset: 3px; }

.cv2-more { margin-top: 20px; display: flex; justify-content: center; }
.cv2-more a { height: 44px; padding: 0 20px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.cv2-more a:hover { color: var(--text); border-color: var(--border-strong); }
.cv2-more svg { width: 16px; height: 16px; animation: cv2Spin .8s linear infinite; }
.cv2-more svg.hidden { display: none; }

/* Shimmer: skeleton cards while the next page loads, and the modal skeleton. */
@keyframes cv2Shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes cv2Spin { to { transform: rotate(360deg); } }
.cv2-skel { background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: cv2Shimmer 1.2s ease-in-out infinite; border-radius: 10px; }
.cv2-skelcard { border-radius: 20px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.cv2-skelcard__img { height: 148px; border-radius: 0; }
.cv2-skelcard__body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }

/* ------------------------------------------------------ staff panel */
.cv2-staff { margin-bottom: 12px; }
.cv2-staff__toggle { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px dashed var(--border-strong); background: transparent; color: var(--text-muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.cv2-staff__toggle.is-on { color: #7C4DDB; border-color: rgba(124, 77, 219, .5); }
.cv2-staff__form { margin-top: 8px; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.cv2-staff__fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; font-size: 12px; }
.cv2-staff__fields label span { display: block; margin-bottom: 2px; font-weight: 600; color: var(--text-muted); }
.cv2-staff__fields input { height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface-inset); color: var(--text); font-size: 13px; font-family: inherit; }
.cv2-staff__btn { height: 36px; padding: 0 16px; border: 0; border-radius: 8px; background: #7C4DDB; color: #FFFFFF; font-size: 13px; font-weight: 700; cursor: pointer; }
.cv2-staff__btn:disabled { opacity: .5; }
.cv2-staff__pct { padding-bottom: 8px; font-weight: 700; color: var(--ok); }
.cv2-staff__msg { margin: 6px 0 0; font-size: 12px; font-weight: 600; }
.cv2-staff__msg.is-ok { color: var(--ok); }
.cv2-staff__msg.is-err { color: var(--danger); }
.cv2-debug { margin-bottom: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--gold-edge); background: var(--gold-soft); color: var(--text); font-size: 12px; overflow-x: auto; }
.cv2-debug table { width: 100%; border-collapse: collapse; text-align: left; }
.cv2-debug td, .cv2-debug th { padding: 3px 12px 3px 0; border-top: 1px solid var(--divider); vertical-align: top; }
.cv2-debug .is-null { font-weight: 700; color: var(--danger); }

/* ------------------------------------------------------------ modal */
.cv2-modal { position: fixed; inset: 0; z-index: 70; overflow-y: auto; overscroll-behavior: contain; font-family: var(--hv2-font); color: var(--text); }
.cv2-modal__scrim { position: fixed; inset: 0; background: rgba(6, 8, 12, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cv2-modal__panel { position: relative; width: 100%; max-width: 760px; min-height: calc(100vh - 40px); margin: 40px auto 0; padding: 18px 16px 110px; border-radius: 24px 24px 0 0; background: var(--surface); border: 1px solid var(--border); border-bottom: 0; box-shadow: 0 -10px 40px -12px rgba(0, 0, 0, .35); }
/* When the mobile app-download banner shows, start the sheet below it so the
   close button never sits under the banner. */
body.app-banner-visible .cv2-modal__panel { margin-top: calc(82px + env(safe-area-inset-top, 0px)); }
.cv2-modal__close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; }
.cv2-modal__close span { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface-2); color: var(--text-muted); font-size: 18px; font-weight: 700; line-height: 1; }
.cv2-modal__close:hover span { color: var(--text); }
.cv2-modal__msg { padding: 48px 0; text-align: center; font-size: 14px; color: var(--text-muted); }

.cv2-disclosure { margin: 0 auto 14px; max-width: 440px; padding: 0 40px; text-align: center; font-size: 12px; line-height: 1.5; color: var(--text-faint); }
.cv2-item { display: flex; flex-direction: column; gap: 16px; }
.cv2-item__img { align-self: center; flex-shrink: 0; padding: 8px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--divider); }
.cv2-item__img img { width: 150px; height: 150px; object-fit: contain; display: block; }
.cv2-item__img.is-skel { width: 168px; height: 168px; }
.cv2-item__main { min-width: 0; flex: 1 1 auto; }
.cv2-item__flag { margin-bottom: 8px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; }
.cv2-item__flag svg { width: 14px; height: 14px; }
.cv2-item__flag--bolt { background: #141922; color: #F5C451; animation: cv2Glow 2.4s ease-in-out infinite; }
.cv2-item__flag--direct { background: rgba(124, 77, 219, .12); color: #7C4DDB; font-weight: 700; }
html.dark .cv2-item__flag--direct { color: #C4B0FF; background: rgba(160, 120, 255, .14); }
.cv2-item__title { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 700; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cv2-item__price { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.cv2-item__now { font-family: var(--hv2-font); font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -.02em; color: var(--price); font-variant-numeric: tabular-nums; }
.cv2-item__now.is-plain { color: var(--text); }
.cv2-item__was { font-size: 15px; color: var(--text-faint); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.cv2-item__with { font-size: 13px; color: var(--text-muted); }
.cv2-item__meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13.5px; color: var(--text-muted); }
.cv2-item__meta .is-faint { color: var(--text-faint); }

/* The coupon ticket: dashed edge, semicircle notches cut with a mask so they
   show whatever is behind the panel. No mask-composite = no notches. */
.cv2-ticket { margin-top: 16px; padding: 20px 18px 18px; border-radius: 18px; border: 1.5px dashed var(--code-border); background: var(--code-bg); text-align: center;
    -webkit-mask-image: radial-gradient(circle at 0 50%, transparent 10px, #000 10.75px), radial-gradient(circle at 100% 50%, transparent 10px, #000 10.75px);
    -webkit-mask-composite: source-in;
    mask-image: radial-gradient(circle at 0 50%, transparent 10px, #000 10.75px), radial-gradient(circle at 100% 50%, transparent 10px, #000 10.75px);
    mask-composite: intersect; }
.cv2-ticket__label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ok); }
.cv2-ticket__code { margin-top: 4px; max-width: 100%; display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px 6px; border-radius: 8px; cursor: pointer; font-family: var(--hv2-mono); font-size: 27px; font-weight: 600; letter-spacing: .12em; color: var(--code); }
.cv2-ticket__code > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv2-ticket__code svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .6; }
.cv2-ticket__copied { flex-shrink: 0; font-family: var(--hv2-font); font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; color: var(--ok); }
.cv2-ticket__trust { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.cv2-ticket__trust.is-ok { color: var(--ok); }
.cv2-ticket__trust.is-faint { color: var(--text-faint); }
.cv2-ticket__ends { margin-top: 2px; font-size: 12.5px; color: var(--text-faint); }
.cv2-go { margin-top: 14px; width: 100%; height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--cta); color: var(--cta-text); font-size: 15.5px; font-weight: 700; cursor: pointer; transition: background-color .15s var(--hv2-ease), transform .15s var(--hv2-ease); }
.cv2-go:hover { background: var(--cta-hover); }
.cv2-go:active { transform: scale(.98); }
.cv2-go.is-sm { margin-top: 10px; width: auto; height: 38px; padding: 0 16px; font-size: 13.5px; }

/* Reader votes */
.cv2-votes { margin-top: 14px; }
.cv2-votes__q { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.cv2-votes__row { display: flex; gap: 8px; }
.cv2-vote { height: 40px; padding: 0 16px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font-size: 14px; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; transition: color .15s var(--hv2-ease), border-color .15s var(--hv2-ease), background-color .15s var(--hv2-ease); }
.cv2-vote:hover { color: var(--text); border-color: var(--border-strong); }
.cv2-vote.is-works { color: var(--ok); border-color: var(--ok-edge); background: var(--ok-soft); }
.cv2-vote.is-expired { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.cv2-votes--sm { margin-top: 8px; }
.cv2-votes--sm .cv2-vote { height: 32px; padding: 0 12px; font-size: 12.5px; }

/* Staff rows inside the modal: small, quiet, and never mistaken for the
   reader's own controls. */
.cv2-tools { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.cv2-tool { min-height: 28px; padding: 0 8px; display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 7px; background: transparent; color: var(--text-faint); font-size: 12.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.cv2-tool:hover { color: var(--text); background: var(--surface-2); }
.cv2-tool:disabled { opacity: .5; }
.cv2-tool.is-danger { color: var(--admin-expire); }
.cv2-tool.is-ok { color: var(--admin-confirm); background: color-mix(in srgb, var(--admin-confirm) 12%, transparent); }
.cv2-tool.is-bad { color: var(--admin-expire); background: color-mix(in srgb, var(--admin-expire) 12%, transparent); }
.cv2-tool.is-fill { background: color-mix(in srgb, var(--admin-expire) 14%, transparent); color: var(--admin-expire); }
.cv2-tools__line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.cv2-tools select, .cv2-tools input, .cv2-tools textarea { min-height: 30px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--border-strong); background: var(--surface-inset); color: var(--text); font-family: inherit; font-size: 13px; }
.cv2-tools textarea { width: 100%; padding: 6px 8px; }
.cv2-tools__panel { margin-top: 4px; padding: 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-inset); }
.cv2-tools__panel p { margin: 0 0 6px; font-weight: 600; color: var(--text-muted); }
.cv2-tools__err { font-weight: 600; color: var(--danger); }
.cv2-tools__note { font-weight: 600; color: var(--text-faint); }
.cv2-tools label { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); }
.cv2-tools__save { min-height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: var(--gold-fill); color: var(--gold-ink); font-weight: 700; cursor: pointer; }
.cv2-tools__send { min-height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: var(--cta); color: var(--cta-text); font-weight: 700; cursor: pointer; }

/* Extra codes behind a disclosure */
.cv2-extra { margin-top: 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-inset); }
.cv2-extra__toggle { width: 100%; min-height: 48px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 0; background: none; color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; }
.cv2-extra__toggle svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-faint); transition: transform .2s var(--hv2-ease); }
.cv2-extra__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.cv2-extra__list { padding: 0 10px 10px; display: flex; flex-direction: column; gap: 8px; }
.cv2-xcode { padding: 12px; border-radius: 12px; border: 1px dashed var(--code-border); background: var(--surface); }
.cv2-xcode__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cv2-xcode__code { height: 32px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; border: 1px dashed var(--code-border); background: var(--code-bg); color: var(--code); font-family: var(--hv2-mono); font-size: 14px; font-weight: 600; letter-spacing: .08em; cursor: pointer; }
.cv2-xcode__code svg { width: 14px; height: 14px; opacity: .6; }
.cv2-xcode__code .cv2-ticket__copied { font-size: 11px; }
.cv2-xcode__label { height: 22px; padding: 0 7px; display: inline-flex; align-items: center; border-radius: 6px; background: var(--pct-bg); color: var(--pct-text); font-size: 11px; font-weight: 800; text-transform: uppercase; }
html:not(.dark) .cv2-xcode__label { background: #0B7A3E; color: #FFFFFF; }
.cv2-xcode__trust { font-size: 11.5px; font-weight: 700; color: var(--text-faint); }
.cv2-xcode__trust.is-ok { color: var(--ok); }
.cv2-xcode__price { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.cv2-xcode__now { font-family: var(--hv2-font); font-size: 20px; font-weight: 800; color: var(--price); font-variant-numeric: tabular-nums; }

.cv2-ghost { margin-top: 14px; height: 44px; padding: 0 18px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted) !important; font-size: 14px; font-weight: 600; text-decoration: none; }
.cv2-ghost:hover { color: var(--text) !important; border-color: var(--border-strong); }

.cv2-howto { margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--surface-inset); border: 1px solid var(--border); }
.cv2-howto h3 { margin: 0; font-size: 14px; font-weight: 700; color: var(--text); }
.cv2-howto ol { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: cv2step; display: flex; flex-direction: column; gap: 8px; }
.cv2-howto li { counter-increment: cv2step; display: flex; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--text-muted); }
.cv2-howto li::before { content: counter(cv2step); width: 22px; height: 22px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 700; }
.cv2-howto__note { margin: 10px 0 0; font-size: 12.5px; color: var(--text-faint); }

.cv2-sibs { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--divider); }
.cv2-sibs h3 { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.cv2-sibs__grid { display: grid; gap: 8px; }
.cv2-sib { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; }
.cv2-sib:hover { border-color: var(--border-strong); }
.cv2-sib img, .cv2-sib__ph { width: 48px; height: 48px; flex-shrink: 0; border-radius: 10px; background: #FFFFFF; object-fit: contain; }
.cv2-sib__ph { display: flex; align-items: center; justify-content: center; background: var(--surface-2); font-size: 18px; }
.cv2-sib__t { font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv2-sib__m { margin-top: 3px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--text-faint); }
.cv2-sib__m b { color: var(--text); }
.cv2-sib__code { padding: 1px 6px; border-radius: 5px; background: var(--code-bg); border: 1px dashed var(--code-border); color: var(--code); font-family: var(--hv2-mono); font-weight: 600; }

/* Sheet entrance: up from the bottom on a phone, a small lift above it. */
.cv2-enter { transition: opacity .22s var(--hv2-ease), transform .22s var(--hv2-ease); }
.cv2-enter-from { opacity: 0; transform: translateY(24px); }
.cv2-enter-to { opacity: 1; transform: none; }

/* Sticky "Copy & go": pinned while the ticket's own button is out of view. */
.cv2-sticky { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 72; width: calc(100% - 24px); max-width: 736px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 18px; border: 1px solid var(--border-strong); background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .45); }
.cv2-sticky__code { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--hv2-mono); font-size: 16px; font-weight: 600; letter-spacing: .08em; color: var(--code); }
.cv2-sticky__go { flex-shrink: 0; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--cta); color: var(--cta-text); font-size: 15px; font-weight: 700; cursor: pointer; }
.cv2-sticky__go:hover { background: var(--cta-hover); }

/* ---------------------------------------- sibling pages (prose shell) */
.cv2-section { margin-top: 24px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.cv2-section h2 { margin: 0 0 10px; font-family: var(--hv2-display); font-size: 21px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.cv2-section p, .cv2-section li { font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.cv2-section p { margin: 0 0 10px; }
.cv2-section ol, .cv2-section ul { margin: 0 0 10px; padding-left: 22px; }
.cv2-section ol, .cv2-faq details ol { list-style: decimal; }
.cv2-section ul, .cv2-faq details ul { list-style: disc; }
.cv2-section li + li { margin-top: 6px; }
.cv2-section strong { color: var(--text); }
.cv2-section a { color: var(--cta); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
html.dark .cv2-section a { color: #8FB8FF; }
.cv2-section .cv2-note { font-size: 13.5px; color: var(--text-faint); }
.cv2-kbd { display: inline-block; padding: 1px 8px; border-radius: 6px; border: 1px solid rgba(245, 124, 0, .45); background: rgba(245, 124, 0, .10); color: #B45309; font-size: 12px; font-weight: 700; }
html.dark .cv2-kbd { color: #FDBA74; }
.cv2-tablewrap { overflow-x: auto; margin: 0 -4px; }
.cv2-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.cv2-table th { padding: 8px 12px 8px 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--text-faint); border-bottom: 1px solid var(--border); }
.cv2-table td { padding: 10px 12px 10px 4px; color: var(--text-muted); border-bottom: 1px solid var(--divider); vertical-align: top; }
.cv2-table tr:last-child td { border-bottom: 0; }
.cv2-table td:first-child { color: var(--text); font-weight: 600; }
.cv2-yes { color: var(--ok) !important; font-weight: 700; }
.cv2-no { color: var(--danger) !important; font-weight: 700; }
.cv2-maybe { color: var(--gold) !important; font-weight: 700; }
.cv2-deals { display: flex; flex-direction: column; gap: 12px; }

.cv2-faq { margin-top: 28px; }
.cv2-faq > h2 { margin: 0 0 12px; font-family: var(--hv2-display); font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.cv2-faq__list { display: flex; flex-direction: column; gap: 8px; }
.cv2-faq details { border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.cv2-faq summary { min-height: 52px; padding: 14px 44px 14px 16px; position: relative; list-style: none; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--text); }
.cv2-faq summary::-webkit-details-marker { display: none; }
.cv2-faq summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--text-faint); }
.cv2-faq details[open] summary::after { content: '\2212'; }
.cv2-faq details > :not(summary) { margin: 0; padding: 0 16px 14px; font-size: 14.5px; line-height: 1.55; color: var(--text-muted); }
.cv2-faq details ol, .cv2-faq details ul { padding-left: 36px; }
.cv2-faq strong { color: var(--text); }
.cv2-rich { margin-top: 24px; }

/* ------------------------------------------------------------ wider */
@media (min-width: 640px) {
    .cv2-main { padding: 24px 24px 80px; }
    .cv2-crumbs { display: block; }
    .cv2-hero { padding: 24px 28px; margin-bottom: 20px; }
    .cv2-hero__title { font-size: 40px; }
    .cv2-hero__sub { font-size: 16px; }
    .cv2-toolbar { flex-direction: row; }
    .cv2-toolbar__row { flex: 0 0 auto; }
    .cv2-select { flex: 0 0 auto; width: 220px; }
    .cv2-submit { display: block; }
    .cv2-chips { flex-wrap: wrap; overflow: visible; margin: 0 0 16px; padding: 0; }
    .cv2-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .cv2-card__img, .cv2-skelcard__img { height: 176px; }
    .cv2-card__body { padding: 14px; }
    .cv2-modal__panel { margin: 5vh auto; min-height: 0; width: min(760px, 94vw); padding: 28px 28px 32px; border-radius: 24px; border-bottom: 1px solid var(--border); }
    body.app-banner-visible .cv2-modal__panel { margin-top: 5vh; }
    .cv2-item { flex-direction: row; gap: 22px; }
    .cv2-item__img { align-self: flex-start; }
    .cv2-item__title { font-size: 20px; }
    .cv2-item__now { font-size: 38px; }
    .cv2-sibs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cv2-section { padding: 24px 28px; }
    .cv2-sticky { bottom: calc(5vh + 12px); }
}
@media (min-width: 1024px) {
    .cv2-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .cv2-badge--bolt, .cv2-item__flag--bolt, .cv2-skel, .cv2-search__spin, .cv2-more svg { animation: none; }
    .cv2-card { transition: none; }
}
