.quota-page { font-family: Nunito, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg-primary); }
.quota-page [hidden] { display: none !important; }
.q-main { width: 100%; max-width: 480px; margin: 0 auto; padding: 0 0 24px; }
.q-reservation { min-width: 0; margin: 0 16px; }
.q-card { border: 1px solid var(--border-color); border-radius: 20px; background: var(--bg-secondary); padding: 24px; box-shadow: 0 6px 20px transparent; }
.q-card h2 { font-size: 23px; line-height: 1.25; letter-spacing: -.5px; margin: 0 0 8px; }
.q-muted { color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
.q-availability { display: flex; align-items: center; gap: 5px; margin-bottom: 16px; font-size: 11px; color: var(--accent); }
.q-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 3px; flex-shrink: 0; }
.q-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; margin-top: 24px; }
.q-presets[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.q-presets[data-count="2"], .q-presets[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.q-presets button { position: relative; min-height: 99px; min-width: 0; padding: 14px 5px 10px; border: 1px solid var(--border-color); border-radius: 11px; background: var(--bg-tertiary); color: var(--text-primary); font-size: 17px; font-weight: 600; cursor: pointer; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; }
.q-presets button.active { color: var(--on-accent); border-color: var(--accent); background: var(--accent); }
.q-preset strong { font-size: 25px; line-height: 1.05; letter-spacing: -.5px; }
.q-preset-label { font-size: 10px; font-weight: 500; max-width: 100%; overflow-wrap: anywhere; }
.q-preset-unit { margin-top: 4px; font-size: 10px; font-weight: 500; opacity: .85; line-height: 1.3; }
.q-popular { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); padding: 3px 8px; font-size: 10px; line-height: 1.1; border-radius: 99px; white-space: nowrap; }
.q-promotions { padding: 11px 12px; margin: 14px 0; background: var(--accent-soft); border-radius: 10px; color: var(--accent); font-size: 11px; line-height: 1.6; }
.q-promotions p + p { margin-top: 4px; }
.q-stepper { margin: 12px 0 16px; padding: 10px; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.q-stepper button { height: 44px; width: 44px; flex-shrink: 0; font-size: 26px; color: var(--accent); background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 9px; cursor: pointer; }
.q-stepper label { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.q-stepper label span { color: var(--text-secondary); font-size: 11px; text-align: center; }
.q-stepper input { border: 0; background: none; text-align: center; width: 100%; max-width: 100px; font-size: 24px; font-weight: 650; padding-top: 3px; color: var(--text-primary); appearance: textfield; }
.q-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.q-pricing { border-top: 1px solid var(--border-color); padding: 14px 0 17px; }
.q-unit-price { font-size: 12px; line-height: 1.5; color: var(--text-secondary); }
.q-total { padding: 7px 0 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.q-total span { font-size: 14px; color: var(--text-secondary); }
.q-total strong { font-size: 27px; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.q-price-values { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 5px 9px; min-width: 0; }
.q-price-values s { color: var(--text-secondary); font-size: 13px; }
.q-discount { text-align: right; color: var(--accent); font-size: 12px; margin-top: 5px; }
.q-primary { display: flex; justify-content: center; gap: 14px; align-items: center; background: var(--accent); color: var(--on-accent); border: 0; width: 100%; min-height: 50px; border-radius: 11px; font-size: 15px; font-weight: 600; padding: 13px; cursor: pointer; }
.q-primary:hover { background: var(--accent-dark); }
.quota-page button:disabled { opacity: .4; cursor: not-allowed; }
.quota-page button:focus-visible, .quota-page a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.q-back { border: 0; background: none; color: var(--accent); font-size: 14px; padding: 12px 0; cursor: pointer; }
#q-details .q-back { margin: -8px 0 10px; }
#q-form { margin-top: 20px; }
#q-form input:read-only { color: var(--text-secondary); }
#q-country-code:disabled { opacity: .6; cursor: default; }
.q-summary { font-size: 14px; color: var(--accent); margin-top: 12px; background: var(--bg-tertiary); padding: 10px 12px; border-radius: 8px; }
#q-error { border-radius: 12px; padding: 14px; background: var(--error-bg); color: var(--error-text); line-height: 1.6; margin-top: 16px; font-size: 14px; }
#q-status { text-align: center; margin-top: 12px; font-size: 13px; color: var(--accent); }
#q-status:empty { display: none; }
.q-success { text-align: center; }
.q-success-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-secondary); color: var(--accent); font-size: 26px; margin: 0 auto 16px; }
.q-pending { display: inline-block; margin: 16px 0; color: var(--notice-text); background: var(--notice-bg); font-size: 12px; border-radius: 7px; padding: 7px 10px; }
.q-success h3 { font-size: 14px; margin: 20px 0 12px; }
#q-receipt-summary { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.q-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; max-height: 260px; overflow: auto; margin-bottom: 20px; }
.q-numbers span { background: var(--bg-tertiary); color: var(--accent); border: 1px solid var(--border-color); border-radius: 8px; padding: 9px; font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 600; }
.q-pix { text-align: left; margin: 22px 0; padding: 16px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-tertiary); }
.q-pix h3 { margin: 0 0 14px; font-size: 17px; }
.q-pix-details { margin: 0 0 18px; font-size: 13px; }
.q-pix-details > div { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; }
.q-pix-details dt { color: var(--text-secondary); }
.q-pix-details dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.q-pix label { font-size: 12px; font-weight: 550; }
.q-pix textarea { width: 100%; min-width: 0; padding: 10px; margin: 8px 0 12px; resize: vertical; border: 1px solid var(--border-color); border-radius: 8px; font: 12px/1.6 monospace; color: var(--text-primary); background: var(--bg-secondary); overflow-wrap: anywhere; }
.q-pix .q-muted { font-size: 11px; margin-top: 12px; }
#q-pix-status { color: var(--accent); font-size: 12px; line-height: 1.5; margin-top: 10px; }
#q-pix-status:empty { display: none; }
.q-refresh { margin-top: 12px; }
.q-organizer-contact { margin-top: 12px; }
.q-contact-button { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border-color); gap: 9px; }
.q-contact-button i { color: var(--accent); font-size: 19px; }
.q-contact-button:hover { background: var(--accent-soft); border-color: var(--accent); }
/* Mobile proportions remain in one column on desktop as well. */
.q-card { border-radius: 16px; }
.q-card { padding: 20px; }
.q-card h2 { font-size: 21px; }
.q-availability { margin-bottom: 12px; }
.q-presets { margin-top: 24px; }
@media (max-width: 360px) {
  .q-card { padding: 16px; }
}

.q-success-icon { background: var(--accent-soft); }
.q-card { box-shadow: var(--shadow); }

/* Rifa Fácil redesign: quota page (kept here so it wins over the rules above) */
.quota-page .q-reservation { margin-top: 14px; }
.quota-page .create-cta-section { padding-bottom: 32px; }
.quota-page .create-cta-section .container { padding: 0; margin: 0 16px; width: auto; }
.quota-page .q-card { border-radius: var(--card-radius); box-shadow: none; }
.quota-page .q-card h2 { font-size: 20px; font-weight: 900; letter-spacing: -.2px; }
.quota-page .q-muted { font-size: 14px; }
.quota-page .q-presets button { background: var(--bg-secondary); border-color: #dde2dc; border-radius: 14px; }
:root[data-theme="dark"] .quota-page .q-presets button { border-color: var(--border-color); }
.quota-page .q-presets button.active { background: var(--accent-soft); color: var(--text-primary); border: 2px solid var(--accent); }
.quota-page .q-preset strong { font-weight: 900; }
.quota-page .q-preset-label { font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.quota-page .q-preset-unit { font-size: 12px; font-weight: 800; color: var(--accent); opacity: 1; }
.quota-page .q-popular { background: var(--accent); color: var(--on-accent); border: 0; font-weight: 800; font-size: 11px; }
.quota-page .q-promotions { color: var(--accent-dark); font-size: 13px; font-weight: 700; border-radius: 12px; }
:root[data-theme="dark"] .quota-page .q-promotions { color: var(--accent); }
.quota-page .q-stepper { background: transparent; border: 0; padding: 0; }
.quota-page .q-stepper button { width: 52px; height: 52px; border-radius: 14px; border-color: #dde2dc; font-weight: 800; }
.quota-page .q-stepper label { flex: 1; height: 52px; justify-content: center; border: 1px solid #dde2dc; border-radius: 12px; background: var(--bg-secondary); }
:root[data-theme="dark"] .quota-page .q-stepper button, :root[data-theme="dark"] .quota-page .q-stepper label { border-color: var(--border-color); }
.quota-page .q-stepper input { font-weight: 900; font-size: 20px; padding-top: 0; }
.quota-page .q-total strong { font-weight: 900; }
.quota-page .q-primary { min-height: 54px; border-radius: 16px; font-size: 17px; font-weight: 900; }
.quota-page .q-numbers span { background: var(--accent); color: var(--on-accent); border: 0; font-weight: 900; }
.quota-page .q-pix { background: var(--bg-secondary); border-radius: 16px; }
.quota-page .q-pix textarea { background: var(--bg-primary); border-style: dashed; }
