:root{
  --bg1:#0b1a14; --bg2:#132a20; --text:#0f1720; --muted:#5b6673;
  --accent:#1f4d3a; --accent2:#173a2c; --border:rgba(15,23,32,.12);
  --shadow: 0 18px 45px rgba(0,0,0,.35); --white: rgba(255,255,255,.94);
}
*{box-sizing:border-box}
body{ margin:0; font-family:"Montserrat",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; color:var(--text); }
.bg{
  min-height:100vh;
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(900px 600px at 100% 20%, rgba(255,255,255,.05), transparent 55%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
  display:flex; flex-direction:column;
}
.topbar{ padding:18px 18px 10px; display:flex; justify-content:center; }
.brand{
  width:min(980px, 100%); color:#fff; display:flex; flex-direction:column; gap:6px;
  padding:14px 16px; border:1px solid rgba(255,255,255,.12); border-radius:18px;
  background: rgba(0,0,0,.18); backdrop-filter: blur(8px);
}
.brand-title{ font-weight:800; letter-spacing:.2px; font-size:18px; }
.brand-sub{ font-size:13px; opacity:.9; }
.wrap{ width:min(980px, 100%); margin:0 auto; padding:10px 18px 26px; display:flex; flex-direction:column; gap:14px; }
.panel{ background: var(--white); border:1px solid rgba(255,255,255,.65); border-radius:22px; box-shadow: var(--shadow); padding:18px; }
.h1{ margin:0 0 12px; font-size:22px; } .h2{ margin:0 0 10px; font-size:20px; }
.tickets{ display:flex; flex-direction:column; gap:12px; }
.ticket-card{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px; border:1px solid var(--border); border-radius:18px; background:#fff; }
.ticket-name{ font-weight:800; font-size:16px; } .ticket-price{ color:var(--muted); font-weight:700; margin-top:4px; }
.qty{ display:flex; align-items:center; gap:10px; }
.qty-btn{ width:54px; height:54px; border-radius:16px; border:none; background: var(--accent); color:#fff; font-size:28px; line-height:1; font-weight:900; display:flex; align-items:center; justify-content:center; touch-action: manipulation; user-select:none; cursor:pointer; }
.qty-btn:hover{ background:var(--accent2); } .qty-btn:active{ transform:scale(.98); }
.qty-value{ min-width:46px; text-align:center; font-size:20px; font-weight:900; color:#111827; }
.divider{ height:1px; background:rgba(15,23,32,.12); margin:14px 0; }
.cart-title{ font-weight:900; font-size:16px; margin-bottom:10px; }
.cart-rows{ display:flex; flex-direction:column; gap:10px; }
.row{ display:flex; justify-content:space-between; align-items:center; font-size:14px; color:#111827; }
.row .label{ color:#334155; font-weight:700; } .row .value{ font-weight:900; }
.row.total .label{ font-size:16px; } .row.total .value{ font-size:18px; }
.rules{ margin-top:14px; display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.check{ display:flex; gap:10px; align-items:center; cursor:pointer; user-select:none; font-weight:700; color:#0f1720; }
.check input{ display:none; }
.check .box{ width:22px; height:22px; border-radius:6px; border:2px solid rgba(15,23,32,.25); display:inline-flex; align-items:center; justify-content:center; background:#fff; }
.check input:checked + .box{ border-color:var(--accent); background:var(--accent); }
.check input:checked + .box::after{ content:"✓"; color:#fff; font-weight:900; font-size:14px; line-height:1; }
.link-btn{ border:none; background:transparent; color:var(--accent); font-weight:800; cursor:pointer; padding:10px 0; text-decoration:underline; }
.pay-btn{ width:100%; margin-top:14px; height:58px; border:none; border-radius:18px; background: var(--accent); color:#fff; font-size:18px; font-weight:900; cursor:pointer; touch-action: manipulation; }
.pay-btn:hover{ background:var(--accent2); } .pay-btn:disabled{ opacity:.45; cursor:not-allowed; }
.hint{ margin-top:10px; color:#64748b; font-size:13px; font-weight:600; }
.hidden{ display:none !important; }
.success-text{ margin:8px 0 14px; color:#334155; font-weight:700; }
.order{ border:1px dashed rgba(15,23,32,.25); border-radius:18px; padding:12px 14px; background:#fff; margin-bottom:12px; }
.order-label{ font-size:12px; color:#64748b; font-weight:900; text-transform:uppercase; letter-spacing:.06em; }
.order-id{ margin-top:6px; font-size:18px; font-weight:900; color:#0f1720; letter-spacing:.08em; }
.barcode-box{ background:#fff; border:1px solid var(--border); border-radius:18px; padding:14px; display:flex; justify-content:center; align-items:center; min-height:140px; }
.barcode-box img{ max-width:100%; height:auto; }
.secondary-btn{ width:100%; margin-top:14px; height:54px; border-radius:18px; border:1px solid rgba(15,23,32,.18); background:#fff; font-size:16px; font-weight:900; cursor:pointer; }
.modal{ position:fixed; inset:0; display:flex; align-items:center; justify-content:center; padding:18px; z-index:50; }
.modal-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.55); }
.modal-card{ position:relative; width:min(760px, 100%); background:rgba(255,255,255,.98); border-radius:20px; border:1px solid rgba(255,255,255,.65); box-shadow:0 30px 80px rgba(0,0,0,.45); overflow:hidden; }
.modal-head{ display:flex; justify-content:space-between; gap:12px; padding:16px 16px 10px; border-bottom:1px solid rgba(15,23,32,.10); }
.modal-title{ font-weight:900; color:#0f1720; } .modal-sub{ font-size:12px; color:#64748b; font-weight:700; margin-top:4px; }
.icon-btn{ width:40px; height:40px; border-radius:12px; border:1px solid rgba(15,23,32,.12); background:#fff; cursor:pointer; font-size:16px; font-weight:900; }
.modal-body{ padding:14px 16px; color:#0f1720; font-weight:600; } .modal-body ul{ margin:0 0 10px 18px; } .modal-body li{ margin:8px 0; }
.modal-note{ font-size:13px; color:#334155; font-weight:700; margin-top:10px; } .modal-note a{ color:var(--accent); font-weight:900; }
.modal-foot{ padding:12px 16px 16px; border-top:1px solid rgba(15,23,32,.10); }
