body { background: #f5f7fb; color: #1f2937; }
.admin-body {
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, .12), transparent 34%),
    radial-gradient(circle at top right, rgba(0, 155, 255, .14), transparent 32%),
    #f4f7fb;
}
.admin-navbar {
  background: linear-gradient(90deg, #07111f 0%, #0a1728 54%, #062844 100%);
  border-bottom: 3px solid #ff8a00;
  box-shadow: 0 10px 30px rgba(7, 17, 31, .18);
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff !important;
  font-weight: 800;
  letter-spacing: .02em;
}
.admin-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.3));
}
.admin-navbar .nav-link {
  color: rgba(255,255,255,.78) !important;
  font-weight: 600;
}
.admin-navbar .nav-link:hover {
  color: #13b8ff !important;
}
.admin-logout {
  border: 1px solid rgba(255,255,255,.34);
  color: #fff;
  background: rgba(255,255,255,.08);
}
.admin-logout:hover {
  background: #ff8a00;
  border-color: #ff8a00;
  color: #07111f;
}
.admin-main {
  max-width: 1320px;
}
.public-body { background: #eef2f7; }
.section, .metric {
  background: rgba(255,255,255,.94);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}
.metric span { display: block; color: #6b7280; font-size: .9rem; }
.metric strong { display: block; font-size: 1.8rem; margin-top: 4px; color: #08203a; }
.metric { border-top: 4px solid #009bff; }
.metric:nth-child(1), .row > .col-md-3:nth-child(1) .metric { border-top-color: #ff8a00; }
.row > .col-md-3:nth-child(2) .metric { border-top-color: #009bff; }
.row > .col-md-3:nth-child(3) .metric { border-top-color: #00d084; }
.row > .col-md-3:nth-child(4) .metric { border-top-color: #0b63d8; }
.field-row { background: #fff; transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease; }
.field-row.dragging { opacity: .55; border-color: #009bff !important; box-shadow: 0 12px 28px rgba(0, 155, 255, .18); }
.drag-handle { cursor: grab; width: 100%; }
.drag-handle:active { cursor: grabbing; }
.cover-preview {
  min-height: 170px;
  border: 1px dashed #9fb3c8;
  border-radius: 10px;
  background-color: #eef4fb;
  background-size: cover;
  background-position: center center;
  display: grid;
  place-items: center;
  color: #64748b;
  font-weight: 700;
  cursor: grab;
  overflow: hidden;
  user-select: none;
}
.cover-preview[style*="background-image"] span,
.cover-preview.has-image span { display: none; }
.cover-preview.dragging-cover { cursor: grabbing; outline: 3px solid rgba(0, 155, 255, .24); }
.logo-preview {
  width: 112px;
  height: 112px;
  border: 1px dashed #9fb3c8;
  border-radius: 14px;
  background: #f8fafc;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: .82rem;
  font-weight: 700;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  cursor: grab;
  user-select: none;
}
.logo-preview[style*="background-image"] span,
.logo-preview.has-image span { display: none; }
.logo-preview.dragging-logo { cursor: grabbing; outline: 3px solid rgba(0, 155, 255, .24); }
.table { background: #fff; }
.navbar-brand { font-weight: 700; }
.btn-primary {
  --bs-btn-bg: #0b8ee8;
  --bs-btn-border-color: #0b8ee8;
  --bs-btn-hover-bg: #0474c2;
  --bs-btn-hover-border-color: #0474c2;
}
.btn-success {
  --bs-btn-bg: #00bd7a;
  --bs-btn-border-color: #00bd7a;
  --bs-btn-hover-bg: #009b65;
  --bs-btn-hover-border-color: #009b65;
}
.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #07111f, #0b3d65 64%, #008fe8);
  color: #fff;
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 22px;
  box-shadow: 0 18px 42px rgba(7, 17, 31, .18);
}
.dashboard-filter {
  min-width: min(340px, 100%);
}
.dashboard-filter .form-select {
  border: 1px solid rgba(255,255,255,.26);
  background-color: rgba(255,255,255,.94);
  font-weight: 700;
}
.admin-kicker {
  display: inline-block;
  color: #ff9f1a;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.admin-login-wrap {
  min-height: calc(100vh - 112px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .65fr);
  align-items: center;
  gap: 34px;
  max-width: 1080px;
  margin: 0 auto;
}
.admin-login-hero {
  color: #fff;
  background: linear-gradient(135deg, #07111f, #092b48 58%, #005fae);
  border-radius: 16px;
  padding: 42px;
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 26px 64px rgba(7, 17, 31, .25);
  position: relative;
  overflow: hidden;
}
.admin-login-hero::before {
  content: "";
  position: absolute;
  inset: auto -90px -120px auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 138, 0, .32), transparent 64%);
}
.admin-login-hero::after {
  content: "";
  position: absolute;
  inset: -90px auto auto -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(0, 208, 132, .24), transparent 65%);
}
.admin-login-hero img {
  width: min(420px, 88%);
  height: auto;
  object-fit: contain;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.admin-login-hero h1,
.admin-login-hero p {
  position: relative;
  z-index: 1;
}
.admin-login-hero h1 {
  font-size: 2.4rem;
  font-weight: 900;
  margin: 0 0 8px;
}
.admin-login-hero p {
  max-width: 520px;
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
}
.admin-login-card .card {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 22px 55px rgba(15, 23, 42, .14) !important;
}
.admin-login-card .card-body {
  padding: 30px;
}
.admin-login-card .h4 {
  font-weight: 850;
  color: #07111f;
}
.admin-login-card .btn-primary {
  background: linear-gradient(90deg, #ff8a00, #009bff);
  border: 0;
  font-weight: 800;
  padding: 12px;
}
.gateway-help {
  background: #f6f9fc;
  border: 1px solid #dbe7f3;
  border-left: 4px solid #009bff;
  border-radius: 8px;
  padding: 10px 12px;
}
.gateway-help a {
  color: #075fa8;
  font-weight: 700;
  text-decoration: none;
}
.gateway-help a:hover {
  text-decoration: underline;
}
.filter-panel {
  padding: 16px;
}
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 12px;
}
.filter-header strong {
  display: block;
  font-size: 1rem;
  color: #07111f;
}
.filter-header span {
  display: block;
  color: #64748b;
  font-size: .88rem;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.filter-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #334155;
  font-size: .84rem;
  font-weight: 800;
}
.filter-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}
.payment-status-filter:disabled {
  background-color: #eef2f7;
  color: #94a3b8;
}
.public-form-shell { max-width: 860px; margin: 0 auto 48px; }
.public-cover { height: 220px; border-radius: 18px; background-size: cover; background-position: center; box-shadow: 0 18px 45px rgba(15, 23, 42, .16); }
.public-cover-fallback { background: linear-gradient(135deg, var(--theme), #0ea5e9); }
.public-form-card { background: #fff; margin: -42px auto 0; max-width: 760px; border-radius: 14px; border: 1px solid #e5e7eb; box-shadow: 0 18px 45px rgba(15, 23, 42, .10); padding: 0 28px 28px; position: relative; overflow: hidden; }
.public-title-band { height: 10px; background: var(--theme); margin: 0 -28px 24px; }
.event-logo-wrap {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .12);
  display: grid;
  place-items: center;
  margin: -4px 0 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
}
.public-form-card h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; margin-bottom: 10px; }
.payment-note { background: color-mix(in srgb, var(--theme) 12%, white); border-left: 5px solid var(--theme); border-radius: 8px; padding: 14px 16px; margin: 22px 0; }
.public-form-card .form-label { font-weight: 650; }
.public-form-card .form-control, .public-form-card .form-select { border-radius: 8px; padding: 11px 12px; }
.public-submit { background: var(--theme); color: #fff; border: 0; border-radius: 8px; padding: 12px 18px; font-weight: 700; }
.public-submit:hover { background: color-mix(in srgb, var(--theme) 82%, black); color: #fff; }
.qr-verify-card { max-width: 900px; margin: 36px auto; }
.qr-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 850;
  margin-bottom: 16px;
}
.qr-status.ok { background: #dcfce7; color: #166534; }
.qr-status.pending { background: #fee2e2; color: #991b1b; }
@media (max-width: 640px) {
  .public-cover { height: 150px; border-radius: 12px; }
  .public-form-card { margin-top: -24px; padding: 0 18px 22px; }
  .public-title-band { margin-left: -18px; margin-right: -18px; }
}
@media (max-width: 900px) {
  .admin-login-wrap {
    grid-template-columns: 1fr;
  }
  .admin-login-hero {
    min-height: auto;
    padding: 28px;
  }
  .admin-brand span {
    display: none;
  }
}
