:root {
  --primary: #ff6b00;
  --primary-dark: #f05d00;
  --primary-light: #ff9a3c;
  --secondary: #00b3ff;
  --secondary-dark: #0084ff;
  --info: #00b3ff;
  --info-dark: #0084ff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #d8deea;
  --bg: #f3f4f6;
  --panel: #ffffff;
  --dark: #0f172a;
  --shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 18px rgba(15, 23, 42, 0.1);
  --radius-card: 20px;
  --radius-control: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Anuphan", "Nunito Sans", sans-serif;
  background:
    radial-gradient(circle at 8% -5%, rgba(0, 179, 255, 0.2) 0%, rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle at 92% 0%, rgba(255, 107, 0, 0.18) 0%, rgba(255, 255, 255, 0) 32%),
    var(--bg);
  min-height: 100vh;
}

a {
  color: #0070d4;
  text-decoration: none;
}

a:hover {
  color: #005ab4;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  backdrop-filter: saturate(135%) blur(8px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}

.site-header-top {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at 95% 10%, rgba(255, 107, 0, 0.1) 0%, rgba(255, 255, 255, 0) 45%);
  border-bottom: 1px solid var(--line);
}

.site-header-nav {
  background: rgba(250, 252, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.site-logo-backoffice {
  height: 61px;
  max-width: min(391px, 58vw);
}

.brand-main {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.08rem;
  color: var(--dark);
}

.brand-sub {
  color: #8b9099;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.top-link {
  color: #2f3743;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.25rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: all 0.16s ease;
}

.top-link:hover {
  color: var(--secondary-dark);
  border-bottom-color: var(--secondary-dark);
}

.lang-chip,
.nav-chip,
.identity-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.34rem 0.76rem;
  font-size: 0.79rem;
  font-weight: 700;
}

.lang-chip {
  background: #ffffff;
  border: 1px solid #d6dae1;
  color: #4e5560;
}

.lang-chip:hover {
  color: #20242b;
  border-color: #b9c0cc;
}

.nav-chip {
  border: 1px solid #d7dbe2;
  background: #ffffff;
  color: #4a4f57;
  transition: all 0.16s ease;
}

.nav-chip:hover {
  border-color: #a8dfff;
  background: #f0f9ff;
  transform: translateY(-1px);
}

.nav-chip--disabled {
  color: #8b93a1;
  background: #f4f6f9;
  border-color: #d8dde6;
  cursor: not-allowed;
}

.nav-chip--disabled:hover {
  color: #8b93a1;
  background: #f4f6f9;
  border-color: #d8dde6;
  transform: none;
}

.identity-chip {
  color: #555d69;
  background: #f0f2f5;
  border: 1px solid #dadfe6;
}

.page-shell {
  padding-inline: clamp(0.8rem, 2.2vw, 1.6rem);
}

.page-title-block {
  margin-bottom: 1rem;
}

.page-title-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a9098;
  font-weight: 700;
}

.page-title {
  margin: 0.18rem 0 0;
  font-size: clamp(1.34rem, 2.3vw, 1.88rem);
  font-weight: 800;
  font-family: "Montserrat", "Anuphan", sans-serif;
  color: #292d33;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  background: var(--panel);
}

.card-header {
  background: linear-gradient(180deg, #ffffff, #f8fafd);
  border-bottom: 1px solid #eceef2;
  font-weight: 700;
  color: #333841;
}

.card-footer {
  background: #ffffff;
  border-top: 1px solid #eceef2;
}

.table {
  margin-bottom: 0;
}

.table thead th {
  background: #f6f9fd;
  color: #3b4555;
  font-weight: 700;
}

.table td,
.table th {
  white-space: nowrap;
  vertical-align: middle;
  border-color: #ebedf1;
}

.table td:nth-child(2),
.table td:nth-child(5),
.table td:nth-child(8) {
  white-space: normal;
}

.table > :not(caption) > * > * {
  padding: 0.58rem 0.7rem;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: #fafbfc;
}

.form-label {
  margin-bottom: 0.24rem;
  color: #404651;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-control,
.form-select {
  border: 1px solid #d4d9e1;
  border-radius: var(--radius-control);
  color: #2f3440;
  font-size: 0.9rem;
  padding: 0.62rem 0.76rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #4ec8ff;
  box-shadow: 0 0 0 0.2rem rgba(0, 179, 255, 0.2);
}

.form-control:invalid,
.form-select:invalid {
  border-color: #efb7bd;
}

.form-control:invalid:focus,
.form-select:invalid:focus {
  border-color: #ec8f99;
  box-shadow: 0 0 0 0.2rem rgba(236, 143, 153, 0.22);
}

.btn {
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 0;
  min-height: 48px;
  padding-inline: 1rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn-primary,
.btn-action {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: #f87417;
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(255, 107, 0, 0.28);
}

.btn-primary:hover,
.btn-action:hover {
  background: linear-gradient(135deg, #ff7b1f, #ffad58);
  border-color: #ff842e;
  color: #ffffff;
  transform: scale(1.03);
  box-shadow: 0 16px 28px rgba(255, 107, 0, 0.34);
}

.btn-info {
  background: var(--info);
  border-color: var(--info);
  color: #ffffff;
}

.btn-info:hover {
  background: var(--info-dark);
  border-color: var(--info-dark);
  color: #ffffff;
}

.btn-success {
  background: linear-gradient(135deg, #1a324f, #2f4b70);
  border-color: #243e60;
}

.btn-success:hover {
  background: linear-gradient(135deg, #14283f, #284262);
  border-color: #1c3554;
}

.btn-action-secondary {
  border: 1px solid #94dcff;
  background: linear-gradient(180deg, #ffffff, #ecf8ff);
  color: #005a9e;
}

.btn-action-secondary:hover {
  color: #004a86;
  background: linear-gradient(180deg, #f2fbff, #dff4ff);
  border-color: #74cdff;
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: #0071c8;
  border-color: #80d8ff;
  background: #ffffff;
}

.btn-outline-primary:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  border-color: #0098ec;
}

.btn-outline-secondary {
  color: #445164;
  border-color: #bcc7d5;
}

.btn-outline-secondary:hover {
  color: #ffffff;
  background: #4b5b72;
  border-color: #4b5b72;
}

.btn-outline-danger {
  border-color: #bdcadb;
  color: #41556f;
}

.btn-outline-danger:hover {
  color: #ffffff;
  background: #3a516d;
  border-color: #3a516d;
}

.alert {
  border-radius: 8px;
  border-width: 1px;
}

.metric-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.72rem;
}

.small.text-secondary {
  color: var(--muted) !important;
}

code {
  background: #f0f2f6;
  color: #3f4650;
  border-radius: 4px;
  padding: 0.12rem 0.35rem;
}

.event-toolbar {
  padding: 1rem;
  border: 1px solid #d5e6f5;
  border-top: 3px solid #7ccfff;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #ffffff, #f8fbff),
    radial-gradient(circle at 100% 0%, rgba(255, 107, 0, 0.12), rgba(255, 255, 255, 0) 42%);
  margin-bottom: 1rem;
  box-shadow: 0 8px 20px rgba(24, 40, 65, 0.06);
}

.event-toolbar .form-control,
.event-toolbar .form-select {
  min-height: 46px;
}

.event-grid-card {
  height: 100%;
  border: 1px solid #dee6f0;
  border-radius: var(--radius-card);
  background: #ffffff;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.event-grid-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
}

.event-grid-card-past {
  border-color: #d9dee7;
  background: #fcfcfd;
}

.event-past-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
}

.event-past-item {
  min-width: 0;
}

@media (max-width: 992px) {
  .event-past-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .event-past-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.event-cover {
  position: relative;
  background: #eef1f5;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.event-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f2e57, #007dcc 56%, #18b7ff);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.94rem;
  letter-spacing: 0.05em;
}

.event-body {
  padding: 0.85rem 0.88rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.event-title {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.4;
  color: #2d3138;
}

.event-sub {
  color: #848a93;
  font-size: 0.8rem;
}

.event-meta {
  color: #535a64;
  font-size: 0.82rem;
  line-height: 1.45;
}

.event-card-decision {
  display: grid;
  gap: 0.32rem;
  margin-top: 0.22rem;
}

.event-decision-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  min-height: 30px;
  padding: 0.26rem 0.54rem;
  border: 1px solid #cfe2f7;
  background: linear-gradient(180deg, #f4f9ff, #ecf4fd);
  color: #2d4a69;
  font-size: 0.76rem;
  font-weight: 700;
}

.event-decision-chip--muted {
  border-color: #d7deea;
  background: linear-gradient(180deg, #f8fafc, #f1f4f8);
  color: #566379;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.event-actions .btn {
  font-size: 0.82rem;
  padding: 0.28rem 0.58rem;
  min-height: 42px;
}

.event-actions .event-card-cta,
.event-actions .event-card-cta--disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.event-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.event-gallery-grid--single {
  grid-template-columns: 1fr;
}

.event-gallery-slot {
  display: block;
  width: 100%;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #f8fbff;
  min-height: 130px;
  padding: 0;
  overflow: hidden;
}

button.event-gallery-slot {
  cursor: zoom-in;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

button.event-gallery-slot:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(18, 34, 61, 0.14);
}

.event-gallery-slot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #ffffff;
}

.event-gallery-slot-label {
  display: block;
  padding: 0.34rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #43516a;
  background: #ffffff;
}

.event-gallery-slot.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    135deg,
    #f4f7fb 0px,
    #f4f7fb 10px,
    #edf2f8 10px,
    #edf2f8 20px
  );
}

.event-gallery-slot.is-empty span {
  font-size: 0.82rem;
  color: #7a8798;
  font-weight: 600;
}

.event-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2300;
  display: none;
}

.event-gallery-lightbox.is-open {
  display: block;
}

.event-gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 31, 0.78);
}

.event-gallery-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 1.5rem));
  max-height: calc(100vh - 1.5rem);
  overflow: auto;
  margin: 0.75rem auto;
  border-radius: 14px;
  border: 1px solid #243246;
  background: #0f1825;
  padding: 0.8rem;
}

