:root {
  --bg: #081427;
  --bg-alt: #0c1f3a;
  --panel: #102745;
  --line: #22486f;
  --text: #f8fafd;
  --text-soft: #b8c6da;
  --primary: #f4b400;
  --danger: #d46a6a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: Inter, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 20, 39, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.3rem;
}

.nav-actions {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 76vh;
  display: grid;
  align-items: center;
}

.hero-background-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(6, 16, 33, 0.9) 15%, rgba(8, 20, 39, 0.76) 55%, rgba(6, 16, 33, 0.92) 100%);
  z-index: -1;
}

.hero-inner {
  padding: 4.4rem 0 3.4rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
}

.reservation-summary-card {
  backdrop-filter: blur(4px);
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.hero-copy h1 {
  margin: 0.55rem 0;
  font-family: Oswald, sans-serif;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.06;
}

.hero-copy p {
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 660px;
}

.hero-actions {
  display: flex;
  gap: 0.6rem;
  margin: 1.2rem 0;
}

.hero-meta {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
  display: grid;
  gap: 0.3rem;
}

.hero-card {
  background: rgba(16, 39, 69, 0.88);
  border: 1px solid #3c5f89;
  border-radius: 16px;
  padding: 1.2rem;
  align-self: start;
}

.event-badge {
  display: inline-flex;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.76rem;
  text-transform: uppercase;
  background: rgba(244, 180, 0, 0.2);
  border: 1px solid rgba(244, 180, 0, 0.5);
  margin-bottom: 0.5rem;
}

.hero-card h2 {
  margin: 0.35rem 0 0.7rem;
}

.hero-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.hero-card li {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  font-size: 0.92rem;
}

.hero-card span {
  color: var(--text-soft);
}

.section {
  padding: 2.5rem 0;
}

.dashboard-panel {
  display: grid;
  gap: 1rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.dashboard-header h2 {
  margin: 0.2rem 0 0;
}

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

.stat-card {
  background: rgba(11, 26, 48, 0.8);
  border: 1px solid #355f91;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.35rem;
}

.stat-card.accent {
  border-color: rgba(244, 180, 0, 0.6);
  background: rgba(244, 180, 0, 0.08);
}

.stat-label {
  color: var(--text-soft);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-value {
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
}

.stat-card small {
  color: var(--text-soft);
}

.activity-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  background: rgba(100, 136, 188, 0.14);
  border: 1px solid rgba(100, 136, 188, 0.4);
  color: var(--text-soft);
  font-size: 0.75rem;
}

.status-pill.success {
  background: rgba(83, 196, 128, 0.12);
  border-color: rgba(83, 196, 128, 0.45);
  color: #d9f7e8;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.toolbar input,
.toolbar select,
.auth-form input,
.auth-form select {
  width: 100%;
  background: #0a1830;
  color: var(--text);
  border: 1px solid #406892;
  border-radius: 8px;
  padding: 0.62rem 0.7rem;
  font: inherit;
}

.auth-form {
  display: grid;
  gap: 0.8rem;
  margin: 0.5rem 0 0.8rem;
  border: 1px solid rgba(91, 120, 163, 0.45);
  border-radius: 12px;
  background: rgba(10, 22, 39, 0.6);
  padding: 1rem;
}

.payment-method-fields {
  display: none;
  margin-top: 0.5rem;
  padding: 0.9rem;
  border: 1px solid rgba(91, 120, 163, 0.45);
  border-radius: 10px;
  background: rgba(10, 22, 39, 0.55);
}

.payment-method-fields.visible {
  display: grid;
  gap: 0.8rem;
}

.payment-transfer-box {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(115, 158, 214, 0.45);
  border-radius: 10px;
  background: rgba(17, 39, 62, 0.9);
}

.payment-transfer-box p {
  margin: 0.25rem 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.payment-transfer-label {
  margin: 0;
  color: #9fc4ff;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compact-form {
  margin-top: 1rem;
}

.form-grid {
  display: grid;
  gap: 0.8rem;
}

.form-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full-width {
  grid-column: 1 / -1;
}

.auth-form label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-soft);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-form h3 {
  margin: 0;
}

.field-hint {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-soft);
  font-size: 0.76rem;
  line-height: 1.5;
}

#eventImagePreview {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(120, 149, 196, 0.5);
  margin-top: 0.75rem;
}

.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.page-btn {
  border: 1px solid #466d9b;
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-info {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.event-manager-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
  align-items: start;
}

.manager-sidebar {
  position: sticky;
  top: 86px;
}

.summary-stack {
  display: grid;
  gap: 0.7rem;
}

.mini-stat {
  display: grid;
  gap: 0.2rem;
  background: rgba(10, 24, 41, 0.8);
  border: 1px solid rgba(87, 120, 163, 0.5);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}

.mini-stat span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

.mini-stat strong {
  font-size: 1rem;
}

.sidebar-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.manager-main {
  display: grid;
  gap: 1rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section-header h2,
.section-header h3 {
  margin: 0.25rem 0 0;
}

.strip-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.text-danger {
  border-color: rgba(212, 106, 106, 0.7);
  color: #ffd6d6;
}

.empty-state {
  color: var(--text-soft);
  text-align: center;
  padding: 1rem;
}

.section-light {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading.centered {
  text-align: center;
}

.section-heading h2 {
  margin: 0.5rem 0 1.2rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.eyebrow-dark {
  color: #8ea9cb;
}

.event-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(320px, 1fr));
  gap: 1rem;
}

.event-card {
  min-width: 320px;
  background: rgba(16, 39, 69, 0.9);
  border: 1px solid #335d8d;
  border-radius: 16px;
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 180, 0, 0.6);
}

.event-card-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(244, 180, 0, 0.14);
  border: 1px solid rgba(244, 180, 0, 0.4);
  color: #f8d775;
}

.event-card-date {
  color: #8ea9cb;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.event-card-meta,
.event-card-description {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.event-card-artist {
  margin: 0;
  color: #dbe7f7;
  font-weight: 600;
}

.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.event-price-value {
  font-weight: 700;
  color: #f8fafd;
}

.empty-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  color: var(--text-soft);
}

.event-detail-hero {
  min-height: 420px;
}

.event-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: -2;
}

.event-detail-hero .hero-overlay {
  background: linear-gradient(rgba(8, 20, 39, 0.2), rgba(8, 20, 39, 0.7));
  z-index: -1;
}

.event-detail-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 360px);
  align-items: start;
  column-gap: clamp(1rem, 3vw, 2.2rem);
}

