/* toomotions Events & Tickets. Everything is scoped under .tmev so nothing leaks into PlayTube. */
.tmev { --tmev-accent: #e8336d; --tmev-accent-2: #6c4cf1; --tmev-ok: #1f9d55; --tmev-warn: #d97706; --tmev-bad: #d64545;
  --tmev-line: rgba(127,127,127,.22); --tmev-soft: rgba(127,127,127,.07); --tmev-radius: 12px;
  font-size: 14px; line-height: 1.5; margin: 0 auto 40px; max-width: 1180px; }
.tmev *, .tmev *::before, .tmev *::after { box-sizing: border-box; }
.tmev a { color: inherit; }
.tmev h1, .tmev h2, .tmev h3 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
.tmev h1 { font-size: 26px; } .tmev h2 { font-size: 19px; } .tmev h3 { font-size: 16px; }
.tmev .muted { opacity: .68; }
.tmev .small { font-size: 12.5px; }
.tmev .row-flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tmev .spacer { flex: 1; }
.tmev .panel { background: var(--tmev-soft); border: 1px solid var(--tmev-line); border-radius: var(--tmev-radius); padding: 18px; }
.tmev .head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 18px; }

/* buttons & inputs */
.tmev .btn-t { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--tmev-line);
  background: transparent; color: inherit; border-radius: 9px; padding: 8px 14px; font-weight: 600; cursor: pointer;
  text-decoration: none !important; line-height: 1.2; font-size: 13.5px; white-space: nowrap; }
