@import url("../components/point-wallet.css");

/* Scoped to the point routes; the existing shell and other pages stay intact. */
.point-page { display: grid; gap: 16px; min-width: 0; }
.point-page-heading h1 { margin: 0; font-size: 22px; line-height: 1.4; font-weight: 800; color: var(--mak-ink); }
.point-page-heading p { margin: 5px 0 0; font-size: 13px; line-height: 1.65; color: var(--mak-muted); }
.point-panel { padding: 18px; min-width: 0; box-shadow: var(--shadow-xs); }
.point-panel-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.point-panel-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--mak-green-soft); color: var(--mak-green-dark); font-size: 18px; }
.point-panel h2 { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 800; }
.point-panel-heading p { margin: 3px 0 0; font-size: 12px; color: var(--mak-muted); }
.point-form { display: grid; gap: 10px; }
.point-form label { margin: 0; font-size: 13px; font-weight: 700; color: var(--mak-ink-2); }
.point-form .ui-input { min-height: 46px; font-size: 14px; padding: 12px; }
.point-form .ui-input:disabled { background: var(--mak-paper-subtle); color: var(--mak-muted); }
.point-action { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin-top: 4px; padding: 12px; border: 1px solid var(--mak-green-dark); border-radius: 10px; background: var(--mak-green-dark); color: #fff; font-size: 14px; line-height: 1.5; font-weight: 700; text-align: center; }
.point-action:hover:not(:disabled) { background: var(--mak-deep-3); }
.point-action:disabled { background: #e7eaee; border-color: #d9dee4; color: #607568; cursor: not-allowed; }
.point-action:focus-visible, .point-history-link:focus-visible { outline: 3px solid var(--mak-gold); outline-offset: 3px; }
.point-note, .point-empty, .point-error { display: flex; align-items: start; gap: 8px; margin: 0; font-size: 13px; line-height: 1.65; }
.point-note { padding: 12px 14px; border-radius: 10px; background: var(--mak-gold-soft); color: var(--mak-ink-2); }
.point-note i, .point-empty i, .point-error i { flex: none; }
.point-empty { padding: 12px; border: 1px dashed var(--mak-line); border-radius: 10px; background: var(--mak-paper); color: var(--mak-muted); }
.point-error { padding: 12px; margin-bottom: 14px; border-radius: 10px; background: #fff0ee; color: #a43328; overflow-wrap: anywhere; }
.point-round-campaign { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: var(--mak-muted); overflow-wrap: anywhere; }
.point-preview { margin: 2px 0 0; font-size: 12px; line-height: 1.6; color: var(--mak-muted); }
.point-history-link { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 14px 16px; font-size: 13px; font-weight: 700; color: var(--mak-green-dark); }
.point-history-link .bi-chevron-right { margin-left: auto; }
.point-state { padding: 24px 18px; font-size: 14px; line-height: 1.65; text-align: center; }
.point-state > .bi { display: block; margin-bottom: 12px; font-size: 28px; color: var(--mak-green-dark); }
.point-state p { margin: 0 0 16px; }
.point-action { background: #0d3ea6; border-color: #0d3ea6; }
.point-action-outline { background: #fff; color: #0d3ea6; }
.point-action-outline:hover:not(:disabled), .point-action-outline:active:not(:disabled) { background: #e8ecf5; color: #0d3ea6; border-color: #0d3ea6; }
.draw-section { padding: 10px 8px 0; }
.draw-section h1 { margin: 0 0 16px; font-size: 16px; font-weight: 700; }
.draw-quantity { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-bottom: 16px; font-size: 24px; font-weight: 800; }
.draw-quantity small { margin-left: 14px; font-size: 12px; font-weight: 400; color: #839086; }
.draw-details { display: grid; gap: 14px; padding: 16px 0 24px; font-size: 13px; }
.draw-details h2 { margin: 0 0 6px; font-size: 14px; font-weight: 700; }
.draw-details div { display: flex; justify-content: space-between; gap: 12px; color: #7b8480; }
.draw-details strong { color: #1e3b79; font-size: 13px; }
.draw-details div:last-child { padding-top: 14px; border-top: 1px solid #eceef0; color: #1e3b79; }
.point-wallet.ticket-summary { padding: 24px; }
.ticket-summary-title { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 700; color: inherit; }
.ticket-summary .point-wallet-value { display: block; margin: 12px 0 24px; font-size: clamp(36px, 10vw, 48px); line-height: 1.1; color: var(--mak-gold, #ffcf3b); font-variant-numeric: tabular-nums; }
.ticket-summary-stats { display: grid; gap: 14px; margin: 0; }
.ticket-summary-stats > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 16px; line-height: 1.5; }
.ticket-summary-stats dt { font-weight: 500; }
.ticket-summary-stats dd { min-width: 0; margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ticket-card { padding: 18px; border: 1px solid #e8ebe7; border-radius: 16px; box-shadow: none; }
.ticket-card > div { display: flex; align-items: center; gap: 8px; color: #0d3ea6; font-size: 14px; }
.ticket-card > div span { margin-left: auto; border-radius: 999px; padding: 5px 8px; background: #e8ecf4; font-size: 10px; }
.ticket-card p { margin: 12px 0 8px; font-size: 13px; }
.ticket-card small { display: block; margin-top: 5px; color: #879188; font-size: 11px; overflow-wrap: anywhere; }
.ticket-code-text { font-family: monospace; font-size: 15px; font-weight: 800; letter-spacing: 0.5px; white-space: nowrap; color: #0d3ea6; }
@media (max-width: 359px) {
  .point-page-heading h1 { font-size: 20px; }
  .point-panel, .point-wallet { padding: 14px; }
  .point-wallet-badge { font-size: 10px; }
}

.ticket-definitions { margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .22); list-style: none; display: grid; gap: 8px; font-size: 13px; line-height: 1.6; color: inherit; }
.ticket-definitions strong { font-weight: 700; }
a.ticket-card { display: block; color: inherit; text-decoration: none; }
a.ticket-card:focus-visible { outline: 2px solid var(--mak-green, #0e8b52); outline-offset: 2px; }
.ticket-detail { display: grid; gap: 12px; padding: 22px 18px; text-align: center; }
.ticket-detail-code { font-size: clamp(30px, 9vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: .5px; color: var(--mak-green-dark, #086b3e); overflow-wrap: anywhere; }
.ticket-detail-tag { justify-self: center; padding: 6px 14px; border-radius: 999px; background: var(--mak-green-soft, #e6f6ee); color: var(--mak-green-dark, #086b3e); font-size: 13px; font-weight: 700; }
.ticket-detail-rows { text-align: left; }
.ticket-detail-round-row { align-items: flex-start; gap: 12px; }
.ticket-detail-rounds { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; font-weight: 600; line-height: 1.5; text-align: right; }
.ticket-detail-rounds em { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--mak-green-soft, #e6f6ee); font-size: 11px; font-style: normal; }
.ticket-detail-notice { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fff8e1; color: #5f4b00; font-size: 14px; line-height: 1.6; text-align: left; }
.ticket-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.ticket-filter label { display: grid; gap: 4px; font-size: 12px; color: #5d685f; }
.ticket-filter select, .ticket-filter input { min-height: 40px; padding: 0 10px; border: 1px solid #dfe4df; border-radius: 12px; background: #fff; font: inherit; font-size: 14px; color: #1d2a20; }
.ticket-filter-reset { grid-column: 1 / -1; min-height: 36px; border: 0; background: transparent; color: var(--mak-green, #087838); font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; }