.event-gallery-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.event-gallery-lightbox-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 0.24rem 0.54rem;
  border: 1px solid #33445e;
  border-radius: 999px;
  color: #d4e0ef;
  background: #152236;
  font-size: 0.78rem;
  font-weight: 700;
}

.event-gallery-lightbox-close {
  border: 1px solid #3a506f;
  border-radius: 999px;
  padding: 0.3rem 0.84rem;
  background: rgba(22, 34, 53, 0.92);
  color: #dce7f5;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.event-gallery-lightbox-close:hover {
  border-color: #57a5ff;
  background: rgba(18, 43, 72, 0.94);
  transform: translateY(-1px);
}

.event-gallery-lightbox-stage {
  position: relative;
  border-radius: 12px;
  border: 1px solid #273a54;
  background: #09101a;
  padding: 0.45rem 3.2rem;
  margin-top: 0.66rem;
}

.event-gallery-lightbox-panel img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 210px);
  object-fit: contain;
  border-radius: 10px;
  background: #09101a;
  margin: 0;
}

.event-gallery-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(136, 174, 216, 0.65);
  background: rgba(12, 27, 45, 0.88);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.event-gallery-lightbox-arrow span {
  display: inline-block;
  font-size: 1.9rem;
  line-height: 1;
  margin-top: -0.08rem;
}

.event-gallery-lightbox-arrow:hover {
  background: rgba(26, 60, 98, 0.92);
  border-color: rgba(162, 199, 241, 0.98);
  transform: translateY(-50%) scale(1.03);
}

.event-gallery-lightbox-arrow:active {
  transform: translateY(-50%) scale(0.97);
}

.event-gallery-lightbox-arrow:focus-visible,
.event-gallery-lightbox-close:focus-visible {
  outline: 2px solid #70c0ff;
  outline-offset: 2px;
}

.event-gallery-lightbox-arrow--prev {
  left: 0.8rem;
}

.event-gallery-lightbox-arrow--next {
  right: 0.8rem;
}

.event-gallery-lightbox-panel #eventGalleryLightboxLabel {
  color: #d1dceb !important;
  margin-top: 0.6rem;
}

.detail-hero {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 1rem;
}

.detail-cover {
  min-height: 220px;
  background: #f0f3f7;
}

.detail-cover img {
  display: block;
  width: 100%;
  height: 290px;
  object-fit: cover;
}

.detail-body {
  padding: 0.95rem 1rem;
}

.event-detail-page-title .page-title-eyebrow {
  color: #5b6f89;
}

.event-detail-page-title .page-title {
  color: #1e324a;
}

.event-detail-premium .detail-hero {
  border: 1px solid #d5e6f5;
  box-shadow: 0 12px 24px rgba(19, 34, 58, 0.1);
}

.event-detail-premium .detail-body {
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 107, 0, 0.12) 0%, rgba(255, 107, 0, 0) 42%),
    radial-gradient(circle at 8% 0%, rgba(0, 179, 255, 0.14) 0%, rgba(0, 179, 255, 0) 35%),
    linear-gradient(180deg, #ffffff, #f6fbff);
  color: #22384f;
}

.event-detail-premium .detail-body .small.text-secondary {
  color: #5d7086 !important;
}

.event-detail-premium .detail-body .badge {
  background: #ffffff !important;
  color: #065a97 !important;
  border-color: #bfe3ff !important;
}

.event-detail-actions-premium {
  background: linear-gradient(180deg, #f8fafd, #eef3f8);
  border: 1px solid #d5dfeb;
  border-radius: 16px;
  padding: 0.82rem;
  box-shadow: 0 10px 22px rgba(22, 38, 62, 0.1);
}

.event-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
}

.event-detail-action-btn {
  min-height: 54px;
  min-width: 240px;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 14px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.01em;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.2s ease, color 0.2s ease;
}

.event-detail-action-btn:hover {
  transform: translateY(-1px);
}

.event-detail-action-btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: #f87417;
  box-shadow: 0 14px 26px rgba(255, 107, 0, 0.34);
}

.event-detail-action-btn-primary:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #ff7d22, #ffaf5c);
  border-color: #ff842e;
  box-shadow: 0 16px 30px rgba(255, 107, 0, 0.38);
}

.event-detail-action-btn-secondary {
  color: #055792;
  background: linear-gradient(180deg, #ffffff, #eef8ff);
  border-color: #86d3ff;
  box-shadow: 0 9px 20px rgba(0, 129, 214, 0.14);
}

.event-detail-action-btn-secondary:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  border-color: #0098ec;
}

