*,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    @font-face {
      font-family: 'BrittanySignature';
      src: url('BrittanySignature.ttf') format('truetype');
      font-weight: normal;
      font-style: normal;
      font-display: swap;
    }

    :root {
      --bg: #fff7ed;
      --white: #fff;
      --primary: #2C2C2C;
      --a1: #F97316;
      --a2: #EC4899;
      --a3: #60A5FA;
      --a4: #A78BFA;
      --purple: #5D58A7;
      --purpleL: #F3F2FF;
      --gray: #6B7280;
      --lightGray: #F5F5F5;
      --border: #E5E7EB;
      --shadow: rgba(0, 0, 0, 0.06);
      --r: 16px;
    }

    html,
    body {
      font-family: 'Poppins', sans-serif;
      background: var(--bg);
      color: var(--primary);
      min-height: 100vh;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    /* ── LAYOUT ── */
    #outer {
      display: flex;
      min-height: 100vh;
    }

    /* Mobile: single column */
    #hero {
      display: none;
    }

    #app {
      width: 100%;
      max-width: 100%;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      background: var(--bg);
    }

    /* Desktop: two-column split */
    @media (min-width: 768px) {
      body {
        background: #1a1a2e;
      }

      #outer {
        align-items: stretch;
      }

      /* Left hero */
      #hero {
        display: flex;
        flex: 1;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 60px 64px;
        background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
        position: relative;
        overflow: hidden;
      }

      #hero::before {
        content: '';
        position: absolute;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
        top: -100px;
        right: -100px;
        border-radius: 50%;
      }

      #hero::after {
        content: '';
        position: absolute;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(93, 88, 167, 0.2) 0%, transparent 70%);
        bottom: -80px;
        left: -80px;
        border-radius: 50%;
      }

      .hero-tag {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: rgba(249, 115, 22, 0.15);
        border: 1px solid rgba(249, 115, 22, 0.35);
        color: var(--a1);
        font-size: 12px;
        font-weight: 700;
        padding: 6px 14px;
        border-radius: 30px;
        margin-bottom: 28px;
        letter-spacing: .5px;
        position: relative;
        z-index: 1;
      }

      .hero-title {
        font-family: 'Lilita One', cursive;
        font-size: clamp(44px, 5vw, 72px);
        font-weight: 400;
        color: #ffffff;
        line-height: 1.05;
        letter-spacing: 1px;
        margin-bottom: 8px;
        position: relative;
        z-index: 1;
      }

      .hero-brand {
        font-family: 'BrittanySignature', cursive;
        font-size: clamp(32px, 4vw, 54px);
        font-weight: 400;
        color: var(--a1);
        margin-bottom: 24px;
        position: relative;
        z-index: 1;
        display: block;
      }

      .hero-desc {
        font-size: 16px;
        color: rgba(255, 255, 255, 0.65);
        line-height: 1.7;
        max-width: 380px;
        margin-bottom: 40px;
        position: relative;
        z-index: 1;
      }

      .hero-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 48px;
        position: relative;
        z-index: 1;
      }

      .hero-pill {
        display: flex;
        align-items: center;
        gap: 8px;
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: rgba(255, 255, 255, 0.85);
        font-size: 13px;
        font-weight: 600;
        padding: 8px 16px;
        border-radius: 30px;
      }

      .hero-footer {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.35);
        position: relative;
        z-index: 1;
      }

      .hero-dots {
        position: absolute;
        z-index: 0;
        top: 40px;
        left: 40px;
        display: grid;
        grid-template-columns: repeat(6, 20px);
        grid-template-rows: repeat(6, 20px);
        gap: 12px;
        opacity: .12;
      }

      .hero-dots span {
        width: 4px;
        height: 4px;
        background: white;
        border-radius: 50%;
        display: block;
      }

      /* Right panel */
      #app {
        width: 420px;
        flex-shrink: 0;
        max-width: 420px;
        background: var(--bg);
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.25);
        overflow-y: auto;
        min-height: 100vh;
      }
    }

    @media (min-width: 1200px) {
      #app {
        width: 460px;
        max-width: 460px;
      }
    }

    /* ── HEADER ── */
    .header {
      padding: 24px 24px 8px;
      text-align: center;
    }

    .header h1 {
      font-family: 'Lilita One', cursive;
      font-size: 27px;
      font-weight: 400;
      letter-spacing: 1px;
      line-height: 1;
    }

    .header .sub {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      margin-top: 4px;
    }

    .header .with {
      font-family: 'Lilita One', cursive;
      font-size: 18px;
      font-weight: 400;
    }

    .header .brand {
      font-family: 'BrittanySignature', cursive;
      font-size: 22px;
      font-weight: 400;
      transform: rotate(-2deg);
      display: inline-block;
    }

    .slider-wrap {
      width: calc(100% + 48px);
      margin-top: 20px;
      margin-left: -24px;
      margin-right: -24px;
      border-radius: 0;
      height: auto;
      overflow: hidden;
      position: relative;
    }
    .slider {
      display: flex;
      width: 200%;
      transition: transform 0.4s ease-in-out;
      align-items: flex-start;
    }
    .slider img {
      width: 50%;
      height: auto;
      display: block;
      object-fit: contain;
    }

    .header .tagline {
      margin-top: 16px;
      font-size: 13px;
      color: var(--gray);
      line-height: 1.5;
      padding: 0 16px;
    }

    /* ── SKELETON ── */
    .sk {
      background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
      background-size: 200% 100%;
      animation: shimmer 1.4s infinite;
      border-radius: 8px;
    }

    @keyframes shimmer {
      0% {
        background-position: 200% 0
      }

      100% {
        background-position: -200% 0
      }
    }

    .sk-card {
      background: var(--white);
      border-radius: 14px;
      box-shadow: 0 4px 12px var(--shadow);
      display: flex;
      height: 90px;
      overflow: hidden;
      margin-bottom: 14px;
    }

    .sk-bar {
      width: 6px;
      border-radius: 14px 0 0 14px;
      flex-shrink: 0;
    }

    .sk-body {
      flex: 1;
      padding: 18px 14px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .sk-t {
      height: 16px;
      border-radius: 6px;
    }

    .sk-s {
      height: 12px;
      width: 70%;
      border-radius: 6px;
    }

    .sk-m {
      height: 11px;
      width: 50%;
      border-radius: 6px;
    }

    /* ── TABS ── */
    .tabs {
      display: flex;
      background: rgba(0, 0, 0, 0.04);
      margin: 10px 20px 0;
      padding: 4px;
      border-radius: 14px;
      position: relative;
    }

    .tab-item {
      flex: 1;
      text-align: center;
      padding: 10px 0;
      font-size: 14px;
      font-weight: 700;
      color: var(--gray);
      cursor: pointer;
      border-radius: 11px;
      transition: all 0.2s ease;
      position: relative;
      z-index: 1;
      user-select: none;
    }

    .tab-item.active {
      background: var(--white);
      color: var(--primary);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .tab-item:not(.active):hover {
      background: rgba(0, 0, 0, 0.02);
    }

    /* ── EVENT LIST ── */
    #event-list {
      flex: 1;
      padding: 20px 20px 0;
    }

    .empty {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 60px 24px;
      font-size: 15px;
      color: var(--gray);
    }

    /* ── CARD ── */
    .card {
      background: var(--white);
      border-radius: 14px;
      box-shadow: 0 4px 12px var(--shadow);
      display: flex;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      margin-bottom: 14px;
      transition: transform .15s, box-shadow .15s;
      -webkit-tap-highlight-color: transparent;
    }

    .card:active {
      transform: scale(.98);
    }

    .card-bar {
      width: 6px;
      border-radius: 14px 0 0 14px;
      flex-shrink: 0;
    }

    .card-body {
      flex: 1;
      padding: 18px 14px;
    }

    .card-title {
      font-size: 17px;
      font-weight: 800;
      line-height: 1.2;
      margin-bottom: 3px;
    }

    .card-sub {
      font-size: 13px;
      color: var(--gray);
      line-height: 1.4;
      margin-bottom: 10px;
    }

    .card-meta {
      display: flex;
      gap: 16px;
      align-items: center;
    }

    .card-meta span {
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: 12px;
      font-weight: 500;
      color: #374151;
    }

    .card-arrow {
      display: flex;
      align-items: center;
      padding: 0 14px;
      color: #CBD5E1;
      font-size: 20px;
    }

    .badge {
      position: absolute;
      top: 0;
      right: 0;
      background: var(--purpleL);
      color: var(--purple);
      font-size: 10px;
      font-weight: 800;
      padding: 4px 9px;
      border-radius: 0 14px 0 10px;
    }

    /* ── SUGGEST BTN ── */
    .suggest-bar {
      background: var(--bg);
      padding: 16px 20px 36px;
    }

    .suggest-btn {
      width: 100%;
      height: 54px;
      border: 1.5px solid #D1D5DB;
      border-radius: var(--r);
      background: transparent;
      font-family: 'Poppins', sans-serif;
      font-size: 16px;
      font-weight: 600;
      color: var(--primary);
      cursor: pointer;
      transition: background .15s, border-color .15s;
    }

    .suggest-btn:hover {
      background: rgba(0, 0, 0, .03);
      border-color: #9CA3AF;
    }

    /* ── MODAL BACKDROP ── */
    .backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .45);
      z-index: 100;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity .25s ease;
    }

    .backdrop.open {
      opacity: 1;
      pointer-events: all;
    }

    /* ── BOTTOM SHEET ── */
    .sheet {
      width: 100%;
      max-width: 480px;
      max-height: 94dvh;
      background: var(--white);
      border-radius: 28px 28px 0 0;
      display: flex;
      flex-direction: column;
      transform: translateY(100%);
      transition: transform .3s cubic-bezier(.34, 1.2, .64, 1);
      position: relative;
    }

    .backdrop.open .sheet {
      transform: translateY(0);
    }

    .handle-wrap {
      flex-shrink: 0;
      display: flex;
      justify-content: center;
      padding: 10px 0 4px;
    }

    .handle-bar {
      width: 40px;
      height: 5px;
      background: #D1D5DB;
      border-radius: 3px;
    }

    .sheet-scroll {
      flex: 1;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      padding: 0 24px 8px;
    }

    .close-btn {
      position: absolute;
      top: 16px;
      right: 20px;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: var(--white);
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 3px 10px rgba(0, 0, 0, .14);
      font-size: 17px;
      color: var(--primary);
      z-index: 2;
      flex-shrink: 0;
    }

    .sheet-title {
      font-size: 22px;
      font-weight: 900;
      letter-spacing: -.5px;
      margin-bottom: 12px;
      padding-right: 44px;
    }

    .sheet-desc {
      font-size: 15px;
      color: #555;
      line-height: 1.7;
      text-align: justify;
      margin-bottom: 20px;
    }

    /* Vibe chips */
    .vibe-label {
      font-size: 12px;
      font-weight: 700;
      color: var(--gray);
      letter-spacing: .5px;
      text-transform: uppercase;
      margin-bottom: 8px;
    }

    .vibe-wrap {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 20px;
    }

    .vibe {
      background: var(--purpleL);
      color: var(--purple);
      font-size: 11px;
      font-weight: 600;
      padding: 6px 14px;
      border-radius: 20px;
    }

    /* Host */
    .host-box {
      background: var(--lightGray);
      border-radius: 14px;
      padding: 16px;
      margin-bottom: 16px;
    }

    .host-label {
      font-size: 12px;
      font-weight: 800;
      color: rgba(0, 0, 0, .55);
      letter-spacing: 1px;
      text-transform: uppercase;
      margin-bottom: 14px;
    }

    .host-row {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .host-avatar {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--a1), var(--a2));
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      flex-shrink: 0;
      overflow: hidden;
      border: 2px solid var(--purpleL);
    }

    .host-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .host-name {
      font-size: 16px;
      font-weight: 900;
    }

    .host-insta {
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: 13px;
      font-weight: 700;
      color: var(--purple);
      text-decoration: underline;
      cursor: pointer;
      border: none;
      background: none;
      padding: 0;
      font-family: 'Poppins', sans-serif;
      margin-top: 2px;
    }

    .host-divider {
      height: 1px;
      background: #E2E8F0;
      margin: 14px 0;
    }

    .host-bio {
      font-size: 15px;
      color: rgba(0, 0, 0, .65);
      line-height: 1.6;
    }

    .read-toggle {
      font-size: 13px;
      font-weight: 800;
      color: var(--purple);
      border: none;
      background: none;
      padding: 6px 0 0;
      cursor: pointer;
      font-family: 'Poppins', sans-serif;
    }

    /* Policy tile — flat, no border box, only bottom divider (matches Flutter ExpansionTile) */
    .policy-tile {
      background: var(--white);
      border-radius: var(--r);
      margin-bottom: 4px;
    }

    .policy-hdr {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 8px;
      cursor: pointer;
      background: var(--white);
      font-size: 15px;
      font-weight: 800;
      user-select: none;
      border-radius: var(--r);
    }

    .policy-hdr .chev {
      font-size: 20px;
      color: #374151;
      transition: transform .2s;
    }

    .policy-hdr.expanded .chev {
      transform: rotate(180deg);
    }

    .policy-bottom-line {
      height: 1px;
      background: #E2E8F0;
      margin: 0 0 12px;
    }

    .policy-body {
      display: none;
      padding: 0 8px 12px;
    }

    .policy-body.open {
      display: block;
    }

    .policy-row {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 10px 0;
      font-size: 15px;
      color: #374151;
      line-height: 1.5;
    }

    .policy-line {
      width: 1.5px;
      height: 20px;
      background: #CBD5E1;
      border-radius: 1px;
      flex-shrink: 0;
      margin-top: 2px;
    }

    .policy-key {
      font-weight: 700;
    }

    /* Sticky action */
    .sticky {
      flex-shrink: 0;
      background: var(--white);
      padding: 16px 20px 28px;
      box-shadow: 0 -4px 15px rgba(0, 0, 0, .08);
    }

    .sticky-meta {
      display: flex;
      gap: 4px;
      align-items: center;
      margin-bottom: 12px;
    }

    .meta-fare {
      flex: 2;
      font-size: 14px;
      font-weight: 800;
      white-space: nowrap;
    }

    .meta-date {
      flex: 5;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      font-size: 14px;
      font-weight: 800;
      overflow: hidden;
    }

    .meta-date span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .meta-loc {
      flex: 3;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 4px;
      font-size: 14px;
      font-weight: 800;
      overflow: hidden;
    }

    .meta-loc span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .req-btn {
      width: 100%;
      height: 54px;
      border: 1.5px solid #D1D5DB;
      border-radius: var(--r);
      background: transparent;
      font-family: 'Poppins', sans-serif;
      font-size: 15px;
      font-weight: 700;
      color: var(--primary);
      cursor: pointer;
      transition: background .15s;
    }

    .req-btn:hover {
      background: rgba(0, 0, 0, .02);
    }

    /* ── DIALOG ── */
    .dialog-bd {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .5);
      z-index: 200;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      opacity: 0;
      pointer-events: none;
      transition: opacity .2s;
    }

    .dialog-bd.open {
      opacity: 1;
      pointer-events: all;
    }

    .dialog {
      background: var(--white);
      border-radius: 24px;
      width: 100%;
      max-width: 420px;
      max-height: 90dvh;
      overflow-y: auto;
      transform: scale(.92);
      transition: transform .25s cubic-bezier(.34, 1.2, .64, 1);
    }

    .dialog-bd.open .dialog {
      transform: scale(1);
    }

    /* Before-you-apply header */
    .apply-header {
      background: var(--purpleL);
      padding: 24px 24px 20px;
      border-radius: 24px 24px 0 0;
    }

    .apply-label {
      font-size: 13px;
      font-weight: 800;
      color: var(--purple);
      letter-spacing: .5px;
      margin-bottom: 10px;
    }

    .apply-bullet {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      margin-bottom: 8px;
      font-size: 14px;
      color: #1a1a1a;
      line-height: 1.5;
    }

    .apply-bullet .dot {
      color: var(--purple);
      font-size: 14px;
      font-weight: 900;
      flex-shrink: 0;
      margin-top: 1px;
    }

    .dialog-body {
      padding: 20px 24px 0;
    }

    .dialog-title {
      font-size: 19px;
      font-weight: 800;
      margin-bottom: 16px;
    }

    /* Suggest dialog has no apply-header */
    .suggest-dlg {
      padding: 24px;
    }

    .suggest-dlg .dialog-title {
      margin-bottom: 14px;
    }

    /* Radio toggle */
    .radio-wrap {
      display: flex;
      border: 1.5px solid #E5E7EB;
      border-radius: var(--r);
      overflow: hidden;
      margin-bottom: 20px;
      background: #F9FAFB;
    }

    .radio-opt {
      flex: 1;
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 10px 14px;
      cursor: pointer;
      font-size: 15px;
      font-weight: 700;
      transition: background .15s;
      user-select: none;
    }

    .radio-opt.selected {
      background: var(--primary);
      color: white;
    }

    .radio-dot {
      width: 16px;
      height: 16px;
      border-radius: 50%;
      border: 2px solid currentColor;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .radio-dot::after {
      content: '';
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: currentColor;
      display: none;
    }

    .radio-opt.selected .radio-dot::after {
      display: block;
    }

    /* Friend section */
    .friend-divider {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 20px 0 14px;
    }

    .friend-divider hr {
      flex: 1;
      border: none;
      border-top: 1px solid var(--border);
    }

    .friend-label {
      font-size: 14px;
      font-weight: 800;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .friend-bar {
      width: 3px;
      height: 16px;
      background: var(--primary);
      border-radius: 2px;
    }

    /* Form */
    .fg {
      margin-bottom: 14px;
    }

    .fg label {
      font-size: 13px;
      font-weight: 600;
      color: #374151;
      display: block;
      margin-bottom: 5px;
    }

    .fg input,
    .fg textarea {
      width: 100%;
      border: 1.5px solid var(--border);
      border-radius: 12px;
      padding: 12px 14px;
      font-family: 'Poppins', sans-serif;
      font-size: 14px;
      font-weight: 600;
      color: var(--primary);
      outline: none;
      transition: border-color .15s;
      background: #F9FAFB;
      -webkit-appearance: none;
    }

    .fg input:focus,
    .fg textarea:focus {
      border-color: var(--primary);
      background: var(--white);
    }

    .iti {
      width: 100%;
    }

    .fg textarea {
      resize: none;
    }

    .fg .ferr {
      font-size: 11px;
      color: #EF4444;
      margin-top: 4px;
      display: none;
    }

    .fg.err input,
    .fg.err textarea,
    .fg.err .cc-sel {
      border-color: #EF4444;
    }

    .fg.err .ferr {
      display: block;
    }

    /* Submit / cancel */
    .sub-btn {
      width: 100%;
      height: 50px;
      background: var(--primary);
      color: white;
      border: none;
      border-radius: 14px;
      font-family: 'Poppins', sans-serif;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      margin-top: 8px;
      transition: opacity .15s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .sub-btn:disabled {
      opacity: .65;
      cursor: not-allowed;
    }

    .can-btn {
      width: 100%;
      height: 40px;
      background: transparent;
      color: var(--gray);
      border: none;
      font-family: 'Poppins', sans-serif;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      margin-top: 4px;
      margin-bottom: 8px;
    }

    .actions-wrap {
      padding: 0 24px;
    }

    /* ── SUCCESS SHEET ── */
    .success-bd {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .45);
      z-index: 300;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity .25s;
    }

    .success-bd.open {
      opacity: 1;
      pointer-events: all;
    }

    .success-sheet {
      width: 100%;
      max-width: 480px;
      background: var(--white);
      border-radius: 28px 28px 0 0;
      padding: 28px 24px 40px;
      transform: translateY(100%);
      transition: transform .32s cubic-bezier(.34, 1.2, .64, 1);
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .success-bd.open .success-sheet {
      transform: translateY(0);
    }

    .success-handle {
      width: 40px;
      height: 5px;
      background: #D1D5DB;
      border-radius: 3px;
      margin: 0 auto 24px;
    }

    .success-emoji {
      font-size: 52px;
      margin-bottom: 6px;
    }

    .success-sub {
      font-size: 14px;
      color: var(--gray);
      margin-bottom: 28px;
    }

    .success-bullets {
      background: var(--purpleL);
      border-radius: 16px;
      padding: 16px;
      text-align: left;
      margin-bottom: 28px;
    }

    .s-bullet {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin-bottom: 10px;
      font-size: 14px;
      color: #1a1a1a;
      line-height: 1.5;
    }

    .s-bullet:last-child {
      margin-bottom: 0;
    }

    .s-bullet .ck {
      color: var(--purple);
      font-weight: 900;
      font-size: 14px;
      flex-shrink: 0;
      margin-top: 1px;
    }

    .got-btn {
      width: 100%;
      height: 52px;
      background: var(--primary);
      color: white;
      border: none;
      border-radius: 14px;
      font-family: 'Poppins', sans-serif;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
    }

    /* Confetti canvas */
    #confetti-canvas {
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 1;
    }

    .success-inner {
      position: relative;
      z-index: 2;
    }

    /* ── TOAST ── */
    .toast {
      position: fixed;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      background: #16A34A;
      color: white;
      padding: 12px 24px;
      border-radius: 30px;
      font-size: 14px;
      font-weight: 600;
      z-index: 999;
      opacity: 0;
      pointer-events: none;
      transition: opacity .3s, transform .3s;
      white-space: nowrap;
    }

    .toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    .toast.err {
      background: #DC2626;
    }

    /* divider */
    .divider {
      height: 1px;
      background: var(--border);
      margin: 16px 0;
    }

    /* ── PAST EVENT CARDS ── */
    .past-card {
      background: var(--white);
      border-radius: 18px;
      overflow: hidden;
      margin-bottom: 16px;
      box-shadow: 0 2px 12px rgba(0,0,0,.07);
      cursor: default;
      user-select: none;
    }

    .past-banner {
      position: relative;
      height: 160px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .past-emoji {
      font-size: 56px;
      line-height: 1;
      filter: saturate(.8) brightness(.92);
    }

    .past-done-badge {
      position: absolute;
      top: 12px;
      right: 12px;
      background: rgba(0,0,0,.28);
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .5px;
      padding: 4px 10px;
      border-radius: 20px;
      text-transform: uppercase;
    }

    .past-footer {
      padding: 14px 16px 16px;
    }

    .past-title {
      font-size: 16px;
      font-weight: 800;
      color: var(--primary);
      letter-spacing: -.3px;
    }

    .past-sub {
      font-size: 12px;
      color: var(--gray);
      font-weight: 500;
      margin-top: 3px;
    }

    /* ── OTP STEP ── */
    .otp-header {
      padding: 8px 24px 16px;
    }

    .otp-back {
      background: none;
      border: none;
      font-family: 'Poppins', sans-serif;
      font-size: 13px;
      font-weight: 600;
      color: var(--gray);
      cursor: pointer;
      padding: 0;
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      gap: 4px;
      transition: color .15s;
    }

    .otp-back:hover { color: var(--primary); }

    .otp-title {
      font-size: 21px;
      font-weight: 900;
      letter-spacing: -.5px;
      margin-bottom: 4px;
      color: var(--primary);
    }

    .otp-sub {
      font-size: 13px;
      color: var(--gray);
      font-weight: 500;
    }

    #inv-otp {
      font-size: 26px !important;
      font-weight: 800 !important;
      letter-spacing: 10px !important;
      text-align: center !important;
      padding: 16px 20px !important;
      background: var(--lightGray) !important;
    }

    #inv-otp:focus {
      border-color: var(--primary) !important;
      background: var(--white) !important;
    }

    .otp-resend-row {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 10px 24px 4px;
      min-height: 36px;
    }

    .otp-timer-txt {
      font-size: 13px;
      color: var(--gray);
      font-weight: 500;
    }

    .otp-resend-btn {
      background: none;
      border: none;
      font-family: 'Poppins', sans-serif;
      font-size: 13px;
      font-weight: 700;
      color: var(--purple);
      cursor: pointer;
      padding: 0;
      text-decoration: underline;
    }

    .otp-resend-btn:disabled {
      opacity: .5;
      cursor: not-allowed;
    }
