/* ============================================================
   Biletsatış — Aydınlık Modern Tema
   ============================================================ */
@property --cd { syntax: "<angle>"; inherits: false; initial-value: 360deg; }

:root {
  --bg:        #f5f6fb;
  --bg-2:      #ffffff;
  --panel:     #ffffff;
  --panel-2:   #f2f4fb;
  --line:      #e6e8f2;
  --line-2:    #d6dae9;
  --text:      #1a1d29;
  --muted:     #717891;
  --brand-1:   #5b5bd6;
  --brand-2:   #ff6b5c;
  --grad:      linear-gradient(135deg, #5b5bd6 0%, #7c6cf5 100%);
  --grad-soft: linear-gradient(135deg, rgba(91,91,214,.10), rgba(255,107,92,.12));
  --ok:        #16a34a;
  --danger:    #ef4444;
  --gold:      #f59e0b;
  --radius:    16px;
  --shadow:    0 14px 34px -16px rgba(30,34,80,.22);
  --shadow-sm: 0 6px 16px -10px rgba(30,34,80,.20);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(820px 460px at 10% -8%, rgba(91,91,214,.10), transparent 60%),
    radial-gradient(760px 440px at 100% 0%, rgba(255,107,92,.10), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: var(--brand-1); text-decoration: none; transition: color .15s; }
a:hover { color: #3f3fbf; }
h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; margin-top: 0; }
h2 { font-weight: 700; letter-spacing: -.01em; }

/* ---------- Navbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 28px; gap: 14px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.admin-bar { background: rgba(247,248,253,.92); }
.brand { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); display: inline-flex; align-items: center; gap: 7px; }
.brand:hover { color: var(--text); }
.brand-logo { font-size: 1.2rem; }
.brand-accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.topbar nav { display: flex; align-items: center; gap: 4px; }
.topbar nav a { color: var(--muted); padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.topbar nav a:hover { color: var(--brand-1); background: var(--panel-2); }
.topbar nav a.nav-out { color: var(--brand-2); }
.user { color: var(--text); font-weight: 700; padding: 0 8px; white-space: nowrap; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 40px; padding: 0 9px; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px;
}
.nav-toggle span { display: block; height: 2px; width: 100%; border-radius: 2px; background: var(--text); transition: transform .25s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.container { max-width: 1140px; margin: 0 auto; padding: 32px 24px 64px; }

/* ---------- Mesajlar ---------- */
.flash, .error {
  padding: 14px 18px; border-radius: 12px; margin-bottom: 16px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.flash { background: #e9f9ef; border: 1px solid #bbedca; color: #15803d; }
.error { background: #fdecec; border: 1px solid #f7c5c5; color: #c0392b; }

/* ---------- Kartlar & Formlar ---------- */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; margin-bottom: 24px; box-shadow: var(--shadow-sm);
}
.card.narrow { max-width: 440px; margin: 56px auto; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form.inline { flex-direction: row; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.form label { display: flex; flex-direction: column; gap: 7px; font-size: .82rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.form input, .form select, .form textarea {
  background: #fff; border: 1px solid var(--line-2); color: var(--text);
  padding: 12px 14px; border-radius: 11px; font-size: 1rem; font-family: inherit;
  min-width: 170px; transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--brand-1); box-shadow: 0 0 0 3px rgba(91,91,214,.18);
}
.form input[type="file"] { padding: 9px; cursor: pointer; background: var(--panel-2); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.muted { color: var(--muted); }
.img-preview { max-width: 260px; border-radius: 12px; border: 1px solid var(--line); margin-top: 4px; }

/* ---------- Butonlar ---------- */
.btn, .btn-sm {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--grad); color: #fff; border: 0; cursor: pointer;
  font-weight: 700; font-family: inherit; text-align: center;
  box-shadow: 0 10px 22px -10px rgba(91,91,214,.65); transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn { padding: 12px 24px; border-radius: 12px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; border-radius: 10px; font-size: .9rem; }
.btn:hover, .btn-sm:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(91,91,214,.7); color: #fff; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; filter: grayscale(.3); }
.btn.secondary { background: #fff; border: 1px solid var(--line-2); color: var(--text); box-shadow: none; }
.btn.secondary:hover { background: var(--panel-2); color: var(--brand-1); }
.btn.danger { background: linear-gradient(135deg, #ff6b5c, #e23e57); box-shadow: 0 10px 22px -12px rgba(226,62,87,.6); }
.btn.buy { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 10px 22px -10px rgba(22,163,74,.6); }
.btn.buy:hover { box-shadow: 0 16px 30px -12px rgba(22,163,74,.7); }
.btn.sm { padding: 7px 14px; font-size: .85rem; border-radius: 9px; }

/* ---------- Ana sayfa slider ---------- */
.slider {
  position: relative; border-radius: var(--radius); overflow: hidden;
  margin-bottom: 34px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.slides { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.slide { flex: 0 0 100%; display: block; line-height: 0; text-decoration: none; }
.slide img { width: 100%; height: auto; display: block; }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.85); color: #1a1d29; font-size: 1.8rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
  transition: background .15s, transform .15s;
}
.slider-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }
.slider-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; z-index: 4; }
.slider-dots .dot { width: 10px; height: 10px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.5); transition: all .2s; padding: 0; }
.slider-dots .dot.active { background: #fff; width: 26px; border-radius: 5px; }


/* ---------- Etkinlik kartları ---------- */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 22px; }
.event-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s;
  display: flex; flex-direction: column;
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.event-thumb { display: block; aspect-ratio: 16/10; background: var(--grad-soft); position: relative; overflow: hidden; }
.event-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.event-card:hover .event-thumb img { transform: scale(1.06); }
.thumb-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; opacity: .4; }
.event-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.event-body h2 { margin: 6px 0 4px; font-size: 1.18rem; }
.event-date { color: var(--muted); font-weight: 700; font-size: .82rem; }
.event-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.days-left {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  color: var(--muted); background: var(--panel-2); border: 1px solid var(--line);
}
.days-left.urgent { color: #fff; background: linear-gradient(135deg, #ff8a3d, #ff5c6e); border-color: transparent; animation: badgePulse 1.6s ease-in-out infinite; }
.days-left.past { color: #9aa0b3; }
.event-body .venue { color: var(--muted); margin: 0; font-size: .92rem; }
.event-body .price {
  font-weight: 800; font-size: 1.25rem; margin: 6px 0 2px;
  background: linear-gradient(135deg, #5b5bd6, #ff6b5c); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.event-body .btn { margin-top: 12px; }

/* ---------- Popüler rozeti ---------- */
.popular-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 13px; border-radius: 999px;
  font-size: .74rem; font-weight: 800; letter-spacing: .06em; color: #fff;
  background: linear-gradient(135deg, #ff7a18, #ff2d75);
  box-shadow: 0 6px 16px -4px rgba(255,45,117,.55); animation: badgePulse 2s ease-in-out infinite;
}
.popular-badge.big { top: 18px; left: 18px; font-size: .95rem; padding: 9px 18px; }
@keyframes badgePulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.event-card.is-popular { border-color: rgba(255,122,24,.45); box-shadow: 0 16px 40px -18px rgba(255,45,117,.4); }
.event-card.is-popular:hover { border-color: rgba(255,122,24,.7); }
.pill-pop {
  display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 10px; border-radius: 999px;
  font-size: .7rem; font-weight: 800; letter-spacing: .04em; color: #fff; background: linear-gradient(135deg, #ff7a18, #ff2d75);
}
.check-label {
  flex-direction: row !important; align-items: center; gap: 10px !important;
  color: var(--text) !important; font-weight: 600; cursor: pointer;
  background: var(--grad-soft); border: 1px solid var(--line-2); padding: 12px 16px; border-radius: 12px;
}
.check-label input { min-width: auto; width: 18px; height: 18px; accent-color: var(--brand-1); cursor: pointer; }

/* ---------- Etkinlik detay ---------- */
.event-detail { margin-bottom: 22px; }
.event-hero { height: 280px; border-radius: var(--radius); background-size: cover; background-position: center; margin-bottom: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); position: relative; }
.event-detail .meta { color: var(--muted); font-size: 1rem; }
.event-detail .meta strong { color: var(--text); }

/* ---------- Satın alma başlığı ---------- */
.purchase-head {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.ph-event { display: flex; gap: 16px; align-items: center; min-width: 0; }
.ph-poster {
  width: 78px; height: 104px; flex: 0 0 78px; border-radius: 10px;
  background-size: cover; background-position: center; background: var(--panel-2);
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem; border: 1px solid var(--line-2);
}
.ph-info { min-width: 0; }
.ph-info h1 { font-size: 1.45rem; margin: 0 0 8px; }
.ph-line { margin: 2px 0; color: var(--muted); font-size: .95rem; }

/* geri sayım halkası */
.ph-timer { display: flex; justify-content: center; }
.cd-ring {
  --cd: 360deg; width: 104px; height: 104px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(closest-side, #fff 76%, transparent 77%),
    conic-gradient(var(--gold) var(--cd), #e6e8f2 0);
  color: var(--text); transition: --cd .9s linear; box-shadow: var(--shadow-sm);
}
.cd-ring.warn {
  background: radial-gradient(closest-side, #fff 76%, transparent 77%), conic-gradient(#ef4444 var(--cd), #f1d6d6 0);
  animation: cdBlink 1s steps(2) infinite;
}
@keyframes cdBlink { 50% { opacity: .55; } }
.cd-time { font-size: 1.5rem; font-weight: 800; }
.cd-label { font-size: .72rem; color: var(--muted); }

/* fiyat paneli */
.ph-prices { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.ph-prices-title { font-size: .78rem; font-weight: 800; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.price-cats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.price-cat { flex: 1 1 110px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-align: center; }
.price-cat strong { display: block; font-size: 1.2rem; color: var(--text); }
.price-cat .tag { display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: 999px; font-size: .68rem; font-weight: 700; }
.price-cat .tag.cat-vip { background: #ffe6d2; color: #b3540a; }
.price-cat .tag.cat-std { background: #e7e9f2; color: #4a4f63; }
.ph-cta { text-align: center; padding: 13px; border-radius: 11px; font-weight: 800; letter-spacing: .04em; background: #fff; border: 1px dashed var(--line-2); color: var(--muted); transition: all .15s; }
.ph-cta.active { background: var(--grad); color: #fff; border-style: solid; border-color: transparent; box-shadow: 0 10px 22px -10px rgba(91,91,214,.6); }
.event-desc { margin-top: 18px; color: var(--text); }

@media (max-width: 860px) {
  .purchase-head { grid-template-columns: 1fr; text-align: center; }
  .ph-event { flex-direction: column; text-align: center; }
  .ph-timer { order: -1; }
}

/* ---------- Sahne & koltuk haritası ---------- */
.seatmap-scroll { overflow-x: auto; padding: 6px 0 14px; }
.hall {
  display: inline-flex; flex-direction: column; align-items: stretch; min-width: 100%;
  padding: 22px; background: #eef1f8; border-radius: var(--radius); border: 1px solid var(--line);
}
.stage {
  margin: 4px auto 28px; width: 58%; text-align: center; letter-spacing: 12px; font-weight: 800;
  padding: 18px; color: #fff; background: linear-gradient(180deg,#3b4255,#272c3a); border-radius: 10px;
  box-shadow: 0 10px 24px -14px rgba(0,0,0,.45);
}
.band { display: flex; flex-direction: column; gap: 5px; margin-bottom: 34px; }
.srow { display: flex; align-items: center; gap: 5px; justify-content: center; }
.block { display: flex; gap: 5px; }
.aisle { width: 26px; }
.rlabel { width: 26px; flex: 0 0 26px; text-align: center; color: #8a90a3; font-weight: 800; font-size: .82rem; }
.seat {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 6px 6px 4px 4px; border: 0;
  font-size: .66rem; line-height: 30px; text-align: center; padding: 0; color: #fff; font-weight: 700;
  transition: transform .1s, filter .1s;
}
.seat.spacer { background: transparent; }
.seat.cat-std { background: #6b7280; }
.seat.cat-vip { background: #f0883e; }
button.seat { cursor: pointer; }
button.seat:hover { transform: translateY(-2px) scale(1.08); filter: brightness(1.08); box-shadow: 0 4px 10px -2px rgba(0,0,0,.3); }
.seat.selected { background: #16a34a !important; color: #fff; box-shadow: 0 0 0 2px #0c5c2c inset; }
.seat.sold { background: #d3d6df !important; color: #a0a4b3; cursor: not-allowed; }

.legend { display: flex; gap: 20px; justify-content: center; margin: 22px 0; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.legend .box { display: inline-block; width: 16px; height: 16px; border-radius: 5px; vertical-align: -3px; margin-right: 6px; }
.legend .box.cat-vip { background: #f0883e; }
.legend .box.cat-std { background: #6b7280; }
.legend .box.selected { background: #16a34a; }
.legend .box.sold { background: #d3d6df; }

/* ---------- Rezervasyon çubuğu ---------- */
.booking-bar {
  position: sticky; bottom: 16px; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 16px 22px; margin-top: 18px; border-radius: 14px; flex-wrap: wrap;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.booking-bar .summary { font-size: 1.02rem; }
.booking-bar .summary strong { color: var(--brand-1); }
.sel-list { color: var(--muted); font-size: .85rem; margin-top: 4px; max-width: 620px; }

/* ---------- Tablolar ---------- */
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table th { background: var(--panel-2); color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.table.compact th, .table.compact td { padding: 8px 12px; }
.table code { background: rgba(91,91,214,.12); color: #4b3fb0; padding: 3px 8px; border-radius: 6px; font-weight: 700; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--panel-2); }
.row-cancelled { opacity: .5; text-decoration: line-through; }
.actions { display: flex; gap: 8px; align-items: center; }
.actions form { margin: 0; }

/* ---------- Admin özet ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); gap: 18px; margin-bottom: 26px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--muted); position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--grad); }
.stat .num { display: block; font-size: 1.8rem; font-weight: 800; color: var(--text); margin-bottom: 4px; letter-spacing: -.02em; }
.quick-links { display: flex; gap: 12px; flex-wrap: wrap; }
.seat-summary { margin-top: 14px; }
.seat-summary summary { cursor: pointer; color: var(--muted); font-weight: 600; }

/* ---------- Teşekkür sayfası ---------- */
.thanks { max-width: 720px; margin: 0 auto; text-align: center; }
.thanks-check {
  width: 84px; height: 84px; margin: 10px auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 2.6rem; color: #fff;
  background: linear-gradient(135deg,#22c55e,#16a34a); box-shadow: 0 14px 34px -12px rgba(34,197,94,.55);
  animation: pop .5s cubic-bezier(.2,1.4,.5,1);
}
@keyframes pop { 0%{transform:scale(0)} 100%{transform:scale(1)} }
.thanks-sub { color: var(--muted); margin-top: -6px; }
.ticket-list { display: flex; flex-direction: column; gap: 14px; margin: 28px 0; text-align: left; }
.ticket { display: flex; align-items: stretch; border-radius: 14px; overflow: hidden; background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.ticket-main { flex: 1; padding: 18px 22px; }
.ticket-main h3 { margin: 0 0 4px; font-size: 1.15rem; }
.ticket-meta { color: var(--muted); margin: 0 0 12px; font-size: .9rem; }
.chip { display: inline-block; background: var(--panel-2); border: 1px solid var(--line-2); padding: 4px 11px; border-radius: 999px; font-size: .82rem; font-weight: 600; margin-right: 6px; }
.ticket-stub { width: 170px; flex: 0 0 170px; padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; background: var(--grad-soft); border-left: 2px dashed var(--line-2); }
.ticket.cat-vip .ticket-stub { background: linear-gradient(135deg, rgba(240,136,62,.22), rgba(240,136,62,.10)); }
.stub-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stub-code { font-size: 1.05rem; letter-spacing: .03em; color: var(--text); }
.stub-price { font-weight: 800; color: #b3540a; margin-top: 4px; }
.thanks-total { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); font-size: 1.1rem; margin-bottom: 24px; }
.thanks-total strong { font-size: 1.3rem; color: var(--brand-1); }
.thanks-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Nav rozeti ---------- */
.nav-badge {
  display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 999px;
  background: linear-gradient(135deg,#ff7a18,#ff2d75); color: #fff; font-size: .7rem; font-weight: 800;
  text-align: center; vertical-align: middle; margin-left: 2px;
}

/* ---------- İletişim ---------- */
.contact-wrap { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.contact-info { flex: 0 0 280px; }
.contact-info .ci-row { margin: 12px 0; font-size: 1rem; }
.contact-info .ci-row a { font-weight: 700; }

/* ---------- Admin mesajlar ---------- */
.msg-list { display: flex; flex-direction: column; gap: 14px; }
.msg-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.msg-item.unread { border-left: 4px solid var(--brand-2); background: linear-gradient(90deg, rgba(255,107,92,.05), transparent 40%); }
.msg-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.msg-new { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; background: var(--brand-2); color: #fff; font-size: .68rem; font-weight: 800; }
.msg-contact { font-size: .85rem; margin-top: 4px; }
.msg-date { font-size: .82rem; white-space: nowrap; }
.msg-body { margin: 12px 0; color: var(--text); }
.msg-actions { display: flex; gap: 8px; }
.msg-actions form { margin: 0; }

/* ---------- Teşekkür biletindeki QR ---------- */
.stub-qr { width: 110px; height: 110px; border-radius: 8px; background: #fff; padding: 5px; border: 1px solid var(--line); }

/* ---------- E-Bilet (indir/yazdır) ---------- */
.ticket-page { max-width: 760px; margin: 0 auto; }
.ticket-toolbar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.eticket { background: #fff; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.et-banner {
  height: 200px; background-size: cover; background-position: center; background-color: #2a2f45;
  position: relative; display: flex; align-items: flex-start;
}
.et-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.5), transparent 60%); }
.et-brand { position: relative; z-index: 2; margin: 16px 20px; color: #fff; font-weight: 800; letter-spacing: .08em; font-size: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.et-banner-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 4rem; opacity: .4; }
.et-body { display: flex; align-items: stretch; }
.et-main { flex: 1; padding: 24px 26px; }
.et-title { font-size: 1.5rem; margin: 0 0 16px; }
.et-info { display: grid; gap: 12px; margin-bottom: 20px; }
.et-info > div { display: flex; flex-direction: column; gap: 2px; }
.et-info span { font-size: .74rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.et-info strong { font-size: 1rem; color: var(--text); }
.et-seat { display: flex; gap: 10px; flex-wrap: wrap; }
.et-seat-box { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; text-align: center; min-width: 64px; }
.et-seat-box span { display: block; font-size: .68rem; color: var(--muted); text-transform: uppercase; }
.et-seat-box strong { font-size: 1.1rem; color: var(--text); }
.et-seat-box.price { background: linear-gradient(135deg, rgba(34,197,94,.14), rgba(22,163,74,.10)); border-color: rgba(22,163,74,.3); }
.et-seat-box.price strong { color: #15803d; }
.et-stub {
  width: 200px; flex: 0 0 200px; border-left: 2px dashed var(--line-2); padding: 24px 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--grad-soft); text-align: center;
}
.et-qr { width: 160px; height: 160px; background: #fff; padding: 6px; border-radius: 8px; border: 1px solid var(--line); }
.et-code { font-weight: 800; letter-spacing: .04em; font-size: 1.05rem; color: var(--text); }
.et-note { font-size: .76rem; color: var(--muted); }

@media (max-width: 600px) {
  .et-body { flex-direction: column; }
  .et-stub { width: auto; flex: none; border-left: 0; border-top: 2px dashed var(--line-2); }
}

/* ---------- Yazdırma (PDF olarak kaydet) ---------- */
@media print {
  body { background: #fff !important; }
  .topbar, .site-footer, .no-print, .ticket-toolbar { display: none !important; }
  .container { padding: 0 !important; max-width: 100% !important; }
  .ticket-page { max-width: 100% !important; }
  .eticket { box-shadow: none !important; border: 1px solid #ccc !important; }
  .et-banner { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .et-seat-box.price, .et-stub { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Footer ---------- */
.site-footer { color: var(--muted); padding: 40px 24px 28px; font-size: .9rem; border-top: 1px solid var(--line); background: var(--panel); margin-top: 40px; }
.footer-grid { max-width: 1140px; margin: 0 auto; display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.footer-col h4 { margin: 0 0 10px; color: var(--text); font-size: .95rem; }
.footer-col p { margin: 6px 0; }
.footer-brand { font-size: 1.2rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.footer-bottom { max-width: 1140px; margin: 28px auto 0; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: .82rem; }

/* Tablolar taşmasın diye yatay kaydırma sarmalayıcısı */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .topbar { padding: 11px 16px; }
  .nav-toggle { display: flex; }
  .topbar nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(255,255,255,.98); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 12px 16px 18px; display: none;
  }
  .admin .topbar nav { background: rgba(247,248,253,.99); }
  .topbar nav.open { display: flex; animation: navDrop .2s ease; }
  @keyframes navDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  .topbar nav a { padding: 12px 14px; font-size: 1rem; }
  .topbar nav .user { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .topbar nav .btn-sm { text-align: center; justify-content: center; margin-top: 4px; }
}

@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .ticket { flex-direction: column; }
  .ticket-stub { width: auto; flex: none; border-left: 0; border-top: 2px dashed var(--line-2); flex-direction: row; gap: 14px; flex-wrap: wrap; }
  .container { padding: 22px 14px 48px; }
  .form.inline { flex-direction: column; align-items: stretch; }
  .form.inline > * { width: 100%; }
  .card { padding: 18px; }
  .card-head { flex-wrap: wrap; }

  /* Kart modundaki tablolar: satırlar dikey kart olur */
  .table.cards { border: 0; box-shadow: none; background: transparent; }
  .table.cards thead { display: none; }
  .table.cards tbody, .table.cards tr, .table.cards td { display: block; width: 100%; }
  .table.cards tr {
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
    margin-bottom: 14px; padding: 6px 4px; box-shadow: var(--shadow-sm);
  }
  .table.cards td {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    border: 0; border-bottom: 1px solid var(--line); padding: 10px 16px; text-align: right;
  }
  .table.cards tr td:last-child { border-bottom: 0; }
  .table.cards td::before {
    content: attr(data-label); font-weight: 700; color: var(--muted);
    font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; text-align: left;
  }
  .table.cards td:empty { display: none; }
}
