@font-face {
  font-family: 'Proxima Nova';
  src: url('../fonts/ProximaNova-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Proxima Nova';
  src: url('../fonts/ProximaNova-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Proxima Nova';
  src: url('../fonts/ProximaNova-Semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Proxima Nova';
  src: url('../fonts/ProximaNova-Extrabold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}

:root {
  --ghci-navy: #0c2340;
  --ghci-navy-dark: #081a30;
  --ghci-pink: #e91e8c;
  --ghci-pink-light: #f04da3;
  --ghci-yellow: #fff8e1;
  --ghci-footer: #fdf5f8;
  --font-proxima: "Proxima Nova", system-ui, sans-serif;
}

html { font-size: 16px; }
body.ghci-body {
  background: var(--ghci-navy);
  color: #fff;
  font-family: var(--font-proxima);
  line-height: 1.25;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.text-ghci-navy { color: var(--ghci-navy) !important; }
.text-ghci-pink { color: var(--ghci-pink) !important; }
.bg-ghci-navy { background-color: var(--ghci-navy) !important; }
.bg-ghci-pink { background-color: var(--ghci-pink) !important; }
.border-ghci-pink { border-color: var(--ghci-pink) !important; }

/* SweetAlert2 modal — GHCI brand (Tailwind/Bootstrap-safe) */
.swal2-popup.ghci-swal-modal {
  font-family: "Proxima Nova", system-ui, sans-serif;
  border-radius: 0.75rem;
  padding: 1.5rem 1.25rem 1.25rem;
}
.swal2-popup.ghci-swal-modal .swal2-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0c2340;
}
.swal2-popup.ghci-swal-modal .swal2-html-container,
.swal2-popup.ghci-swal-modal .swal2-content {
  font-size: 0.9375rem;
  color: #374151;
}
.swal2-popup.ghci-swal-modal .swal2-actions {
  margin-top: 1.25rem;
}
body .swal2-container .swal2-popup .swal2-actions .swal2-confirm,
body .swal2-container .swal2-popup .swal2-actions .ghci-swal-confirm-btn {
  display: inline-block !important;
  background-color: #0c2340 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0.5rem !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  line-height: 1.25 !important;
  padding: 0.625rem 1.75rem !important;
  min-width: 5.5rem;
  cursor: pointer !important;
}
body .swal2-container .swal2-popup .swal2-actions .swal2-confirm:hover,
body .swal2-container .swal2-popup .swal2-actions .ghci-swal-confirm-btn:hover {
  background-color: #081a30 !important;
}
body .swal2-container .swal2-popup .swal2-actions .swal2-confirm:focus,
body .swal2-container .swal2-popup .swal2-actions .ghci-swal-confirm-btn:focus {
  box-shadow: 0 0 0 3px rgba(12, 35, 64, 0.28) !important;
}

/* Fallback when SweetAlert2 is unavailable */
.ghci-toast-fallback {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  max-width: 24rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.ghci-toast-fallback.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.ghci-toast-fallback.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.admin-shell { background: #f5f5f5; min-height: 100vh; color: #1a1a1a; }
.admin-nav { background: var(--ghci-navy); }
.admin-nav a { color: rgba(255,255,255,0.85); padding: 0.5rem 1rem; display: inline-block; text-decoration: none; font-size: 0.875rem; }
.admin-nav a:hover, .admin-nav a.active { color: #fff; background: rgba(255,255,255,0.1); }

.dashboard-shell { background: var(--ghci-navy); min-height: 100vh; }

/* Bootstrap-compatible grid inside dashboard (container + col-md-6) */
.dashboard-shell .container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .dashboard-shell .container { max-width: 540px; }
}

@media (min-width: 768px) {
  .dashboard-shell .container { max-width: 720px; }
}

@media (min-width: 992px) {
  .dashboard-shell .container { max-width: 960px; }
}

@media (min-width: 1200px) {
  .dashboard-shell .container { max-width: 1140px; }
}

@media (min-width: 1400px) {
  .dashboard-shell .container { max-width: 1320px; }
}

.dashboard-shell .row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.dashboard-shell .row > [class*="col-"] {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.dashboard-shell .col-md-6 {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .dashboard-shell .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    width: auto;
  }
  .dashboard-shell .row > .col-md-6.mx-auto {
    margin-left: auto;
    margin-right: auto;
  }
}

.dashboard-shell .dashboard-seat-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dashboard-shell .dashboard-seat-card__ticket {
  width: 100%;
}

.dashboard-shell .ghci-ticket-wrap {
  max-width: none;
  width: 100%;
  padding: 0.25rem 0;
}

.dashboard-shell .ghci-ticket {
  width: 100%;
}

.ghci-card { background: #fff; border-radius: 1rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); color: var(--ghci-navy); }
.ghci-input { width: 100%; border: 1px solid #e5e7eb; border-radius: 0.5rem; padding: 0.75rem 1rem; font-size: 1rem; color: #1f2937; }
.ghci-input:focus { outline: none; border-color: var(--ghci-navy); box-shadow: 0 0 0 3px rgba(12,35,64,0.15); }
.ghci-btn { width: 100%; border-radius: 0.5rem; padding: 0.875rem; font-weight: 600; background: var(--ghci-navy); color: #fff; border: none; cursor: pointer; }
.ghci-btn:hover { background: var(--ghci-navy-dark); }
.ghci-btn-pink { background: var(--ghci-pink); }
.ghci-btn-pink:hover { background: var(--ghci-pink-light); }
.ghci-btn-auto { width: auto; padding-left: 2rem; padding-right: 2rem; }
.ghci-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.info-icon { width: 3rem; height: 3rem; border-radius: 9999px; background: var(--ghci-pink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.ghci-phone-field .iti {
  width: 100%;
  display: block;
}

.ghci-phone-field .iti__country-container {
  z-index: 20;
}

.ghci-phone-field .iti__dropdown-content {
  z-index: 40;
}

.ghci-phone-field .iti input.ghci-phone-input,
.ghci-phone-field .iti input[type="tel"] {
  width: 100%;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 1rem;
}

.ghci-phone-field .iti--separate-dial-code input.ghci-phone-input,
.ghci-phone-field .iti--separate-dial-code input[type="tel"] {
  padding-left: 6.75rem;
}

.ghci-phone-field .iti__selected-dial-code {
  color: #1f2937;
}

.ghci-phone-field .iti__dropdown-content {
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.ghci-phone-field .iti__search-input {
  color: #1f2937;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.ghci-phone-field .iti__country-list {
  background: #fff;
}

.ghci-phone-field .iti__country,
.ghci-phone-field .iti__country-name,
.ghci-phone-field .iti__dial-code {
  color: #1f2937;
}

.ghci-phone-field .iti__country.iti__highlight {
  background: #f3f4f6;
}

.ghci-phone-field .iti__country.iti__highlight .iti__country-name,
.ghci-phone-field .iti__country.iti__highlight .iti__dial-code {
  color: #0c2340;
}

.iti { width: 100%; }

label.error,
span.error {
  display: block;
  color: #dc2626;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

input.error,
input.ghci-input.error,
select.error {
  border-color: #f87171 !important;
}

/* Landing hero — tight line-height (matches Next.js globals.css + InfoSection) */
.ghci-hero h1,
.ghci-hero h1 > span,
.ghci-hero .ghci-hero-title,
.ghci-hero .ghci-hero-title > span {
  line-height: 1;
  margin: 0;
}

.ghci-hero .ghci-hero-subtitle {
  line-height: 1.25;
  margin: 1rem 0 0;
}

.ghci-hero .ghci-hero-subtitle > span {
  line-height: 1.25;
  margin: 0;
}

.ghci-hero p:not(.ghci-hero-subtitle) {
  margin: 0;
}

.ghci-hero-info > li {
  align-items: center;
}

.ghci-hero-info p {
  line-height: 1.25;
}

.ghci-hero-info p + p {
  margin-top: 0.125rem;
}

.ghci-hero-info div.space-y-0 > p + p {
  margin-top: 0;
}

.seat-details-modal {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.seat-details-modal.is-open {
  opacity: 1;
}

.seat-details-modal__panel {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.seat-details-modal.is-open .seat-details-modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.dashboard-resend-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ghci-navy);
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.dashboard-resend-btn:hover:not(:disabled) {
  background: #f9fafb;
}

.dashboard-resend-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dashboard-resend-btn.is-loading {
  opacity: 0.7;
}

.dashboard-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ghci-navy);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.dashboard-action-btn:hover {
  background: #f9fafb;
}

.dashboard-action-btn--primary {
  background: var(--ghci-pink);
  border-color: var(--ghci-pink);
  color: #fff;
}

.dashboard-action-btn--primary:hover {
  background: var(--ghci-pink-light);
}

.dashboard-action-btn--meta {
  gap: 0.25rem;
  padding: 0.375rem 0.625rem;
}

.dashboard-action-btn__meta {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.2;
}

.dashboard-action-btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.dashboard-ticket-image-wrap {
  width: 100%;
  max-width: 360px;
}

.dashboard-ticket-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow:
    0 10px 28px rgba(233, 30, 140, 0.15),
    0 2px 8px rgba(12, 35, 64, 0.08);
}

.ghci-ticket-wrap {
  width: 100%;
  max-width: 440px;
  padding: 0.25rem 0;
}

.ghci-ticket {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  min-height: 148px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 10px 28px rgba(233, 30, 140, 0.18),
    0 2px 8px rgba(12, 35, 64, 0.08);
  border: 1px solid rgba(233, 30, 140, 0.22);
}

.ghci-ticket__stub {
  position: relative;
  flex: 0 0 92px;
  background: linear-gradient(165deg, #f04da3 0%, #e91e8c 45%, #c2187a 100%);
  color: #fff;
  overflow: hidden;
}

.ghci-ticket__stub-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 20% 30%, #fff 0 2px, transparent 2px),
    radial-gradient(circle at 70% 60%, #fff 0 1.5px, transparent 1.5px),
    linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.35) 40%, rgba(255, 255, 255, 0.35) 44%, transparent 44%),
    linear-gradient(45deg, transparent 55%, rgba(255, 255, 255, 0.25) 55%, rgba(255, 255, 255, 0.25) 59%, transparent 59%);
  background-size: 100% 100%, 100% 100%, 24px 24px, 20px 20px;
}

.ghci-ticket__stub-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.ghci-ticket__logo {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: 0.375rem;
}

.ghci-ticket__stub-year {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.92;
}

.ghci-ticket__stub-title {
  margin: 0.125rem 0 0;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
}

.ghci-ticket__stub-sub {
  margin: 0.25rem 0 0;
  font-size: 0.5625rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.95;
}

.ghci-ticket__tear {
  position: relative;
  flex: 0 0 12px;
  background: #fff;
}

.ghci-ticket__tear--qr {
  flex-basis: 10px;
}

.ghci-ticket__dash {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 0;
  border-left: 2px dashed rgba(233, 30, 140, 0.35);
  transform: translateX(-50%);
}

.ghci-ticket__notch {
  position: absolute;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(233, 30, 140, 0.12);
  transform: translateX(-50%);
}

.ghci-ticket__notch--top {
  top: -7px;
}

.ghci-ticket__notch--bottom {
  bottom: -7px;
}

.ghci-ticket__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.875rem 0.75rem;
  background: linear-gradient(180deg, #fff 0%, #fffafcd9 100%);
}

.ghci-ticket__event {
  margin: 0 0 0.625rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ghci-pink);
}

.ghci-ticket__fields {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ghci-ticket__field {
  margin: 0;
  min-width: 0;
}

.ghci-ticket__field dt {
  margin: 0;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9ca3af;
  line-height: 1.2;
}

.ghci-ticket__field dd {
  margin: 0.125rem 0 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ghci-navy);
  line-height: 1.25;
  word-break: break-word;
}

.ghci-ticket__ticket-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--ghci-pink);
}

.ghci-ticket__qr {
  flex: 0 0 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 0.5rem;
  background: linear-gradient(180deg, #fff5fa 0%, #ffe8f4 100%);
}

.ghci-ticket__qr-frame {
  padding: 0.375rem;
  border-radius: 10px;
  background: #fff;
  border: 2px solid rgba(233, 30, 140, 0.28);
  box-shadow: 0 2px 10px rgba(233, 30, 140, 0.12);
}

.ghci-ticket__qr-frame img {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.ghci-ticket__scan {
  margin: 0;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ghci-pink);
}

@media (max-width: 420px) {
  .ghci-ticket {
    flex-wrap: wrap;
  }

  .ghci-ticket__stub {
    flex: 1 1 100%;
    min-height: 72px;
  }

  .ghci-ticket__stub-content {
    flex-direction: row;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
  }

  .ghci-ticket__logo {
    margin-bottom: 0;
  }

  .ghci-ticket__stub-year,
  .ghci-ticket__stub-title,
  .ghci-ticket__stub-sub {
    text-align: left;
  }

  .ghci-ticket__tear {
    display: none;
  }

  .ghci-ticket__body {
    flex: 1 1 100%;
    border-top: 2px dashed rgba(233, 30, 140, 0.25);
  }

  .ghci-ticket__qr {
    flex: 1 1 100%;
    border-top: 1px solid rgba(233, 30, 140, 0.12);
  }
}
