/* INFINITI EVENTS — landing, sign-in, sign-up and Super Admin pages.
   Loaded after app.css, so it reuses the same tokens, glass panels, fields and buttons. */

body.platform { display: block; min-height: 100vh; }

.pf-shell { min-height: 100vh; display: flex; flex-direction: column; position: relative; z-index: 1; }

.pf-top {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px clamp(16px, 4vw, 48px);
}
.pf-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-main); }
.pf-brand .mark {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: #0b0e15; border: 1px solid var(--panel-border);
    box-shadow: 0 0 22px var(--gold-glow);
}
.pf-brand .mark i {
    font-size: 1.25rem; background: var(--gold-gradient);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.pf-brand .word { display: flex; flex-direction: column; line-height: 1.25; }
.pf-brand .word b {
    font-family: var(--display-lat); font-weight: 400; letter-spacing: 4px; font-size: 1.05rem;
    background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.pf-brand .word small { color: var(--text-sub); font-size: .68rem; }
.pf-nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pf-nav a { text-decoration: none; }

.pf-main { flex: 1; display: grid; place-items: center; padding: 24px 16px 48px; }
.pf-card { width: min(520px, 100%); padding: clamp(22px, 4vw, 36px); }
.pf-card.wide { width: min(980px, 100%); }
.pf-title {
    font-family: var(--display-ar); font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700;
    color: var(--champagne); line-height: 1.8;
}
.pf-sub { color: var(--text-sub); font-size: .88rem; margin-bottom: 18px; line-height: 1.9; }

.pf-form .field { margin-top: 14px; }
.pf-form .form-grid-2 .field, .pf-form .form-grid-3 .field { margin-top: 0; }
.pf-form .hint { color: var(--text-sub); font-size: .72rem; margin-top: 5px; line-height: 1.7; }
.pf-form .row-inline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pf-form .check { display: flex; align-items: center; gap: 8px; color: var(--text-sub); font-size: .82rem; cursor: pointer; }
.pf-form .check input { accent-color: var(--gold-primary); width: 16px; height: 16px; }
.pf-form .actions { margin-top: 22px; display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.pf-form .actions .btn-gold-action { justify-content: center; }
.pf-form fieldset { border: 0; margin-top: 8px; }
.pf-form legend {
    font-family: var(--display-ar); color: var(--gold-primary); font-size: 1rem; padding-bottom: 4px;
    border-bottom: 1px dashed rgba(212,175,55,.3); width: 100%; margin-bottom: 4px;
}
/* Honeypot: invisible without off-screen offsets (a negative left widens RTL pages). */
.pf-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

.pf-link { color: var(--gold-primary); text-decoration: none; font-weight: 700; }
.pf-link:hover { text-decoration: underline; }

.pf-alert {
    border-radius: 12px; padding: 12px 14px; font-size: .84rem; line-height: 1.8; margin-bottom: 14px;
    border: 1px solid; display: flex; gap: 10px; align-items: flex-start;
}
.pf-alert.err { border-color: rgba(244,63,94,.45); background: rgba(244,63,94,.08); color: #fecdd3; }
.pf-alert.ok { border-color: rgba(16,185,129,.4); background: rgba(16,185,129,.08); color: #a7f3d0; }
.pf-alert.info { border-color: rgba(212,175,55,.4); background: rgba(212,175,55,.07); color: var(--champagne); }
.pf-alert ul { padding-right: 18px; }
.field .err-text { color: #fca5a5; font-size: .72rem; margin-top: 4px; }
.field input.is-invalid, .field select.is-invalid { border-color: var(--accent-red); }

.logo-pick { display: flex; gap: 14px; align-items: center; }
.logo-pick .preview {
    width: 72px; height: 72px; border-radius: 14px; border: 1px dashed rgba(212,175,55,.45);
    display: grid; place-items: center; overflow: hidden; background: rgba(0,0,0,.4); flex-shrink: 0;
}
.logo-pick .preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-pick .preview i { color: rgba(212,175,55,.5); font-size: 1.4rem; }

/* Powered by — quiet, engraved, never louder than the hall's own name */
.powered {
    display: inline-flex; align-items: center; gap: 8px; font-size: .68rem; letter-spacing: 2px;
    color: var(--text-sub); text-decoration: none; text-transform: uppercase;
}
.powered i { color: var(--gold-primary); }
.powered b { font-family: var(--display-lat); font-weight: 400; letter-spacing: 3px; color: var(--champagne); }
.pf-foot { text-align: center; padding: 18px 16px 26px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.pf-foot small { color: #64748b; font-size: .68rem; }

/* ---------- Landing ---------- */
.hero { width: min(1100px, 100%); text-align: center; padding: clamp(20px, 6vw, 60px) 0 30px; }
.hero h1 {
    font-family: var(--display-ar); font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.6;
    background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lat { font-family: var(--display-lat); letter-spacing: 8px; color: var(--gold-deep); font-size: .8rem; }
.hero p { color: var(--text-sub); max-width: 680px; margin: 14px auto 26px; line-height: 2; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .cta a { text-decoration: none; }
.features { width: min(1100px, 100%); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 26px; }
.feature { padding: 20px; }
.feature i { font-size: 1.3rem; color: var(--gold-primary); margin-bottom: 10px; display: block; }
.feature h3 { font-size: .98rem; font-weight: 800; margin-bottom: 6px; }
.feature p { color: var(--text-sub); font-size: .82rem; line-height: 1.9; }

/* ---------- Super Admin ---------- */
.adm { display: grid; grid-template-columns: 250px 1fr; gap: 16px; padding: 16px; min-height: 100vh; position: relative; z-index: 1; }
.adm-side { padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; align-self: start; position: sticky; top: 16px; }
.adm-side .pf-brand { margin-bottom: 18px; }
.adm-side a.nav {
    display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px;
    color: var(--text-sub); text-decoration: none; font-weight: 700; font-size: .86rem;
}
.adm-side a.nav.on, .adm-side a.nav:hover { background: linear-gradient(90deg, rgba(212,175,55,.15), transparent); color: #fff; }
.adm-side a.nav i { width: 18px; color: var(--gold-primary); }
.adm-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.adm-head { padding: 16px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-head h1 { font-family: var(--display-ar); font-size: 1.45rem; color: var(--champagne); line-height: 1.8; }
.adm-panel { padding: 20px; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.adm-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.adm-filters input, .adm-filters select {
    background: rgba(0,0,0,.5); border: 1px solid rgba(212,175,55,.3); color: #fff;
    padding: 9px 12px; border-radius: 10px; font-family: inherit;
}
.adm-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.adm-actions form { padding: 16px; border: 1px solid var(--hairline); border-radius: 14px; background: rgba(0,0,0,.25); }
.adm-actions h4 { font-size: .9rem; color: var(--gold-primary); margin-bottom: 4px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: .84rem; }
.kv dt { color: var(--text-sub); }
.kv dd { color: var(--text-main); font-weight: 700; word-break: break-word; }
.adm .luxury-table { width: 100%; border-collapse: collapse; }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.pagination a, .pagination span {
    padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(212,175,55,.25); color: var(--text-sub);
    text-decoration: none; font-size: .78rem;
}
.pagination .active span { color: #000; background: var(--gold-primary); }

@media (max-width: 900px) {
    .adm { grid-template-columns: 1fr; }
    .adm-side { position: static; }
    .kv { grid-template-columns: 1fr; }
}

/* Non-production copies (staging, local) carry a visible badge; never printed. */
.env-ribbon { position: fixed; left: 12px; bottom: 12px; z-index: 9999; pointer-events: none;
    background: #7c2d12; color: #fff7ed; border: 1px solid #fdba74; border-radius: 999px;
    padding: 5px 12px; font: 700 .72rem/1.4 "Cairo", sans-serif; letter-spacing: .02em;
    box-shadow: 0 4px 14px rgba(0,0,0,.35); opacity: .92; }
.env-ribbon i { margin-inline-end: 4px; }
@media print { .env-ribbon { display: none !important; } }

/* Sign-up: plan picker */
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.plan-card { position: relative; display: block; cursor: pointer; }
.plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.plan-card .pc-body { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; border-radius: 14px;
    border: 1px solid var(--border-subtle, rgba(255,255,255,.12)); background: rgba(255,255,255,.02); transition: border-color .2s, box-shadow .2s; }
.plan-card b { color: var(--gold-primary, #c9a227); font-size: 1rem; }
.plan-card small { color: var(--text-sub, #a3a3a3); font-size: .74rem; }
.plan-card .pc-price { font-size: .82rem; }
.plan-card .pc-price em { font-style: normal; color: #6ee7b7; font-size: .72rem; margin-inline-start: 4px; }
.plan-card .pc-meta { font-size: .72rem; color: var(--text-sub, #a3a3a3); }
.plan-card input:checked + .pc-body { border-color: var(--gold-primary, #c9a227); box-shadow: 0 0 0 1px var(--gold-primary, #c9a227) inset; }
.plan-card input:focus-visible + .pc-body { outline: 2px solid var(--gold-primary, #c9a227); outline-offset: 2px; }
.pf-radios { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 6px; }

/* Super Admin billing */
.pf-sub-title { margin: 22px 0 10px; font-size: .9rem; color: var(--gold-primary, #c9a227); display: flex; gap: 8px; align-items: center; }
.pf-sub-title small { color: var(--text-sub, #a3a3a3); font-weight: 400; }
.feature-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 16px; margin-bottom: 8px; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 6px 0 4px; }
.kv-grid > div { padding: 10px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.02); }
.kv-grid dt, .kv-grid .k { font-size: .7rem; color: var(--text-sub, #a3a3a3); }
.kv-grid .v { font-size: .95rem; font-weight: 700; margin-top: 2px; }
.money-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.money-tags span { padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); font-size: .78rem; }
/* Printable INFINITI subscription invoice (admin and hall) */
.sub-invoice { background: #fffdf7; color: #2b2410; border-radius: 14px; padding: 28px 30px; max-width: 820px; margin: 0 auto; }
.sub-invoice .si-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid #c9a227; padding-bottom: 14px; margin-bottom: 16px; }
.sub-invoice .si-brand b { font-size: 1.15rem; letter-spacing: .08em; }
.sub-invoice .si-pay { white-space: pre-line; }
.sub-invoice .si-brand small, .sub-invoice .si-meta small { display: block; color: #7a6a3a; font-size: .74rem; }
.sub-invoice table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .84rem; }
.sub-invoice th, .sub-invoice td { border: 1px solid #e8dcb5; padding: 8px 10px; text-align: start; }
.sub-invoice th { background: #f7efd6; }
.sub-invoice .si-total td { font-weight: 800; }
.sub-invoice .si-stamp { display: inline-block; padding: 4px 12px; border: 2px solid currentColor; border-radius: 8px; font-weight: 800; }
.sub-invoice .si-stamp.paid { color: #047857; } .sub-invoice .si-stamp.issued { color: #b45309; } .sub-invoice .si-stamp.void { color: #b91c1c; }
.sub-invoice .si-foot { margin-top: 16px; font-size: .72rem; color: #7a6a3a; display: flex; justify-content: space-between; gap: 12px; }
@media print {
    body.platform { background: #fff !important; }
    .platform .pf-top, .platform .adm-side, .platform .no-print, .platform .adm-actions, .platform nav { display: none !important; }
    .sub-invoice { box-shadow: none; padding: 0; }
}
/* Client rating page (public, branded with the hall) */
.rate-page { background: radial-gradient(ellipse at top, rgba(212,175,55,.08), transparent 60%), var(--bg-body); }
.rate-shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 28px 16px; }
.rate-card { width: min(520px, 100%); padding: 28px 24px; border-radius: 22px; border: 1px solid rgba(212,175,55,.35); background: rgba(13,16,23,.92); box-shadow: 0 24px 60px rgba(0,0,0,.5); text-align: center; }
.rate-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 14px; }
.rate-brand h1 { font-family: var(--display-ar); color: var(--gold-primary); font-size: 1.5rem; margin: 0; }
.rate-logo { max-width: 120px; max-height: 90px; object-fit: contain; border-radius: 12px; }
.rate-crown { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--gold-gradient); color: #1a1405; font-size: 1.6rem; }
.rate-event { color: var(--text-sub); font-size: .9rem; margin: 0 0 6px; }
.rate-q { font-size: 1.15rem; margin: 6px 0 16px; }
.rate-form { display: flex; flex-direction: column; gap: 12px; text-align: start; }
.stars { border: 0; padding: 0; margin: 0 auto; display: flex; flex-direction: row-reverse; justify-content: center; gap: 6px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 2.6rem; font-family: Arial, sans-serif; color: rgba(255,255,255,.18); cursor: pointer; transition: transform .15s, color .15s; line-height: 1; }
.stars.small label { font-size: 1.25rem; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--gold-primary); }
.stars label:hover { transform: scale(1.12); }
.stars input:focus-visible + label { outline: 2px solid var(--gold-primary); outline-offset: 3px; border-radius: 6px; }
.rate-more { border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 10px 12px; }
.rate-more summary { cursor: pointer; color: var(--gold-primary); font-size: .86rem; font-weight: 700; }
.aspect-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; font-size: .86rem; }
.aspect-row .stars { margin: 0; }
.rate-label { font-size: .86rem; font-weight: 700; }
.rate-form textarea { width: 100%; border-radius: 12px; border: 1px solid rgba(212,175,55,.3); background: rgba(255,255,255,.03); color: var(--text-main); padding: 10px 12px; font: inherit; resize: vertical; }
.rate-check { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--text-sub); }
.rate-check input { accent-color: var(--gold-primary); width: 16px; height: 16px; }
.rate-submit { justify-content: center; width: 100%; padding: 13px; font-size: 1rem; }
.rate-fine { color: var(--text-sub); font-size: .74rem; text-align: center; margin: 0; }
.rate-done { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0; }
.rate-done > i { font-size: 2.4rem; color: var(--gold-primary); }
.rate-done.muted > i { color: var(--text-sub); }
.rate-done p { color: var(--text-sub); margin: 0; }
.rate-wa { margin-top: 10px; justify-content: center; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