.tmev .btn-t:hover { background: var(--tmev-soft); }
.tmev .btn-t.primary { background: var(--tmev-accent); border-color: var(--tmev-accent); color: #fff; }
.tmev .btn-t.primary:hover { filter: brightness(1.07); }
.tmev .btn-t.dark { background: #1d1d26; border-color: #1d1d26; color: #fff; }
.tmev .btn-t.danger { color: var(--tmev-bad); border-color: rgba(214,69,69,.45); }
.tmev .btn-t.big { padding: 12px 20px; font-size: 15px; border-radius: 11px; }
.tmev .btn-t.block { width: 100%; }
.tmev .btn-t[disabled] { opacity: .45; cursor: not-allowed; }
.tmev input[type=text], .tmev input[type=number], .tmev input[type=search], .tmev input[type=datetime-local],
.tmev select, .tmev textarea { width: 100%; border: 1px solid var(--tmev-line); background: rgba(127,127,127,.04); color: inherit;
  border-radius: 9px; padding: 9px 11px; font-size: 14px; outline: none; }
.tmev input:focus, .tmev select:focus, .tmev textarea:focus { border-color: var(--tmev-accent-2); box-shadow: 0 0 0 3px rgba(108,76,241,.15); }
.tmev select option { color: #222; }
.tmev label.f { display: block; font-weight: 600; font-size: 12.5px; margin: 0 0 5px; }
.tmev .field { margin-bottom: 14px; }
.tmev .hint { font-size: 12px; opacity: .65; margin-top: 4px; }

/* badges */
.tmev .badge-t { display: inline-block; border-radius: 99px; padding: 2px 9px; font-size: 11.5px; font-weight: 700;
  background: var(--tmev-soft); border: 1px solid var(--tmev-line); text-transform: capitalize; }
.tmev .badge-t.published, .tmev .badge-t.paid, .tmev .badge-t.ok { color: var(--tmev-ok); border-color: rgba(31,157,85,.4); }
.tmev .badge-t.pending, .tmev .badge-t.held { color: var(--tmev-warn); border-color: rgba(217,119,6,.4); }
.tmev .badge-t.rejected, .tmev .badge-t.cancelled, .tmev .badge-t.refunded { color: var(--tmev-bad); border-color: rgba(214,69,69,.4); }
.tmev .badge-t.live { background: var(--tmev-bad); color: #fff; border-color: var(--tmev-bad); }

/* list */
.tmev .filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto; gap: 10px; margin-bottom: 20px; }
.tmev .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.tmev .card-e { border: 1px solid var(--tmev-line); border-radius: var(--tmev-radius); overflow: hidden; text-decoration: none !important;
  display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; background: var(--tmev-soft); }
.tmev .card-e:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.tmev .card-e .cover { aspect-ratio: 16/9; background: #333 center/cover no-repeat; position: relative; }
.tmev .card-e .date { position: absolute; left: 10px; top: 10px; background: #fff; color: #111; border-radius: 9px; text-align: center;
  padding: 4px 9px; line-height: 1.1; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.tmev .card-e .date b { display: block; font-size: 18px; color: #111 !important; } .tmev .card-e .date span { color: #e8336d !important; font-size: 11px; text-transform: uppercase; font-weight: 700; color: var(--tmev-accent); }
.tmev .card-e .tag { position: absolute; right: 10px; top: 10px; }
.tmev .card-e .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tmev .card-e .title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.tmev .card-e .price { margin-top: auto; padding-top: 6px; font-weight: 700; }
.tmev .empty { text-align: center; padding: 50px 20px; }
.tmev .empty svg { width: 46px; height: 46px; opacity: .5; }

/* detail */
.tmev .hero { border-radius: 16px; overflow: hidden; aspect-ratio: 21/8; background: #333 center/cover no-repeat; margin-bottom: 20px; }
.tmev .detail { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 26px; align-items: start; }
.tmev .facts { display: grid; gap: 10px; margin: 16px 0; }
.tmev .fact { display: flex; gap: 10px; align-items: flex-start; }
.tmev .fact svg { width: 20px; height: 20px; flex: none; margin-top: 1px; opacity: .75; }
.tmev .desc { white-space: pre-line; word-wrap: break-word; }
.tmev .org { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.tmev .org img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.tmev .buy { position: sticky; top: 76px; }
.tmev .notice { border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; border: 1px solid var(--tmev-line); }
.tmev .notice.warn { border-color: rgba(217,119,6,.45); background: rgba(217,119,6,.08); }
.tmev .notice.bad { border-color: rgba(214,69,69,.45); background: rgba(214,69,69,.08); }
.tmev .notice.ok { border-color: rgba(31,157,85,.45); background: rgba(31,157,85,.08); }
.tmev .ttype { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--tmev-line); }
.tmev .ttype:last-of-type { border-bottom: 0; }
.tmev .ttype .nm { font-weight: 700; } .tmev .ttype .pr { font-weight: 700; white-space: nowrap; }
.tmev .stepper { display: inline-flex; align-items: center; border: 1px solid var(--tmev-line); border-radius: 9px; overflow: hidden; }
.tmev .stepper button { width: 32px; height: 32px; border: 0; background: transparent; color: inherit; font-size: 18px; cursor: pointer; }
.tmev .stepper button:hover { background: var(--tmev-soft); }
.tmev .stepper span { min-width: 26px; text-align: center; font-weight: 700; }
.tmev .sumline { display: flex; justify-content: space-between; padding: 3px 0; }
.tmev .sumline.total { font-weight: 800; font-size: 16px; border-top: 1px solid var(--tmev-line); margin-top: 6px; padding-top: 8px; }

/* seat map */
.tmev .seatmap { overflow-x: auto; padding: 4px 0 8px; }
.tmev .stage { text-align: center; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; font-weight: 700; opacity: .6;
  border: 1px solid var(--tmev-line); border-radius: 0 0 60% 60% / 0 0 100% 100%; padding: 6px; margin: 0 8% 16px; }
.tmev .section-t { margin: 12px 0 6px; font-weight: 700; font-size: 13px; display: flex; justify-content: space-between; }
.tmev .srow { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; justify-content: center; min-width: max-content; }
.tmev .srow .rl { width: 18px; font-size: 11px; font-weight: 700; opacity: .6; text-align: center; }
.tmev .seat { width: 22px; height: 22px; border-radius: 6px 6px 4px 4px; border: 1px solid rgba(31,157,85,.6); background: rgba(31,157,85,.1);
  font-size: 9px; color: inherit; cursor: pointer; padding: 0; line-height: 20px; }
.tmev .seat:hover { background: rgba(31,157,85,.3); }
.tmev .seat.x { background: rgba(127,127,127,.25); border-color: transparent; cursor: not-allowed; color: transparent; }
.tmev .seat.sel, .tmev .seat.m { background: var(--tmev-accent-2); border-color: var(--tmev-accent-2); color: #fff; }
.tmev .seatmap.dense .seat { width: 17px; height: 18px; font-size: 8px; line-height: 16px; border-radius: 5px 5px 3px 3px; }
.tmev .seatmap.dense .srow { gap: 2px; }
.tmev .seatmap.dense .srow .rl { width: 14px; }
.tmev .mbar { display: none; }
.tmev .legend { display: flex; gap: 14px; justify-content: center; font-size: 12px; margin: 8px 0; }
.tmev .legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; border: 1px solid rgba(31,157,85,.6); background: rgba(31,157,85,.1); }
.tmev .legend i.x { background: rgba(127,127,127,.25); border-color: transparent; } .tmev .legend i.sel { background: var(--tmev-accent-2); border-color: var(--tmev-accent-2); }

/* checkout overlay */
.tmev-modal { position: fixed; inset: 0; background: rgba(10,10,18,.62); z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.tmev-modal .tmev-box span, .tmev-modal .tmev-box b, .tmev-modal .tmev-box small, .tmev-modal .tmev-box div { color: inherit !important; }
.tmev-modal .tmev-box { background: #fff; color: #1b1b22 !important; text-align: left; font-size: 14px; line-height: 1.45; width: 100%; max-width: 440px; border-radius: 16px; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.35); max-height: 92vh; overflow: auto; }
.tmev-modal .tmev-box .timer { font-variant-numeric: tabular-nums; font-weight: 700; color: #d97706 !important; }
.tmev-modal .line { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.tmev-modal .line.total { font-weight: 800; font-size: 17px; border-top: 1px solid #e5e5ea; margin-top: 8px; padding-top: 10px; }
.tmev-modal .msg { border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; font-size: 13px; }
.tmev-modal .tmev-box .msg.bad { background: #fdecec; color: #9b1c1c !important; } .tmev-modal .tmev-box .msg.ok { background: #e7f6ee; color: #12643a !important; }
.tmev-modal .btn-t { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; padding: 12px 16px; font-weight: 700; border: 1px solid #ddd; background: #fff; color: #1b1b22; cursor: pointer; text-decoration: none; font-size: 14.5px; }
.tmev-modal .tmev-box .btn-t { color: #1b1b22 !important; }
.tmev-modal .tmev-box .btn-t.primary { background: #e8336d; border-color: #e8336d; color: #fff !important; }
.tmev-modal .btn-t[disabled] { opacity: .5; cursor: wait; }

/* tables (manage / sales / admin) */
.tmev table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tmev table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; opacity: .7; padding: 8px 10px; border-bottom: 1px solid var(--tmev-line); }
.tmev table.t td { padding: 10px; border-bottom: 1px solid var(--tmev-line); vertical-align: middle; }
.tmev table.t td.num, .tmev table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tmev .tablewrap { overflow-x: auto; }
.tmev .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tmev .stat { border: 1px solid var(--tmev-line); border-radius: var(--tmev-radius); padding: 12px 14px; background: var(--tmev-soft); }
.tmev .stat b { display: block; font-size: 21px; font-variant-numeric: tabular-nums; } .tmev .stat span { font-size: 12px; opacity: .7; }
.tmev .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.tmev .actions .btn-t { padding: 6px 10px; font-size: 12.5px; }

/* tickets */
.tmev .booking { border: 1px solid var(--tmev-line); border-radius: var(--tmev-radius); margin-bottom: 18px; overflow: hidden; }
.tmev .booking.focus { box-shadow: 0 0 0 3px rgba(108,76,241,.35); }
.tmev .booking .bh { display: flex; gap: 14px; padding: 14px; align-items: center; flex-wrap: wrap; background: var(--tmev-soft); }
.tmev .booking .bh .thumb { width: 96px; aspect-ratio: 16/9; border-radius: 8px; background: #333 center/cover; flex: none; }
.tmev .tix { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; padding: 14px; }
.tmev .tix .tk { border: 1px dashed var(--tmev-line); border-radius: 10px; padding: 12px; text-align: center; }
.tmev .tix .qr { background: #fff; padding: 8px; border-radius: 8px; display: inline-block; min-height: 136px; min-width: 136px; }
.tmev .tix .code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .08em; margin-top: 6px; font-size: 15px; }
.tmev .tix .tk.void { opacity: .45; } .tmev .tix .tk.used .code::after { content: " ✓"; color: var(--tmev-ok); }

/* editor */
.tmev .edit-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 22px; align-items: start; }
.tmev .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tmev .three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.tmev .seg { display: inline-flex; border: 1px solid var(--tmev-line); border-radius: 10px; overflow: hidden; }
.tmev .seg label { margin: 0; padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 13px; }
.tmev .seg input { display: none; }
.tmev .seg input:checked + span { color: var(--tmev-accent); }
.tmev .seg label:has(input:checked) { background: rgba(232,51,109,.1); }
.tmev .seg label.off { opacity: .4; cursor: not-allowed; }
.tmev .typerow { border: 1px solid var(--tmev-line); border-radius: 10px; padding: 12px; margin-bottom: 10px; position: relative; }
.tmev .typerow .rm { position: absolute; right: 8px; top: 6px; border: 0; background: none; color: inherit; opacity: .5; font-size: 20px; cursor: pointer; }
.tmev .typerow .grid4 { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px; }
.tmev .coverbox { aspect-ratio: 16/9; border-radius: 10px; background: #333 center/cover no-repeat; border: 1px dashed var(--tmev-line); display: flex;
  align-items: center; justify-content: center; color: #fff; cursor: pointer; text-shadow: 0 1px 3px rgba(0,0,0,.6); font-weight: 600; }
.tmev .preview-calc .sumline { font-size: 13px; }

/* check-in */
.tmev .scanner { max-width: 520px; margin: 0 auto; }
.tmev #tmev-reader { border-radius: 12px; overflow: hidden; background: #000; }
.tmev #tmev-reader:empty { display: none; }
.tmev .result { border-radius: 12px; padding: 18px; text-align: center; margin-top: 14px; font-weight: 700; font-size: 17px; display: none; }
.tmev .result.ok { display: block; background: rgba(31,157,85,.14); color: var(--tmev-ok); }
.tmev .result.bad { display: block; background: rgba(214,69,69,.14); color: var(--tmev-bad); }
.tmev .result small { display: block; font-weight: 500; font-size: 13px; color: inherit; opacity: .85; margin-top: 4px; }

@media (max-width: 960px) {
  .tmev .detail, .tmev .edit-grid { grid-template-columns: 1fr; }
  .tmev .mbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 999; align-items: center; gap: 10px;
    background: #1d1d26; color: #fff; border-radius: 14px; padding: 10px 10px 10px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
  .tmev .mbar b { font-size: 15px; } .tmev .mbar .btn-t.primary { margin-left: auto; }
  .tmev .buy { position: static; }
  .tmev .filters { grid-template-columns: 1fr 1fr; }
  .tmev .hero { aspect-ratio: 16/9; }
}
@media (max-width: 560px) {
  .tmev .two, .tmev .three, .tmev .typerow .grid4 { grid-template-columns: 1fr 1fr; }
  .tmev h1 { font-size: 22px; }
}
@media print {
  .tmev .booking { break-inside: avoid; }
  .tmev .btn-t, header, .navbar, #sidebar, .left-sidebar { display: none !important; }
}

/* header button + home strip (outside .tmev pages) */
.tmev-hdr-btn { display: inline-flex !important; align-items: center; gap: 6px; border: 1px solid rgba(232,51,109,.6); color: #e8336d !important;
  border-radius: 8px; padding: 7px 12px !important; font-weight: 600; margin-right: 6px; line-height: 1.2; }
.tmev-hdr-btn:hover { background: rgba(232,51,109,.12); }
.tmev-home { margin: 4px 0 6px; }
.tmev-home .tmev-strip { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; }
.tmev-home .tmev-strip::-webkit-scrollbar { height: 6px; } .tmev-home .tmev-strip::-webkit-scrollbar-thumb { background: rgba(127,127,127,.35); border-radius: 3px; }
.tmev-home .card-e { flex: 0 0 260px; scroll-snap-align: start; }
