/* couponsaid web-v2 — components */

/* ---------- header ---------- */
.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.header__logo { display: inline-flex; align-items: center; gap: 8px; }
.header__logo img { height: 40px; width: auto; object-fit: cover; object-position: left; max-width: 44px; }
.header__logo img.logo { object-fit: contain; max-width: 100%; }
.footer__brand .header__logo img.logo { height: 44px; }
@media (max-width: 600px) { .header__logo img.logo { height: 34px; } }
.brand { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 1.6rem; color: var(--green-800); letter-spacing: -0.02em; line-height: 1; }
.brand b { font-family: var(--font-body); font-style: normal; font-weight: 800; font-size: .7rem; background: var(--green-500); color: var(--white); border-radius: 4px; padding: 2px 5px; vertical-align: super; margin-left: 4px; letter-spacing: .04em; }
.brand--light { color: var(--white); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 16px; }
.nav a { padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 500; color: var(--ink-soft); }
.nav a:hover, .nav a.is-active { color: var(--green-800); background: var(--green-50); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.header__actions a, .header__actions button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; color: var(--ink-soft); background: none; border: 0; }
.header__actions a:hover { color: var(--green-800); background: var(--green-50); }
.cart-link .cart-count { font-variant-numeric: tabular-nums; }
.cart-link.has-items { color: var(--green-800); }
.header__actions .nav-toggle { display: none; }
@media (max-width: 1024px) {
  .nav { display: none; }
  .header__actions .label { display: none; }
  .header__actions .nav-toggle { display: inline-flex; }
  .header.is-open .nav { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--white); padding: 8px 16px 16px; border-bottom: 1px solid var(--line); margin: 0; box-shadow: var(--shadow-card); }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--green-900); color: var(--white); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center right; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 48, 26, .96) 0%, rgba(7, 48, 26, .85) 35%, rgba(7, 48, 26, .25) 70%, rgba(7, 48, 26, .1) 100%); }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 560px) 1fr; align-items: center; gap: 32px; min-height: 440px; padding: 48px 0; }
.hero--inner .hero__inner { min-height: 280px; padding: 32px 0; }
.hero__title { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(2.2rem, 5.5vw, 4rem); line-height: 1.05; margin: 0 0 18px; color: var(--white); }
.hero__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.hero__lines { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .95rem; line-height: 1.7; margin-bottom: 20px; }
.hero__lines em { font-style: normal; color: var(--gold); }
.hero__price { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.hero__price .pill--gold { font-size: 1.1rem; padding: 10px 20px; }
.hero__contact { display: flex; flex-wrap: wrap; gap: 24px; font-weight: 600; font-size: .9rem; margin-top: 22px; }
.hero__contact a { color: var(--white); display: inline-flex; align-items: center; gap: 8px; }
.hero__badge { position: absolute; top: 24px; left: 0; background: var(--white); color: var(--green-900); padding: 8px 14px; border-radius: var(--radius-sm); font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.hero--graphic { background: var(--green-950); }
.hero__graphic { display: block; }
.hero__graphic img { width: 100%; max-width: 1600px; margin: 0 auto; max-height: 620px; object-fit: cover; object-position: center; }
.hero--inner .hero__graphic img { max-height: 260px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; padding: 18px 16px; }
@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero__graphic img { max-height: none; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(7, 48, 26, .92) 0%, rgba(7, 48, 26, .7) 100%); }
}

/* ---------- partner strip ---------- */
.strip { background: var(--cream); border-bottom: 1px solid var(--cream-dark); }
.strip__inner { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 16px; padding: 18px 0; }
.strip__item { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 12px; }
.strip__item + .strip__item { border-left: 1px solid var(--cream-dark); }
.strip__logo { height: 56px; width: auto; }
.strip__qr { width: 64px; height: 64px; border: 1px solid var(--line); background: var(--white); border-radius: 6px; }
.strip__text { line-height: 1.25; }
.strip__text strong { display: block; font-size: 1.05rem; color: var(--green-900); }
.strip__text small { color: var(--muted); font-size: .8rem; }
@media (max-width: 768px) {
  .strip__inner { grid-template-columns: 1fr; gap: 0; }
  .strip__item + .strip__item { border-left: 0; border-top: 1px solid var(--cream-dark); }
}