.event-detail-layout .hero-copy {
  min-width: 0;
  padding-right: 0.35rem;
}

.event-detail-description {
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 640px;
}

.event-summary-card {
  width: 100%;
  max-width: 360px;
  justify-self: end;
}

.event-summary-card .button {
  margin-top: 0.8rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.price-card {
  background: var(--panel);
  border: 1px solid #345b85;
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  gap: 0.62rem;
}

.price-card.featured {
  border-color: #e1b129;
  box-shadow: 0 0 0 1px rgba(244, 180, 0, 0.3);
}

.ticket-tag {
  width: fit-content;
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #4e78a8;
  padding: 0.16rem 0.58rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-card h3 {
  margin: 0;
}

.price {
  font-size: 1.6rem;
  font-weight: 800;
}

.ticket-features {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.28rem;
  color: var(--text-soft);
  font-size: 0.93rem;
}

.ticket-availability {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.button {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.7rem 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--primary);
  color: #131313;
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: #4d719e;
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.orders-list {
  display: grid;
  gap: 0.8rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.auth-intro h1 {
  margin: 0.3rem 0 0.5rem;
}

.auth-intro p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.auth-switch {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.oauth-actions {
  margin-bottom: 0.9rem;
}

.oauth-google-btn {
  width: 100%;
  justify-content: center;
}

.auth-switch .button {
  flex: 1;
}

.admin-layout {
  display: grid;
  gap: 1rem;
}

.backoffice-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1rem;
  align-items: start;
}

.sidebar-card {
  position: sticky;
  top: 86px;
}

.side-menu {
  display: grid;
  gap: 0.4rem;
}

.side-menu-btn {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #3d5f89;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
}

.side-menu-btn:hover {
  border-color: #f4b400;
  color: var(--text);
}

.side-menu-btn.active {
  border-color: #f4b400;
  background: rgba(244, 180, 0, 0.12);
  color: #fff;
}

.admin-main {
  display: grid;
  gap: 1rem;
}

.section-anchor {
  scroll-margin-top: 92px;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  font-size: 0.78rem;
  line-height: 1.25;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid #2f527a;
  padding: 0.35rem 0.4rem;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.data-table th {
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.inline-control {
  width: 100%;
  border: 1px solid #436891;
  border-radius: 6px;
  padding: 0.24rem 0.35rem;
  background: #09192f;
  color: var(--text);
  font-size: 0.76rem;
}

.row-action {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.admin-dialog {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 18, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.admin-dialog-panel {
  width: min(680px, 100%);
  background: #102745;
  border: 1px solid rgba(119, 156, 209, 0.45);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  padding: 1rem;
}

.admin-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.admin-dialog-header h3 {
  margin: 0;
}

.admin-dialog-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.admin-dialog-fields .full-width {
  grid-column: 1 / -1;
}

.admin-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1rem;
}

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

  .sidebar-card {
    position: static;
  }

  .admin-main {
    min-width: 0;
  }
}

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

  .toolbar {
    width: 100%;
  }

  .toolbar input,
  .toolbar select {
    min-width: 0;
  }

  .table-wrap {
    overflow-x: auto;
    width: 100%;
  }

  .data-table {
    min-width: 820px;
  }

  .data-table th,
  .data-table td {
    white-space: normal;
    word-break: break-word;
  }
}

.action-select {
  border: 1px solid #436891;
  border-radius: 6px;
  padding: 0.2rem 0.35rem;
  background: #09192f;
  color: var(--text);
  min-width: 132px;
  font-size: 0.74rem;
}

.action-apply {
  border: 1px solid #436891;
  border-radius: 6px;
  background: #0f2a48;
  color: var(--text);
  padding: 0.2rem 0.38rem;
  font-size: 0.72rem;
  cursor: pointer;
}

.action-apply:hover {
  border-color: #f4b400;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

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

.ticket-form {
  margin-top: 0.5rem;
  border-top: 1px solid #355982;
  padding-top: 0.6rem;
}

.admin-ticket-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  align-items: start;
  border-top: 1px dashed #355982;
  padding-top: 0.55rem;
  margin-top: 0.55rem;
}

.ticket-edit-form {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #31557f;
}

.confirmation-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: start;
}

.confirmation-card h1 {
  margin: 0.25rem 0 0.4rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.summary-grid .label {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.summary-grid p {
  margin: 0.18rem 0;
}

.order-items {
  display: grid;
  gap: 0.7rem;
}

.ticket-units {
  margin-top: 0.45rem;
  border-top: 1px dashed #436891;
  padding-top: 0.45rem;
}

.ticket-units p {
  margin: 0.28rem 0;
  font-size: 0.88rem;
}

.ticket-unit-row {
  border: 1px solid #2f5279;
  border-radius: 10px;
  padding: 0.6rem;
  margin-top: 0.45rem;
  background: #0b203b;
}

.qr-slot {
  margin-top: 0.45rem;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.ticket-qr-image {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  border: 1px solid #436891;
  background: #fff;
  padding: 0.2rem;
  cursor: zoom-in;
}

.qr-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.confirmation-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.7rem;
}

.order-item {
  background: var(--panel);
  border: 1px solid #30557f;
  border-radius: 12px;
  padding: 0.95rem;
}

.order-item p {
  margin: 0.35rem 0;
  color: var(--text-soft);
}

.order-item-actions {
  margin-top: 0.6rem;
}

.order-item-actions .button {
  display: inline-flex;
}

.order-item-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.order-item-main {
  flex: 1 1 auto;
  min-width: 0;
}

.order-item-title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.order-item-qr {
  flex: 0 0 auto;
}

.order-preview-qr {
  width: 116px;
  height: 116px;
  border-radius: 10px;
  border: 1px solid #436891;
  background: #fff;
  padding: 0.2rem;
}

.order-qr-placeholder {
  margin: 0;
  max-width: 140px;
  font-size: 0.8rem;
  color: var(--text-soft);
  text-align: right;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  margin-left: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 800;
  border: 1px solid transparent;
}

.status-pending {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.5);
  color: #facc15;
}

.status-paid {
  background: rgba(34, 197, 94, 0.13);
  border-color: rgba(34, 197, 94, 0.56);
  color: #86efac;
}

.status-failed {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.52);
  color: #fca5a5;
}

.status-cancelled {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.52);
  color: #e2e8f0;
}

.account-status {
  margin-top: 0.2rem;
  color: var(--text-soft);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 11, 22, 0.78);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 50;
}

.modal-panel {
  width: min(500px, 95vw);
  background: #0d2441;
  border: 1px solid #3a5d87;
  border-radius: 14px;
  padding: 1rem;
}

.qr-modal-panel {
  width: min(760px, 96vw);
}

.qr-modal-image {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #3a5d87;
  padding: 0.5rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.modal-header h2 {
  margin: 0;
}

.close-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #4c709d;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.auth-form {
  display: grid;
  gap: 0.55rem;
}

.auth-form label {
  color: var(--text-soft);
  font-size: 0.89rem;
}

.auth-form input,
.auth-form select {
  border: 1px solid #436891;
  border-radius: 10px;
  padding: 0.68rem 0.72rem;
  background: #09192f;
  color: var(--text);
}

.auth-feedback {
  min-height: 1.2rem;
  margin: 0.55rem 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.checkout-total {
  margin: 0.3rem 0 0.6rem;
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: #0f2f52;
  border: 1px solid #4b6f9a;
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  color: var(--text);
  max-width: 360px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  border-color: #8a4141;
  background: #3c1717;
}

@media (max-width: 980px) {
  .hero-inner,
  .pricing-grid,
  .confirmation-layout,
  .auth-layout,
  .backoffice-shell {
    grid-template-columns: 1fr 1fr;
  }

  .hero-inner .hero-copy {
    grid-column: 1 / -1;
  }

  .event-detail-layout {
    grid-template-columns: 1fr;
    row-gap: 1rem;
  }

  .event-detail-layout .hero-copy {
    grid-column: auto;
    padding-right: 0;
  }

  .event-summary-card {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem 0;
  }

  .nav-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .nav-cta {
    grid-column: 1 / -1;
    text-align: center;
  }

  .hero-inner,
  .pricing-grid,
  .checkout-layout,
  .confirmation-layout,
  .summary-grid,
  .auth-layout,
  .backoffice-shell {
    grid-template-columns: 1fr;
  }

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

  .event-card {
    min-width: 0;
  }

  .sidebar-card {
    position: static;
  }

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

body {
  background: #0b1220;
  color: #e5edf8;
  font-family: "Inter", sans-serif;
}

.topbar {
  background: rgba(11, 18, 32, 0.94);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.2);
}

.brand,
.brand:hover {
  color: #8ab4ff;
  text-decoration: none;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.08em;
}

.nav-actions {
  gap: 0.75rem;
}

.button,
.page-btn,
.side-menu-btn,
.action-apply,
.action-select,
.inline-control,
.auth-form input,
.auth-form select,
.toolbar input,
.toolbar select {
  font: inherit;
}

.button {
  border-radius: 0.65rem;
  transition: all 0.2s ease;
  font-weight: 600;
}

.button-primary {
  background: linear-gradient(180deg, #3a8bfd 0%, #2463eb 100%);
  border-color: #2d6cdf;
  color: #fff;
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.26);
}

.button-primary:hover {
  background: #2463eb;
  color: #fff;
}

.button-secondary {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(148, 163, 184, 0.25);
  color: #e5edf8;
}

.button-secondary:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(96, 165, 250, 0.45);
  color: #f8fbff;
}

.price-card {
  background: #101b2d;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.9rem;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.28);
}

.sidebar-card {
  background: rgba(15, 23, 42, 0.9);
}

.side-menu {
  gap: 0.55rem;
}

.side-menu-btn {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.75rem;
  padding: 0.8rem 0.9rem;
  background: rgba(15, 23, 42, 0.55);
  color: #c9d5eb;
  font-weight: 600;
  text-align: left;
}

.side-menu-btn:hover {
  border-color: rgba(147, 197, 253, 0.5);
  color: #edf6ff;
  background: rgba(30, 41, 59, 0.9);
}

.side-menu-btn.active {
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.35) 0%, rgba(25, 90, 194, 0.18) 100%);
  border-color: rgba(96, 165, 250, 0.8);
  color: #f8fbff;
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.2);
}

