* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: #111827;
  background: radial-gradient(circle at top, rgba(34, 139, 230, 0.16), transparent 30%), #f6f8fc;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.hero {
  padding: 60px 24px 32px;
  background: linear-gradient(150deg, #0f172a 0%, #1d4ed8 100%);
  color: white;
}

.hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 32px;
  align-items: center;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: #93c5fd;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.9rem, 4vw, 4.6rem);
  line-height: 1.02;
}

.hero-copy p {
  max-width: 640px;
  margin: 24px 0 0;
  line-height: 1.75;
  color: #dbeafe;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 24px;
  border: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.button.primary {
  background: #f59e0b;
  color: #0f172a;
  box-shadow: 0 14px 36px rgba(245, 158, 11, 0.32);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.button:hover {
  transform: translateY(-2px);
}

.hero-panel {
  position: relative;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  padding: 32px;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.18);
}

.hero-card-highlight {
  position: relative;
}

.hero-card .tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  font-weight: 700;
  font-size: 0.85rem;
}

.hero-card h2 {
  margin: 0 0 16px;
  font-size: 1.9rem;
}

.hero-card p {
  margin: 0 0 22px;
  line-height: 1.8;
  color: #e2e8f0;
}

.hero-list {
  display: grid;
  gap: 14px;
  padding-left: 18px;
  margin: 0;
  list-style: none;
}

.hero-list li::before {
  content: '•';
  margin-right: 10px;
  color: #fbbf24;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-panel {
  min-height: 100%;
}

.hero-image-frame {
  border-radius: 24px;
  overflow: hidden;
  margin-top: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
}

.tier-image-frame {
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #eef2ff;
  min-height: 180px;
}

.tier-image {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.refund-benefits {
  margin-top: 36px;
  padding: 32px 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #0f766e 100%);
  color: #f8fafc;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.2);
}

.refund-benefits .eyebrow {
  color: #93c5fd;
}

.refund-benefits h2 {
  margin: 8px 0 18px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.04em;
  font-weight: 900;
  text-transform: uppercase;
}

.refund-benefits ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.refund-benefits li {
  font-size: 1.05rem;
  line-height: 1.45;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.refund-benefits li strong {
  font-weight: 800;
  color: #fde68a;
  display: inline;
}

.refund-section {
  margin-top: 48px;
}

.refund-panel {
  border: 2px solid #c7d2fe;
}

.refund-intro {
  margin: 0 0 18px;
  color: #334155;
  line-height: 1.5;
}

.refund-gateway-header {
  background: linear-gradient(120deg, #0f766e, #1d4ed8);
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.stats-section {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: -32px;
}

.stats-card {
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248,250,252,0.95));
  padding: 28px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.stats-card strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 12px;
  color: #0f172a;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: 2.2rem;
  line-height: 1.15;
}

.tier-cards {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tier-card,
.form-panel {
  background: white;
  border-radius: 32px;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.08);
  padding: 28px;
}

.tier-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tier-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.tier-card h3 {
  margin: 0;
  font-size: 1.55rem;
}

.tier-price {
  color: #0f172a;
  font-weight: 700;
  white-space: nowrap;
}

.tier-card p {
  margin: 0 0 18px;
  line-height: 1.8;
  color: #475569;
}

.tier-card ul {
  padding-left: 18px;
  margin: 0 0 24px;
  color: #475569;
}

.tier-card li {
  margin-bottom: 10px;
}

.tier-card button {
  width: 100%;
  border: none;
  padding: 16px;
  border-radius: 20px;
  background: #2563eb;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.tier-card button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
  background: #1d4ed8;
}

.form-panel label {
  display: block;
  margin-bottom: 12px;
  color: #0f172a;
  font-weight: 700;
}

.field-group {
  margin-bottom: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field-row .field-group:last-child {
  margin-bottom: 0;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 16px 18px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.96rem;
}

textarea {
  resize: vertical;
}

.message {
  margin-top: 20px;
  padding: 18px 22px;
  border-radius: 20px;
}

.message.success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.message.error {
  background: #fce7f3;
  border: 1px solid #f472b6;
  color: #831843;
}

.payment-card {
  display: grid;
  gap: 22px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 50;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  width: min(700px, calc(100% - 40px));
  max-height: min(92vh, 860px);
  overflow-y: auto;
  background: #f9fbff;
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.22);
  padding: 32px;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.close-button {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #0f172a;
}

.payment-gateway-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(14, 165, 233, 0.06));
  border: 1px solid rgba(59, 130, 246, 0.14);
}

.gateway-brand h3 {
  margin: 10px 0 6px;
  font-size: 1.4rem;
  line-height: 1.2;
}

.gateway-subtitle {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
}

.gateway-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 48px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 16px 26px rgba(29, 78, 216, 0.18);
}

.payment-meta-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 240px;
  align-items: start;
  margin: 26px 0 6px;
}

.payment-summary-card,
.accepted-cards {
  background: white;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.payment-summary-card {
  min-height: 130px;
}

.accepted-label {
  display: block;
  margin-bottom: 14px;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
}

.card-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 43px;
  min-height: 29px;
  border-radius: 20px;
  background: transparent;
}

