:root {
  --primary: #1268B0;
  --primary-dark: #0b3d69;
  --accent: #FAB615;
  --ink: #132033;
  --muted: #64748b;
  --line: #dbe5ef;
  --soft: #f4f8fb;
  --white: #fff;
  --shadow: 0 16px 40px rgba(15, 46, 77, .12);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--white); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }

.demo-banner { background: var(--primary-dark); color: var(--white); text-align: center; padding: .55rem 1rem; font-weight: 700; font-size: .9rem; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1.25rem; padding: .9rem clamp(1rem, 4vw, 3rem); background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.15rem; font-weight: 900; color: var(--primary-dark); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--primary); color: var(--white); }
.site-nav { display: flex; gap: 1rem; margin-left: auto; font-weight: 700; color: #334155; }
.site-nav a:hover { color: var(--primary); }
.header-actions { display: flex; gap: .7rem; }
.nav-toggle { display: none; border: 0; background: var(--soft); color: var(--primary-dark); padding: .65rem .8rem; border-radius: 8px; font-weight: 800; }

.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: .72rem 1rem; border-radius: 8px; border: 1px solid transparent; font-weight: 850; cursor: pointer; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-accent { background: var(--accent); color: #261a00; }
.btn-ghost { border-color: var(--line); color: var(--primary-dark); background: var(--white); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(18, 104, 176, .14); }

.hero, .detail-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 2.5rem; align-items: center; padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 5rem); background: linear-gradient(135deg, #eef7ff 0%, #ffffff 52%, #fff8df 100%); }
.hero h1, .page-hero h1, .detail-hero h1 { margin: .3rem 0 1rem; font-size: clamp(2.3rem, 5vw, 4.8rem); line-height: 1.02; letter-spacing: 0; color: var(--primary-dark); }
.hero p, .page-hero p, .detail-hero p { font-size: 1.12rem; color: #40546c; max-width: 760px; }
.hero-actions, .center-actions, .card-actions, .badge-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.hero-panel { display: grid; place-items: center; }
.ticket-snapshot, .summary-card, .form-card, .side-panel, .table-card, .result-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 1.4rem; box-shadow: var(--shadow); }
.ticket-snapshot { width: min(100%, 430px); min-height: 330px; display: flex; flex-direction: column; justify-content: space-between; }
.eyebrow { color: var(--primary); text-transform: uppercase; font-size: .78rem; font-weight: 900; letter-spacing: .08em; }
.badge { display: inline-flex; width: fit-content; padding: .25rem .55rem; border-radius: 999px; background: #e6f1fb; color: var(--primary-dark); font-size: .78rem; font-weight: 850; }
.badge-soft { background: #fff1bf; color: #5f4300; }

.section, .stats-grid { padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 5rem); }
.section-tight { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 5vw, 5rem); background: var(--soft); border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.3rem; }
.section-heading h2 { margin: .2rem 0 0; font-size: clamp(1.7rem, 3vw, 2.5rem); color: var(--primary-dark); }
.section-heading a { color: var(--primary); font-weight: 850; }

.search-panel, .filter-panel { display: grid; gap: .8rem; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; box-shadow: var(--shadow); }
.search-panel { grid-template-columns: repeat(4, minmax(130px, 1fr)) auto; transform: translateY(-2.5rem); margin-bottom: -2.5rem; }
.form-control, input, select, textarea { width: 100%; border: 1px solid #cbd8e5; border-radius: 8px; padding: .78rem .85rem; font: inherit; background: var(--white); color: var(--ink); }
textarea { resize: vertical; }
.form-field { margin-bottom: 1rem; }
.form-field label, .filter-panel label { display: block; font-weight: 800; margin-bottom: .35rem; color: #28384b; }
.check-field, .check-line { display: flex; gap: .55rem; align-items: flex-start; font-weight: 700; }
.check-input, .check-line input { width: auto; margin-top: .35rem; }
.field-error, .form-errors { color: #9f1239; font-weight: 700; margin-top: .25rem; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat-card { background: var(--primary-dark); color: var(--white); border-radius: 8px; padding: 1.2rem; }
.stat-card strong { display: block; font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1; color: var(--accent); }
.stat-card span { display: block; margin-top: .5rem; color: #d8e9f8; font-weight: 750; }

.event-grid, .card-grid, .ticket-grid, .gallery-grid, .dashboard-grid { display: grid; gap: 1.1rem; }
.event-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid, .ticket-grid, .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.event-card, .info-card, .ticket-tier, .gallery-card { border: 1px solid var(--line); border-radius: 8px; background: var(--white); overflow: hidden; box-shadow: 0 10px 30px rgba(15, 46, 77, .08); }
.event-card-body, .info-card, .ticket-tier, .gallery-card { padding: 1rem; }
.event-card h3, .info-card h2, .ticket-tier h3, .gallery-card h2 { color: var(--primary-dark); margin: .6rem 0; line-height: 1.2; }
.event-card p, .info-card p, .ticket-tier p, .gallery-card p { color: var(--muted); }
.event-visual, .gallery-visual { min-height: 170px; display: grid; place-items: center; color: var(--white); font-weight: 900; background: linear-gradient(135deg, var(--primary), #21a6a6 55%, var(--accent)); }
.event-visual.large { min-height: 360px; border-radius: 8px; }

.meta-list { display: grid; gap: .65rem; margin: 1rem 0; }
.meta-list div, .ticket-fields div { display: flex; justify-content: space-between; gap: .8rem; border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.meta-list dt, .ticket-fields dt { color: var(--muted); font-weight: 800; }
.meta-list dd, .ticket-fields dd { margin: 0; font-weight: 850; text-align: right; }
.stacked div { display: block; }
.stacked dd { text-align: left; }

.split-band, .detail-grid, .checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; background: var(--soft); }
.detail-grid { background: var(--white); grid-template-columns: minmax(0, 1fr) 340px; }
.layout-with-sidebar { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.feature-list { padding-left: 1.2rem; }
.feature-list li { margin-bottom: .65rem; }
.steps { display: grid; gap: .7rem; }
.steps div { display: flex; gap: .8rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: .85rem; }
.steps strong { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: var(--white); }

.qr-placeholder { width: 150px; height: 150px; border: 10px solid var(--white); background:
  linear-gradient(90deg, #0b3d69 12px, transparent 12px) 0 0 / 30px 30px,
  linear-gradient(#0b3d69 12px, transparent 12px) 0 0 / 30px 30px,
  #f6fbff; box-shadow: inset 0 0 0 6px var(--primary-dark); }
.qr-placeholder.big { width: 210px; height: 210px; }
.ticket-preview-shell { display: grid; gap: 1.2rem; justify-items: center; }
.ticket-preview { width: min(100%, 860px); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; padding: 1.6rem; border: 2px dashed var(--primary); border-radius: 8px; background: #fdfefe; box-shadow: var(--shadow); }
.ticket-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.notice, .empty-state { background: #fff8df; border: 1px solid #f3d77a; border-radius: 8px; padding: 1rem; font-weight: 750; }
.empty-state { grid-column: 1 / -1; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: 1rem; }
.timeline span { background: #e6f1fb; border-radius: 8px; padding: .75rem; font-weight: 800; text-align: center; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: .7rem; }
.tag-cloud span { background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: .55rem .8rem; font-weight: 800; }
.mini-list { display: grid; gap: .6rem; }
.mini-list a { display: flex; justify-content: space-between; padding: .75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-weight: 800; }
.article-shell { display: flex; justify-content: center; }
.article-body { max-width: 850px; font-size: 1.08rem; }
.faq-list { display: grid; gap: 1rem; max-width: 950px; margin: 0 auto; }
details { border: 1px solid var(--line); border-radius: 8px; padding: 1rem; background: var(--white); }
summary { cursor: pointer; font-weight: 900; color: var(--primary-dark); }
.stars { color: #e0a000; letter-spacing: .08em; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: .65rem; vertical-align: top; }
th { color: var(--primary-dark); }

.messages { padding: 1rem clamp(1rem, 5vw, 5rem); }
.message { border-radius: 8px; padding: .85rem 1rem; background: #e7f8ef; border: 1px solid #a7e3bc; font-weight: 800; }
.site-footer { display: flex; justify-content: space-between; gap: 1.5rem; padding: 2.2rem clamp(1rem, 5vw, 5rem); background: #0d2338; color: var(--white); }
.site-footer p { color: #cfe0f2; max-width: 620px; }
.footer-links { display: grid; gap: .5rem; }
.footer-links a { color: #fff0b7; font-weight: 800; }

@media (max-width: 1100px) {
  .header-actions { display: none; }
  .event-grid, .card-grid, .ticket-grid, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); transform: none; margin-bottom: 0; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav { display: none; position: absolute; left: 1rem; right: 1rem; top: 72px; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .hero, .detail-hero, .split-band, .detail-grid, .checkout-grid, .layout-with-sidebar, .ticket-preview, .dashboard-grid { grid-template-columns: 1fr; }
  .stats-grid, .ticket-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .event-grid, .card-grid, .ticket-grid, .gallery-grid, .stats-grid, .search-panel, .ticket-fields { grid-template-columns: 1fr; }
  .site-header { padding-inline: 1rem; }
  .hero-actions, .card-actions, .center-actions { align-items: stretch; flex-direction: column; }
  .btn { width: 100%; }
  .meta-list div, .ticket-fields div { display: block; }
  .meta-list dd, .ticket-fields dd { text-align: left; }
  .site-footer { display: block; }
}
