/* Reservation sharing panel and private status page. First Hijrah dark green, white and sage. */
.rs { --rs-green: #005a3c; --rs-dark: #013b2e; --rs-sage: #e8f1ec; --rs-line: #cfe0d6; --rs-ink: #13241d; display: inline-block; }
.rs-open { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 2px solid #fff; border-radius: 999px; background: var(--rs-green); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; box-shadow: 0 6px 16px rgba(1, 59, 46, .25); }
.rs-open:hover, .rs-open:focus-visible { background: var(--rs-dark); }
.rs-open:focus-visible, .rs-panel button:focus-visible, .rs-panel a:focus-visible { outline: 3px solid #c99a2e; outline-offset: 2px; }
.rs-compact .rs-open { border-color: var(--rs-line); min-height: 40px; padding: 8px 14px; font-size: .9rem; box-shadow: none; }
.rs-panel { width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 20px; color: var(--rs-ink); background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.rs-panel::backdrop { background: rgba(1, 25, 18, .55); }
.rs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 16px 20px; background: var(--rs-dark); color: #fff; }
.rs-head h2 { margin: 0; font-size: 1.15rem; color: #fff; }
.rs-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.rs-url { display: grid; gap: 6px; margin: 16px 20px 0; font-size: .85rem; font-weight: 700; }
.rs-url input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--rs-line); border-radius: 12px; background: var(--rs-sage); font: inherit; font-weight: 600; color: var(--rs-ink); }
.rs-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 20px 0; }
.rs-actions > a, .rs-actions > button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 12px; border: 1px solid var(--rs-line); border-radius: 12px; background: #fff; color: var(--rs-dark); font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; }
.rs-actions > a:hover, .rs-actions > button:hover { background: var(--rs-sage); }
.rs-actions svg { width: 20px; height: 20px; flex: none; }
.rs-actions [hidden] { display: none; }
.rs-qr { display: grid; justify-items: center; gap: 6px; margin: 18px 20px 0; padding: 14px; border-radius: 16px; background: var(--rs-sage); }
.rs-qr img { width: 200px; height: 200px; padding: 8px; border-radius: 12px; background: #fff; image-rendering: pixelated; }
.rs-qr figcaption { font-size: .85rem; }
.rs-qr-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 4px; }
.rs-qr-actions > a, .rs-qr-actions > button { font-size: .85rem; min-height: 44px; }
.rs-status { min-height: 1.5em; margin: 10px 20px 18px; font-weight: 700; color: var(--rs-green); }
@media (max-width: 480px) { .rs-qr-actions { grid-template-columns: 1fr; } }

/* Private status page. */
.rt { --rt-green: #005a3c; --rt-dark: #013b2e; --rt-sage: #e8f1ec; --rt-line: #d9e6de; max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; color: #13241d; }
.rt-hero { display: grid; justify-items: center; gap: 10px; padding: 28px 20px; border-radius: 24px; background: linear-gradient(160deg, #005a3c, #013b2e); color: #fff; text-align: center; }
.rt-check { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #fff; color: var(--rt-green); box-shadow: 0 0 0 8px rgba(255, 255, 255, .15); }
.rt-hero h1 { margin: 0; color: #fff; font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.2; }
.rt-hero p { margin: 0; max-width: 34rem; }
.rt-ref { display: inline-flex; gap: 8px; align-items: baseline; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-weight: 700; letter-spacing: .02em; }
.rt-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 800; background: #fff4d6; color: #7a5300; }
.rt-badge.is-good { background: #dff5ea; color: #0a6b47; }
.rt-badge.is-bad { background: #fde3e3; color: #8a1f1f; }
.rt-card { margin-top: 18px; padding: 20px; border: 1px solid var(--rt-line); border-radius: 20px; background: #fff; box-shadow: 0 4px 18px rgba(1, 59, 46, .06); }
.rt-card h2 { margin: 0 0 12px; font-size: 1.15rem; color: var(--rt-dark); }
.rt-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 0; }
.rt-facts dt { font-size: .8rem; font-weight: 700; color: #4b6358; text-transform: none; }
.rt-facts dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.rt-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.rt-steps li { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding-left: 0; }
.rt-steps li::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: -14px; width: 2px; background: var(--rt-line); }
.rt-steps li:last-child::before { display: none; }
.rt-dot { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--rt-line); background: #fff; font-size: .8rem; font-weight: 800; color: #6b7f76; }
.rt-steps .is-done .rt-dot { border-color: var(--rt-green); background: var(--rt-green); color: #fff; }
.rt-steps .is-done::before { background: var(--rt-green); }
.rt-steps .is-current .rt-dot { border-color: var(--rt-green); box-shadow: 0 0 0 5px var(--rt-sage); color: var(--rt-green); }
.rt-steps .is-current span:last-child { font-weight: 800; }
.rt-steps .is-action .rt-dot { border-color: #b7791f; background: #fff4d6; color: #7a5300; }
.rt-steps .is-upcoming span:last-child { color: #6b7f76; }
.rt-next { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--rt-sage); font-weight: 600; }
.rt-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.rt-buttons a, .rt-buttons button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 14px; border: 1px solid var(--rt-line); border-radius: 14px; background: #fff; color: var(--rt-dark); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.rt-buttons .is-primary { background: var(--rt-green); border-color: var(--rt-green); color: #fff; }
.rt-buttons a:hover, .rt-buttons button:hover { background: var(--rt-sage); }
.rt-buttons .is-primary:hover { background: var(--rt-dark); }
.rt-status { min-height: 1.4em; margin: 10px 0 0; font-weight: 700; color: var(--rt-green); }
.rt-verify { display: grid; gap: 10px; }
.rt-verify input { width: 10ch; min-height: 48px; padding: 8px 12px; border: 1px solid var(--rt-line); border-radius: 12px; font: inherit; font-size: 1.3rem; letter-spacing: .3em; }
.rt-verify-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rt-note { font-size: .9rem; color: #3c5248; }
.rt-error { padding: 10px 14px; border-radius: 12px; background: #fde3e3; color: #8a1f1f; font-weight: 700; }
@media (max-width: 560px) { .rt-facts { grid-template-columns: 1fr; } .rt { padding: 16px 12px 40px; } }
.rs-panel .rs-note { margin: 18px 20px 0; padding: 14px; border-radius: 14px; background: #eef4ef; color: #33443a; font-size: .9rem; }
/* Admin pages make every button a block; keep the share controls inline. */
.fhf-admin-main .rs-open { display: inline-flex; }
.fhf-admin-main .rs-actions > button { display: inline-flex; }
.fhf-admin-main .rs-close { display: block; }
.rt-card > .rt-note + .rt-buttons, .rt-card > .rt-buttons + .rt-note { margin-top: 12px; }