.card-logo img {
  display: block;
  max-width: 100%;
  max-height: 34px;
}

.payment-summary p {
  margin: 0 0 12px;
  color: #334155;
}

.payment-form {
  display: grid;
  gap: 18px;
}

.payment-form label {
  display: block;
  margin-bottom: 10px;
  color: #334155;
  font-weight: 700;
  font-size: 0.95rem;
}

.payment-form input {
  width: 100%;
  border-radius: 18px;
  border: 1px solid #dbeafe;
  padding: 18px 18px;
  background: white;
  color: #0f172a;
  box-shadow: inset 0 2px 12px rgba(15, 23, 42, 0.04);
}

.secure-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    margin-top: 12px;
    border-radius: 22px;
    background: #eef2ff;
    color: #0f172a;
    font-size: 0.95rem;
    border: 1px solid #dbeafe;
  }

.payment-fields-row {
  display: grid;
  grid-template-columns: 180px 120px;
  gap: 18px;
}

@media (max-width: 980px) {
  .hero-grid,
  .field-row,
  .stats-section,
  .steps-grid,
  .payment-fields-row {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    align-items: stretch;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-card,
  .form-panel,
  .stats-card,
  .step-card,
  .modal-panel {
    padding: 24px;
  }

  .payment-gateway-header {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }

  .gateway-logo {
    min-width: unset;
    width: 100%;
    justify-content: center;
  }

  .payment-meta-grid {
    grid-template-columns: 1fr;
  }

  .payment-fields-row {
    gap: 16px;
  }
}

@media (max-width: 720px) {
  .payment-fields-row {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    padding: 14px;
  }

  .modal-panel {
    width: 100%;
    max-height: 96vh;
    padding: 20px;
  }

  .payment-gateway-header {
    padding: 18px;
  }

  .payment-meta-grid {
    gap: 14px;
  }

  .close-button {
    width: 42px;
    height: 42px;
  }

  .modal-header {
    gap: 12px;
  }

  .modal-header > div {
    width: 100%;
  }

  .modal-header .button.close-button {
    margin-left: 205px;
  }
}

.tier-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 20px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 700;
}

.availability-badge {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 0.95rem;
  color: #0f172a;
  background: #dbeafe;
}

.availability-badge.available {
  background: #d1fae5;
  color: #064e3b;
}

.availability-badge.sold-out {
  background: #fee2e2;
  color: #7f1d1d;
}

.steps-section {
  margin-top: 60px;
}

.steps-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.step-card {
  padding: 28px;
  background: white;
  border-radius: 28px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.step-card strong {
  display: block;
  margin-bottom: 16px;
  font-size: 1.15rem;
}

.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  color: #475569;
  text-align: center;
}

.site-footer a {
  color: #2563eb;
}

@media (max-width: 980px) {
  .hero-grid,
  .field-row,
  .stats-section,
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 34px 16px 22px;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .hero-copy p {
    margin-bottom: 20px;
  }

  main {
    padding: 24px 16px 56px;
  }

  .field-row {
    display: block;
  }

  .field-row .field-group {
    width: 100%;
  }

  .modal-panel {
    max-height: 95vh;
    padding: 22px;
  }

  .modal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .close-button {
    align-self: flex-end;
  }
}

.admin-body {
  background: #eef2ff;
}

.admin-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

.admin-page .hero {
  background: linear-gradient(120deg, #1d4ed8 0%, #0f172a 100%);
}

.admin-card {
  margin-top: 32px;
  border-radius: 32px;
  background: white;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
  padding: 32px;
}

.admin-summary {
  margin-top: 32px;
}

.dashboard-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dashboard-card {
  background: white;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.dashboard-card strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 10px;
}

.table-container {
  overflow-x: auto;
  margin-top: 24px;
}

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

.table-list th,
.table-list td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.table-list th {
  background: #f8fafc;
  font-weight: 700;
}

.table-list tr:hover {
  background: #f1f5f9;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.table-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.table-header-row h2 {
  margin: 0;
}

.table-hint {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 220px;
}

.action-btn {
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  color: white;
  line-height: 1.2;
}

.action-edit {
  background: #2563eb;
}

.action-invite {
  background: #7c3aed;
}

.action-paid {
  background: #059669;
}

.action-pending {
  background: #d97706;
}

.action-danger {
  background: #dc2626;
}

.action-btn:hover {
  filter: brightness(1.08);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-paid {
  background: #d1fae5;
  color: #065f46;
}

.status-free {
  background: #e0e7ff;
  color: #3730a3;
}

.status-refunded {
  background: #fce7f3;
  color: #9d174d;
}

.admin-modal-panel {
  max-width: 520px;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.invite-details .field-group input,
.invite-details .field-group textarea {
  width: 100%;
}

.pdf-detail-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.pdf-detail-card {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
  background: #f8fafc;
}

.pdf-detail-card h3 {
  margin: 0 0 10px;
}

.table-list small {
  color: #64748b;
  font-size: 0.75rem;
}

@media (max-width: 720px) {
  .admin-actions {
    min-width: 160px;
  }

  .admin-action-row .button {
    width: 100%;
    text-align: center;
  }
}