/* ---------- whatsapp ---------- */
.wa-bar { background: var(--green-800); color: var(--white); }
.wa-bar a { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 0; color: var(--white); font-weight: 600; }
.wa-bar .wa-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--whatsapp); display: grid; place-items: center; }
.wa-bar .wa-icon .icon { width: 22px; height: 22px; stroke: none; fill: var(--white); }
.wa-pill { display: flex; justify-content: center; margin: -28px 0 8px; position: relative; z-index: 2; }
.wa-pill a { display: inline-flex; align-items: center; gap: 14px; background: var(--green-700); color: var(--white); padding: 10px 26px 10px 12px; border-radius: var(--radius-pill); box-shadow: var(--shadow-hover); font-weight: 700; }
.wa-pill .wa-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.wa-pill .wa-icon .icon { width: 28px; height: 28px; stroke: none; fill: var(--whatsapp); }
.wa-pill small { display: block; font-weight: 500; font-size: .75rem; letter-spacing: .08em; opacity: .9; }
.wa-pill strong { font-size: 1.15rem; }
.wa-fab { position: fixed; left: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--whatsapp); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.wa-fab .icon { width: 30px; height: 30px; stroke: none; fill: var(--white); }
.help-box { display: flex; align-items: center; gap: 14px; background: var(--green-100); border-radius: var(--radius); padding: 18px 20px; color: var(--green-900); }
.help-box .wa-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--whatsapp); display: grid; place-items: center; flex: none; }
.help-box .wa-icon .icon { width: 26px; height: 26px; stroke: none; fill: var(--white); }
.help-box strong { display: block; font-family: var(--font-display); font-size: 1.25rem; }
.help-box a { color: var(--green-900); font-weight: 700; }

/* ---------- winners ---------- */
.winner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.winner__img { aspect-ratio: 4 / 3; background: var(--cream-dark); }
.winner__img img { width: 100%; height: 100%; object-fit: cover; }
.winner__body { padding: 24px; }
.winner__title { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 10px; }
.winner__text { font-size: .9rem; color: var(--ink-soft); }
.winner__quote { font-style: italic; color: var(--muted); font-size: .9rem; border-left: 3px solid var(--green-500); padding-left: 12px; margin-top: 12px; }
@media (max-width: 600px) { .winner { grid-template-columns: 1fr; } }

/* ---------- coupon card ---------- */
.coupon { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.coupon:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.coupon__img { aspect-ratio: 4 / 3; background: var(--cream-dark); }
.coupon__img img { width: 100%; height: 100%; object-fit: cover; }
.coupon__badge { position: absolute; top: 12px; left: 12px; background: var(--green-700); color: var(--white); font-weight: 800; font-size: 1rem; padding: 6px 14px; border-radius: var(--radius-pill); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.coupon__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; text-align: center; }
.coupon__vendor { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--green-800); margin-bottom: 8px; }
.coupon__text { font-size: .9rem; color: var(--ink-soft); flex: 1; margin-bottom: 12px; }
.coupon__link { font-size: .875rem; font-weight: 600; color: var(--green-700); }
.coupon__link .icon { width: 1em; height: 1em; }