.event-detail-action-btn-muted,
.event-detail-action-btn-muted:disabled {
  color: #7f8b9c;
  background: linear-gradient(180deg, #edf1f6, #e4e9f0);
  border-color: #d2dae5;
  box-shadow: none;
}

.event-detail-premium .event-detail-panel {
  border: 1px solid #d6dfeb;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(19, 34, 58, 0.08);
}

.event-detail-premium .event-detail-panel > .card-header {
  background: linear-gradient(180deg, #ffffff, #f8fafd);
  color: #333841;
  border-bottom: 1px solid #eceef2;
}

.event-detail-premium .event-detail-panel > .card-header.event-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.event-detail-premium .event-detail-panel .table thead th {
  background: #f6f9fd;
  color: #3b4555;
}

.event-detail-premium .event-detail-panel .event-category-table {
  border-collapse: separate;
  border-spacing: 0;
}

.event-detail-premium .event-detail-panel .event-category-table tbody tr > * {
  border-color: transparent;
}

.event-detail-premium .event-detail-panel .event-category-table tbody tr:nth-child(odd) > * {
  background: #fafbfc;
  color: #2f3440;
}

.event-detail-premium .event-detail-panel .event-category-table tbody tr:nth-child(even) > * {
  background: #ffffff;
  color: #2f3440;
}

.event-detail-premium .event-detail-panel .event-category-table tbody tr:hover > * {
  background: #eef7ff;
}

.event-detail-premium .event-detail-panel .event-category-table tbody td:first-child {
  font-weight: 700;
  color: #27435f;
}

.event-contact-stack {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.event-facebook-embed {
  border: 1px solid #cfe4f7;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 107, 0, 0.1), rgba(255, 107, 0, 0) 44%),
    linear-gradient(180deg, #f8fcff, #eef6ff);
  box-shadow: 0 12px 24px rgba(24, 43, 69, 0.1);
}

.event-facebook-embed-head {
  min-height: 46px;
  padding: 0.62rem 0.78rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border-bottom: 1px solid #d9e8f8;
  background: linear-gradient(135deg, #ffffff, #f0f8ff);
  font-weight: 700;
  color: #21466d;
}

.event-facebook-embed-head a {
  color: #0c65a8;
  text-decoration: none;
  font-weight: 700;
}

.event-facebook-embed-head a:hover {
  color: #f06a18;
  text-decoration: underline;
}

.event-facebook-embed iframe {
  display: block;
  width: 100%;
  max-width: 500px;
  height: 620px;
  border: 0;
  margin: 0 auto;
  background: #ffffff;
}

.event-detail-premium .event-gallery-slot {
  border-color: #d4ddea;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(23, 38, 60, 0.08);
}

.event-detail-premium .event-gallery-slot-label {
  background: linear-gradient(180deg, #ffffff, #eef3f9);
  color: #314760;
}

.admin-event-thumb {
  width: 108px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #1b3553, #2e4d72);
  color: #dce8f7;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.admin-event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.auth-panel .card-header {
  background: #ffffff;
}

.admin-pane {
  border: 1px solid #d9e2ee;
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 31, 52, 0.08);
}

.admin-shell > .col-xl-3 .admin-pane {
  border: 0;
  background: linear-gradient(160deg, #10263f 0%, #1a3758 58%, #24486f 100%);
  box-shadow: 0 18px 36px rgba(13, 28, 49, 0.32);
}

.admin-shell > .col-xl-3 .admin-pane > .card-header {
  background: transparent;
  color: #f2f7ff;
  border-bottom: 1px solid rgba(226, 237, 252, 0.16);
}

.admin-shell > .col-xl-3 .admin-pane > .card-body {
  background: transparent;
}

.admin-menu-group {
  margin-bottom: 0.85rem;
}

.admin-menu-group:last-child {
  margin-bottom: 0;
}

.admin-menu-note {
  margin: 0.12rem 0.2rem 0.8rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #e2e9f2;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff, #f2f6fb);
  color: #506178;
  font-size: 0.78rem;
  line-height: 1.4;
}

.admin-nav-block {
  margin-bottom: 0.65rem;
  border: 1px solid rgba(229, 238, 250, 0.22);
  border-radius: 14px;
  background: rgba(244, 249, 255, 0.08);
  overflow: hidden;
}

.admin-nav-block:last-child {
  margin-bottom: 0;
}

.admin-nav-block summary {
  list-style: none;
  cursor: pointer;
  padding: 0.74rem 0.76rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid transparent;
}

.admin-nav-block summary::-webkit-details-marker {
  display: none;
}

.admin-nav-block[open] summary {
  border-bottom-color: rgba(229, 238, 250, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.admin-nav-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #eff6ff;
  letter-spacing: 0.01em;
}

.admin-nav-subtitle {
  margin-top: 0.18rem;
  font-size: 0.77rem;
  color: #c4d6ec;
}

.admin-nav-links {
  padding: 0.5rem;
}

.admin-menu-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #5b6a7d;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0.15rem 0.2rem 0.4rem;
}

.admin-link {
  display: block;
  width: 100%;
  padding: 0.68rem 0.76rem;
  margin-bottom: 0.2rem;
  border-radius: 11px;
  color: #e8f0fb;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(222, 233, 248, 0.2);
  background: rgba(247, 251, 255, 0.06);
  transition: all 0.16s ease;
}

.admin-link:last-child {
  margin-bottom: 0;
}

.admin-link-label {
  display: block;
  font-weight: 700;
}

.admin-link small {
  display: block;
  margin-top: 0.14rem;
  font-size: 0.74rem;
  color: #c2d1e3;
  line-height: 1.35;
}

.admin-link:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(240, 247, 255, 0.48);
  transform: translateX(3px);
}

.admin-link.active {
  background: linear-gradient(130deg, #f8fbff 0%, #e6effb 100%);
  border-color: #d6e3f4;
  color: #1f3654;
}

.admin-link.active small {
  color: #4c6381;
}

.admin-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-section-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.46rem 0.9rem;
  border: 1px solid #d5dfeb;
  border-radius: 10px;
  background: #ffffff;
  color: #334a64;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  transition: all 0.16s ease;
}

.admin-section-tab:hover {
  color: #0b5f9e;
  border-color: #8fd4ff;
  background: linear-gradient(180deg, #ffffff, #f2f9ff);
  transform: translateY(-1px);
}

.admin-section-tab--disabled {
  color: #8b93a1;
  background: #f4f6f9;
  border-color: #d8dde6;
  cursor: not-allowed;
}

.admin-section-tab--disabled:hover {
  color: #8b93a1;
  background: #f4f6f9;
  border-color: #d8dde6;
  transform: none;
}

.admin-section-tab.active {
  color: #ffffff;
  border-color: #0098ec;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  box-shadow: 0 9px 20px rgba(0, 129, 214, 0.24);
}

.admin-section-tab--secondary {
  border-style: dashed;
}

.admin-managed-card .card-body {
  display: grid;
  gap: 0.94rem;
}

.admin-managed-toolbar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(360px, 1.1fr);
  gap: 0.72rem;
  align-items: stretch;
  padding: 0.72rem;
  border: 1px solid #dde6f2;
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 0, rgba(0, 153, 255, 0.06), rgba(0, 153, 255, 0) 48%),
    linear-gradient(180deg, #ffffff, #f6faff);
}

.admin-managed-toolbar__picker {
  display: grid;
  gap: 0.42rem;
  align-content: start;
}

.admin-managed-toolbar select {
  width: 100%;
  border: 1px solid #c9d9eb;
  border-radius: 12px;
  min-height: 46px;
  padding: 0.56rem 0.74rem;
  background: #ffffff;
  color: #213954;
  font-size: 0.9rem;
}

.admin-managed-toolbar select:focus {
  border-color: #66c4fb;
  box-shadow: 0 0 0 0.18rem rgba(60, 181, 246, 0.18);
  outline: 0;
}

.admin-managed-toolbar__picker-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #33516f;
}

.admin-managed-toolbar__hint {
  font-size: 0.78rem;
  color: #60758e;
  line-height: 1.4;
}

.admin-managed-toolbar__actions {
  display: grid;
  gap: 0.54rem;
  align-content: start;
}

.admin-managed-toolbar__submit {
  justify-self: start;
}

.admin-managed-export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 0.48rem;
}

.admin-managed-export-note {
  margin-top: 0.22rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #526b87;
  background: #f3f8ff;
  border: 1px dashed #c7d9ee;
  border-radius: 10px;
  padding: 0.42rem 0.56rem;
  line-height: 1.45;
}

.admin-managed-export-btn {
  min-height: 42px;
  border-radius: 11px;
  border: 1px solid #ccd9e9;
  background: #ffffff;
  color: #2c4563;
  box-shadow: 0 6px 14px rgba(28, 55, 86, 0.08);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.admin-managed-export-btn:hover {
  color: #1a3350;
  border-color: #96bfdf;
  background: linear-gradient(180deg, #ffffff, #eef7ff);
  transform: translateY(-1px);
}

.admin-managed-export-btn.is-core {
  border-color: #bed8ef;
  color: #1d4f77;
}

.admin-managed-export-btn.is-core:hover {
  border-color: #8dc2e9;
  background: linear-gradient(180deg, #f6fcff, #e5f3ff);
}

.admin-managed-export-btn.is-shipping {
  border-color: #c8dfcf;
  color: #2b6a3f;
}

.admin-managed-export-btn.is-shipping:hover {
  border-color: #9fcdb0;
  background: linear-gradient(180deg, #f7fcf8, #e9f5eb);
}

.admin-managed-export-btn.is-ops {
  border-color: #e1d8c3;
  color: #7c5a0f;
}

.admin-managed-export-btn.is-ops:hover {
  border-color: #d2be8e;
  background: linear-gradient(180deg, #fffdf7, #f8f0dc);
}

.admin-managed-summary {
  display: grid;
  gap: 0.76rem;
}

.admin-managed-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.56rem;
}

.admin-managed-kpi {
  border: 1px solid #dce4ef;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  padding: 0.62rem 0.7rem;
}

.admin-managed-kpi__label {
  font-size: 0.78rem;
  color: #607188;
  margin-bottom: 0.16rem;
}

.admin-managed-kpi__value {
  font-size: 1.3rem;
  line-height: 1.1;
  font-weight: 800;
  color: #1c3452;
}

.admin-managed-finance {
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  padding: 0.72rem;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.admin-managed-finance__head {
  margin-bottom: 0.58rem;
}

.admin-managed-finance__title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1f3c5f;
}

.admin-managed-finance__subtitle {
  font-size: 0.76rem;
  color: #667a93;
}

.admin-managed-finance__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.admin-managed-finance-card {
  border: 1px solid #dce5f0;
  border-radius: 10px;
  background: #ffffff;
  padding: 0.54rem 0.62rem;
}

.admin-managed-finance-card__label {
  font-size: 0.74rem;
  color: #65788f;
  margin-bottom: 0.22rem;
}

.admin-managed-finance-card__value {
  font-size: 1.05rem;
  line-height: 1.1;
  font-weight: 800;
  color: #223a5a;
}

.admin-managed-finance-card.is-success {
  border-color: #cbe8d9;
  background: linear-gradient(180deg, #f2fcf6, #e7f7ef);
}

.admin-managed-finance-card.is-success .admin-managed-finance-card__value {
  color: #0f7040;
}

.admin-managed-finance-card.is-accent {
  border-color: #bfe4fb;
  background: linear-gradient(180deg, #eff9ff, #e4f2fb);
}

.admin-managed-finance-card.is-accent .admin-managed-finance-card__value {
  color: #0c5f96;
}

.admin-managed-finance-card.is-warning {
  border-color: #f0d9a5;
  background: linear-gradient(180deg, #fff8e7, #fdf0d1);
}

.admin-managed-finance-card.is-warning .admin-managed-finance-card__value {
  color: #8a5a00;
}

.admin-managed-finance-card.is-neutral {
  border-color: #dbe2ec;
  background: linear-gradient(180deg, #f7f9fc, #edf2f8);
}

.admin-managed-finance-card.is-neutral .admin-managed-finance-card__value {
  color: #4a5c73;
}

.admin-managed-finance-card.is-danger {
  border-color: #efc7ce;
  background: linear-gradient(180deg, #fff1f3, #ffe5e9);
}

.admin-managed-finance-card.is-danger .admin-managed-finance-card__value {
  color: #9b2a3a;
}

.admin-managed-finance-card.is-muted {
  border-color: #e0e6ef;
  background: linear-gradient(180deg, #f7f9fc, #f1f4f8);
}

.admin-managed-finance-card.is-muted .admin-managed-finance-card__value {
  color: #55687f;
}

.admin-managed-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.66rem;
}

.admin-managed-breakdown-card {
  border: 1px solid #dce5f0;
  border-radius: 12px;
  background: #ffffff;
  padding: 0.62rem 0.68rem;
}

.admin-managed-breakdown-card__title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #224462;
  margin-bottom: 0.4rem;
}

.admin-managed-breakdown-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.3rem;
}

.admin-managed-breakdown-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.58rem;
  border-bottom: 1px dashed #e3eaf3;
  padding-bottom: 0.26rem;
  font-size: 0.86rem;
  color: #3d4f64;
}

.admin-managed-breakdown-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-managed-breakdown-list li strong {
  font-size: 0.83rem;
  color: #1f3652;
  white-space: nowrap;
}

.event-function-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.5rem;
}

.event-function-link {
  display: block;
  padding: 0.6rem 0.72rem;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  color: #2b425e;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  transition: all 0.16s ease;
}

.event-function-link:hover {
  color: #0b5f9e;
  border-color: #9ed6ff;
  background: linear-gradient(180deg, #ffffff, #eff8ff);
  transform: translateY(-1px);
}

.event-function-link.is-disabled {
  border-style: dashed;
  color: #6f8298;
  background: #f6f8fb;
  pointer-events: none;
}

.event-admin-page {
  display: grid;
  gap: 0.85rem;
}

.event-admin-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 0.8rem;
}

.event-admin-title {
  margin: 0;
  font-size: clamp(1.36rem, 2.15vw, 1.82rem);
  font-weight: 800;
  color: #1b2f49;
}

.event-admin-subtitle {
  margin: 0;
  color: #617287;
  font-size: 0.88rem;
}

.event-admin-zone {
  border: 1px solid #d8e1ec;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(12, 28, 48, 0.08);
  overflow: hidden;
}

.event-admin-zone-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.85rem 0.92rem;
  border-bottom: 1px solid #e6edf5;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.event-admin-zone-head h2 {
  margin: 0;
  font-size: 1.01rem;
  color: #18314d;
  font-weight: 800;
}

.event-admin-zone-head p {
  margin: 0.14rem 0 0;
  font-size: 0.82rem;
  color: #6f8199;
}

.event-admin-head-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.event-admin-zone--filters {
  padding-bottom: 0.8rem;
}

.event-admin-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(5, minmax(120px, 1fr)) auto;
  gap: 0.6rem;
  align-items: end;
  padding: 0.78rem 0.92rem 0.2rem;
}

.event-admin-filter-field--search {
  min-width: 0;
}

.event-admin-filter-actions {
  display: inline-flex;
  gap: 0.48rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.event-admin-filter-actions .btn {
  min-width: 108px;
}

.event-admin-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.08rem 0.92rem 0;
}

.event-admin-table-wrap {
  max-height: none;
}

.event-admin-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.65rem 0.92rem 0.4rem;
}

.event-admin-list-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.62rem;
  border-top: 1px solid #e5edf6;
  padding: 0.62rem 0.92rem 0.78rem;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.event-admin-list-meta {
  font-size: 0.83rem;
  color: #5d7088;
}

.event-admin-list-meta strong {
  color: #1a3a5e;
}

.event-admin-list-page {
  font-size: 0.79rem;
  color: #5f7491;
}

.event-admin-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.36rem;
}

.event-admin-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0.22rem 0.56rem;
  border-radius: 10px;
  border: 1px solid #d5e2f0;
  background: #ffffff;
  color: #26496c;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.event-admin-page-link:hover {
  border-color: #9ac6ef;
  background: #eff7ff;
  color: #0f4f86;
}

.event-admin-page-link.is-active {
  border-color: #1a95f3;
  background: linear-gradient(135deg, #00b2ff, #0084ff);
  color: #ffffff;
}

.event-admin-page-link.is-disabled {
  border-style: dashed;
  border-color: #d9e2ec;
  color: #8393a7;
  background: #f7f9fc;
  pointer-events: none;
}

.event-admin-page-dots {
  color: #6f8299;
  font-size: 0.8rem;
  padding: 0 0.12rem;
}

.event-admin-table {
  width: 100%;
  border-collapse: collapse;
}

.event-admin-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f4f9ff;
}

.event-admin-table td,
.event-admin-table th {
  white-space: normal;
  vertical-align: top;
}

.event-admin-table tbody tr.is-selected td {
  background: #eef8ff;
}

.event-admin-row-actions {
  display: flex;
  gap: 0.42rem;
  flex-wrap: wrap;
  align-items: center;
}

.event-admin-row-actions .btn {
  min-width: 76px;
}

.thunder-mode-action-cell {
  min-width: 190px;
}

.thunder-mode-action-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.thunder-mode-toggle-btn {
  min-width: 140px;
  justify-content: center;
}

.thunder-settings-card .card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.thunder-settings-head-sub {
  font-weight: 600;
}

.thunder-settings-body {
  display: grid;
  gap: 0.86rem;
  background:
    radial-gradient(circle at 96% 0%, rgba(255, 107, 0, 0.09), rgba(255, 107, 0, 0) 42%),
    radial-gradient(circle at 6% 0%, rgba(0, 179, 255, 0.1), rgba(0, 179, 255, 0) 34%),
    linear-gradient(180deg, #ffffff, #f7fbff);
}

.thunder-settings-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 0.56rem;
}

.thunder-settings-kpi {
  border: 1px solid #dce5f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
  padding: 0.66rem 0.72rem;
  min-height: 88px;
}

.thunder-settings-kpi--wide {
  grid-column: span 2;
}

.thunder-settings-kpi__label {
  font-size: 0.74rem;
  color: #5f6f83;
  margin-bottom: 0.22rem;
}

.thunder-settings-kpi__value {
  font-size: 1rem;
  font-weight: 800;
  color: #1e324a;
  line-height: 1.32;
}

.thunder-settings-kpi__note {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: #60748c;
  line-height: 1.35;
}

.thunder-secret {
  display: inline-block;
  max-width: 100%;
  border: 1px dashed #d2deeb;
  background: #f9fbfe;
  color: #2d4562;
  border-radius: 8px;
  padding: 0.14rem 0.42rem;
  font-size: 0.76rem;
  word-break: break-all;
}

.thunder-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0.14rem 0.58rem;
  border-radius: 999px;
  border: 1px solid #d5e4f5;
  background: #eff6ff;
  color: #244562;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.thunder-pill--on {
  border-color: #c6efd8;
  background: #e7f8ef;
  color: #13643a;
}

.thunder-pill--off {
  border-color: #f0d3d3;
  background: #fff1f1;
  color: #8a2c2c;
}

.thunder-pill--mode {
  border-color: #cce5ff;
  background: #edf6ff;
  color: #174f84;
}

.thunder-pill--verify {
  border-color: #d6d5ff;
  background: #efedff;
  color: #3f3e8b;
}

.thunder-settings-form {
  border: 1px solid #d9e4ef;
  border-radius: 14px;
  padding: 0.74rem;
  background: #ffffff;
}

.thunder-settings-field {
  min-width: 0;
}

.thunder-settings-json {
  grid-column: 1 / -1;
  border: 1px dashed #cad8e8;
  border-radius: 12px;
  background: #f8fbff;
  padding: 0.68rem;
}

.thunder-settings-json-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.48rem;
}

.thunder-settings-guide {
  border-color: #dce8f4;
  background: #ffffff;
}

.thunder-settings-guide-example {
  margin: 0 0 12px 0;
  padding: 10px;
  border: 1px solid #d7e3f0;
  border-radius: 10px;
  background: #f6f9fd;
  white-space: pre-wrap;
  word-break: break-word;
}

.thunder-settings-guide-list {
  display: grid;
  gap: 4px;
}

.thunder-settings-submit {
  display: flex;
  align-items: flex-end;
}

.thunder-settings-submit .btn {
  min-height: 44px;
  padding-inline: 1rem;
}

.thunder-settings-mode {
  border: 1px solid #d9e4ef;
  border-radius: 14px;
  background: #ffffff;
  padding: 0.74rem;
}

.thunder-settings-mode__title {
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

@media (max-width: 960px) {
  .thunder-settings-kpi--wide {
    grid-column: span 1;
  }
}

.registration-admin-create-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.registration-admin-status-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.46rem;
  padding: 0.48rem;
  border: 1px solid #dce6f2;
  border-radius: 11px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.registration-admin-status-caption {
  grid-column: 1 / -1;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #5b7390;
  text-transform: uppercase;
}

.registration-admin-status-form select {
  min-width: 0;
  width: 100%;
  border-color: #c9d9eb;
}

.registration-admin-status-save {
  min-width: 94px;
  border-radius: 10px;
  min-height: 40px;
  box-shadow: 0 9px 16px rgba(255, 107, 0, 0.2);
}

.registration-admin-payment-cell {
  min-width: 250px;
}

.registration-admin-action-cell {
  min-width: 280px;
}

.registration-admin-row-actions {
  justify-content: flex-start;
}

.registration-admin-action-cell .registration-admin-row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
  align-items: stretch;
}

.registration-action-link,
.registration-action-delete-btn {
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.8rem;
}

.registration-action-link {
  border-color: #c9d9eb;
  color: #294764;
  background: #ffffff;
}

.registration-action-link:hover {
  color: #1c3651;
  border-color: #8fbce0;
  background: linear-gradient(180deg, #ffffff, #eef6ff);
}

.registration-action-link--edit {
  border-color: #94d3ff;
  color: #045f9f;
  background: linear-gradient(180deg, #f4fcff, #e5f4ff);
}

.registration-action-link--primary {
  border-color: #7dbef0;
  color: #034d82;
  background: linear-gradient(180deg, #edf8ff, #dceffd);
}

.registration-action-link--edit:hover {
  border-color: #58baf6;
  color: #014f88;
  background: linear-gradient(180deg, #f0fbff, #dff1ff);
}

.registration-action-link--notify {
  border-color: #d1dbe8;
  color: #3b536f;
}

.registration-action-link--shipping {
  border-color: #c9dfce;
  color: #2c6a3e;
  background: linear-gradient(180deg, #f8fdf9, #edf7ef);
}

.registration-action-link--shipping:hover {
  border-color: #96c7a5;
  color: #245a35;
  background: linear-gradient(180deg, #f4fcf5, #e4f2e7);
}

.registration-action-form {
  margin: 0;
  width: 100%;
}

.registration-action-delete-btn {
  border-color: #efc6cc;
  color: #9a2d3e;
  background: linear-gradient(180deg, #fff6f7, #feecef);
}

.registration-action-delete-btn:hover {
  border-color: #e2a3ae;
  color: #852436;
  background: linear-gradient(180deg, #fff2f4, #fde1e6);
}

.registration-action-form,
.registration-action-delete-btn {
  grid-column: 1 / -1;
}

.registration-action-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  border: 1px dashed #c4d2df;
  background: linear-gradient(180deg, #fcfdff, #f4f7fb);
  color: #6d7f93;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  padding: 0.3rem 0.45rem;
}

.registration-admin-delivery-cell {
  min-width: 220px;
}

.registration-delivery-muted {
  display: inline-block;
  margin-top: 0.18rem;
  font-size: 0.73rem;
  font-weight: 700;
  color: #5f7287;
}

.users-admin-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.users-admin-create-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.users-admin-create-action {
  display: grid;
}

.users-admin-create-action .btn {
  min-height: 44px;
}

.users-admin-table .users-id-cell {
  font-weight: 700;
  color: #44546a;
}

.users-role-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.users-role-chip--admin {
  color: #7a2a00;
  border-color: #ffb685;
  background: linear-gradient(180deg, #fff2e8, #ffe7d5);
}

.users-role-chip--organizer {
  color: #0f4f86;
  border-color: #9fd3ff;
  background: linear-gradient(180deg, #edf7ff, #dff0ff);
}

.users-role-chip--staff {
  color: #4b5c74;
  border-color: #d5dde7;
  background: linear-gradient(180deg, #f6f8fb, #eef2f7);
}

.users-active-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.28rem 0.66rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.74rem;
  font-weight: 800;
}

.users-active-chip--on {
  color: #0a5f2e;
  border-color: #8ed5ac;
  background: linear-gradient(180deg, #e8f9ee, #daf4e5);
}

.users-active-chip--off {
  color: #6f4a00;
  border-color: #f0d28f;
  background: linear-gradient(180deg, #fff6e4, #ffefca);
}

.users-admin-row-actions {
  align-items: flex-start;
}

.users-reset-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
}

.users-reset-form input {
  width: 220px;
  min-width: 180px;
}

.event-admin-edit-panel {
  padding: 0.88rem 0.92rem 0.94rem;
  display: grid;
  gap: 0.75rem;
}

.event-admin-edit-form {
  display: grid;
  gap: 0.75rem;
}

.event-admin-block {
  border: 1px solid #dbe5f1;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  padding: 0.74rem 0.78rem;
}

.event-admin-block h3 {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  color: #254666;
  font-weight: 800;
}

.event-admin-form-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.56rem 0.64rem;
}

.event-admin-form-grid--media {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.6rem;
}

.event-admin-gallery-grid {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.56rem 0.64rem;
}

.event-admin-gallery-manager {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.56rem;
}

.event-admin-gallery-manager .event-admin-gallery-grid {
  margin-top: 0;
}

.event-admin-gallery-slot {
  border: 1px solid #dce7f3;
  border-radius: 12px;
  background: #ffffff;
  padding: 0.55rem 0.6rem;
}

.event-admin-gallery-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.event-admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.56rem;
}

.event-admin-form-actions .btn {
  min-width: 148px;
}

.event-admin-form-grid--category-add {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
}

.event-admin-form-grid--assign-organizer {
  grid-template-columns: minmax(220px, 1.3fr) minmax(260px, 2fr) auto;
  align-items: end;
}

.event-admin-category-add-action {
  display: inline-flex;
  align-items: end;
}

.event-admin-organizer-actions {
  display: inline-flex;
  align-items: end;
}

.event-admin-category-table-wrap {
  margin-top: 0.72rem;
}

.event-admin-category-table td,
.event-admin-category-table th {
  white-space: normal;
}

.event-admin-category-inline {
  display: grid;
  grid-template-columns: minmax(170px, 1.8fr) minmax(90px, 0.8fr) minmax(90px, 0.8fr) minmax(90px, 0.8fr) auto;
  gap: 0.42rem;
  align-items: center;
}

.event-admin-create-panel {
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.event-admin-create-panel > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.88rem 0.94rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.55rem;
  font-weight: 800;
  color: #1f3a59;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.event-admin-create-panel > summary small {
  font-weight: 600;
  color: #6f8096;
}

.event-admin-create-panel > summary::-webkit-details-marker {
  display: none;
}

.event-admin-create-body {
  border-top: 1px solid #e6edf5;
  padding: 0.78rem 0.92rem 0.9rem;
}

.event-admin-create-form {
  display: grid;
  gap: 0.68rem;
}

.event-admin-seed-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.72rem;
}

@media (max-width: 1260px) {
  .event-admin-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-admin-filter-field--search {
    grid-column: 1 / -1;
  }

  .event-admin-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .event-admin-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .registration-admin-create-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .registration-admin-action-cell .registration-admin-row-actions {
    grid-template-columns: 1fr;
  }

  .registration-admin-status-form {
    grid-template-columns: 1fr;
  }

  .registration-admin-status-save {
    width: 100%;
  }

  .users-admin-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .users-admin-create-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-admin-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .event-admin-form-grid--category-add {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .event-admin-category-add-action {
    grid-column: 1 / -1;
  }

  .event-admin-form-grid--assign-organizer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-admin-organizer-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .event-admin-form-grid,
  .registration-admin-create-grid,
  .users-admin-create-grid,
  .event-admin-form-grid--media,
  .event-admin-gallery-grid,
  .event-admin-form-grid--category-add,
  .event-admin-form-grid--assign-organizer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-admin-category-inline {
    grid-template-columns: 1fr 0.7fr 0.7fr 0.7fr auto;
  }
}

@media (max-width: 680px) {
  .event-admin-zone-head {
    align-items: flex-start;
  }

  .event-admin-filter-form,
  .event-admin-form-grid,
  .registration-admin-create-grid,
  .users-admin-create-grid,
  .event-admin-form-grid--media,
  .event-admin-gallery-grid,
  .event-admin-form-grid--category-add,
  .event-admin-form-grid--assign-organizer,
  .event-admin-category-inline {
    grid-template-columns: 1fr;
  }

  .event-admin-filter-actions {
    width: 100%;
  }

  .event-admin-filter-actions .btn {
    width: 100%;
  }

  .event-admin-list-toolbar,
  .event-admin-list-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-admin-pagination {
    width: 100%;
    justify-content: flex-start;
  }

  .users-admin-kpis {
    grid-template-columns: 1fr;
  }

  .users-reset-form input {
    width: 100%;
    min-width: 0;
  }

  .registration-admin-status-form {
    padding: 0.3rem;
  }

  .registration-admin-status-form select,
  .registration-admin-status-save {
    width: 100%;
  }

  .event-admin-form-actions .btn {
    width: 100%;
  }

  .event-admin-gallery-actions .btn {
    width: 100%;
  }

  .event-admin-gallery-actions {
    flex-direction: column;
    align-items: stretch;
  }

}

.admin-quick-group-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #4f6077;
  margin-bottom: 0.1rem;
}

.admin-categories-scroll {
  max-height: none;
  overflow: visible;
  padding-right: 0.2rem;
}

.admin-category-item {
  border: 1px solid #e2e7ef;
  border-radius: 12px;
  background: #ffffff;
  margin-bottom: 0.8rem;
  box-shadow: 0 4px 14px rgba(21, 38, 62, 0.05);
}

.admin-category-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  list-style: none;
  cursor: pointer;
  padding: 0.72rem 0.82rem;
  background: #f7faff;
  border-radius: 12px;
}

.admin-category-item summary::-webkit-details-marker {
  display: none;
}

.admin-category-item[open] summary {
  border-bottom: 1px solid #e4e9f0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.admin-category-content {
  padding: 0.72rem;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border: 1px solid #e1e6ee;
  border-radius: 999px;
  background: #f8fafc;
  color: #3f495a;
  font-size: 0.78rem;
  padding: 0.3rem 0.66rem;
  font-weight: 600;
}

.event-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 30px;
  padding: 0.34rem 0.76rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.1);
}

.event-status-badge--corner {
  position: absolute;
  left: 0.5rem;
  top: 0.58rem;
  z-index: 4;
  min-height: 34px;
  padding: 0.44rem 0.98rem 0.44rem 0.9rem;
  border-radius: 0 12px 12px 0;
  border-color: rgba(176, 227, 255, 0.95);
  color: #ffffff;
  background: linear-gradient(135deg, #00b6ff 0%, #008dff 100%);
  box-shadow: 0 12px 20px rgba(0, 111, 197, 0.34);
  text-shadow: 0 1px 2px rgba(8, 40, 78, 0.34);
  backdrop-filter: blur(2px);
}

.event-status-badge--corner::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 0;
  height: 0;
  border-top: 8px solid #0363c2;
  border-left: 8px solid transparent;
}

.event-status-badge--corner.event-status-badge--open {
  background: linear-gradient(135deg, #00b6ff 0%, #008dff 100%);
}

.event-status-badge--corner.event-status-badge--near-full {
  background: linear-gradient(135deg, #32c5ff 0%, #1a98ff 100%);
}

.event-status-badge--corner.event-status-badge--full {
  background: linear-gradient(135deg, #5fb5ff 0%, #3f8fe0 100%);
}

.event-status-badge--corner.event-status-badge--not-open {
  background: linear-gradient(135deg, #8fa1b5 0%, #617388 100%);
}

.event-status-badge--corner.event-status-badge--closed {
  background: linear-gradient(135deg, #8896a8 0%, #5c6a7e 100%);
}

.event-status-badge--corner.event-status-badge--not-open::after {
  border-top-color: #4f6074;
}

.event-status-badge--corner.event-status-badge--closed::after {
  border-top-color: #46556a;
}

.event-status-badge--corner.event-status-badge--free {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-color: rgba(164, 244, 199, 0.95);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(6, 62, 26, 0.35);
}

.event-status-badge--corner.event-status-badge--free::after {
  border-top-color: #0f7a43;
}

.event-status-badge--corner-free {
  top: 3rem;
  min-height: 28px;
  padding: 0.32rem 0.84rem 0.32rem 0.8rem;
  font-size: 0.72rem;
}

.event-status-badge--open:not(.event-status-badge--corner) {
  color: #035b9d;
  background: linear-gradient(180deg, #e5f7ff, #d7f0ff);
  border-color: #9edfff;
}

.event-status-badge--near-full:not(.event-status-badge--corner) {
  color: #8b4300;
  background: linear-gradient(180deg, #ffeddc, #ffe3c7);
  border-color: #ffc38e;
}

.event-status-badge--full:not(.event-status-badge--corner) {
  color: #4e5968;
  background: linear-gradient(180deg, #f2f4f7, #e8ecf1);
  border-color: #d4dbe5;
}

.event-status-badge--not-open:not(.event-status-badge--corner),
.event-status-badge--closed:not(.event-status-badge--corner) {
  color: #47556a;
  background: linear-gradient(180deg, #edf1f6, #e4eaf1);
  border-color: #cfd8e4;
}

.event-status-badge--confirmed {
  color: #126136;
  background: linear-gradient(180deg, #e9f9ef, #dbf4e3);
  border-color: #bceacb;
}

.event-status-badge--free:not(.event-status-badge--corner) {
  color: #0f5f34;
  background: linear-gradient(180deg, #ecfdf3, #dcf9e8);
  border-color: #b9efce;
}

.guest-registration-form .participant-block {
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.guest-registration-form .participant-block > .card-header {
  background: linear-gradient(180deg, #ffffff, #f2f8ff);
}

.registration-wizard {
  display: grid;
  gap: 1rem;
}

.registration-participant-zone {
  border: 1px solid #dce6f2;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--shadow-soft);
  padding: 0.95rem;
}

.registration-wizard-progress {
  border: 1px solid #d8e4f1;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f6f9fd);
  padding: 0.74rem 0.88rem;
  box-shadow: var(--shadow-soft);
}

.registration-wizard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: #5f6f84;
  font-weight: 700;
}

.registration-wizard-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e8edf5;
  overflow: hidden;
}

.registration-wizard-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00b3ff, #0084ff 52%, #ff8b2e);
  width: 33.333%;
  transition: width 0.28s ease;
}

.registration-step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.56rem;
}

.registration-step-pill {
  border: 1px solid #d8e4f1;
  border-radius: 14px;
  background: #ffffff;
  padding: 0.46rem 0.5rem;
  font-size: 0.74rem;
  color: #617086;
  font-weight: 700;
  text-align: center;
}

.registration-step-pill.is-active {
  color: #00599c;
  border-color: #8ad5ff;
  background: linear-gradient(180deg, #ebf8ff, #ddf2ff);
}

.registration-step-pill.is-done {
  color: #0d6a3c;
  border-color: #aee5c1;
  background: linear-gradient(180deg, #ecfaf1, #ddf3e6);
}

.registration-step {
  border: 1px solid #dae4ef;
  border-radius: 20px;
  background: #ffffff;
  padding: 0.95rem;
  box-shadow: var(--shadow-soft);
}

.registration-step[data-step="3"] {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.registration-step.is-hidden {
  display: none;
}

.registration-step-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.72rem;
}

.registration-step-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: #16293f;
}

.registration-step-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: #6c778a;
}

.delivery-method-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
  font-weight: 900;
  color: #114b84;
}

.delivery-method-label__fee {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ffca6a;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff8e8, #ffe7b8);
  color: #7a4700;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.2rem 0.56rem;
}

.registration-summary-panel {
  border: 1px solid #d8e4f1;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f3f9ff);
  padding: 0.8rem 0.9rem;
  box-shadow: var(--shadow-soft);
}

.registration-summary-total {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #5c6f86;
}

.registration-summary-total span {
  color: #0f4f89;
  font-size: 1.22rem;
  font-weight: 800;
  margin-left: 0.35rem;
}

.registration-actions {
  position: sticky;
  bottom: 0.3rem;
  z-index: 8;
  border: 1px solid #d6e2ee;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(8px);
  padding: 0.66rem;
  margin-top: 0.6rem;
}

.registration-actions-row {
  display: flex;
  gap: 0.56rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.registration-actions .btn {
  min-width: 130px;
}

.registration-sticky-cta-desktop {
  position: fixed;
  right: 1rem;
  top: 42%;
  z-index: 1005;
}

.registration-sticky-cta-desktop .btn {
  min-width: 156px;
  box-shadow: 0 14px 28px rgba(255, 107, 0, 0.34);
}

.registration-sticky-cta-mobile {
  position: fixed;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.85rem;
  z-index: 1040;
  display: none;
}

.registration-sticky-cta-mobile .btn {
  width: 100%;
  box-shadow: 0 16px 26px rgba(255, 107, 0, 0.34);
}

body.modal-open-custom .registration-sticky-cta-mobile,
body.modal-open-custom .registration-sticky-cta-desktop {
  display: none !important;
}

.status-chip {
  --status-accent: #4b5b72;
  --status-shadow: rgba(52, 66, 88, 0.24);
  display: inline-flex;
  position: relative;
  align-items: center;
  min-height: 28px;
  padding: 0.34rem 0.72rem 0.34rem 0.98rem;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.1;
  box-shadow: 0 8px 16px var(--status-shadow);
}

.status-chip::before {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 18%;
  bottom: 18%;
  width: 4px;
  border-radius: 999px;
  background: var(--status-accent);
}

.status-chip--success {
  --status-accent: #0c8f45;
  --status-shadow: rgba(12, 143, 69, 0.26);
  color: #0f5b34;
  background: linear-gradient(180deg, #e8faef, #dcf4e6);
  border-color: #bde8cd;
}

.status-chip--warning {
  --status-accent: #b46d05;
  --status-shadow: rgba(180, 109, 5, 0.22);
  color: #7d4e07;
  background: linear-gradient(180deg, #fff7de, #fceec8);
  border-color: #f3dd9f;
}

.status-chip--danger {
  --status-accent: #c3343f;
  --status-shadow: rgba(195, 52, 63, 0.26);
  color: #8d1f2b;
  background: linear-gradient(180deg, #ffe8eb, #ffdce0);
  border-color: #f7b8c0;
}

.status-chip--info {
  --status-accent: #245f97;
  --status-shadow: rgba(36, 95, 151, 0.24);
  color: #184a79;
  background: linear-gradient(180deg, #e8f3ff, #dcebfc);
  border-color: #bfd8f5;
}

.status-chip--neutral {
  --status-accent: #66748b;
  --status-shadow: rgba(77, 95, 122, 0.2);
  color: #44556d;
  background: linear-gradient(180deg, #f1f4f8, #e8edf4);
  border-color: #d2dbe8;
}

.status-chip--muted {
  --status-accent: #6b7484;
  --status-shadow: rgba(68, 78, 95, 0.18);
  color: #4e5868;
  background: linear-gradient(180deg, #eef1f5, #e5e9ef);
  border-color: #d2d9e3;
}

.payment-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.payment-view-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 34px;
  padding: 0.38rem 0.72rem;
  border-radius: 11px;
  border: 1px solid #ccd7e7;
  background: #f7fbff;
  color: #37506d;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: all 0.16s ease;
}

.payment-view-tab:hover {
  border-color: #abc0dc;
  background: #edf5ff;
  color: #2b4663;
}

.payment-view-tab.is-active {
  border-color: #6b88ab;
  background: linear-gradient(180deg, #eaf3ff, #dcecff);
  color: #1f4f80;
  box-shadow: 0 8px 16px rgba(33, 92, 158, 0.18);
}

.payment-view-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 20px;
  padding: 0 0.36rem;
  border-radius: 999px;
  border: 1px solid #d7e2f1;
  background: #ffffff;
  color: #3b5674;
  font-size: 0.74rem;
  font-weight: 800;
}

.payment-view-tab.is-active .payment-view-tab__count {
  border-color: #bfd0e5;
}

.public-journey {
  margin: 0 0 0.95rem;
  padding: 0.65rem 0.75rem 0.78rem;
  border: 1px solid #d9e3f1;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #edf4fc 100%);
}

.public-journey__title {
  margin-bottom: 0.48rem;
  color: #4a5f7b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.public-journey__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.public-journey__step {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.33rem 0.7rem;
  border-radius: 10px;
  border: 1px dashed #c2d1e5;
  background: #ffffff;
  color: #5a6f8a;
  font-size: 0.77rem;
  font-weight: 700;
}

.public-journey__step.is-active {
  border-style: solid;
  border-color: #6e88ab;
  background: linear-gradient(180deg, #f0f7ff, #e2efff);
  color: #1b4f88;
}

.public-journey__step.is-done {
  border-style: solid;
  border-color: #9acdb1;
  background: linear-gradient(180deg, #edfbf3, #e0f5e8);
  color: #1a6e43;
}

body.modal-open-custom {
  overflow: hidden;
}

.race-register-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
}

.race-register-modal.is-open {
  display: block;
}

.race-register-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 35, 58, 0.58);
  backdrop-filter: blur(2px);
}

.race-register-modal__panel {
  position: relative;
  margin: 1.4rem auto;
  width: min(980px, calc(100% - 1.2rem));
  max-height: calc(100vh - 2.8rem);
  overflow: auto;
  border-radius: 16px;
  border: 1px solid #dce4ef;
  background: #f7fbff;
  box-shadow: 0 18px 46px rgba(12, 30, 56, 0.34);
}

.race-register-modal__header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #d9e2ef;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%);
}

.race-register-modal__body {
  padding: 1rem;
}

.admin-slip-preview-wrap {
  width: 100%;
  min-height: 74vh;
  border: 1px solid #d4deea;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-slip-preview-frame {
  display: block;
  width: 100%;
  min-height: 74vh;
  border: 0;
  background: #ffffff;
}

.admin-slip-preview-image {
  display: block;
  max-width: 100%;
  width: 100%;
  max-height: 74vh;
  height: auto;
  object-fit: contain;
  background: #ffffff;
}

.admin-slip-preview-modal {
  width: min(1180px, calc(100% - 1.2rem));
}

.admin-slip-preview-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
}

.admin-slip-preview-actions__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.admin-slip-preview-actions form {
  margin: 0;
}

.payment-qr-total {
  border: 1px solid #d6e1ee;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef4fb 0%, #ffffff 100%);
  padding: 0.7rem 0.85rem;
}

.payment-qr-total-label {
  font-size: 0.8rem;
  color: #4d6078;
}

.payment-qr-total-value {
  font-family: "Montserrat", "Anuphan", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #153a63;
  line-height: 1.2;
}

.payment-qr-total-value span {
  font-family: "Anuphan", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #47658a;
}

.payment-qr-total-note {
  font-size: 0.74rem;
  color: #6883a3;
  margin-top: 0.15rem;
}

.payment-qr-runner-item {
  border: 1px solid #d8e3ef;
  border-radius: 12px;
  background: #ffffff;
  padding: 0.72rem 0.78rem;
  box-shadow: 0 7px 18px rgba(23, 44, 73, 0.08);
}

.payment-qr-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid #dce8f6;
  border-radius: 10px;
  background: linear-gradient(120deg, #f6faff 0%, #eef5ff 100%);
  color: #14385e;
}

.btn-order-copy {
  border: 1px solid #1f91f3;
  border-radius: 8px;
  background: linear-gradient(135deg, #00b3ff, #0084ff);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 16px rgba(0, 132, 255, 0.28);
}

.btn-order-copy:hover {
  background: linear-gradient(135deg, #17beff, #1f91f3);
  color: #ffffff;
}

.payment-qr-copy-feedback {
  min-height: 1rem;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  color: #0b7a38;
}

.payment-qr-copy-feedback.is-error {
  color: #b00020;
}

.payment-qr-runner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.34rem 0.9rem;
  color: #25364c;
}

.payment-qr-inline-upload {
  margin-top: 0.55rem;
  border: 1px solid #d9e5f2;
  border-radius: 10px;
  background: #f7fbff;
  padding: 0.62rem;
}

@media (max-width: 640px) {
  .payment-qr-runner-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  border-top: 1px solid #e6e9ef;
  background: #ffffff;
  margin-top: 1.2rem;
}

.slip-upload-panel {
  margin-top: 0.45rem;
  border: 1px solid #c8d4e4;
  border-radius: 12px;
  background: linear-gradient(180deg, #f4f8fc 0%, #ffffff 100%);
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(32, 52, 80, 0.12);
}

.slip-upload-panel summary {
  list-style: none;
}

.slip-upload-panel summary::-webkit-details-marker {
  display: none;
}

.slip-upload-trigger {
  width: 100%;
  cursor: pointer;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.68rem 0.8rem;
  background: linear-gradient(135deg, #1a324f, #2f4b70);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
}

.slip-upload-trigger::before {
  content: "สลิป";
  font-size: 0.72rem;
  line-height: 1;
  padding: 0.2rem 0.34rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  font-weight: 800;
}

.slip-upload-panel[open] .slip-upload-trigger {
  background: linear-gradient(135deg, #152a43, #274264);
}

.slip-upload-body {
  padding: 0.72rem;
}

.slip-upload-note {
  margin-bottom: 0.42rem;
  color: #4a5f79;
  font-size: 0.78rem;
}

.slip-upload-form .form-control {
  border-radius: 8px;
}

.slip-upload-form input[type="file"]::file-selector-button,
.payment-qr-inline-upload input[type="file"]::file-selector-button {
  border: 1px solid #e34b23;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff6a2f, #ff3d2e);
  color: #ffffff;
  font-weight: 700;
  padding: 0.38rem 0.7rem;
  margin-right: 0.68rem;
  box-shadow: 0 8px 16px rgba(255, 74, 37, 0.28);
  cursor: pointer;
}

.slip-upload-form input[type="file"]::-webkit-file-upload-button,
.payment-qr-inline-upload input[type="file"]::-webkit-file-upload-button {
  border: 1px solid #e34b23;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff6a2f, #ff3d2e);
  color: #ffffff;
  font-weight: 700;
  padding: 0.38rem 0.7rem;
  margin-right: 0.68rem;
  box-shadow: 0 8px 16px rgba(255, 74, 37, 0.28);
  cursor: pointer;
}

.btn-slip-submit {
  background: linear-gradient(135deg, #1fae5b, #148f45);
  border-color: #11783b;
  color: #ffffff;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(20, 143, 69, 0.34);
}

.btn-slip-highlight {
  background: linear-gradient(135deg, #1fae5b, #148f45);
  border-color: #11783b;
  color: #ffffff;
  border-radius: 10px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(20, 143, 69, 0.34);
}

.table-responsive {
  border-radius: 12px;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.7rem;
}

.admin-kpi {
  border: 1px solid #e3e9f3;
  border-radius: 12px;
  background: #fbfdff;
  padding: 0.7rem 0.75rem;
}

.admin-kpi .label {
  color: #627084;
  font-size: 0.82rem;
}

.admin-kpi .value {
  font-size: 1.16rem;
  font-weight: 800;
  color: #233047;
}

.admin-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.55rem;
  border: 1px solid #d7e1ed;
  border-radius: 14px;
  background: linear-gradient(100deg, #ffffff 0%, #f2f7fd 52%, #ebf2fb 100%);
  padding: 0.68rem 0.84rem;
  box-shadow: 0 8px 20px rgba(20, 39, 62, 0.08);
}

.admin-pane-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, #fefefe 0%, #f3f8ff 100%);
}

.admin-pane-toggle {
  margin-left: auto;
  border-radius: 999px;
  min-width: 62px;
  padding-inline: 0.78rem;
  font-weight: 700;
}

.admin-pane.is-collapsed {
  border-color: #d2dcea;
  box-shadow: 0 8px 18px rgba(17, 33, 54, 0.06);
}

.admin-pane.is-collapsed .card-header {
  border-bottom: 0;
}

.section-note {
  color: #6b7383;
  font-size: 0.83rem;
}

.theme-public {
  background: #edf1f6;
}

.public-header {
  position: static;
  top: auto;
  box-shadow: none;
  backdrop-filter: none;
}

.public-header-bar {
  background:
    linear-gradient(90deg, #0084ff 0%, #00b3ff 58%, #32beff 82%, #ff8f35 100%);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 10px 24px rgba(0, 122, 204, 0.28), 0 8px 22px rgba(255, 107, 0, 0.18);
}

.public-header-inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.public-brand {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo-public {
  height: 71px;
  max-width: min(476px, 65vw);
}

.contact-logo-hero {
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1px solid #d9e0eb;
  border-radius: 14px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-logo-hero-img {
  width: min(595px, 100%);
  height: auto;
  display: block;
}

.public-brand-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.public-brand-sub {
  font-size: 0.72rem;
  opacity: 0.95;
  letter-spacing: 0.05em;
}

.public-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
}

.public-menu a {
  color: #f8fbff;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.public-menu a:hover {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.42);
}

.public-actions {
  display: flex;
  align-items: center;
  gap: 0.44rem;
  justify-content: flex-end;
}

.public-pill {
  border: 0;
  border-radius: 999px;
  padding: 0.37rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
}

.public-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.3);
}

.public-pill-light {
  background: #ffffff;
  color: #2a4464;
}

.public-pill-light:hover {
  color: #1b3553;
  background: #f0f5fb;
}

.public-pill-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: 0 10px 18px rgba(255, 107, 0, 0.28);
}

.public-pill-primary:hover {
  background: linear-gradient(135deg, #ff7d22, #ffaf5c);
  color: #ffffff;
}

.public-lang-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-width: 34px;
  padding: 0.29rem 0.54rem;
  background: rgba(255, 255, 255, 0.92);
  color: #2b4461;
  font-size: 0.77rem;
  font-weight: 700;
  text-decoration: none;
}

.public-lang-chip:hover {
  color: #223953;
  background: #ffffff;
}

.theme-public .page-shell {
  max-width: 1480px;
  margin-inline: auto;
  padding-top: 1.35rem;
}

.theme-public .page-title {
  font-size: clamp(1.92rem, 2.8vw, 2.45rem);
}

.theme-public .event-sub {
  color: #4e596d;
}

.theme-public .event-toolbar {
  background: #ffffff;
  border: 1px solid #dde3ec;
  border-radius: 12px;
  box-shadow: none;
}

.theme-public .event-toolbar .form-control {
  border-radius: 10px;
  min-height: 46px;
}

.theme-public .event-toolbar .form-select {
  border-radius: 10px;
  min-height: 46px;
}

.theme-public .event-toolbar .btn-primary {
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: #f87417;
}

.theme-public .event-toolbar .btn-primary:hover {
  background: linear-gradient(135deg, #ff7d22, #ffaf5c);
  border-color: #ff842e;
}

.theme-public .event-grid-card {
  border-radius: 14px;
  border-color: #d7dde6;
  box-shadow: 0 6px 16px rgba(33, 45, 65, 0.1);
}

.theme-public .event-grid-card:hover {
  box-shadow: 0 12px 28px rgba(0, 116, 198, 0.18), 0 10px 20px rgba(255, 107, 0, 0.12);
}

.theme-public .event-cover {
  aspect-ratio: 4 / 3;
}

.theme-public .event-body {
  padding: 0.84rem 0.86rem 1rem;
}

.theme-public .event-title {
  font-size: 1.05rem;
}

.theme-public .event-actions {
  justify-content: center;
  align-items: center;
  width: 100%;
}

.theme-public .event-actions .btn {
  border-radius: 10px;
  padding: 0.36rem 0.88rem;
  font-weight: 700;
}

.theme-public .event-actions .event-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-height: 64px;
  border-radius: 14px;
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.1;
  padding: 0 1rem;
  box-shadow: 0 14px 24px rgba(255, 107, 0, 0.28);
}

.theme-public .event-actions .btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: #f87417;
}

.theme-public .event-actions .btn-primary:hover {
  background: linear-gradient(135deg, #ff7d22, #ffaf5c);
  border-color: #ff842e;
}

.theme-public .event-actions .event-card-cta--disabled {
  border-color: #c8d1df;
  background: linear-gradient(180deg, #f1f4f8, #e7ecf4);
  color: #697487;
  box-shadow: none;
}

.theme-public .event-card-decision {
  margin-top: 0.3rem;
}

.theme-public .event-decision-chip {
  font-size: 0.79rem;
}

.btn-slip-submit:hover {
  background: linear-gradient(135deg, #18964c, #0f7b3b);
  border-color: #0d6b33;
  color: #ffffff;
}

.btn-slip-highlight:hover {
  background: linear-gradient(135deg, #18964c, #0f7b3b);
  border-color: #0d6b33;
  color: #ffffff;
}

@media (max-width: 992px) {
  .registration-sticky-cta-desktop {
    display: none;
  }

  .registration-sticky-cta-mobile {
    display: block;
  }

  .site-header {
    position: static;
  }

  .top-link {
    font-size: 0.82rem;
  }

  .event-actions {
    flex-direction: column;
  }

  .event-actions .btn {
    width: 100%;
  }

  .event-detail-action-btn {
    flex: 1 1 240px;
    width: 100%;
    min-width: 0;
  }

  .event-detail-action-btn-primary {
    min-width: 100%;
    min-height: 60px;
    font-size: 1.06rem;
  }

  .event-facebook-embed iframe {
    height: 560px;
  }

  .admin-section-tabs {
    gap: 0.42rem;
  }

  .admin-section-tab {
    min-height: 40px;
    padding: 0.42rem 0.7rem;
    font-size: 0.82rem;
  }

  .event-function-grid {
    grid-template-columns: 1fr;
    gap: 0.42rem;
  }

  .event-function-link {
    padding: 0.56rem 0.66rem;
    font-size: 0.82rem;
  }

  .admin-managed-finance__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-managed-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-managed-export-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-header-inner {
    grid-template-columns: 1fr;
    padding-block: 0.7rem 0.8rem;
  }

  .public-brand {
    align-items: center;
  }

  .public-menu {
    justify-content: center;
    gap: 0.88rem;
    flex-wrap: wrap;
  }

  .public-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .admin-managed-toolbar {
    grid-template-columns: 1fr;
    padding: 0.62rem;
  }

  .admin-managed-toolbar__actions {
    gap: 0.46rem;
  }

  .admin-managed-toolbar__submit {
    width: 100%;
  }

  .admin-managed-export-grid {
    grid-template-columns: 1fr;
  }

  .admin-managed-export-grid .btn {
    width: 100%;
  }

  .admin-managed-kpis,
  .admin-managed-finance__grid,
  .admin-managed-breakdown-grid {
    grid-template-columns: 1fr;
  }

  .registration-step-list {
    grid-template-columns: 1fr;
  }

  .delivery-method-label {
    flex-wrap: wrap;
  }

  .registration-actions-row {
    flex-direction: column-reverse;
  }

  .registration-actions .btn {
    width: 100%;
  }

  .site-logo-backoffice {
    height: 44px;
  }

  .site-logo-public {
    height: 49px;
  }

  .page-shell {
    padding-inline: 0.5rem;
  }

  .event-cover {
    aspect-ratio: 16 / 10;
  }

  .event-past-grid {
    grid-template-columns: 1fr;
  }

  .theme-public .event-cover {
    aspect-ratio: 4 / 3;
  }

  .detail-cover img,
  .detail-cover .event-cover-fallback {
    height: 220px;
  }

  .event-facebook-embed iframe {
    height: 520px;
  }

  .event-facebook-embed-head {
    flex-wrap: wrap;
    padding: 0.56rem 0.66rem;
    font-size: 0.9rem;
  }

  .race-register-modal__panel {
    margin: 0;
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
    border: 0;
  }

  .event-gallery-lightbox-panel {
    width: calc(100% - 0.8rem);
    max-height: calc(100vh - 0.8rem);
    margin: 0.4rem auto;
    padding: 0.6rem;
  }

  .event-gallery-lightbox-toolbar {
    justify-content: space-between;
  }

  .event-gallery-lightbox-stage {
    padding-inline: 2.45rem;
  }

  .event-gallery-lightbox-arrow {
    width: 40px;
    height: 40px;
  }

  .event-gallery-lightbox-arrow span {
    font-size: 1.65rem;
  }

  .event-gallery-lightbox-panel img {
    max-height: calc(100vh - 200px);
  }
}

/* PHP compatibility layer (keeps existing PHP-rendered pages readable) */
.container {
  width: min(1320px, 96vw);
  margin: 0 auto;
}

.page {
  padding: 16px 0 30px;
}

.card-head {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e9f0;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff, #f8fafd);
}

.card-body {
  padding: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.event-card {
  overflow: hidden;
}

.event-cover {
  min-height: 170px;
  background: linear-gradient(135deg, #063e81, #11a5f0);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.event-body {
  padding: 14px;
}

.event-name {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.meta {
  color: #6b7280;
  font-size: 0.9rem;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.badge-open {
  background: #e2f5ff;
  color: #0f74b2;
  border-color: #c7e8fb;
}

.badge-paid {
  background: #e5f9ec;
  color: #11763b;
  border-color: #caedd8;
}

.badge-pending {
  background: #fff3d8;
  color: #9a6a00;
  border-color: #f0dfb5;
}

.badge-failed {
  background: #ffe5e5;
  color: #992121;
  border-color: #f2c7c7;
}

.shipping-status-guide {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.shipping-status-guide__title {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1f2937;
}

.shipping-status-guide__list {
  display: grid;
  gap: 6px;
}

.shipping-status-guide__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.shipping-status-guide__code {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  border: 1px solid #d5dde8;
  background: #eef2f7;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.shipping-status-guide__desc {
  color: #475569;
  font-size: 0.86rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 680px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  font-weight: 600;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  border: 1px solid #d3dbe8;
  border-radius: 10px;
  min-height: 42px;
  padding: 8px 10px;
  font: inherit;
}

/* Keep flatpickr month/year controls from inheriting full-width form styles */
.flatpickr-calendar select,
.flatpickr-calendar input:not([type="checkbox"]):not([type="radio"]) {
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  width: auto;
  min-height: 0;
  line-height: inherit;
  white-space: nowrap;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  margin: 0;
  padding-left: 0.5ch;
}

.flatpickr-current-month input.cur-year {
  padding-left: 0.5ch;
}

/* Thai Buddhist year header tuning for flatpickr */
.flatpickr-calendar.thai-buddhist-calendar .flatpickr-current-month {
  width: 78%;
  left: 11%;
  font-size: 125%;
}

.flatpickr-calendar.thai-buddhist-calendar .flatpickr-current-month .numInputWrapper {
  width: 5.3ch;
  min-width: 5.3ch;
}

.flatpickr-calendar.thai-buddhist-calendar .flatpickr-current-month .numInputWrapper span {
  display: none !important;
}

.flatpickr-calendar.thai-buddhist-calendar .flatpickr-current-month input.cur-year {
  text-align: center;
  padding-left: 0;
  font-weight: 500;
}

.birthdate-picker {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 8px;
}

.birthdate-picker .form-select {
  min-height: 42px;
}

@media (max-width: 576px) {
  .birthdate-picker {
    grid-template-columns: 1fr;
  }
}

.notify-transfer-time {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.notify-transfer-time__part {
  min-width: 0;
}

.notify-transfer-time__sep {
  font-size: 1.06rem;
  font-weight: 800;
  color: #5b6574;
  line-height: 1;
  text-align: center;
}

@media (max-width: 576px) {
  .notify-transfer-time {
    gap: 8px;
  }
}

.notify-countdown {
  margin-top: 0.62rem;
  border: 1px solid #f6c17f;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff2dc 0%, #ffe6bf 100%);
  box-shadow: 0 10px 22px rgba(196, 120, 24, 0.22);
  padding: 0.62rem 0.72rem 0.66rem;
  text-align: center;
}

.notify-countdown__label {
  color: #915405;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
}

.notify-countdown__value {
  margin-top: 0.16rem;
  color: #9b111e;
  font-size: 1.95rem;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0.03em;
}

.notify-countdown__hint {
  margin-top: 0.22rem;
  color: #7a3f06;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.28;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.payment-queue-actions {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 130px;
}

.payment-queue-actions .btn {
  min-height: 34px;
  padding: 0.32rem 0.7rem;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.2;
  box-shadow: none;
}

.payment-queue-actions .btn:hover {
  transform: none;
  box-shadow: none;
}

.payment-queue-actions__primary {
  width: 100%;
}

.payment-queue-action-menu {
  width: 100%;
}

.payment-queue-action-menu > summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid #c7d4e4;
  border-radius: 10px;
  background: #ffffff;
  color: #334a66;
  padding: 0.3rem 0.62rem;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.8rem;
  font-weight: 700;
}

.payment-queue-action-menu > summary::-webkit-details-marker {
  display: none;
}

.payment-queue-action-menu > summary::after {
  content: "▾";
  font-size: 0.78rem;
  color: #617087;
  margin-left: 0.6rem;
}

.payment-queue-action-menu[open] > summary::after {
  content: "▴";
}

.payment-queue-action-menu__list {
  margin-top: 6px;
  display: grid;
  gap: 6px;
  width: 100%;
}

.payment-queue-action-menu__list form {
  margin: 0;
}

.payment-queue-action-menu__btn {
  width: 100%;
  justify-content: center;
}

.payment-queue-slip-cell {
  min-width: 160px;
  text-align: center;
  vertical-align: middle;
}

.payment-queue-slip-btn-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.payment-queue-slip-btn {
  min-width: 104px;
  min-height: 36px;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  border: 1px solid #45adea;
  background: linear-gradient(135deg, #1aa2f0, #1787d4);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  box-shadow: 0 7px 16px rgba(24, 135, 212, 0.26);
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.payment-queue-slip-btn:hover {
  color: #ffffff;
  border-color: #3ca6e7;
  background: linear-gradient(135deg, #1598e4, #147bc3);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(24, 135, 212, 0.32);
}

.payment-queue-slip-btn:focus-visible {
  color: #ffffff;
  border-color: #2f95d4;
  box-shadow: 0 0 0 0.18rem rgba(26, 162, 240, 0.24), 0 8px 16px rgba(24, 135, 212, 0.22);
}

.payment-queue-slip-meta {
  margin-top: 6px;
  text-align: center;
  line-height: 1.25;
}

.payment-queue-slip-ref {
  color: #62748a;
  word-break: break-all;
}

.payment-queue-slip-empty {
  color: #8b99ab;
  font-weight: 600;
}

.runner-search-form {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

.runner-search-form input[type="text"] {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.runner-search-form .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.theme-public .runner-search-form .btn-primary {
  min-height: 46px;
  min-width: 240px;
  border-radius: 14px;
  padding-inline: 1.25rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: #f87417;
}

.theme-public .runner-search-form .btn-primary:hover {
  background: linear-gradient(135deg, #ff7d22, #ffaf5c);
  border-color: #ff842e;
}

@media (max-width: 680px) {
  .runner-search-form {
    flex-wrap: wrap;
  }

  .runner-search-form input[type="text"],
  .runner-search-form .btn {
    width: 100%;
  }
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  border-bottom: 1px solid #e2e8f0;
  padding: 9px 8px;
  text-align: left;
  white-space: nowrap;
}

.alert {
  border: 1px solid #d6e0ee;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #f6fbff;
}

.alert-error {
  border-color: #efc7c7;
  background: #fff2f2;
  color: #8e1e1e;
}

.login-wrap {
  width: min(460px, 95vw);
  margin: 24px auto;
}

.logo-hero {
  display: flex;
  justify-content: center;
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}

.logo-hero img {
  width: min(620px, 100%);
  height: auto;
}
