:root {
  --bg: #08090c;
  --surface: #111318;
  --surface-2: #181c24;
  --surface-3: #1f2330;
  --border: #252a38;
  --border-light: #2e3448;
  --text: #eef0f6;
  --text-dim: #8892a8;
  --text-muted: #525c72;
  --accent: #e63946;
  --accent-dim: #c22d39;
  --accent-glow: rgba(230,57,70,.18);
  --success: #2dbb6e;
  --success-dim: rgba(45,187,110,.12);
  --warn: #e6a93f;
  --info: #5b8ef5;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --maxw: 1100px;
  --shadow: 0 4px 24px rgba(0,0,0,.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { line-height: 1.2; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 0px;
}

/* ===================== HEADER ===================== */
.site-header {
  background: rgba(8,9,12,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.logo { height: 28px; }
.site-nav a {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 14px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }

/* ===================== FOOTER ===================== */
footer.site-footer {
  margin-top: 60px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: var(--bg);
}
.hero-bg-blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(60px) brightness(.3) saturate(1.2);
  transform: scale(1.1);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 48px 16px 40px;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero-text { flex: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(26px, 7vw, 48px);
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.hero .meta {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 18px;
  line-height: 1.6;
}
.hero .price {
  font-size: 20px;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 22px;
}
.hero-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  aspect-ratio: 16/10;
  background: var(--surface-2);
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 15px;
  transition: background .15s ease, transform .1s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn:hover { background: var(--accent-dim); }
.btn.secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.secondary:hover { background: var(--surface-3); }
.btn:disabled, .btn.disabled {
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
}
.btn.block { width: 100%; }

/* ===================== SECTIONS ===================== */
section.section { padding: 40px 0; }
.section-title {
  font-size: 18px;
  margin: 0 0 20px;
  font-weight: 700;
  color: var(--text);
}

/* ===================== CONCERT GRID ===================== */
.concert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 480px) {
  .concert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .concert-grid { grid-template-columns: repeat(3, 1fr); }
}

.concert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.concert-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 8px 28px rgba(230,57,70,.15); }
.concert-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--surface-2);
}
.concert-card .body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.concert-card h3 { margin: 0 0 5px; font-size: 15px; font-weight: 700; }
.concert-card .date { color: var(--accent); font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.concert-card .venue { color: var(--text-dim); font-size: 12px; margin-bottom: 12px; flex: 1; }
.concert-card .price { font-weight: 700; color: var(--success); font-size: 14px; }

.concert-card.past { position: relative; opacity: .6; }
.concert-card.past:hover { opacity: .85; transform: none; border-color: var(--border); box-shadow: none; }
.concert-card.past img { filter: grayscale(60%); }
.past-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(8,9,12,.88);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  z-index: 1;
  border: 1px solid var(--border);
}

.empty-state {
  text-align: center;
  padding: 56px 20px;
  color: var(--text-dim);
}

/* ===================== CONCERT DETAIL ===================== */
.concert-detail-hero {
  position: relative;
  overflow: hidden;
}
.concert-detail-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: blur(50px) brightness(.2) saturate(1.3);
  transform: scale(1.1);
}
.concert-detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 32px 16px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.concert-detail-cover {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  max-height: 340px;
}
.concert-detail-hero-inner h1 {
  font-size: clamp(22px, 6vw, 38px);
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.concert-detail-hero-inner .meta {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}
.concert-description {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
}
.concert-description p { margin: 0 0 12px; }
.concert-description p:last-child { margin: 0; }

/* ===================== LAYOUT ===================== */
.layout-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}
@media (min-width: 760px) {
  .layout-2col { grid-template-columns: 1.4fr 1fr; gap: 24px; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.card h2 { font-size: 16px; margin: 0 0 14px; font-weight: 700; }

/* ===================== STAGE & SEATS ===================== */
.stage {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  text-align: center;
  padding: 9px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.seat-map { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; overflow-x: auto; }
.seat-row { display: flex; align-items: center; gap: 6px; }
.seat-row .row-label { width: 16px; color: var(--text-muted); font-size: 11px; flex-shrink: 0; }
.seats { display: flex; gap: 5px; flex-wrap: nowrap; }
.seat {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 9px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  transition: background .12s, border-color .12s;
}
.seat.available:hover { border-color: var(--accent); color: var(--text); }
.seat.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.seat.sold, .seat.reserved { background: #1a1d25; color: #3d4252; cursor: not-allowed; border-color: #1a1d25; }
.seat.locked { border-color: var(--warn); cursor: not-allowed; }

.legend { display: flex; gap: 14px; font-size: 11px; color: var(--text-dim); margin-bottom: 8px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid var(--border); flex-shrink: 0; }
.legend i.available { background: var(--surface-2); }
.legend i.selected { background: var(--accent); }
.legend i.sold { background: #1a1d25; }

/* ===================== SUMMARY ===================== */
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.summary-row:last-child { border-bottom: none; }
.summary-total { font-size: 18px; font-weight: 700; color: var(--success); display: flex; justify-content: space-between; margin-top: 10px; }

/* ===================== FORMS ===================== */
form .field { margin-bottom: 14px; }
form label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 5px; font-weight: 600; letter-spacing: .02em; }
form input[type="text"],
form input[type="tel"],
form input[type="email"],
form input[type="password"],
form input[type="date"] {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: border-color .15s, outline .15s;
  -webkit-appearance: none;
}
form input::placeholder { color: var(--text-muted); }
form input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }

.time-select-group { display: flex; align-items: center; gap: 6px; }
.time-select-group select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 10px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  flex: 1;
  -webkit-appearance: none;
}
.time-select-group select:focus { outline: 2px solid var(--accent); outline-offset: 0; }

/* ===================== ALERTS ===================== */
.alert { padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; }
.alert.error { background: rgba(230,57,70,.1); border: 1px solid rgba(230,57,70,.35); color: #ff8b93; }
.alert.success { background: var(--success-dim); border: 1px solid rgba(45,187,110,.3); color: #6fe3a4; }
.alert.warn { background: rgba(230,169,63,.1); border: 1px solid rgba(230,169,63,.35); color: #f3c878; }

/* ===================== PAYMENT ===================== */
.payment-methods { display: grid; gap: 12px; margin-bottom: 22px; }
.payment-option {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  background: var(--surface-2);
  transition: border-color .15s, background .15s;
}
.payment-option.active { border-color: var(--accent); background: var(--accent-glow); }
.payment-option.is-disabled { opacity: .5; cursor: not-allowed; }
.payment-option input { margin-top: 4px; }
.payment-option .label { font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.tag-disabled {
  font-size: 10px;
  background: var(--surface);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.bank-box {
  background: var(--bg);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 10px;
  font-size: 13px;
}
.bank-box .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 5px 0; flex-wrap: wrap; }
.bank-box .row b { color: var(--text); word-break: break-all; }
.bank-box .row > span:first-child { color: var(--text-dim); flex-shrink: 0; }

.copyable { display: flex; align-items: center; gap: 8px; justify-content: flex-end; flex-wrap: wrap; text-align: right; }
.copy-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.copy-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--accent); }
.copy-btn.copied { background: var(--success-dim); color: var(--success); border-color: var(--success); }

/* ===================== SUCCESS ===================== */
.success-screen { text-align: center; padding: 60px 20px; }
.success-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--success); color: #06200f;
  font-size: 32px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}
.order-code-box {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: .04em;
  margin: 12px 0 24px;
}

/* ===================== ADMIN (MARS) â€” MASAÃœSTÃœ ODAKLI ===================== */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px;
  min-width: 220px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 22px 14px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-sidebar .logo { height: 26px; margin-bottom: 28px; }
.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 3px;
  transition: background .12s, color .12s;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: var(--surface-2); color: var(--text); }
.admin-main { flex: 1; padding: 28px 36px; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-topbar h1 { font-size: 20px; margin: 0; font-weight: 700; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat-card .value { font-size: 24px; font-weight: 700; }
.stat-card .label { color: var(--text-dim); font-size: 12px; margin-top: 4px; }

.seat-plan { margin: 14px 0 20px; }
.seat-plan-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.seat-plan-row:last-child { border-bottom: none; }
.seat-plan-price { flex-shrink: 0; width: 120px; }
.seat-plan-price label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 4px; font-weight: 600; }
.seat-plan-price input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 9px;
  border-radius: var(--radius-xs);
  font-size: 13px;
}
.seat-plan-row .seat-row { flex: 1; overflow-x: auto; padding-top: 18px; }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  white-space: nowrap;
}
table.data-table th, table.data-table td { padding: 11px 13px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--border); }
table.data-table th { color: var(--text-dim); font-weight: 600; background: var(--surface-2); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: var(--surface-2); }