/* ---------- newsletter ---------- */
.newsletter { background: var(--green-100); border-radius: var(--radius); padding: 36px; display: grid; grid-template-columns: auto 1fr; gap: 24px 36px; align-items: center; }
.newsletter__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--white); display: grid; place-items: center; color: var(--green-700); }
.newsletter__icon .icon { width: 26px; height: 26px; }
.newsletter h3 { font-size: 1.25rem; margin: 0; }
.newsletter__form { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 12px; }
.newsletter__form .input { border-color: var(--white); }
.newsletter .return_message { grid-column: 1 / -1; }
.newsletter__note { grid-column: 1 / -1; text-align: center; font-size: .8rem; color: var(--muted); margin: 0; }
@media (max-width: 768px) { .newsletter { grid-template-columns: 1fr; padding: 24px; } .newsletter__form { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--green-950); color: rgba(255, 255, 255, .85); margin-top: 48px; }
.footer a { color: rgba(255, 255, 255, .85); }
.footer a:hover { color: var(--white); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr; gap: 32px; padding: 48px 0 32px; }
.footer__brand .header__logo { margin-bottom: 10px; }
.footer__tagline { font-weight: 600; color: var(--white); }
.footer__about { font-size: .875rem; }
.footer h4 { color: var(--white); font-size: .9rem; letter-spacing: .04em; margin-bottom: 14px; }
.footer__links li { margin-bottom: 8px; font-size: .9rem; }
.footer__links a::after { content: " ›"; opacity: .6; }
.social { display: flex; gap: 10px; margin: 14px 0 18px; }
.social a { width: 38px; height: 38px; border-radius: 8px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; }
.social a:hover { background: rgba(255, 255, 255, .22); }
.social .icon { width: 20px; height: 20px; }
.paylogos { display: flex; flex-wrap: wrap; gap: 8px; }
.paylogos span { background: var(--white); color: var(--ink); font-weight: 800; font-size: .75rem; padding: 7px 10px; border-radius: 6px; letter-spacing: .02em; }
.paylogos img { height: 30px; width: auto; background: var(--green-800); padding: 4px 8px; border-radius: 6px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; font-size: .8rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 1024px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__inner { grid-template-columns: 1fr; } }

