    /* ─────────────────────────────────────────
       DESIGN TOKENS
    ───────────────────────────────────────── */
    :root {
      --bg: #F4F4F4;
      --surface: #FFFFFF;
      --gold: #B8960C;
      --gold-light: #F5E9C0;
      --gold-dark: #8B6F09;
      --text-primary: #1A1A1A;
      --text-secondary: #6B6B6B;
      --success: #2D7A4F;
      --error: #C0392B;
      --border: #E0E0E0;
      --radius: 10px;
      --radius-sm: 8px;
      --shadow: 0 2px 8px rgba(0,0,0,0.08);
      --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      --safe-top: env(safe-area-inset-top, 0px);
      --safe-bottom: env(safe-area-inset-bottom, 0px);
    }

    /* ─────────────────────────────────────────
       RESET & BASE
    ───────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    html {
      font-size: 16px;
      -webkit-text-size-adjust: 100%;
    }

    body {
      font-family: var(--font);
      background: var(--bg);
      color: var(--text-primary);
      min-height: 100dvh;
      padding-bottom: calc(80px + var(--safe-bottom));
      overscroll-behavior: none;
    }

    /* ─────────────────────────────────────────
       FIXED HEADER
    ───────────────────────────────────────── */
    .app-header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      padding: calc(12px + var(--safe-top)) 20px 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      box-shadow: var(--shadow);
    }

    .header-left {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .header-crescent {
      width: 36px;
      height: 36px;
      background: var(--gold);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .header-crescent svg {
      width: 22px;
      height: 22px;
      fill: #fff;
    }

    .header-title {
      display: flex;
      flex-direction: column;
    }

    .header-title h1 {
      font-size: 18px;
      font-weight: 800;
      color: var(--text-primary);
      letter-spacing: -0.3px;
      line-height: 1.1;
    }

    .header-title .tagline {
      font-size: 11px;
      color: var(--text-secondary);
      font-weight: 400;
      margin-top: 1px;
    }

    .header-date {
      text-align: right;
    }

    .header-date .date-main {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .header-date .date-hijri {
      font-size: 11px;
      color: var(--gold);
      font-weight: 500;
    }
    .logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.logo span { color: var(--gold); }

    /* --- Nav links (extensible) --- */
    .nav-links { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; flex-shrink: 0; }
    .nav-links li { display: flex; align-items: center; }
    .nav-links li:not(:last-child)::after { content: ''; display: block; width: 1px; height: 14px; background: var(--border); margin: 0 0.1rem; }
    .nav-links a { font-size: 0.8rem; color: var(--text-secondary); text-decoration: none; padding: 0.35rem 0.55rem; border-radius: var(--radius-sm); transition: var(--transition); white-space: nowrap; }
    .nav-links a:hover { color: var(--gold); background: var(--gold-light); }
    /* --- Responsive --- */
    @media (max-width: 480px) {
      .nav-links { display: none; }
    }
    /* ─────────────────────────────────────────
       MAIN CONTENT
    ───────────────────────────────────────── */
    .main-content {
      max-width: 500px;
      margin: 0 auto;
      padding: 16px 16px 0;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    /* ─────────────────────────────────────────
       CARDS
    ───────────────────────────────────────── */
    .card {
      background: var(--surface);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      border: 1px solid var(--border);
      overflow: hidden;
    }

    .card-header {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 14px 16px 10px;
      border-bottom: 1px solid var(--border);
    }

    .card-header svg {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
      color: var(--gold);
    }

    .card-header h2 {
      font-size: 13px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      color: var(--text-secondary);
    }

    .card-body {
      padding: 14px 16px 16px;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    /* ─────────────────────────────────────────
       FORM ELEMENTS
    ───────────────────────────────────────── */
    .field-group {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .field-label {
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      color: var(--text-secondary);
    }

    .input-row {
      display: flex;
      gap: 8px;
      align-items: stretch;
    }

    input[type="text"],
    input[type="number"],
    input[type="date"] {
      font-family: var(--font);
      font-size: 15px;
      font-weight: 500;
      color: var(--text-primary);
      background: var(--bg);
      border: 1.5px solid var(--border);
      border-radius: 8px;
      padding: 10px 12px;
      width: 100%;
      outline: none;
      transition: border-color 0.15s;
      -webkit-appearance: none;
      appearance: none;
      min-height: 44px;
    }

    input[type="text"]:focus,
    input[type="number"]:focus,
    input[type="date"]:focus {
      border-color: var(--gold);
      background: #FFFDF5;
    }

    input[type="date"] {
      color-scheme: light;
    }

    .btn {
      font-family: var(--font);
      font-size: 14px;
      font-weight: 600;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      padding: 10px 14px;
      min-height: 44px;
      transition: all 0.15s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      white-space: nowrap;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
    }

    .btn-primary {
      background: var(--gold);
      color: #fff;
    }

    .btn-primary:active { background: var(--gold-dark); transform: scale(0.97); }

    .btn-outline {
      background: transparent;
      color: var(--gold);
      border: 1.5px solid var(--gold);
    }

    .btn-outline:active { background: var(--gold-light); }

    .btn-ghost {
      background: var(--bg);
      color: var(--text-primary);
      border: 1.5px solid var(--border);
    }

    .btn-ghost:active { background: var(--border); }

    /* Toggle pill */
    .toggle-group {
      display: flex;
      background: var(--bg);
      border-radius: 8px;
      padding: 3px;
      border: 1.5px solid var(--border);
      gap: 2px;
    }

    .toggle-btn {
      flex: 1;
      font-family: var(--font);
      font-size: 13px;
      font-weight: 600;
      background: transparent;
      border: none;
      border-radius: 6px;
      padding: 7px 10px;
      cursor: pointer;
      color: var(--text-secondary);
      transition: all 0.15s;
      min-height: 36px;
      -webkit-tap-highlight-color: transparent;
    }

    .toggle-btn.active {
      background: var(--gold);
      color: #fff;
      box-shadow: 0 1px 4px rgba(184,150,12,0.35);
    }

    /* ─────────────────────────────────────────
       LOCATION SECTION
    ───────────────────────────────────────── */
    .location-status {
      font-size: 12px;
      color: var(--text-secondary);
      display: flex;
      align-items: center;
      gap: 6px;
      min-height: 18px;
      flex-wrap: wrap;
    }

    .location-status.acquiring {
      color: var(--gold);
    }

    .location-status.success-status {
      color: var(--success);
    }

    .location-status.error-status {
      color: var(--error);
    }

    .pulse-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--gold);
      display: inline-block;
      animation: pulse 1.2s ease-in-out infinite;
      flex-shrink: 0;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.4; transform: scale(0.75); }
    }

    /* ─────────────────────────────────────────
       FL SLIDER
    ───────────────────────────────────────── */
    .fl-row {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .fl-input-wrap {
      display: flex;
      align-items: center;
      gap: 0;
      background: var(--bg);
      border: 1.5px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
      flex-shrink: 0;
      transition: border-color 0.15s;
    }

    .fl-input-wrap:focus-within {
      border-color: var(--gold);
      background: #FFFDF5;
    }

    .fl-input-wrap input {
      width: 72px;
      border: none;
      background: transparent;
      font-size: 22px;
      font-weight: 800;
      color: var(--gold);
      text-align: center;
      padding: 8px 6px;
      min-height: 44px;
    }

    .fl-input-wrap input:focus {
      background: transparent;
      border: none;
    }

    .fl-unit {
      font-size: 13px;
      font-weight: 700;
      color: var(--text-secondary);
      padding-right: 10px;
      letter-spacing: 0.5px;
    }

    .fl-slider-wrap {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    input[type="range"] {
      -webkit-appearance: none;
      appearance: none;
      width: 100%;
      height: 6px;
      background: var(--border);
      border-radius: 3px;
      outline: none;
      cursor: pointer;
    }

    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: var(--gold);
      border: 3px solid #fff;
      box-shadow: 0 1px 4px rgba(0,0,0,0.2);
      cursor: pointer;
      transition: transform 0.1s;
    }

    input[type="range"]::-webkit-slider-thumb:active {
      transform: scale(1.15);
    }

    input[type="range"]::-moz-range-thumb {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: var(--gold);
      border: 3px solid #fff;
      cursor: pointer;
    }

    .slider-labels {
      display: flex;
      justify-content: space-between;
      font-size: 10px;
      color: var(--text-secondary);
      font-weight: 500;
      padding: 0 2px;
    }

    .fl-ground-badge {
      font-size: 11px;
      font-weight: 600;
      color: var(--text-secondary);
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 4px;
      padding: 2px 7px;
      display: none;
    }

    /* ─────────────────────────────────────────
       RESULTS CARD
    ───────────────────────────────────────── */
    .adjustment-bar {
      background: var(--gold-light);
      border: 1px solid rgba(184,150,12,0.25);
      border-radius: 8px;
      padding: 10px 14px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .adjustment-bar svg {
      width: 16px;
      height: 16px;
      color: var(--gold-dark);
      flex-shrink: 0;
    }

    .adjustment-text {
      font-size: 13px;
      color: var(--gold-dark);
      font-weight: 600;
    }

    .adjustment-text span {
      font-weight: 800;
    }

    .result-block {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .result-block + .result-block {
      padding-top: 14px;
      border-top: 1px solid var(--border);
    }

    .result-label {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .result-label svg {
      width: 20px;
      height: 20px;
      flex-shrink: 0;
    }

    .result-label-text {
      display: flex;
      flex-direction: column;
      gap: 1px;
    }

    .result-label-en {
      font-size: 14px;
      font-weight: 700;
      color: var(--text-primary);
    }

    .result-label-ar {
      font-size: 12px;
      font-weight: 600;
      color: var(--gold);
      direction: rtl;
    }

    .result-main-time {
      font-size: 56px;
      font-weight: 800;
      color: var(--gold);
      letter-spacing: -2px;
      line-height: 1.0;
      font-variant-numeric: tabular-nums;
      aria-live: polite;
    }

    .result-main-time.no-event {
      font-size: 20px;
      letter-spacing: -0.5px;
      color: var(--text-secondary);
      font-weight: 600;
    }

    .result-ground-row {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .result-ground-label {
      font-size: 12px;
      color: var(--text-secondary);
      font-weight: 500;
      min-width: 52px;
    }

    .result-ground-time {
      font-size: 16px;
      font-weight: 600;
      color: var(--text-secondary);
      font-variant-numeric: tabular-nums;
    }

    .result-adj-note {
      font-size: 11px;
      color: var(--text-secondary);
      font-style: italic;
    }

    /* Time zone toggle in results */
    .results-tz-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-top: 6px;
      border-top: 1px solid var(--border);
    }

    .tz-label {
      font-size: 12px;
      color: var(--text-secondary);
      font-weight: 500;
    }

    /* ─────────────────────────────────────────
       COUNTDOWN CARD
    ───────────────────────────────────────── */
    .countdown-header {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .countdown-event-name {
      font-size: 13px;
      font-weight: 700;
      color: var(--text-secondary);
      text-transform: uppercase;
      letter-spacing: 0.6px;
    }

    .countdown-event-name em {
      color: var(--gold);
      font-style: normal;
    }

    .countdown-display {
      font-size: 52px;
      font-weight: 800;
      color: var(--gold);
      font-variant-numeric: tabular-nums;
      letter-spacing: -1px;
      line-height: 1.0;
      font-family: 'Inter', monospace;
      transition: color 0.3s;
    }

    .countdown-display.flash {
      animation: countdownFlash 0.5s ease-in-out infinite;
    }

    @keyframes countdownFlash {
      0%, 100% { color: var(--gold); }
      50% { color: var(--gold-dark); opacity: 0.6; }
    }

    .countdown-arrived {
      font-size: 24px;
      font-weight: 800;
      color: var(--gold);
      text-align: center;
      padding: 8px 0;
      display: none;
    }

    .countdown-sub {
      font-size: 11px;
      color: var(--text-secondary);
      margin-top: 2px;
    }

/* ═══════════════════════════════════════
   COLLAPSIBLE
═══════════════════════════════════════ */
.collapsible-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  gap: 8px;
}
.collapsible-trigger-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.collapsible-trigger-left svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
}
.chevron-icon {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.chevron-icon.open {
  transform: rotate(180deg);
}

/* Collapsed: zero height + hidden overflow so it animates cleanly */
.collapsible-body {
  display: grid;
  grid-template-rows: 0fr;          /* collapsed */
  transition: grid-template-rows 0.3s ease;
  overflow: hidden;
}

/* When open: let the row grow to fit ALL content naturally */
.collapsible-body.open {
  grid-template-rows: 1fr;          /* expands to content height */
}

/* Inner wrapper is required for the grid trick to work */
.collapsible-body > .explainer-content {
  min-height: 0;                    /* ← required for 0fr to actually reach zero */
  overflow: hidden;
  padding: 0 16px 0;
}

/* ═══════════════════════════════════════
   EXPLAINER CONTENT
═══════════════════════════════════════ */
.explainer-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gold);
  margin: 14px 0 6px;
}
.explainer-section-title:first-child {
  margin-top: 4px;
}
.explainer-content p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 8px;
}
.explainer-content ul {
  margin: 4px 0 8px 18px;
  padding: 0;
}
.explainer-content ul li {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.formula-box {
  background: var(--surface-alt, rgba(0,0,0,0.25));
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-primary);
  white-space: pre;                 /* keeps formula alignment */
  overflow-x: auto;                /* horizontal scroll only if truly needed on tiny screens */
  margin: 4px 0 8px;
}

    /* ─────────────────────────────────────────
       TOAST NOTIFICATIONS
    ───────────────────────────────────────── */
    .toast-container {
      position: fixed;
      bottom: calc(16px + var(--safe-bottom));
      left: 50%;
      transform: translateX(-50%);
      z-index: 1000;
      display: flex;
      flex-direction: column;
      gap: 8px;
      align-items: center;
      pointer-events: none;
      width: calc(100% - 32px);
      max-width: 460px;
    }

    .toast {
      background: var(--text-primary);
      color: #fff;
      border-radius: 10px;
      padding: 12px 16px;
      font-size: 14px;
      font-weight: 600;
      box-shadow: 0 4px 16px rgba(0,0,0,0.2);
      display: flex;
      align-items: center;
      gap: 8px;
      width: 100%;
      animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
      pointer-events: auto;
    }

    .toast.toast-gold {
      background: var(--gold);
      color: #fff;
    }

    .toast.toast-success {
      background: var(--success);
    }

    .toast.toast-hide {
      animation: toastOut 0.25s ease forwards;
    }

    @keyframes toastIn {
      from { opacity: 0; transform: translateY(16px) scale(0.95); }
      to   { opacity: 1; transform: translateY(0)   scale(1); }
    }

    @keyframes toastOut {
      from { opacity: 1; transform: translateY(0)   scale(1); }
      to   { opacity: 0; transform: translateY(8px)  scale(0.95); }
    }

    /* ─────────────────────────────────────────
       INSTALL GUIDE CARD
    ───────────────────────────────────────── */
    .install-guide {
      display: none;            /* shown by JS when not installed */
    }
    .install-guide.visible {
      display: block;
    }
    .install-guide-inner {
      position: relative;
      padding: 18px 16px 20px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .install-guide-dismiss {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: none;
      background: var(--bg, #F4F4F4);
      color: #8A8A8A;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: background 0.15s, color 0.15s;
    }
    .install-guide-dismiss:active {
      background: var(--border, #E0E0E0);
      color: #1A1A1A;
    }
    .install-guide-icon {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      background: var(--gold-light, #F5E9C0);
      color: var(--gold-dark, #8B6F09);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .install-guide-text {
      display: flex;
      flex-direction: column;
      gap: 2px;
      padding-right: 32px;
    }
    .install-guide-text strong {
      font-size: 15px;
      font-weight: 700;
      color: var(--text-primary, #1A1A1A);
    }
    .install-guide-text span {
      font-size: 12px;
      color: var(--text-secondary, #6B6B6B);
      font-weight: 500;
    }
    .install-guide-steps {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 2px;
    }
    .install-step {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 13px;
      color: var(--text-secondary, #6B6B6B);
      line-height: 1.45;
    }
    .install-step-num {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: var(--gold, #B8960C);
      color: #fff;
      font-size: 12px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-top: 0px;
    }
    .install-step strong {
      color: var(--text-primary, #1A1A1A);
      font-weight: 600;
    }
    .install-step .install-step-icon {
      display: inline-flex;
      vertical-align: middle;
      margin: 0 2px;
    }
    .install-guide-btn {
      margin-top: 4px;
      width: 100%;
      padding: 12px;
      border-radius: 10px;
      border: none;
      background: var(--gold, #B8960C);
      color: #fff;
      font-family: var(--font);
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: opacity 0.15s;
    }
    .install-guide-btn:active {
      opacity: 0.8;
    }

    /* ─────────────────────────────────────────
       HELPER STATES
    ───────────────────────────────────────── */
    .no-event-msg {
      font-size: 14px;
      color: var(--text-secondary);
      font-style: italic;
      padding: 8px 0;
    }

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

    /* ─────────────────────────────────────────
       RESPONSIVE FINE-TUNING
    ───────────────────────────────────────── */
    @media (min-width: 420px) {
      .result-main-time { font-size: 64px; }
      .countdown-display { font-size: 60px; }
    }

    @media (max-width: 340px) {
      .result-main-time { font-size: 44px; }
      .countdown-display { font-size: 42px; }
      .header-title h1 { font-size: 16px; }
    }

    /* ─────────────────────────────────────────
       SCROLLBAR (desktop)
    ───────────────────────────────────────── */
    ::-webkit-scrollbar { width: 4px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

        /* ─────────────────────────────────────────
       ALARM STYLES
    ───────────────────────────────────────── */
    /* ── Alarm buttons row ── */
    .alarm-btn-row {
      display: none; /* shown via JS once results exist */
      gap: 10px;
      margin-top: 10px;
      flex-wrap: wrap;
    }
    .alarm-btn-row.visible {
      display: flex;
    }
    .alarm-btn {
      flex: 1;
      min-width: 130px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      padding: 10px 14px;
      border: none;
      border-radius: 10px;
      background: rgba(184,150,12,0.13);
      color: var(--gold, #B8960C);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.18s ease, transform 0.12s ease;
      font-family: inherit;
    }
    .alarm-btn:active {
      transform: scale(0.96);
      background: rgba(184,150,12,0.22);
    }
    .alarm-btn svg {
      flex-shrink: 0;
    }

    /* ── iOS / Desktop alarm modal ── */
    .alarm-modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.55);
      z-index: 1000;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      padding: 0 0 env(safe-area-inset-bottom, 0) 0;
      animation: backdrop-in 0.2s ease;
    }
    @keyframes backdrop-in {
      from { opacity: 0; }
      to   { opacity: 1; }
    }
    .alarm-modal {
      position: relative;
      background: #FFFFFF;
      border-radius: 20px 20px 0 0;
      padding: 28px 24px calc(36px + env(safe-area-inset-bottom, 0));
      width: 100%;
      max-width: 480px;
      animation: modal-up 0.28s cubic-bezier(0.34,1.56,0.64,1);
      box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
    }
    @keyframes modal-up {
      from { transform: translateY(100%); }
      to   { transform: translateY(0); }
    }

    /* ── Close X button (top-right circle) ── */
    .alarm-modal-x {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: none;
      background: var(--bg, #F4F4F4);
      color: #6B6B6B;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background 0.15s, color 0.15s;
      -webkit-tap-highlight-color: transparent;
      z-index: 1;
    }
    .alarm-modal-x:active {
      background: var(--border, #E0E0E0);
      color: #1A1A1A;
    }

    .alarm-modal-handle {
      width: 40px;
      height: 4px;
      background: var(--border, #E0E0E0);
      border-radius: 2px;
      margin: 0 auto 20px;
    }
    .alarm-modal-title {
      font-size: 12px;
      font-weight: 700;
      color: #8A8A8A;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-bottom: 8px;
      text-align: center;
    }
    .alarm-modal-event {
      font-size: 17px;
      font-weight: 700;
      color: var(--gold, #B8960C);
      text-align: center;
      margin-bottom: 4px;
    }
    .alarm-modal-time {
      font-size: 58px;
      font-weight: 800;
      text-align: center;
      color: #1A1A1A;
      letter-spacing: -2px;
      line-height: 1;
      margin: 8px 0 6px;
      font-variant-numeric: tabular-nums;
    }
    .alarm-modal-tz {
      text-align: center;
      font-size: 12px;
      color: #8A8A8A;
      margin-bottom: 22px;
    }
    .alarm-modal-instructions {
      background: var(--bg, #F4F4F4);
      border: 1px solid var(--border, #E0E0E0);
      border-radius: 12px;
      padding: 14px 16px;
      font-size: 13px;
      color: #6B6B6B;
      line-height: 1.55;
      margin-bottom: 18px;
      text-align: center;
    }
    .alarm-modal-instructions strong {
      color: #1A1A1A;
      font-weight: 700;
    }
    .alarm-modal-actions {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .alarm-modal-copy {
      width: 100%;
      padding: 14px;
      border-radius: 12px;
      border: none;
      background: var(--gold, #B8960C);
      color: #FFFFFF;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      font-family: inherit;
      transition: opacity 0.15s;
    }
    .alarm-modal-copy:active { opacity: 0.8; }
    .alarm-modal-close {
      width: 100%;
      padding: 14px;
      border-radius: 12px;
      border: none;
      background: var(--bg, #F4F4F4);
      color: #6B6B6B;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      font-family: inherit;
      transition: background 0.15s;
    }
    .alarm-modal-close:active { background: var(--border, #E0E0E0); }
    .alarm-modal-notify {
      width: 100%;
      padding: 14px;
      border-radius: 12px;
      border: 1.5px solid rgba(184,150,12,0.3);
      background: var(--gold-light, #F5E9C0);
      color: var(--gold-dark, #8B6F09);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      font-family: inherit;
      transition: opacity 0.15s;
    }
    .alarm-modal-notify:active { opacity: 0.8; }