.badge { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; display: inline-block; }
.badge.paid { background: var(--success-dim); color: var(--success); }
.badge.pending { background: rgba(230,169,63,.12); color: var(--warn); }
.badge.cancelled { background: rgba(230,57,70,.12); color: var(--accent); }

.login-shell { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.login-card { width: 360px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.login-card .logo { height: 26px; margin: 0 auto 22px; }

/* Admin form elements */
.admin-main form input[type="text"],
.admin-main form input[type="tel"],
.admin-main form input[type="email"],
.admin-main form input[type="password"],
.admin-main form input[type="date"],
.admin-main form input[type="number"],
.admin-main form textarea,
.admin-main form select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 14px;
}
.admin-main form input:focus,
.admin-main form textarea:focus,
.admin-main form select:focus { outline: 2px solid var(--accent); outline-offset: 0; }

/* ===================== RESPONSIVE â€” MOBÄ°L ===================== */
@media (max-width: 759px) {
  .hero-inner { padding: 32px 16px 28px; gap: 20px; }
  .concert-detail-cover { aspect-ratio: 16/9; max-height: 220px; margin-bottom: 18px; }
  .card {padding: 0px;}
}

/* Hero masaÃ¼stÃ¼nde yan yana */
@media (min-width: 760px) {
  .hero-inner { flex-direction: row; align-items: center; padding: 60px 16px 52px; }
  .hero-image-wrap { flex: 0 0 42%; max-width: 42%; }
}

/* Admin masaÃ¼stÃ¼ garantisi */
@media (max-width: 900px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar {
    width: 100%;
    min-width: 0;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 14px 12px;
  }
  .admin-sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .admin-sidebar nav a { margin-bottom: 0; }
  .admin-main { padding: 18px 14px; }
  .admin-topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
}