/* ---------- page header, breadcrumb, steps ---------- */
.page-head { padding: 32px 0 8px; }
.breadcrumb { font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span::before { content: "/"; margin: 0 8px; opacity: .6; }
.steps { display: flex; align-items: center; gap: 12px; margin: 24px 0 28px; }
.steps__step { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.steps__num { width: 32px; height: 32px; border-radius: 50%; background: var(--cream-dark); color: var(--muted); display: grid; place-items: center; font-size: .85rem; font-weight: 700; }
.steps__step.is-active { color: var(--ink); }
.steps__step.is-active .steps__num { background: var(--green-800); color: var(--white); }
.steps__step.is-done .steps__num { background: var(--green-100); color: var(--green-800); }
.steps__line { flex: 1; height: 1px; background: var(--line); }
@media (max-width: 600px) { .steps__step .label { display: none; } .steps__step.is-active .label { display: inline; } }

/* ---------- ticket toolbar, legend, grid ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.search { display: flex; gap: 8px; flex: 1; min-width: 240px; }
.search .input { flex: 1; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle__track { width: 46px; height: 26px; border-radius: 13px; background: var(--line); position: relative; transition: background .15s; }
.toggle__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.toggle input:checked + .toggle__track { background: var(--green-600); }
.toggle input:checked + .toggle__track::after { transform: translateX(20px); }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: .85rem; color: var(--ink-soft); margin-bottom: 16px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 26px; height: 20px; border-radius: 5px; border: 1.5px solid var(--green-700); display: inline-grid; place-items: center; font-style: normal; font-size: .7rem; }
.legend i.l-sel { background: var(--green-700); color: var(--white); }
.legend i.l-sold { background: var(--red-100); border-color: #f0b4b4; color: var(--red-600); }
.legend i.l-hold { background: var(--amber-100); border-color: #ecd48a; color: var(--amber-600); }

.ticket-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; }
.ticket {
  position: relative; display: grid; place-items: center; height: 42px; border-radius: 7px;
  border: 1.5px solid var(--green-700); background: var(--white); color: var(--ink); font-weight: 600; font-size: .85rem;
  font-variant-numeric: tabular-nums; transition: background .1s, color .1s, transform .1s; padding: 0;
}
.ticket:hover { background: var(--green-100); }
.ticket.is-selected, .ticket.is-mine { background: var(--green-700); border-color: var(--green-700); color: var(--white); }
.ticket.is-selected::after, .ticket.is-mine::after { content: "✓"; position: absolute; right: 5px; top: 3px; font-size: .65rem; }
.ticket.is-sold { background: var(--red-100); border-color: #f0b4b4; color: var(--red-600); cursor: not-allowed; }
.ticket.is-sold::after { content: "✕"; position: absolute; right: 5px; top: 3px; font-size: .65rem; }
.ticket.is-hold { background: var(--amber-100); border-color: #ecd48a; color: var(--amber-600); cursor: not-allowed; }
.ticket.is-hold::after { content: "🔒"; position: absolute; right: 4px; top: 2px; font-size: .6rem; }
.ticket.is-flash { animation: flash .9s ease 2; }
.ticket.is-busy { opacity: .6; }
@keyframes flash { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); box-shadow: 0 0 0 4px rgba(31, 157, 85, .3); } }
@media (max-width: 1024px) { .ticket-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 600px) { .ticket-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; } .ticket { height: 40px; font-size: .8rem; } }

.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.pager__info { font-size: .85rem; color: var(--muted); margin-right: auto; }
.pager button { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); font-weight: 600; font-size: .85rem; }
.pager button.is-active { background: var(--green-800); border-color: var(--green-800); color: var(--white); }
.pager button[disabled] { opacity: .45; cursor: default; }

/* ticket cart panel */
.tcart__count { font-weight: 600; margin-bottom: 14px; }
.tcart__list { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow: auto; margin-bottom: 16px; }
.tcart__item { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.tcart__item strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.tcart__item small { display: block; color: var(--muted); font-size: .8rem; }
.tcart__item .price { margin-left: auto; font-weight: 700; white-space: nowrap; }
.tcart__item .remove { border: 0; background: none; color: var(--muted); padding: 4px; }
.tcart__item .remove:hover { color: var(--red-600); }
.tcart__item.is-gone { border-color: #f0b4b4; background: var(--red-100); }
.tcart__empty { color: var(--muted); font-size: .9rem; text-align: center; padding: 18px 0; }
.tcart__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 16px; }
.tcart__total strong { font-family: var(--font-display); font-size: 1.7rem; }
.tcart__note { font-size: .78rem; color: var(--muted); text-align: center; margin: 10px 0 14px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.secure .paylogos span { padding: 4px 8px; font-size: .68rem; border: 1px solid var(--line); }
.tcart-bar { display: none; }
@media (max-width: 1024px) {
  .tcart-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--white); border-top: 1px solid var(--line); padding: 10px 16px; align-items: center; gap: 12px; box-shadow: 0 -8px 24px rgba(0, 0, 0, .1); }
  .tcart-bar strong { font-size: 1.1rem; }
  .tcart-bar .btn { margin-left: auto; }
  body.has-tcart-bar { padding-bottom: 76px; }
  .wa-fab { bottom: 86px; }
}

/* ---------- checkout ---------- */
.summary { display: flex; flex-direction: column; gap: 8px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.summary__row--total { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 700; font-size: 1.1rem; }
.payopt { display: flex; gap: 14px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 12px; cursor: pointer; background: var(--white); }
.payopt:has(input:checked) { border-color: var(--green-600); background: var(--green-50); }
.payopt input { margin-top: 4px; accent-color: var(--green-700); }
.payopt__label { font-weight: 700; }
.payopt__desc { font-size: .85rem; color: var(--muted); white-space: pre-line; }
.payopt img { height: 26px; width: auto; }
.auth-switch { font-size: .9rem; margin-bottom: 18px; }
.profile-card { display: flex; justify-content: space-between; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--green-50); }

/* ---------- misc ---------- */
.ticket-chip { display: inline-block; background: var(--green-100); color: var(--green-900); font-weight: 700; padding: 6px 12px; border-radius: 6px; font-variant-numeric: tabular-nums; margin: 0 6px 6px 0; }
.voucher { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; background: var(--white); }
.voucher img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.voucher code { font-size: 1.05rem; font-weight: 700; background: var(--cream); padding: 2px 8px; border-radius: 4px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery img { border-radius: var(--radius-sm); aspect-ratio: 1; object-fit: cover; }
.map iframe { width: 100%; height: 360px; border: 0; border-radius: var(--radius); }
.contact-list li { display: flex; gap: 12px; margin-bottom: 14px; }
.contact-list .icon { color: var(--green-700); margin-top: 3px; }
.prose p { margin-bottom: 1em; }
.prose h2, .prose h3 { margin-top: 1.5em; }
.notice-api { background: var(--amber-100); color: var(--amber-600); text-align: center; font-size: .85rem; padding: 8px; }
