/* Page styles for draw-tool-clean.html */


.top-bar {
      height: 4px;
      background: linear-gradient(90deg, var(--primary-dark), #2563EB);
    }


    :root {
      --primary: #1E3A8A;
      --primary-dark: #1E3A8A;
      --primary-light: #E6F1FF;
      --primary-lighter: rgba(37, 99, 235, 0.05);
      --foreground: #1f2937;
      --muted: #6b7280;
      --background: #fcfcfc;
      --card: #ffffff;
      --border: #e5e7eb;
      --secondary: #f3f4f6;
      --blue: #3b82f6;
      --blue-light: rgba(59, 130, 246, 0.1);
      --warning: #f59e0b;
      --warning-light: rgba(245, 158, 11, 0.1);
    }
    
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    
    body {
      font-family: 'DM Sans', system-ui, sans-serif;
      background: #eef2ff;
      color: var(--foreground);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }
    
    /* Tool background pattern wrap */
    /* Background image, overlay, and fixed attachment are set via inline <style> in each HTML page */
    /* so they load immediately without waiting for this external stylesheet. */
    .tool-bg-wrap {
      position: relative;
    }
    .tool-bg-wrap > * {
      position: relative;
      z-index: 1;
    }

    /* Steps progress */
    .steps-bar {
      border-bottom: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }
    
    .steps-inner {
      max-width: 1024px;
      margin: 0 auto;
      padding: 18px 16px;
    }
    
    .steps-list {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    
    .step-item {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 6px 8px;
      border-radius: 5px;
      transition: all 0.2s;
      flex-shrink: 0;
    }
    
    .step-item.active {
      background: rgba(255, 255, 255, 0.22);
      color: white;
    }
    
    .step-item.complete {
      background: rgba(255, 255, 255, 0.12);
      color: rgba(255, 255, 255, 0.8);
      cursor: pointer;
    }
    
    .step-item.complete:hover {
      background: rgba(255, 255, 255, 0.20);
      color: white;
    }
    
    .step-item.inactive {
      color: rgba(255, 255, 255, 0.45);
    }
    
    .step-number {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 600;
      flex-shrink: 0;
    }
    
    .step-item.active .step-number {
      background: rgba(255, 255, 255, 0.25);
    }
    
    .step-item.complete .step-number {
      background: rgba(255, 255, 255, 0.18);
    }
    
    .step-item.inactive .step-number {
      background: rgba(255, 255, 255, 0.10);
    }
    
    .step-title {
      font-size: 13px;
      font-weight: 500;
      white-space: nowrap;
    }
    
    @media (max-width: 768px) {
      .step-title {
        display: none;
      }
    }
    
    .step-divider {
      color: rgba(255, 255, 255, 0.28);
      margin: 0 2px;
      flex-shrink: 0;
    }
    
    @media (max-width: 768px) {
      .step-divider {
        display: none;
      }
    }
    
    /* Main content */
    .main {
      max-width: 672px;
      margin: 0 auto;
      padding: 24px 24px 32px;
    }
    
    .page-header {
      margin-bottom: 24px;
    }
    
    .page-title {
      font-size: 24px;
      font-weight: 600;
      margin-bottom: 8px;
      color: #ffffff;
    }
    
    .page-subtitle {
      color: rgba(255, 255, 255, 0.68);
    }
    
    /* Card */
    .card {
      background: #fafbfc;
      border: 1px solid rgba(30, 58, 138, 0.09);
      border-radius: 5px;
      box-shadow: 0 2px 14px rgba(30, 58, 138, 0.07);
      padding: 24px;
      margin-bottom: 24px;
    }
    
    /* Form elements */
    .form-group {
      margin-bottom: 24px;
    }
    
    .form-group:last-child {
      margin-bottom: 0;
    }
    
    .label {
      display: block;
      font-size: 15px;
      font-weight: 500;
      margin-bottom: 8px;
    }
    
    .label-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
    }
    
    .input {
      width: 100%;
      padding: 10px 12px;
      border: 1px solid var(--border);
      border-radius: 5px;
      font-size: 16px;
      font-family: inherit;
      outline: none;
      transition: border-color 0.2s;
      background: white;
    }
    
    .input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
    }
    
    .input:disabled {
      background: var(--secondary);
      cursor: not-allowed;
    }
    
    .input-hint {
      font-size: 13px;
      color: var(--muted);
      margin-top: 6px;
    }
    
    /* Organisation field with verified badge */
    .org-field-wrapper {
      display: flex;
      gap: 10px;
      align-items: stretch;
      min-width: 0;
      width: 100%;
    }
    
    .org-input-container {
      flex: 1;
      min-width: 0;
      position: relative;
    }
    
    .org-input-with-badge {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px 14px 12px 16px;
      border: 1.5px solid #e2e8f0;
      border-radius: 5px;
      background: #fff;
      min-height: 50px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.04);
      position: relative;
      overflow: hidden;
      transition: border-color 0.18s, box-shadow 0.18s;
      min-width: 0;
    }
    .org-input-with-badge::before {
      content: '';
      position: absolute;
      left: 0; top: 0; bottom: 0;
      width: 4px;
      background: #22c55e;
      border-radius: 5px 0 0 5px;
    }
    .org-input-with-badge:hover {
      border-color: #bbf7d0;
      box-shadow: 0 0 0 3px rgba(34,197,94,0.08), 0 2px 8px rgba(34,197,94,0.06);
    }
    
    .org-icon {
      width: 32px;
      height: 32px;
      background: #dbeafe;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #2563eb;
      flex-shrink: 0;
    }
    
    .org-name {
      font-size: 15px;
      font-weight: 600;
      flex: 1;
      color: var(--foreground);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    /* Dropdown trigger — cursor only when multiple orgs */
    .org-dropdown-trigger { cursor: default; user-select: none; }
    .org-dropdown-trigger.has-multiple { cursor: pointer; }
    .org-dropdown-trigger.has-multiple:hover {
      border-color: #bbf7d0;
      box-shadow: 0 0 0 3px rgba(34,197,94,0.08), 0 2px 8px rgba(34,197,94,0.06);
    }
    /* Dropdown list */
    .org-dropdown-list {
      display: none;
      position: fixed;
      background: #fff;
      border: 1.5px solid #e2e8f0;
      border-radius: 5px;
      box-shadow: 0 6px 20px rgba(0,0,0,0.10);
      z-index: 1200;
      max-height: 216px;
      overflow-y: auto;
      overflow-x: hidden;
      scrollbar-width: thin;
      scrollbar-color: #cbd5e1 transparent;
    }
    .org-dropdown-list::-webkit-scrollbar { width: 4px; }
    .org-dropdown-list::-webkit-scrollbar-track { background: transparent; }
    .org-dropdown-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
    .org-dropdown-list::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
    .org-dropdown-list.open { display: block; }
    .org-dropdown-item:first-child { border-radius: 4px 4px 0 0; }
    .org-dropdown-item:last-child { border-radius: 0 0 4px 4px; }
    .org-dropdown-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 11px 14px;
      cursor: pointer;
      transition: background 0.12s;
    }
    .org-dropdown-item:not(:last-child) { border-bottom: 1px solid #f1f5f9; }
    .org-dropdown-item:hover { background: #f8fafc; }
    .org-dropdown-item.selected { background: #eff6ff; }
    .org-dropdown-item-icon {
      width: 28px; height: 28px; border-radius: 50%;
      background: #dbeafe; display: flex; align-items: center;
      justify-content: center; color: #2563eb; flex-shrink: 0;
    }
    .org-dropdown-item.selected .org-dropdown-item-icon { background: #dcfce7; color: #16a34a; }
    .org-dropdown-item-name { font-size: 14px; font-weight: 600; flex: 1; color: var(--foreground); }
    .org-dropdown-item-unverified { font-size: 11px; color: #94a3b8; font-weight: 500; }
    
    .verified-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 10px;
      background: #16a34a;
      color: white;
      border-radius: 9999px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.04em;
      flex-shrink: 0;
    }
    
    .verified-badge svg {
      width: 10px;
      height: 10px;
    }
    
    /* Button */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 10px 16px;
      border-radius: 5px;
      font-size: 15px;
      font-weight: 500;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.2s;
      border: none;
      font-family: inherit;
    }
    
    .btn-primary {
      background: #6B9FE4;
      color: #fff;
      font-weight: 600;
      box-shadow: 0 2px 10px rgba(107, 159, 228, 0.30);
    }
    
    .btn-primary:hover {
      background: #4F7FD4;
      box-shadow: 0 4px 14px rgba(79, 127, 212, 0.40);
    }
    
    .real-tool-btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 10px 20px;
      font-size: 14px;
      font-weight: 700;
      color: #fff;
      background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
      border: none;
      border-radius: 5px;
      text-decoration: none;
      box-shadow: 0 2px 10px rgba(37,99,235,0.28), 0 1px 3px rgba(37,99,235,0.18);
      transition: box-shadow 0.18s, transform 0.12s, background 0.18s;
      white-space: nowrap;
      letter-spacing: -0.01em;
    }
    .real-tool-btn:hover {
      background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
      box-shadow: 0 4px 18px rgba(37,99,235,0.36), 0 2px 6px rgba(37,99,235,0.22);
      transform: translateY(-1px);
    }
    .real-tool-btn:active {
      transform: translateY(0);
      box-shadow: 0 2px 8px rgba(37,99,235,0.22);
    }
    .real-tool-badge {
      font-size: 9.5px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: #93c5fd;
      background: rgba(255,255,255,0.12);
      border: 1px solid rgba(255,255,255,0.22);
      border-radius: 4px;
      padding: 2px 7px;
    }

    .btn-outline {
      background: white;
      border: 1px solid var(--border);
      color: var(--foreground);
    }
    
    .btn-outline:hover {
      background: var(--secondary);
    }
    
    .btn-ghost {
      background: transparent;
      color: var(--muted);
    }
    
    .btn-ghost:hover {
      background: var(--secondary);
      color: var(--foreground);
    }
    .step2-back-btn:hover {
      background: rgba(255,255,255,0.12) !important;
      color: #fff !important;
    }
    
    .btn-sm {
      padding: 6px 12px;
      font-size: 14px;
    }
    
    .btn-icon {
      padding: 8px;
      width: 42px;
      min-width: 42px;
      min-height: 42px;
      height: auto;
      flex-shrink: 0;
    }
    
    /* Navigation buttons */
    .nav-buttons {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 32px;
    }

    /* Step panels */
    /* ── Steps slider (same technique as step2 sub-step slider) ── */
    .steps-slider-wrap {
      overflow: hidden;
      width: 100%;
      isolation: isolate;
      transition: height 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .steps-slider {
      display: flex;
      align-items: flex-start; /* each panel uses its own natural height, not the tallest sibling's */
      width: 700%; /* 7 panels × 100% */
      transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
      will-change: transform;
    }
    .step-panel {
      width: calc(100% / 7);
      flex: 0 0 calc(100% / 7);
      min-width: 0;
    }

    /* ── Live Summary Panel ── */
    .live-summary {
      background: #fafbfc;
      border: 1.5px solid rgba(30,58,138,0.10);
      border-radius: 5px;
      padding: 18px 22px;
      margin-bottom: 24px;
    }
    .live-summary-header {
      display: flex;
      align-items: center;
      gap: 7px;
      font-size: 11.5px;
      font-weight: 650;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 16px;
    }
    .live-summary-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px 28px;
    }
    .summary-stat-label {
      font-size: 11.5px;
      color: var(--muted);
      font-weight: 500;
      margin-bottom: 3px;
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .summary-stat-value {
      font-size: 15px;
      font-weight: 650;
      color: var(--foreground);
      transition: color 0.2s;
    }
    .summary-stat-value.pending {
      color: rgba(30,58,138,0.28);
      font-weight: 400;
      font-size: 15px;
    }

    /* ── Step 2 sub-step slider ── */
    .step2-slider-wrap {
      overflow: hidden;
      width: 100%;
      transition: height 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .step2-slider {
      display: flex;
      align-items: flex-start; /* each screen uses its own natural height */
      width: 200%;
      transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
      will-change: transform;
    }
    .step2-slider.on-config {
      transform: translateX(-50%);
    }
    .step2-screen {
      width: 50%;
      flex: 0 0 50%;
      min-width: 0;
    }

    /* Step complete — green tick */
    .step-item.complete .step-number {
      background: #16a34a;
      position: relative;
    }
    .step-item.complete .step-number span { display: none; }
    .step-item.complete .step-number svg {
      display: block;
    }

    /* ── Step 4: Schedule ── */
    .schedule-options {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .schedule-option {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 18px 18px 18px 20px;
      border: 1.5px solid #e2e8f0;
      border-radius: 5px;
      cursor: pointer;
      background: #fff;
      transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s, background 0.18s;
      position: relative;
      user-select: none;
      overflow: hidden;
      box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    }
    .schedule-option::before {
      content: '';
      position: absolute;
      left: 0; top: 0; bottom: 0;
      width: 4px;
      border-radius: 5px 0 0 5px;
      background: #e2e8f0;
      transition: background 0.18s;
    }
    .schedule-option:hover {
      border-color: #bfdbfe;
      background: #f8faff;
      transform: translateY(-2px);
      box-shadow: 0 4px 16px rgba(37,99,235,0.08);
    }
    .schedule-option:active { transform: scale(0.985) translateY(0); }

    #schedOptImmediate:hover::before, #schedOptImmediate.selected::before { background: #38bdf8; }
    #schedOptLater:hover::before, #schedOptLater.selected::before { background: #a78bfa; }

    #schedOptImmediate.selected { border-color: #7dd3fc; background: #f0f9ff; box-shadow: 0 0 0 3px rgba(56,189,248,0.12), 0 4px 16px rgba(56,189,248,0.10); }
    #schedOptLater.selected { border-color: #c4b5fd; background: #faf5ff; box-shadow: 0 0 0 3px rgba(167,139,250,0.12), 0 4px 16px rgba(167,139,250,0.10); }

    .schedule-icon-box {
      width: 46px;
      height: 46px;
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: background 0.18s, color 0.18s;
    }
    #schedOptImmediate .schedule-icon-box { background: #e0f2fe; color: #0369a1; }
    #schedOptLater .schedule-icon-box { background: #ede9fe; color: #6d28d9; }
    #schedOptImmediate.selected .schedule-icon-box { background: #0ea5e9; color: #fff; }
    #schedOptLater.selected .schedule-icon-box { background: #8b5cf6; color: #fff; }

    .schedule-option-body { flex: 1; min-width: 0; }
    .schedule-option-title {
      font-size: 15px;
      font-weight: 600;
      color: var(--foreground);
    }
    .schedule-option-desc {
      font-size: 13.5px;
      color: var(--muted);
      margin-top: 3px;
    }

    .schedule-check {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      border: 2px solid #d1d5db;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: background 0.18s, border-color 0.18s;
    }
    .schedule-check svg { display: none; }
    .schedule-option.selected .schedule-check svg { display: block; }
    #schedOptImmediate.selected .schedule-check { background: #0ea5e9; border-color: #0ea5e9; }
    #schedOptLater.selected .schedule-check { background: #8b5cf6; border-color: #8b5cf6; }

    .schedule-datetime-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    @media (max-width: 480px) {
      .schedule-datetime-grid { grid-template-columns: 1fr; }
    }
    .schedule-utc-note {
      display: flex;
      align-items: center;
      gap: 7px;
      margin-top: 14px;
      font-size: 13.5px;
      color: var(--muted);
      padding: 10px 14px;
      background: #f0f9ff;
      border-radius: 5px;
      border-left: 3px solid #38bdf8;
    }
    .schedule-utc-note svg { flex-shrink: 0; color: #0ea5e9; }

    /* ── Step 5: Account Access slider ── */
    .step5-slider-wrap {
      overflow: hidden;
      width: 100%;
      transition: height 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .step5-slider {
      display: flex;
      align-items: flex-start; /* each screen uses its own natural height */
      width: 200%;
      transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
      will-change: transform;
    }
    .step5-slider.on-payment {
      transform: translateX(-50%);
    }
    .step5-screen {
      width: 50%;
      flex: 0 0 50%;
      min-width: 0;
    }

    /* ── Step 5: Auth form styles (s5a-) — matches auth.html exactly ── */
    /* Auth card header */
    .s5a-card-header {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 20px 20px 0;
      margin-bottom: 16px;
    }
    .s5a-header-icon {
      width: 44px;
      height: 44px;
      border-radius: 5px;
      background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
      border: 1.5px solid #bfdbfe;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .s5a-header-text { flex: 1; min-width: 0; }
    .s5a-header-title {
      font-size: 16px;
      font-weight: 700;
      color: var(--foreground);
      line-height: 1.2;
    }
    .s5a-header-sub {
      font-size: 13px;
      color: var(--muted);
      margin-top: 2px;
      line-height: 1.4;
    }
    /* Pill tab toggle */
    .s5a-tabs {
      display: flex;
      padding: 0 20px 16px;
      gap: 0;
    }
    .s5a-tabs-pill {
      display: flex;
      background: #f1f5f9;
      border-radius: 50px;
      padding: 4px;
      width: 100%;
      gap: 2px;
    }
    .s5a-tab {
      flex: 1;
      padding: 8px 12px;
      font-size: 14px;
      font-weight: 600;
      text-align: center;
      cursor: pointer;
      border: none;
      background: transparent;
      color: var(--muted);
      transition: all 0.2s;
      position: relative;
      font-family: inherit;
      border-radius: 50px;
      line-height: 1;
    }
    .s5a-tab:hover {
      color: var(--foreground);
    }
    .s5a-tab.active {
      color: var(--primary);
      background: #ffffff;
      box-shadow: 0 1px 4px rgba(0,0,0,0.10), 0 0 0 1px rgba(37,99,235,0.08);
    }
    .s5a-tab.active::after { display: none; }
    .s5a-form-content { padding: 0 20px 20px; }
    .s5a-form-group { margin-bottom: 14px; }
    @media (max-width: 480px) {
      .s5a-form-content { padding: 0 16px 18px; }
      .s5a-card-header { padding: 16px 16px 0; }
      .s5a-tabs { padding: 0 16px 14px; }
    }
    .s5a-form-label {
      display: block;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      margin-bottom: 6px;
      color: var(--muted);
    }
    .s5a-input-wrap { position: relative; }
    .s5a-input-icon {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      width: 15px;
      height: 15px;
      color: #94a3b8;
      pointer-events: none;
    }
    .s5a-input {
      width: 100%;
      padding: 10px 12px 10px 38px;
      font-size: 15px;
      border: 1.5px solid #e2e8f0;
      border-radius: 5px;
      background: #f8fafc;
      color: var(--foreground);
      font-family: inherit;
      transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
      box-sizing: border-box;
      outline: none;
    }
    .s5a-input:focus {
      background: #ffffff;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
    }
    .s5a-input::placeholder { color: #94a3b8; }
    .s5a-input-pwd { padding-right: 44px; }
    .s5a-pwd-toggle {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      cursor: pointer;
      color: #94a3b8;
      padding: 4px;
      display: flex;
      align-items: center;
      transition: color 0.15s;
    }
    .s5a-pwd-toggle:hover { color: var(--foreground); }
    .s5a-pwd-toggle svg { width: 16px; height: 16px; position: static; transform: none; }
    .s5a-submit-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      padding: 12px 16px;
      font-size: 15px;
      font-weight: 600;
      border-radius: 5px;
      border: none;
      cursor: pointer;
      font-family: inherit;
      transition: all 0.15s;
      margin-top: 4px;
    }
    .s5a-checkbox-row {
      display: flex;
      align-items: flex-start;
      gap: 9px;
    }
    .s5a-checkbox { margin-top: 3px; flex-shrink: 0; cursor: pointer; }
    .s5a-checkbox-label {
      font-size: 15px;
      color: var(--foreground);
      line-height: 1.5;
      cursor: pointer;
    }
    .s5a-link { color: var(--primary); text-decoration: none; }
    .s5a-link:hover { text-decoration: underline; }
    .s5a-form-notice {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 12px 14px;
      border-radius: 5px;
      margin-bottom: 16px;
    }
    .s5a-notice-error {
      background: #FEF2F2;
      border: 1px solid #FECACA;
    }
    .s5a-notice-icon { flex-shrink: 0; width: 18px; height: 18px; color: #dc2626; }
    .s5a-notice-text { font-size: 15px; color: var(--foreground); }
    /* Logged-in welcome card */
    .s5a-li-card {
      background: #ffffff;
      border-color: #e5e7eb;
      border-top: 3px solid #16a34a;
      padding: 20px 24px 16px;
    }
    .s5a-li-header {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 14px;
    }
    .s5a-li-avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: #f0fdf4;
      border: 2px solid #bbf7d0;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      position: relative;
    }
    .s5a-li-avatar-badge {
      position: absolute;
      bottom: -2px;
      right: -2px;
      width: 18px;
      height: 18px;
      background: #16a34a;
      border: 2px solid #fff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .s5a-li-identity { flex: 1; min-width: 0; }
    .s5a-li-status {
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      font-weight: 700;
      color: #16a34a;
      text-transform: uppercase;
      letter-spacing: 0.07em;
      margin-bottom: 4px;
    }
    .s5a-li-email {
      font-size: 15px;
      font-weight: 600;
      color: var(--foreground);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .s5a-li-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding-top: 13px;
      border-top: 1px solid #f3f4f6;
    }
    .s5a-li-tagline {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 12.5px;
      font-weight: 500;
      color: #15803d;
      background: #f0fdf4;
      padding: 5px 11px;
      border-radius: 20px;
      border: 1px solid #bbf7d0;
      margin: 0;
      line-height: 1;
    }
    /* Auth card — fully opaque white, no card padding (inner components handle own spacing) */
    #step5AuthCard {
      background: #ffffff;
      border-color: #e5e7eb;
      padding: 0;
      overflow: hidden;
    }
    /* Password strength indicator */
    .s5a-strength-bars {
      display: flex;
      gap: 4px;
      margin-top: 8px;
    }
    .s5a-strength-bar {
      flex: 1;
      height: 4px;
      background: #e5e7eb;
      border-radius: 2px;
      transition: background 0.2s;
    }
    .s5a-strength-bar.weak   { background: #EF4444; }
    .s5a-strength-bar.medium { background: #F59E0B; }
    .s5a-strength-bar.strong { background: #10B981; }
    .s5a-strength-text {
      font-size: 12px;
      margin-top: 5px;
      color: var(--muted);
    }
    .s5a-li-switch {
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 5px 11px;
      font-size: 13px;
      font-weight: 500;
      color: #6b7280;
      background: #f9fafb;
      border: 1px solid #e5e7eb;
      border-radius: 5px;
      cursor: pointer;
      font-family: inherit;
      transition: background 0.15s, color 0.15s, border-color 0.15s;
      white-space: nowrap;
    }
    .s5a-li-switch:hover {
      background: #f3f4f6;
      color: #374151;
      border-color: #d1d5db;
    }
    @media (max-width: 640px) {
      .s5a-li-tagline { display: none; }
      .s5a-li-switch-full { width: 100%; justify-content: center; }
    }
    /* ── Step 5: Payment ── */
    .credit-cards-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-bottom: 20px;
    }
    @media (max-width: 600px) {
      .credit-cards-grid { grid-template-columns: 1fr; gap: 10px; }
    }
    .credit-card {
      position: relative;
      border: 1.5px solid var(--border);
      border-radius: 5px;
      padding: 20px 14px 16px;
      cursor: pointer;
      text-align: center;
      transition: border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.15s;
      user-select: none;
      background: #fff;
      overflow: hidden;
    }
    .credit-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
      background: var(--border);
      transition: background 0.18s;
    }
    .credit-card:hover {
      border-color: var(--primary);
      box-shadow: 0 4px 16px rgba(37,99,235,0.10);
      transform: translateY(-2px);
    }
    .credit-card:hover::before { background: var(--primary); }
    .credit-card.selected {
      border-color: var(--primary);
      background: #f0f5ff;
      box-shadow: 0 0 0 3px rgba(37,99,235,0.12), 0 4px 16px rgba(37,99,235,0.10);
      transform: translateY(-2px);
    }
    .credit-card.selected::before { background: var(--primary); }
    .credit-card-badge {
      position: absolute;
      top: -1px;
      right: 10px;
      background: linear-gradient(135deg, #16a34a, #15803d);
      color: #fff;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 3px 9px;
      border-radius: 0 0 5px 5px;
      white-space: nowrap;
      box-shadow: 0 2px 6px rgba(21,128,61,0.25);
    }
    .credit-card-popular-badge {
      position: absolute;
      top: -1px;
      right: 10px;
      background: linear-gradient(135deg, var(--primary), #1d4ed8);
      color: #fff;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 3px 9px;
      border-radius: 0 0 5px 5px;
      white-space: nowrap;
      box-shadow: 0 2px 6px rgba(37,99,235,0.25);
    }
    .credit-card-icon {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: #f1f5f9;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 10px;
      transition: background 0.18s;
    }
    .credit-card.selected .credit-card-icon,
    .credit-card:hover .credit-card-icon { background: #dbeafe; }
    .credit-card-credits {
      font-size: 12px;
      color: var(--muted);
      font-weight: 600;
      margin-bottom: 6px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .credit-card-price {
      font-size: 28px;
      font-weight: 800;
      color: var(--foreground);
      line-height: 1;
      margin-bottom: 6px;
      letter-spacing: -0.02em;
    }
    .credit-card.selected .credit-card-price { color: var(--primary); }
    .credit-card-per {
      font-size: 11.5px;
      color: var(--muted);
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 20px;
      padding: 2px 8px;
      display: inline-block;
      transition: background 0.18s, border-color 0.18s;
    }
    .credit-card.selected .credit-card-per,
    .credit-card:hover .credit-card-per {
      background: #dbeafe;
      border-color: #bfdbfe;
      color: #1d4ed8;
    }
    .credit-card-saving {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 10.5px;
      font-weight: 700;
      letter-spacing: 0.03em;
      padding: 3px 8px;
      border-radius: 20px;
      margin-top: 8px;
    }
    .credit-card-saving--none {
      color: #9ca3af;
      background: transparent;
    }
    .credit-card-saving--green {
      color: #c2410c;
      background: #fff7ed;
      border: 1px solid #fed7aa;
    }
    .credit-card-saving--emerald {
      color: #6b21a8;
      background: #faf5ff;
      border: 1px solid #e9d5ff;
    }
    .credit-card.selected .credit-card-saving--green,
    .credit-card:hover .credit-card-saving--green {
      background: #ffedd5;
      border-color: #fdba74;
    }
    .credit-card.selected .credit-card-saving--emerald,
    .credit-card:hover .credit-card-saving--emerald {
      background: #f3e8ff;
      border-color: #d8b4fe;
    }
    .admin-test-card {
      border: 1.5px solid #9ca3af;
      border-radius: 5px;
      padding: 11px 14px;
      display: flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
      transition: border-color 0.15s, background 0.15s;
      user-select: none;
      margin-bottom: 22px;
      background: var(--secondary);
    }
    .admin-test-card:hover { border-color: #6b7280; }
    .admin-test-card.selected { border-color: #374151; background: #f0f0f0; }
    .admin-test-icon {
      width: 34px;
      height: 34px;
      border-radius: 5px;
      background: #f3f4f6;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .admin-test-info { flex: 1; }
    .admin-test-title {
      font-size: 14.5px;
      font-weight: 600;
      color: var(--foreground);
    }
    .admin-test-desc {
      font-size: 13px;
      color: var(--muted);
      margin-top: 1px;
    }
    .admin-test-checkbox {
      width: 18px;
      height: 18px;
      border-radius: 4px;
      border: 2px solid var(--border);
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s, border-color 0.15s;
    }
    .admin-test-card.selected .admin-test-checkbox {
      background: #6b7280;
      border-color: #6b7280;
    }
    .balance-summary {
      border: 1px solid #e5e7eb;
      border-radius: 5px;
      overflow: hidden;
      background: #fff;
    }
    .balance-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 11px 15px;
      font-size: 14.5px;
      border-bottom: 1px solid #f3f4f6;
      background: #fff;
    }
    .balance-row-label { flex: 1; min-width: 0; }
    @media (max-width: 420px) {
      .balance-row {
        flex-wrap: wrap;
        align-items: flex-start;
      }
      .balance-row-label { width: 100%; }
      .balance-row-value { margin-left: auto; }
    }
    .balance-row:last-child { border-bottom: none; }
    .balance-row-label { color: var(--muted); flex: 1; min-width: 0; }
    .balance-row-value { font-weight: 600; color: var(--foreground); text-align: right; white-space: nowrap; }
    .balance-row-value.insufficient { color: #dc2626; }
    .balance-row-value.sufficient { color: #16a34a; }
    .balance-row.summary-total {
      background: #f9fafb;
      border-top: 1px solid #e5e7eb;
    }
    .balance-row.summary-total .balance-row-label { font-weight: 600; color: #374151; font-size: 14.5px; }
    .balance-row.summary-total .balance-row-value { color: var(--foreground); }
    .balance-row.summary-total .balance-row-value.insufficient { color: #dc2626; }
    .balance-row.summary-total .balance-row-value.sufficient { color: #15803d; }
    .balance-row-bypassed {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 12.5px;
      font-weight: 600;
      color: #6b7280;
      background: #f3f4f6;
      border: 1px solid #e5e7eb;
      padding: 3px 9px;
      border-radius: 20px;
    }
    .insufficient-banner {
      display: none;
      align-items: center;
      gap: 10px;
      margin-top: 14px;
      padding: 11px 14px;
      background: #fef2f2;
      border: 1.5px solid #fecaca;
      border-radius: 5px;
      font-size: 14.5px;
      color: #dc2626;
    }
    .purchase-credits-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      margin-top: 12px;
      padding: 11px 20px;
      border-radius: 5px;
      border: none;
      background: var(--primary);
      color: #fff;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: opacity 0.15s;
    }
    .purchase-credits-btn:hover { opacity: 0.87; }

    /* Use existing credits card */
    .use-credits-card {
      display: none; /* shown via JS when balance is sufficient */
      align-items: center;
      gap: 14px;
      padding: 18px 20px 16px;
      border: 1px solid #e5e7eb;
      border-top: 3px solid #16a34a;
      border-radius: 5px;
      cursor: pointer;
      background: #ffffff;
      transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
      user-select: none;
      margin-bottom: 16px;
    }
    .use-credits-card:hover { border-color: #bbf7d0; border-top-color: #16a34a; background: #fafffe; box-shadow: 0 2px 8px rgba(22,163,74,0.07); }
    .use-credits-card.selected { border-color: #bbf7d0; border-top-color: #16a34a; background: #f0fdf4; box-shadow: 0 2px 8px rgba(22,163,74,0.09); }
    .use-credits-radio {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: 2px solid #9ca3af;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: border-color 0.15s;
    }
    .use-credits-card.selected .use-credits-radio { border-color: #16a34a; }
    .use-credits-radio-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: #16a34a;
      display: none;
    }
    .use-credits-card.selected .use-credits-radio-dot { display: block; }
    .use-credits-icon {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: #f0fdf4;
      border: 1.5px solid #bbf7d0;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .use-credits-info { flex: 1; min-width: 0; }
    .use-credits-title {
      font-size: 15px;
      font-weight: 600;
      color: var(--foreground);
      margin-bottom: 2px;
    }
    .use-credits-sub {
      font-size: 13.5px;
      color: var(--muted);
      margin-top: 2px;
    }
    .use-credits-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: #dcfce7;
      color: #15803d;
      border: 1px solid #bbf7d0;
      font-size: 12.5px;
      font-weight: 700;
      padding: 4px 11px;
      border-radius: 20px;
      white-space: nowrap;
      flex-shrink: 0;
    }
    @media (max-width: 480px) {
      .use-credits-card { gap: 10px; padding: 12px 14px; flex-wrap: wrap; }
      .use-credits-icon { display: none; }
      .use-credits-info { min-width: 0; flex: 1; }
      .use-credits-badge { margin-left: auto; }
    }
    .purchase-divider {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 16px;
    }
    .purchase-divider-line {
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--border), transparent);
    }
    .purchase-divider-text {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      white-space: nowrap;
      background: #f8fafc;
      border: 1px solid var(--border);
      padding: 4px 12px;
      border-radius: 20px;
    }

    /* ── Step 3: Prize Tier Builder ── */
    .prize-section-label {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 16px;
      background: #f8fafc;
      border: 1px solid var(--border);
      padding: 4px 12px;
      border-radius: 20px;
      width: fit-content;
    }
    .prize-tiers-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 14px;
    }
    .prize-tiers-empty {
      text-align: center;
      padding: 28px 0 12px;
      color: var(--muted);
      font-size: 14px;
    }
    .prize-tier-row {
      display: grid;
      grid-template-columns: 44px 1fr 104px 104px 36px;
      gap: 10px;
      align-items: center;
      background: #fff;
      border: 1.5px solid var(--border);
      border-radius: 5px;
      padding: 12px 14px;
      transition: border-color 0.18s, box-shadow 0.18s;
      box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    }
    .prize-tier-row:focus-within {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(37,99,235,0.08), 0 2px 8px rgba(0,0,0,0.06);
    }
    .prize-tier-badge {
      width: 44px;
      height: 44px;
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 800;
      flex-shrink: 0;
      letter-spacing: 0.02em;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    }
    .prize-tier-field { display: flex; flex-direction: column; gap: 4px; }
    .prize-tier-field-label {
      font-size: 10.5px;
      font-weight: 700;
      color: var(--muted);
      letter-spacing: 0.07em;
      text-transform: uppercase;
    }
    .prize-tier-input {
      width: 100%;
      height: 36px;
      background: #f8fafc;
      border: 1.5px solid #e2e8f0;
      border-radius: 5px;
      padding: 0 10px;
      font-family: inherit;
      font-size: 14.5px;
      color: var(--foreground);
      transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
      outline: none;
    }
    .prize-tier-input:focus {
      border-color: var(--primary);
      background: #fff;
      box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
    }
    /* Field green tick */
    .input-tick-wrap { position: relative; }
    .input-tick-wrap .input,
    .input-tick-wrap .prize-tier-input { padding-right: 36px; }
    .input-tick-icon {
      position: absolute;
      right: 11px;
      top: 50%;
      transform: translateY(-50%);
      color: #16a34a;
      display: none;
      pointer-events: none;
      line-height: 0;
    }
    .input-tick-icon.show { display: block; }
    .prize-tier-remove {
      width: 36px;
      height: 36px;
      border-radius: 5px;
      border: 1.5px solid #e2e8f0;
      background: #f8fafc;
      color: var(--muted);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background 0.15s, color 0.15s, border-color 0.15s;
      flex-shrink: 0;
      font-family: inherit;
    }
    .prize-tier-remove:hover:not(:disabled) { background: #fef2f2; border-color: #fca5a5; color: #ef4444; }
    .prize-tier-remove:disabled { opacity: 0.3; cursor: not-allowed; }
    .add-prize-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      width: 100%;
      padding: 11px 14px;
      background: #f8fafc;
      color: var(--primary);
      border: 1.5px dashed #bfdbfe;
      border-radius: 5px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      font-family: inherit;
      transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
      margin-top: 6px;
    }
    .add-prize-btn:hover {
      background: #eff6ff;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(37,99,235,0.06);
    }
    /* Prize totals strip */
    .prize-totals-strip {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 10px;
      margin-top: 20px;
    }
    .prize-total-item {
      background: #fff;
      border: 1.5px solid var(--border);
      border-radius: 5px;
      padding: 14px 12px 12px;
      text-align: center;
      position: relative;
      overflow: hidden;
      box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    }
    .prize-total-item::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
      background: var(--border);
      transition: background 0.2s;
    }
    .prize-total-item:first-child::before { background: #bfdbfe; }
    .prize-total-item:nth-child(2)::before { background: #e9d5ff; }
    .prize-total-item:last-child::before { background: #fed7aa; }
    .prize-total-label {
      font-size: 10.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--muted);
      margin-bottom: 8px;
    }
    .prize-total-value {
      font-size: 26px;
      font-weight: 800;
      color: var(--foreground);
      line-height: 1;
      transition: color 0.2s;
      letter-spacing: -0.02em;
    }
    .prize-total-value.val-warn { color: #dc2626; }
    .prize-total-value.val-dash { color: #cbd5e1; font-weight: 400; font-size: 20px; }
    .prize-validation-msg {
      margin-top: 12px;
      padding: 10px 14px;
      background: #fef2f2;
      border: 1px solid #fca5a5;
      border-radius: 5px;
      font-size: 13.5px;
      color: #dc2626;
      display: none;
      align-items: center;
      gap: 8px;
    }
    .prize-validation-msg.visible { display: flex; }
    /* Notification row */
    .notif-row {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      background: #f8fafc;
      border: 1.5px solid #e2e8f0;
      border-radius: 5px;
      padding: 14px;
    }
    .notif-checkbox {
      width: 18px;
      height: 18px;
      border-radius: 4px;
      accent-color: var(--primary);
      cursor: pointer;
      flex-shrink: 0;
      margin-top: 1px;
    }
    .notif-checkbox:disabled { cursor: not-allowed; opacity: 0.45; }
    .notif-label-text {
      font-size: 14.5px;
      font-weight: 600;
      color: var(--foreground);
      line-height: 1.45;
    }
    .notif-label-text.notif-disabled { color: var(--muted); }
    .notif-hint-text {
      font-size: 13px;
      color: var(--muted);
      margin-top: 3px;
      line-height: 1.4;
    }
    .notif-tooltip-wrap {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: default;
    }
    .notif-tooltip-wrap .notif-tip {
      display: none;
      position: absolute;
      left: 50%;
      bottom: calc(100% + 7px);
      transform: translateX(-50%);
      background: #1f2937;
      color: #fff;
      font-size: 12px;
      font-weight: 400;
      padding: 7px 12px;
      border-radius: 5px;
      white-space: nowrap;
      z-index: 200;
      pointer-events: none;
      box-shadow: 0 4px 14px rgba(0,0,0,0.22);
    }
    .notif-tooltip-wrap:hover .notif-tip { display: block; }
    @media (max-width: 620px) {
      .prize-tier-row {
        grid-template-columns: 44px 1fr 1fr 36px;
        grid-template-rows: auto auto;
        align-items: start;
      }
      .prize-tier-badge { grid-row: 1; grid-column: 1; align-self: center; }
      .prize-tier-field.desc-field { grid-column: 2 / 4; grid-row: 1; }
      .prize-tier-field.winners-field { grid-column: 2; grid-row: 2; }
      .prize-tier-field.reserves-field { grid-column: 3; grid-row: 2; }
      .prize-tier-remove { grid-column: 4; grid-row: 1 / 3; align-self: center; }
      .prize-totals-strip { grid-template-columns: 1fr 1fr; }
    }

    /* Entry method cards */
    .entry-methods {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: 4px;
    }

    .entry-card {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      padding: 18px 18px 18px 20px;
      border: 1.5px solid #e2e8f0;
      border-radius: 5px;
      background: #fff;
      cursor: pointer;
      transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s, background 0.18s;
      position: relative;
      user-select: none;
      overflow: hidden;
      box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    }
    /* coloured left accent bar */
    .entry-card::before {
      content: '';
      position: absolute;
      left: 0; top: 0; bottom: 0;
      width: 4px;
      border-radius: 5px 0 0 5px;
      background: #e2e8f0;
      transition: background 0.18s;
    }
    .entry-card:hover {
      border-color: #bfdbfe;
      background: #f8faff;
      transform: translateY(-2px);
      box-shadow: 0 4px 16px rgba(37,99,235,0.08);
    }
    .entry-card:active { transform: scale(0.985) translateY(0); }

    /* per-option accent colours */
    #entryCard1:hover::before, #entryCard1.selected::before { background: #38bdf8; }
    #entryCard2:hover::before, #entryCard2.selected::before { background: #4ade80; }
    #entryCard3:hover::before, #entryCard3.selected::before { background: #a78bfa; }

    #entryCard1.selected { border-color: #7dd3fc; background: #f0f9ff; box-shadow: 0 0 0 3px rgba(56,189,248,0.12), 0 4px 16px rgba(56,189,248,0.10); }
    #entryCard2.selected { border-color: #86efac; background: #f0fdf4; box-shadow: 0 0 0 3px rgba(74,222,128,0.12), 0 4px 16px rgba(74,222,128,0.10); }
    #entryCard3.selected { border-color: #c4b5fd; background: #faf5ff; box-shadow: 0 0 0 3px rgba(167,139,250,0.12), 0 4px 16px rgba(167,139,250,0.10); }

    .entry-card-num {
      width: 46px;
      height: 46px;
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: all 0.18s;
      margin-top: 1px;
    }
    /* default icon box colours */
    #entryCard1 .entry-card-num { background: #e0f2fe; color: #0369a1; }
    #entryCard2 .entry-card-num { background: #dcfce7; color: #15803d; }
    #entryCard3 .entry-card-num { background: #ede9fe; color: #6d28d9; }
    /* selected icon box colours */
    #entryCard1.selected .entry-card-num { background: #0ea5e9; color: #fff; }
    #entryCard2.selected .entry-card-num { background: #22c55e; color: #fff; }
    #entryCard3.selected .entry-card-num { background: #8b5cf6; color: #fff; }

    .entry-card-body { flex: 1; min-width: 0; }
    .entry-card-title {
      font-size: 15px;
      font-weight: 700;
      color: var(--foreground);
      margin-bottom: 5px;
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .entry-card-desc {
      font-size: 13.5px;
      color: var(--muted);
      line-height: 1.55;
    }

    .entry-card-check {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      border: 2px solid #e2e8f0;
      flex-shrink: 0;
      margin-top: 2px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.18s;
      background: #f8fafc;
    }
    #entryCard1.selected .entry-card-check { background: #0ea5e9; border-color: #0ea5e9; }
    #entryCard2.selected .entry-card-check { background: #22c55e; border-color: #22c55e; }
    #entryCard3.selected .entry-card-check { background: #8b5cf6; border-color: #8b5cf6; }
    .entry-card-check svg { display: none; }
    .entry-card.selected .entry-card-check svg { display: block; }

    .entry-card-tag {
      display: inline-flex;
      align-items: center;
      padding: 2px 8px;
      border-radius: 20px;
      font-size: 10.5px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .entry-tag-simple   { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
    .entry-tag-standard { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
    .entry-tag-advanced { background: #ede9fe; color: #6d28d9; border: 1px solid #ddd6fe; }

    @media (max-width: 600px) {
      .entry-card { padding: 15px 14px 15px 18px; gap: 13px; }
      .entry-card-num { width: 40px; height: 40px; border-radius: 5px; }
      .entry-card-title { font-size: 14.5px; }
      .entry-card-desc { font-size: 13px; }
    }

    /* ── Step 2 config panels ── */
    .entry-config-section { margin-bottom: 0; }

    .config-section-title {
      font-size: 15px;
      font-weight: 600;
      color: var(--foreground);
      margin-bottom: 6px;
    }
    .config-section-desc {
      font-size: 14.5px;
      color: var(--muted);
      line-height: 1.55;
      margin-bottom: 14px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--border);
    }

    .notice-box {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      padding: 12px 14px;
      background: rgba(59,130,246,0.07);
      border: 1px solid rgba(59,130,246,0.18);
      border-radius: 5px;
      font-size: 14.5px;
      color: var(--foreground);
      line-height: 1.5;
    }
    .notice-box .notice-icon {
      flex-shrink: 0;
      color: #3b82f6;
      margin-top: 1px;
      line-height: 0;
    }

    .field-error {
      color: #dc2626;
      font-size: 13.5px;
      margin-top: 6px;
    }

    .upload-zone {
      border: 2px dashed rgba(30,58,138,0.20);
      border-radius: 5px;
      padding: 32px 20px;
      text-align: center;
      cursor: pointer;
      transition: all 0.18s;
      background: rgba(255,255,255,0.5);
    }
    .upload-zone:hover, .upload-zone.drag-over {
      border-color: #6B9FE4;
      background: rgba(107,159,228,0.06);
    }
    .upload-zone-icon {
      width: 40px;
      height: 40px;
      margin: 0 auto 12px;
      background: var(--primary-light);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--primary);
    }
    .upload-zone p { font-size: 15px; color: var(--muted); margin-bottom: 0; }

    /* Upload info boxes */
    .upload-info-callout {
      display: flex;
      gap: 10px;
      background: var(--warning-light);
      border: 1px solid rgba(245, 158, 11, 0.28);
      border-radius: 5px;
      padding: 12px 14px;
      margin-top: 12px;
      font-size: 14.5px;
      color: var(--foreground);
      line-height: 1.55;
    }
    .upload-info-callout svg { flex-shrink: 0; color: var(--warning); margin-top: 2px; }
    .upload-info-callout ul { margin: 6px 0 0 16px; }
    .upload-info-callout li { margin-bottom: 3px; }
    .upload-use-if {
      background: var(--blue-light);
      border: 1px solid rgba(59, 130, 246, 0.22);
      border-radius: 5px;
      padding: 12px 14px;
      margin-bottom: 16px;
      font-size: 14.5px;
      color: var(--foreground);
      line-height: 1.55;
    }
    .upload-use-if-title {
      font-weight: 600;
      font-size: 14px;
      color: var(--blue);
      margin-bottom: 7px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .upload-use-if ul { margin: 0 0 0 16px; }
    .upload-use-if li { margin-bottom: 4px; }
    .upload-use-if-note {
      margin-top: 8px;
      font-size: 14.5px;
      color: var(--muted);
    }
    .upload-excel-guide {
      margin-top: 10px;
      border: 1px solid var(--border);
      border-radius: 5px;
      overflow: hidden;
      font-size: 14.5px;
    }
    .upload-excel-guide summary {
      padding: 10px 14px;
      cursor: pointer;
      font-weight: 500;
      color: var(--primary);
      background: var(--secondary);
      display: flex;
      align-items: center;
      gap: 7px;
      list-style: none;
      user-select: none;
    }
    .upload-excel-guide summary::-webkit-details-marker { display: none; }
    .upload-excel-guide[open] summary { border-bottom: 1px solid var(--border); }
    .upload-excel-guide-caret { margin-left: auto; transition: transform 0.2s; }
    .upload-excel-guide[open] .upload-excel-guide-caret { transform: rotate(180deg); }
    .upload-excel-guide-body {
      padding: 13px 15px;
      background: #fff;
      color: var(--foreground);
      line-height: 1.6;
    }
    .upload-excel-guide-body ol { margin: 8px 0 0 18px; }
    .upload-excel-guide-body li { margin-bottom: 5px; }
    .upload-excel-guide-body code {
      background: var(--secondary);
      padding: 1px 5px;
      border-radius: 3px;
      font-family: monospace;
      font-size: 12.5px;
    }

    .file-summary-bar {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      background: var(--secondary);
      border: 1px solid var(--border);
      border-radius: 5px;
      margin-bottom: 16px;
    }
    .file-summary-bar .file-icon { color: var(--primary); flex-shrink: 0; }
    .file-name {
      font-size: 14.5px;
      font-weight: 500;
      flex: 1;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .file-rows-badge { font-size: 13px; color: var(--muted); white-space: nowrap; }
    .file-summary-actions { display: flex; gap: 6px; flex-shrink: 0; }

    .preview-table { width: 100%; border-collapse: collapse; font-size: 14px; }
    .preview-table th {
      background: #dbeafe;
      color: #1e40af;
      padding: 8px 12px;
      text-align: left;
      font-weight: 600;
      border-bottom: 1px solid #bfdbfe;
      white-space: nowrap;
    }
    .preview-table td {
      padding: 7px 12px;
      border-bottom: 1px solid rgba(229,231,235,0.7);
    }
    .preview-table tr:last-child td { border-bottom: none; }

    .radio-group { display: flex; flex-direction: column; gap: 8px; }
    .radio-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      border: 1px solid var(--border);
      border-radius: 5px;
      cursor: pointer;
      font-size: 15px;
      transition: all 0.15s;
      background: white;
      user-select: none;
    }
    .radio-item:hover { border-color: #6B9FE4; background: rgba(107,159,228,0.04); }
    .radio-item.selected { border-color: #6B9FE4; background: rgba(107,159,228,0.07); }
    .radio-item input[type="radio"] { accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }
    .radio-badge {
      font-size: 11px;
      font-weight: 600;
      padding: 2px 7px;
      background: var(--primary-light);
      color: var(--primary);
      border-radius: 9999px;
      margin-left: auto;
    }

    .select {
      width: 100%;
      padding: 10px 12px;
      border: 1px solid var(--border);
      border-radius: 5px;
      font-size: 15px;
      font-family: inherit;
      outline: none;
      background: white;
      cursor: pointer;
      transition: border-color 0.2s;
      color: var(--foreground);
    }
    .select:focus { border-color: var(--primary); }

    /* Header detection badge */
    .header-detect-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 13.5px;
      font-weight: 600;
      padding: 4px 11px;
      border-radius: 9999px;
      margin-bottom: 10px;
    }
    .header-detect-badge.detected {
      background: #dbeafe;
      color: #1d4ed8;
      border: 1px solid #93c5fd;
    }
    .header-detect-badge.not-detected {
      background: rgba(245, 158, 11, 0.1);
      color: #b45309;
      border: 1px solid rgba(245, 158, 11, 0.25);
    }

    /* Mini-preview for progressive disclosure */
    .mini-preview-wrap {
      overflow-x: auto;
      border: 1px solid var(--border);
      border-radius: 5px;
      margin-top: 10px;
    }
    .mini-preview-table { width: 100%; border-collapse: collapse; font-size: 13px; }
    .mini-preview-table th {
      background: #dbeafe;
      color: #1e40af;
      padding: 6px 10px;
      text-align: left;
      font-weight: 600;
      border-bottom: 1px solid #bfdbfe;
      white-space: nowrap;
    }
    .mini-preview-table td {
      padding: 5px 10px;
      border-bottom: 1px solid rgba(229,231,235,0.7);
    }
    .mini-preview-table tr:last-child td { border-bottom: none; }
    .mini-preview-note {
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 12px;
      color: var(--muted);
      margin-top: 6px;
    }

    /* Modal / Dialog */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.45);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 700;
      padding: 20px;
    }
    
    .modal {
      background: white;
      border-radius: 5px;
      max-width: 580px;
      width: 100%;
      max-height: calc(100vh - 40px);
      overflow-y: auto;
      box-shadow: 0 28px 70px rgba(0,0,0,0.22);
    }
    
    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 24px;
      border-bottom: 1px solid var(--border);
    }
    
    .modal-title {
      font-size: 18px;
      font-weight: 600;
    }
    
    .modal-close {
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 5px;
      background: transparent;
      border: none;
      color: var(--muted);
      cursor: pointer;
      transition: all 0.2s;
    }
    
    .modal-close:hover {
      background: var(--secondary);
      color: var(--foreground);
    }
    
    .modal-body {
      padding: 24px;
    }
    
    .modal-footer {
      display: flex;
      justify-content: flex-end;
      gap: 12px;
      padding: 16px 24px;
      border-top: 1px solid var(--border);
      background: var(--secondary);
    }
    
    /* KYC Section */
    .kyc-section {
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px solid var(--border);
    }
    
    .kyc-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 14px;
    }
    
    .kyc-icon {
      width: 36px;
      height: 36px;
      background: var(--primary-light);
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--primary);
      flex-shrink: 0;
    }
    
    .kyc-title {
      font-weight: 600;
      font-size: 14px;
    }
    
    .kyc-subtitle {
      font-size: 12px;
      color: var(--muted);
      margin-top: 2px;
    }
    
    .kyc-optional-badge {
      display: inline-flex;
      padding: 2px 8px;
      background: var(--secondary);
      color: var(--muted);
      border-radius: 9999px;
      font-size: 11px;
      font-weight: 500;
      margin-left: 8px;
    }
    
    .kyc-benefits {
      margin-top: 12px;
      padding: 10px 12px;
      background: #E6F1FF;
      border: 1px solid rgba(37, 99, 235, 0.2);
      border-radius: 5px;
    }
    
    .kyc-benefits-list {
      display: flex;
      flex-direction: row;
      gap: 12px;
      flex-wrap: wrap;
    }
    
    .kyc-benefit-item {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      color: var(--foreground);
    }
    
    .kyc-benefit-item svg {
      color: var(--primary);
      flex-shrink: 0;
    }

    .btn-get-verified {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      margin-top: 16px;
      padding: 13px 20px;
      background: var(--primary);
      color: #ffffff;
      border-radius: 5px;
      text-decoration: none;
      font-size: 15px;
      font-weight: 600;
      letter-spacing: 0.01em;
      transition: opacity 0.15s, transform 0.15s;
      cursor: pointer;
    }
    .btn-get-verified:hover {
      opacity: 0.88;
      transform: translateY(-1px);
    }
    .btn-get-verified:active {
      transform: translateY(0);
    }

    /* Hide modal by default */
    .modal-overlay.hidden {
      display: none;
    }

    /* ── Modal: mobile bottom-sheet ─────────────────────────── */
    @media (max-width: 560px) {
      .modal-overlay {
        padding: 0;
        align-items: flex-end;
      }
      .modal {
        border-radius: 20px 20px 0 0;
        max-height: 92dvh;
        max-width: 100%;
        width: 100%;
      }
      .modal-header {
        padding: 16px 20px 14px;
      }
      .modal-title {
        font-size: 16px;
      }
      .modal-body {
        padding: 16px 20px;
      }
      .kyc-section {
        margin-top: 16px;
        padding-top: 16px;
      }
      .kyc-benefits-list {
        flex-direction: column;
        gap: 8px;
      }
      .btn-get-verified {
        font-size: 15px;
        padding: 14px 20px;
      }
      .modal-footer {
        flex-direction: column-reverse;
        gap: 8px;
        padding: 12px 16px 20px;
      }
      .modal-footer .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
      }
    }
  

    /* ══════════════════════════════════════════
       STEP 6 – REVIEW & RUN DRAW
    ══════════════════════════════════════════ */

    /* Hero summary banner */
    /* ── Step 6: Review ── */
    .rv-wrap {
      border: 1px solid var(--border);
      border-radius: 5px;
      background: #fff;
      overflow: hidden;
      margin-bottom: 16px;
    }
    .rv-section { padding: 13px 20px; }
    .rv-section + .rv-section { border-top: 1px solid var(--border); }
    .rv-title {
      font-size: 9.5px;
      font-weight: 800;
      letter-spacing: 0.13em;
      text-transform: uppercase;
      color: var(--primary);
      margin-bottom: 8px;
    }
    .rv-row {
      display: grid;
      grid-template-columns: 140px 1fr;
      gap: 0 10px;
      padding: 3px 0;
      align-items: start;
    }
    .rv-lbl {
      font-size: 13.5px;
      color: var(--muted);
      padding-top: 1px;
    }
    .rv-val {
      font-size: 13.5px;
      color: var(--foreground);
      font-weight: 500;
      word-break: break-word;
    }

    /* Inline badges */
    .rv-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 1.5px 7px;
      border-radius: 99px;
      font-size: 11px;
      font-weight: 600;
      line-height: 1.6;
    }
    .rv-badge-green  { background: #dcfce7; color: #15803d; }
    .rv-badge-blue   { background: #dbeafe; color: #1d4ed8; }
    .rv-badge-orange { background: #fef3c7; color: #b45309; }
    .rv-badge-purple { background: #ede9fe; color: #7c3aed; }
    .rv-badge-gray   { background: #f3f4f6; color: #6b7280; }

    /* Prize tiers table */
    .prz-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13.5px;
      margin: 6px 0 2px;
    }
    .prz-table thead th {
      font-size: 9.5px;
      font-weight: 700;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      color: var(--muted);
      padding: 0 0 5px;
      text-align: left;
      border-bottom: 1px solid var(--border);
    }
    .prz-table thead th:not(:first-child) { text-align: right; }
    .prz-table tbody td {
      padding: 4px 0;
      border-bottom: 1px solid #f3f4f6;
      color: var(--foreground);
    }
    .prz-table tbody td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
    .prz-table tbody tr:last-child td { border-bottom: none; }
    .prz-table tfoot td {
      font-weight: 600;
      padding: 5px 0 0;
      border-top: 1px solid var(--border);
      color: var(--foreground);
    }
    .prz-table tfoot td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }

    /* Cert notice */
    .cert-notice {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      background: #f0f6ff;
      border: 1px solid #c7d9f8;
      border-radius: 5px;
      padding: 10px 14px;
      margin-bottom: 14px;
      font-size: 13.5px;
      color: #1e3a8a;
      line-height: 1.5;
    }
    .cert-notice svg { flex-shrink: 0; margin-top: 1px; }

    /* Terms acknowledgement notice */
    .terms-ack-notice {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      background: #f8faf7;
      border: 1px solid #c3d9be;
      border-radius: 5px;
      padding: 10px 14px;
      margin-bottom: 14px;
      font-size: 13.5px;
      color: #1a3d14;
      line-height: 1.55;
    }
    .terms-ack-notice svg { color: #16a34a; }
    .terms-ack-link {
      color: #16a34a;
      text-decoration: underline;
      text-underline-offset: 2px;
      font-weight: 500;
    }
    .terms-ack-link:hover { color: #15803d; }

    /* Run Draw button */
    @keyframes runDrawPulse {
      0%, 100% { box-shadow: 0 2px 10px rgba(22,163,74,0.28); }
      50%       { box-shadow: 0 2px 22px rgba(22,163,74,0.54); }
    }
    .run-draw-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 10px 16px;
      background: #16a34a;
      color: #fff;
      border: none;
      border-radius: 5px;
      font-family: inherit;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      letter-spacing: 0.01em;
      animation: runDrawPulse 2.6s ease-in-out infinite;
      transition: background 0.15s, transform 0.1s;
    }
    .run-draw-btn:hover  { background: #15803d; transform: translateY(-1px); animation: none; box-shadow: 0 4px 18px rgba(22,163,74,0.42); }
    .run-draw-btn:active { background: #166534; transform: translateY(0); }


    /* ── Step 7: Execution & Results panel ── */
    .exec-panel { padding: 52px 0 60px; }
    .exec-lock-badge {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      background: rgba(22, 163, 74, 0.16);
      border: 1px solid rgba(22, 163, 74, 0.38);
      border-radius: 100px;
      padding: 5px 13px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.09em;
      text-transform: uppercase;
      color: #86efac;
      margin-bottom: 22px;
    }
    .exec-lock-badge svg { flex-shrink: 0; }
    .exec-title {
      font-size: 36px;
      font-weight: 700;
      color: #ffffff;
      letter-spacing: -0.03em;
      line-height: 1.15;
      margin-bottom: 12px;
    }
    .exec-sub {
      font-size: 15px;
      color: rgba(255, 255, 255, 0.62);
      line-height: 1.6;
      margin-bottom: 36px;
    }
    /* 3-step sequence */
    .exec-steps {
      display: flex;
      flex-direction: column;
      background: rgba(255, 255, 255, 0.07);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 5px;
      overflow: hidden;
    }
    @keyframes execStepSpin { to { transform: rotate(360deg); } }
    .exec-step {
      display: flex;
      align-items: center;
      gap: 18px;
      padding: 20px 24px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.07);
      transition: opacity 0.4s ease, background 0.3s ease;
    }
    .exec-step:last-child { border-bottom: none; }
    .exec-step[data-state="pending"]  { opacity: 0.32; }
    .exec-step[data-state="active"]   { opacity: 1; background: rgba(255, 255, 255, 0.04); }
    .exec-step[data-state="complete"] { opacity: 1; }
    .exec-step-ind {
      width: 28px; height: 28px;
      border-radius: 50%;
      border: 2px solid rgba(255, 255, 255, 0.22);
      flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      transition: border-color 0.2s, background 0.2s;
    }
    .exec-step[data-state="active"] .exec-step-ind {
      border-color: #16a34a;
      border-top-color: transparent;
      animation: execStepSpin 0.7s linear infinite;
    }
    .exec-step[data-state="complete"] .exec-step-ind {
      border-color: #16a34a;
      background: #16a34a;
    }
    .exec-step-check { display: none; }
    .exec-step[data-state="complete"] .exec-step-check { display: block; }
    .exec-step-label {
      font-size: 16.5px;
      font-weight: 500;
      color: #ffffff;
      line-height: 1.4;
    }
    .exec-step[data-state="pending"] .exec-step-label { color: rgba(255, 255, 255, 0.45); }

    /* ── Result phase ── */
    @keyframes resultFadeIn {
      from { opacity: 0; transform: translateY(18px); }
      to   { opacity: 1; transform: translateY(0);    }
    }
    @keyframes resultFadeOut {
      from { opacity: 1; transform: translateY(0);    }
      to   { opacity: 0; transform: translateY(-14px); }
    }
    @keyframes resultCheckScale {
      0%   { transform: scale(0.4); opacity: 0; }
      60%  { transform: scale(1.15); opacity: 1; }
      100% { transform: scale(1); }
    }
    .result-phase {
      display: none;
      padding: 52px 0 60px;
    }
    .result-phase.visible {
      display: block;
      animation: resultFadeIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }
    .result-phase.leaving {
      animation: resultFadeOut 0.45s ease-in forwards;
    }
    .result-check-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 64px;
      height: 64px;
      border-radius: 50%;
      background: rgba(22, 163, 74, 0.18);
      border: 1.5px solid rgba(22, 163, 74, 0.45);
      margin-bottom: 28px;
      animation: resultCheckScale 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
    }
    .result-success-badge {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      background: rgba(22, 163, 74, 0.16);
      border: 1px solid rgba(22, 163, 74, 0.38);
      border-radius: 100px;
      padding: 5px 13px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.09em;
      text-transform: uppercase;
      color: #86efac;
      margin-bottom: 22px;
    }
    .result-success-badge svg { flex-shrink: 0; }
    .result-title {
      font-size: 36px;
      font-weight: 700;
      color: #ffffff;
      letter-spacing: -0.03em;
      line-height: 1.15;
      margin-bottom: 12px;
    }
    .result-sub {
      font-size: 15px;
      color: rgba(255, 255, 255, 0.62);
      line-height: 1.6;
    }
    /* Processing bar shown after completion */
    .result-processing {
      margin-top: 36px;
      opacity: 0;
      transition: opacity 0.6s ease;
    }
    .result-processing.visible { opacity: 1; }
    .result-progress-track {
      height: 2px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 2px;
      overflow: hidden;
      margin-bottom: 14px;
    }
    @keyframes progressFill {
      from { transform: scaleX(0); }
      to   { transform: scaleX(1); }
    }
    .result-progress-fill {
      height: 100%;
      background: linear-gradient(90deg, #16a34a, #4ade80);
      transform-origin: left;
      transform: scaleX(0);
    }
    .result-progress-fill.running {
      animation: progressFill 3.2s cubic-bezier(0.4, 0, 0.15, 1) forwards;
    }
    .result-processing-row {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    @keyframes dotPulse {
      0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
      40%            { opacity: 0.9;  transform: scale(1);   }
    }
    .result-dot {
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.5);
      animation: dotPulse 1.4s ease-in-out infinite;
    }
    .result-dot:nth-child(2) { animation-delay: 0.2s; }
    .result-dot:nth-child(3) { animation-delay: 0.4s; }
    .result-processing-text {
      font-size: 13.5px;
      color: rgba(255, 255, 255, 0.72);
      letter-spacing: 0.01em;
      transition: opacity 0.4s ease;
    }
    @media (max-width: 540px) {
      .exec-title   { font-size: 27px; }
      .result-title { font-size: 27px; }
      .exec-step    { padding: 18px 20px; gap: 14px; }
      .exec-step-ind { width: 24px; height: 24px; }
      .exec-step-label { font-size: 15.5px; }
      .result-check-icon { width: 54px; height: 54px; }
    }

    /* Mobile badge text helpers */
    .badge-text-mobile { display: none; }
    .badge-text-desktop { display: inline; }
    @media (max-width: 480px) {
      .badge-text-mobile  { display: inline; }
      .badge-text-desktop { display: none; }
    }

    /* Prevent iOS Safari zoom on input focus (must be ≥16px) */
    input:not([type=checkbox]):not([type=radio]):not([type=range]),
    textarea, select { font-size: max(16px, 1em); }

    /* ── Live Screen Share card ── */
    .lss-card {
      border: 1px solid var(--border);
      border-radius: 5px;
      background: #fff;
      overflow: hidden;
      margin-bottom: 16px;
    }
    .lss-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 20px;
      gap: 16px;
      cursor: pointer;
      user-select: none;
    }
    .lss-header-left {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .lss-icon {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      background: rgba(59,130,246,0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: #3b82f6;
    }
    .lss-title {
      font-size: 14px;
      font-weight: 600;
      color: var(--foreground);
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .lss-optional-badge {
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      background: #f3f4f6;
      color: var(--muted);
      padding: 2px 6px;
      border-radius: 99px;
    }
    .lss-desc {
      font-size: 12.5px;
      color: var(--muted);
      margin-top: 2px;
      line-height: 1.4;
    }
    /* Toggle switch */
    .lss-toggle { position: relative; flex-shrink: 0; }
    .lss-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
    .lss-toggle-track {
      display: block;
      width: 40px;
      height: 22px;
      background: #d1d5db;
      border-radius: 99px;
      transition: background 0.2s;
      cursor: pointer;
      position: relative;
    }
    .lss-toggle-track::after {
      content: '';
      position: absolute;
      top: 3px;
      left: 3px;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: #fff;
      box-shadow: 0 1px 3px rgba(0,0,0,0.18);
      transition: transform 0.2s;
    }
    .lss-toggle input:checked + .lss-toggle-track { background: var(--primary); }
    .lss-toggle input:checked + .lss-toggle-track::after { transform: translateX(18px); }
    /* Body */
    .lss-body {
      border-top: 1px solid var(--border);
      padding: 16px 20px;
      display: none;
    }
    .lss-body.visible { display: block; }
    /* Start button */
    .lss-start-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 16px;
      background: var(--primary);
      color: #fff;
      border: none;
      border-radius: 5px;
      font-family: inherit;
      font-size: 13.5px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.15s;
      margin-bottom: 10px;
    }
    .lss-start-btn:hover { background: #1e40af; }
    .lss-hint {
      font-size: 12px;
      color: var(--muted);
      line-height: 1.5;
    }
    /* Live badge */
    .lss-live-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 3px 10px 3px 8px;
      background: rgba(239,68,68,0.1);
      border: 1px solid rgba(239,68,68,0.25);
      border-radius: 99px;
      font-size: 11.5px;
      font-weight: 700;
      color: #dc2626;
      letter-spacing: 0.02em;
      margin-bottom: 12px;
    }
    .lss-live-dot {
      width: 7px;
      height: 7px;
      background: #ef4444;
      border-radius: 50%;
      animation: lssLivePulse 1.4s ease-in-out infinite;
    }
    @keyframes lssLivePulse {
      0%, 100% { opacity: 1; }
      50%       { opacity: 0.25; }
    }
    /* Link row */
    .lss-link-row {
      display: flex;
      gap: 8px;
      margin-bottom: 10px;
    }
    .lss-link-input {
      flex: 1;
      min-width: 0;
      padding: 8px 12px;
      border: 1px solid var(--border);
      border-radius: 5px;
      font-family: inherit;
      font-size: 12.5px;
      color: var(--foreground);
      background: #f9fafb;
      outline: none;
    }
    .lss-copy-btn {
      padding: 8px 14px;
      background: var(--primary);
      color: #fff;
      border: none;
      border-radius: 5px;
      font-family: inherit;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.15s;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .lss-copy-btn:hover { background: #1e40af; }
    .lss-copy-btn.copied { background: #16a34a; }
    /* Stop sharing */
    .lss-stop-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      background: transparent;
      color: #ef4444;
      border: 1px solid rgba(239,68,68,0.3);
      border-radius: 5px;
      font-family: inherit;
      font-size: 12.5px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s;
      margin-top: 10px;
    }
    .lss-stop-btn:hover { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.5); }

/* ── Local Time Strip ───────────────────────────────────────────────── */
.local-time-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 9px 24px;
  font-family: 'DM Sans', system-ui, sans-serif;
}
.local-time-icon {
  display: flex;
  align-items: center;
  color: #93c5fd;
  flex-shrink: 0;
  opacity: 0.9;
}
.local-time-label {
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.local-time-divider {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,0.12);
  border-radius: 1px;
}
.local-time-clock {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,0.92);
  font-size: 13px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.local-time-sep {
  color: rgba(255,255,255,0.15);
  font-size: 14px;
}
.local-time-tz {
  color: rgba(255,255,255,0.55);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}
.local-time-toggle {
  position: absolute;
  right: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 5px;
  color: rgba(255,255,255,0.6);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  cursor: pointer;
  transition: all 0.15s;
}
.local-time-toggle:hover {
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.25);
}
.local-time-bar {
  position: relative;
}
.local-time-hidden-bar {
  display: flex;
  justify-content: flex-end;
  padding: 4px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.local-time-show-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  color: rgba(255,255,255,0.5);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  padding: 3px 9px;
  cursor: pointer;
  transition: all 0.15s;
}
.local-time-show-btn:hover {
  background: rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.85);
}
@media (max-width: 500px) {
  .local-time-sep,
  .local-time-tz { display: none; }
  /* Add right padding so the absolute "Hide" button doesn't overlap the clock */
  .local-time-bar { padding-right: 70px; padding-left: 14px; justify-content: flex-start; }
  .local-time-toggle { right: 10px; }
  /* Hide the verbose label + divider — the clock already contains full date */
  .local-time-label,
  .local-time-divider { display: none; }
}
@media (max-width: 380px) {
  /* On very small screens show only HH:MM:SS to fit in one line */
  .local-time-clock { font-size: 12px; }
  .local-time-icon { display: none; }
}

/* ── Certificate Column Selection ── */
.cert-col-hint {
  font-size: 12px;
  color: #6b7280;
  margin: 2px 0 8px;
  line-height: 1.4;
}
.cert-col-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cert-col-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #374151;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.cert-col-item:hover {
  border-color: #6B9FE4;
  background: rgba(107,159,228,0.04);
}
.cert-col-item input[type=checkbox] {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
