  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: #0D0D0F;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    -webkit-font-smoothing: antialiased;
  }

  .container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 32px;
  }

  /* Header with logo */
  .header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
  }
  .header-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  .header-text {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
  }

  /* Cover image */
  .cover-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #0059F1 0%, #1C1C1E 100%);
  }
  .cover-wrapper img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Card */
  .card {
    width: 100%;
    background: #1A1A1D;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .plan-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
  }

  /* Host row */
  .host-row {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .host-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #333;
  }
  .host-info {
    display: flex;
    flex-direction: column;
  }
  .host-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .host-name {
    font-size: 15px;
    font-weight: 600;
  }

  /* Meta items */
  .meta-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: rgba(255,255,255,0.9);
  }
  .meta-icon {
    width: 20px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
  }

  /* Badges */
  .badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
  }

  /* Description */
  .description {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255,255,255,0.75);
    white-space: pre-wrap;
    word-break: break-word;
  }

  /* External Links */
  .external-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .external-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0,89,241,0.08);
    border: 1px solid rgba(0,89,241,0.2);
    border-radius: 12px;
    color: #4D9FFF;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
    word-break: break-all;
  }
  .external-link:hover {
    background: rgba(0,89,241,0.15);
  }
  .external-link:active {
    transform: scale(0.98);
  }

  /* Attendees */
  .attendees-section {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .attendee-bubbles {
    display: flex;
  }
  .attendee-bubble {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #1A1A1D;
    object-fit: cover;
    background: #333;
    margin-left: -8px;
  }
  .attendee-bubble:first-child {
    margin-left: 0;
  }
  .attendee-count {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
  }

  /* Buttons */
  .btn-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 32px;
    background: #0059F1;
    color: #fff;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.1s;
  }
  .btn-primary:active { transform: scale(0.97); }
  .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.1s;
  }
  .btn-secondary:active { transform: scale(0.97); }

  /* IG hint */
  .ig-hint {
    margin-top: 8px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    max-width: 100%;
    text-align: center;
    display: none;
  }
  .ig-hint.show { display: block; }

  @media (min-width: 600px) {
    body { padding: 32px; }
    .container { padding-top: 32px; }
    .plan-title { font-size: 28px; }
  }

  /* Modal */
  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }
  .modal-overlay.show { display: flex; }
  .modal {
    background: #1A1A1D;
    border-radius: 20px;
    padding: 32px 24px;
    width: 100%;
    max-width: 360px;
    position: relative;
    text-align: center;
  }
  .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 20px;
    cursor: pointer;
  }
  .modal h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
  .modal-subtitle { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 24px; }
  .modal-step.hidden { display: none; }
  .phone-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
  }
  .phone-prefix { font-size: 16px; color: rgba(255,255,255,0.7); font-weight: 500; }
  .phone-input-row input, #otp-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
  }
  #otp-input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    margin-bottom: 16px;
    width: 100%;
  }
  .modal-error { font-size: 13px; color: #FF453A; margin-top: 8px; min-height: 18px; }
  .modal-link { background: none; border: none; color: #0059F1; font-size: 14px; cursor: pointer; margin-top: 12px; }
  .success-icon { font-size: 48px; margin-bottom: 16px; }
  .rsvp-confirmed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: rgba(52,199,89,0.15);
    border: 1px solid rgba(52,199,89,0.3);
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #34C759;
    width: 100%;
    max-width: 480px;
  }
  .rsvp-confirmed.hidden { display: none; }
  .rsvp-confirmed-icon { font-size: 18px; }


  /* Ticket display */
  .ticket-display {
    width: 100%;
    max-width: 480px;
  }
  .ticket-display.hidden { display: none; }
  .ticket-card {
    background: #1A1A1D;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid rgba(52,199,89,0.3);
  }
  .ticket-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #34C759;
  }
  .ticket-qr {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    display: block;
    border-radius: 12px;
    background: #fff;
    padding: 8px;
  }
  .ticket-code {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    font-family: monospace;
    word-break: break-all;
    margin-bottom: 8px;
  }
  .ticket-hint {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
  }


  /* Stripe Payment Element */
  #payment-element {
    margin-bottom: 8px;
    min-height: 100px;
  }
  #payment-amount {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
  }


  /* Social proof */
  .social-proof {
    padding: 10px 16px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    text-align: center;
  }
  .social-proof.urgency {
    background: rgba(255,69,58,0.1);
    border: 1px solid rgba(255,69,58,0.2);
    color: #FF6B6B;
    font-weight: 600;
  }

  /* Soft prompts */
  .soft-prompts {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  .soft-prompts.hidden { display: none; }
  .prompt-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(0,89,241,0.1);
    border: 1px solid rgba(0,89,241,0.2);
    border-radius: 999px;
    color: #4D9FFF;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.1s, background 0.1s;
  }
  .prompt-chip:hover { background: rgba(0,89,241,0.15); }
  .prompt-chip:active { transform: scale(0.97); }

/* Profile onboarding step */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.profile-form input[type="text"],
.profile-form input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}
.profile-form input:focus {
  border-color: #6c5ce7;
}
.profile-photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.profile-photo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  overflow: hidden;
}
.profile-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

  /* Ticket tiers display (on page) */
  .ticket-tiers-display {
    width: 100%;
    max-width: 480px;
    background: #1A1A1D;
    border-radius: 20px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .tiers-heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
  }
  .tier-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    transition: border-color 0.15s;
  }
  .tier-row:hover {
    border-color: rgba(0,89,241,0.4);
  }
  .tier-row.sold-out {
    opacity: 0.5;
  }
  .tier-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .tier-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
  }
  .tier-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
  }
  .tier-price {
    font-size: 16px;
    font-weight: 700;
    color: #4D9FFF;
  }
  .tier-row.sold-out .tier-price {
    color: #FF453A;
    font-size: 13px;
  }

/* Ticket tier selection (modal) */
.ticket-tiers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  max-height: 300px;
  overflow-y: auto;
}
.ticket-tier {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ticket-tier:hover {
  border-color: #6c5ce7;
}
.ticket-tier.selected {
  border-color: #6c5ce7;
  background: rgba(108, 92, 231, 0.05);
}
.ticket-tier-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ticket-tier-name {
  font-weight: 600;
  font-size: 15px;
}
.ticket-tier-desc {
  font-size: 13px;
  color: #888;
}
.ticket-tier-price {
  font-weight: 700;
  font-size: 16px;
  color: #6c5ce7;
}
.ticket-tier-soldout {
  font-size: 12px;
  color: #e74c3c;
  font-weight: 500;
}