.dashboard-panel {
  background: linear-gradient(180deg, rgba(16, 27, 45, 1) 0%, rgba(12, 20, 35, 1) 100%);
}

.stat-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.8rem;
}

.stat-card.accent {
  background: linear-gradient(180deg, rgba(120, 87, 15, 0.18) 0%, rgba(87, 63, 10, 0.28) 100%);
  border-color: rgba(251, 191, 36, 0.38);
}

.status-pill {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(96, 165, 250, 0.22);
  color: #dfeeff;
}

.status-pill.success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(74, 222, 128, 0.35);
  color: #d9f7e8;
}

.data-table {
  min-width: 720px;
  font-size: 0.88rem;
  background: rgba(15, 23, 42, 0.8);
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  padding: 0.8rem 0.75rem;
  white-space: nowrap;
  color: #dfe8f7;
}

.data-table th {
  background: rgba(15, 23, 42, 0.95);
  color: #a8bbd5;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inline-control,
.action-select,
.toolbar input,
.toolbar select,
.auth-form input,
.auth-form select,
.page-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.55rem;
  color: #edf6ff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.2);
}

.inline-control {
  min-height: 2.2rem;
}

.action-apply {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.55rem;
  background: rgba(15, 23, 42, 0.8);
  color: #edf6ff;
  padding: 0.3rem 0.6rem;
}

.action-apply:hover {
  border-color: rgba(147, 197, 253, 0.6);
  background: rgba(30, 41, 59, 0.9);
}

.toolbar {
  gap: 0.7rem;
}

.toolbar input,
.toolbar select,
.auth-form input,
.auth-form select {
  padding: 0.7rem 0.8rem;
}

.auth-form {
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.9rem;
  padding: 1rem;
}

.auth-form label {
  color: #bed0ec;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-btn {
  padding: 0.5rem 0.8rem;
  background: rgba(15, 23, 42, 0.8);
  color: #edf6ff;
}

.page-btn:hover:not(:disabled) {
  border-color: rgba(147, 197, 253, 0.6);
  background: rgba(30, 41, 59, 0.9);
}

.page-btn:disabled {
  opacity: 0.5;
}

.toast {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 0.75rem;
  color: #fff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

.toast.error {
  background: rgba(127, 29, 29, 0.95);
  border-color: rgba(252, 165, 165, 0.5);
}

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

  .sidebar-card {
    position: static;
  }

  .form-grid.two-col {
    grid-template-columns: 1fr;
  }
}
