/* Billing — landing palette + Launch UI pricing layout */
:root {
    --bg: #010008;
    --card: rgba(14, 10, 28, 0.42);
    --card-border: rgba(180, 160, 255, 0.16);
    --text: #e6e4ee;
    --muted: #6e6a7c;
    --faint: #6e6a7c;
    --brand: #6a4fe0;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
    background: #010008;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

.bill-glow {
    pointer-events: none;
    position: fixed;
    inset: -20%;
    z-index: 0;
    opacity: 0.18;
    background:
        radial-gradient(ellipse 46% 34% at 72% 22%, rgba(106, 79, 224, 0.10), transparent 62%),
        radial-gradient(ellipse 36% 26% at 18% 82%, rgba(80, 40, 160, 0.05), transparent 55%);
    animation: billGlow 36s linear infinite;
}
@keyframes billGlow {
    0% { transform: translate3d(0,0,0); }
    50% { transform: translate3d(-3%, 2%, 0); }
    100% { transform: translate3d(0,0,0); }
}
.bill-grain {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 1;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.bill-canvas-host {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    isolation: isolate;
}
#billCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s ease;
}
#billCanvas.is-live { opacity: 1; }

.lu-nav {
    position: relative;
    z-index: 30;
    width: min(1040px, 92vw);
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.lu-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}
.lu-nav-right { display: flex; align-items: center; gap: 14px; }
.lu-user { color: var(--muted); font-size: 13px; }
.lu-ghost {
    border: 1px solid var(--card-border);
    background: transparent;
    color: var(--text);
    border-radius: 999px;
    padding: 8px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}
.lu-ghost-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.lu-main {
    position: relative;
    z-index: 10;
    width: min(1040px, 92vw);
    margin: 0 auto;
    padding: 24px 0 96px;
    isolation: isolate;
}

.lu-active-note {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}
.lu-active-note b { color: var(--text); }

.lu-payments-locked {
    margin: 0 0 20px;
    padding: 22px 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 6, 18, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.lu-payments-locked .lu-kicker { margin-bottom: 8px; }
.lu-payments-locked h2 {
    margin: 0 0 10px;
    font-size: clamp(20px, 3vw, 28px);
    line-height: 1.2;
    color: var(--text);
}
.lu-payments-locked p:not(.lu-kicker) {
    margin: 0 auto;
    max-width: 46ch;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}
.bill-pay-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.lu-hero {
    text-align: center;
    padding: 48px 0 40px;
    position: relative;
    z-index: 12;
}
.lu-kicker {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(1, 0, 8, 0.95), 0 1px 2px rgba(1, 0, 8, 0.9);
}
.lu-hero h1 {
    margin: 0 auto 14px;
    max-width: 14ch;
    font-size: clamp(36px, 6vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.045em;
    font-weight: 600;
    position: relative;
    text-shadow:
        0 0 24px rgba(1, 0, 8, 1),
        0 0 8px rgba(1, 0, 8, 0.95),
        0 2px 4px rgba(1, 0, 8, 0.8);
}
.lu-lead {
    margin: 0 auto;
    max-width: 46ch;
    color: #c8c4d6;
    font-size: 16px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    padding: 12px 18px;
    border-radius: 14px;
    background: rgba(1, 0, 8, 0.78);
    border: 1px solid rgba(100, 80, 160, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.lu-toggle {
    margin: 28px auto 0;
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: rgba(10, 8, 20, 0.45);
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    position: relative;
    overflow: hidden;
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-a: 0;
}
.lu-toggle::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: var(--glow-a, 0);
    background: radial-gradient(
        circle 90px at var(--glow-x, 50%) var(--glow-y, 50%),
        rgba(160, 140, 255, 0.55),
        rgba(106, 79, 224, 0.18) 45%,
        transparent 72%
    );
    transition: opacity 0.12s ease;
    z-index: 0;
}
.lu-toggle > * { position: relative; z-index: 1; }
.lu-toggle button {
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 14px;
    border-radius: 999px;
    cursor: pointer;
}
.lu-toggle button span { color: #a1a1aa; margin-left: 4px; font-size: 11px; font-weight: 600; }
.lu-toggle button.is-on span { color: #d4d4d8; }
.lu-toggle button.is-on {
    background: #18181b;
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.lu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
}

.lu-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-a: 0;
}
.lu-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: var(--glow-a, 0);
    background: radial-gradient(
        circle 160px at var(--glow-x, 50%) var(--glow-y, 50%),
        rgba(170, 150, 255, 0.62),
        rgba(106, 79, 224, 0.22) 42%,
        transparent 70%
    );
    transition: opacity 0.12s ease;
    z-index: 0;
}
.lu-card > * { position: relative; z-index: 1; }
.lu-card-pro {
    background: rgba(18, 12, 36, 0.48);
    box-shadow:
        0 8px 36px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(120, 100, 220, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.lu-card-head h2 {
    margin: 0 0 8px;
    font-size: 22px;
    letter-spacing: -0.03em;
    font-weight: 600;
}
.lu-card-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    min-height: 3em;
}

.lu-price {
    font-size: 52px;
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.lu-price-sub { margin-top: 8px; color: var(--muted); font-size: 13px; }

/* Saudi riyal amount: official symbol + number, kept on one line. */
.sar { display: inline-flex; align-items: baseline; gap: 0.18em; white-space: nowrap; direction: ltr; }
.sar-ico { width: 0.78em; height: 0.87em; flex: 0 0 auto; align-self: center; }
.lu-price .sar-ico { width: 0.62em; height: 0.7em; }

.lu-seats label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
}
.lu-seats b { color: var(--text); font-variant-numeric: tabular-nums; }
.lu-seats input[type="range"] {
    width: 100%;
    accent-color: var(--brand);
}

.lu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: filter 0.15s ease, transform 0.1s ease;
}
.lu-btn:active { transform: scale(0.98); }
.lu-btn-light {
    background: linear-gradient(180deg, #f4f4f5, #e4e4e7);
    color: #09090b;
    box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset;
}
.lu-btn-light:hover { filter: brightness(1.03); }
.lu-btn-outline {
    background: transparent;
    color: var(--text);
    border-color: rgba(255,255,255,0.14);
}
.lu-btn-outline:hover { background: rgba(255,255,255,0.03); }
.lu-btn-block { width: 100%; }
.lu-btn:disabled { opacity: 0.55; cursor: wait; }

.lu-list {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.lu-list li {
    position: relative;
    padding-left: 26px;
    color: #d4d4d8;
    font-size: 14px;
}
.lu-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8.2 6.6 11 12 5' stroke='%23a1a1aa' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        center/14px no-repeat,
        rgba(255,255,255,0.06);
}

.lu-custom {
    margin-top: 16px;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 22px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--card);
    position: relative;
    z-index: 2;
    overflow: hidden;
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-a: 0;
}
.lu-custom::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: var(--glow-a, 0);
    background: radial-gradient(
        circle 140px at var(--glow-x, 50%) var(--glow-y, 50%),
        rgba(170, 150, 255, 0.58),
        rgba(106, 79, 224, 0.2) 42%,
        transparent 70%
    );
    transition: opacity 0.12s ease;
    z-index: 0;
}
.lu-custom > * { position: relative; z-index: 1; }
.lu-custom h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -0.02em; }
.lu-custom p { margin: 0; color: var(--muted); font-size: 14px; }
.lu-custom-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.lu-custom-controls input[type="number"] {
    width: 110px;
    border: 1px solid var(--card-border);
    background: #09090b;
    color: var(--text);
    border-radius: 10px;
    padding: 11px 12px;
    font: inherit;
    font-weight: 600;
}
.lu-custom-price {
    min-width: 110px;
    text-align: right;
}
.lu-custom-price strong {
    display: block;
    font-size: 24px;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}
.lu-custom-price > span { color: var(--muted); font-size: 12px; }

.lu-checkout {
    margin-top: 20px;
    animation: luIn 0.3s ease;
}
@keyframes luIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
.lu-checkout-box {
    border: 1px solid var(--card-border);
    background: rgba(18, 12, 36, 0.48);
    border-radius: 20px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
    align-items: end;
    position: relative;
    z-index: 2;
    overflow: hidden;
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-a: 0;
}
.lu-checkout-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: var(--glow-a, 0);
    background: radial-gradient(
        circle 160px at var(--glow-x, 50%) var(--glow-y, 50%),
        rgba(170, 150, 255, 0.58),
        rgba(106, 79, 224, 0.2) 42%,
        transparent 70%
    );
    transition: opacity 0.12s ease;
    z-index: 0;
}
.lu-checkout-box > * { position: relative; z-index: 1; }
.lu-checkout h3 {
    margin: 0 0 4px;
    font-size: 22px;
    letter-spacing: -0.03em;
}
.lu-checkout-meta { margin: 0; color: var(--muted); font-size: 13px; }
.lu-checkout-due { text-align: right; }
.lu-checkout-due > span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.lu-checkout-due strong {
    font-size: 36px;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}
.lu-field {
    display: grid;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}
.lu-field input {
    border: 1px solid var(--card-border);
    background: #09090b;
    color: var(--text);
    border-radius: 10px;
    padding: 12px 14px;
    font: inherit;
}
.lu-error { grid-column: 1 / -1; margin: 0; color: #fb7185; font-size: 13px; font-weight: 600; }
.lu-result {
    grid-column: 1 / -1;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(106,79,224,0.35);
    background: rgba(106,79,224,0.1);
    color: #ddd6fe;
    font-size: 13px;
    line-height: 1.5;
}
.lu-result a { color: #fff; font-weight: 700; }

.lu-active:not([hidden]) {
    display: none;
}
.lu-active[hidden],
.lu-checkout[hidden] { display: none !important; }

.lu-volume {
    margin-top: 80px;
    text-align: center;
    position: relative;
    z-index: 12;
}
.lu-volume-head {
    margin: 0 auto 28px;
    max-width: 36ch;
}
.lu-volume-head h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 4vw, 34px);
    letter-spacing: -0.035em;
    font-weight: 600;
    color: var(--text);
    text-shadow: 0 0 20px rgba(1, 0, 8, 0.9);
}
.lu-volume-sub {
    margin: 0;
    color: #a8a3b8;
    font-size: 15px;
    line-height: 1.5;
}
.lu-volume-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}
.lu-rate {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 118px;
    padding: 18px 12px 16px;
    border-radius: 16px;
    background: rgba(8, 6, 18, 0.88);
    border: 1px solid rgba(140, 120, 210, 0.18);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}
.lu-rate-seats {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #b7b0c8;
}
.lu-rate-price {
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #f4f2fa;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.lu-rate-unit {
    font-size: 11px;
    color: #8a849c;
}

@media (max-width: 860px) {
    .lu-grid { grid-template-columns: 1fr; }
    .lu-checkout-box { grid-template-columns: 1fr; }
    .lu-checkout-due { text-align: left; }
    .lu-custom-controls { width: 100%; }
    .lu-custom-controls .lu-btn { flex: 1; }
    .lu-volume-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .lu-toggle { width: 100%; display: grid; }
    .lu-user { display: none; }
    .lu-volume-grid { grid-template-columns: 1fr; }
}

/* Payment success overlay */
.bill-paid-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 8, 14, 0.82);
    backdrop-filter: blur(6px);
}
.bill-paid-overlay[hidden] { display: none; }
.bill-paid-card {
    text-align: center;
    padding: 40px 44px;
    border-radius: 20px;
    background: #12151f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    max-width: 380px;
}
.bill-paid-card h2 { margin: 18px 0 8px; font-size: 22px; }
.bill-paid-card p { margin: 0 0 20px; opacity: 0.75; }
.bill-paid-check {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #0b0e14;
    background: #3fd47f;
    box-shadow: 0 0 0 8px rgba(63, 212, 127, 0.15);
    animation: billPaidPop 0.4s ease;
}
@keyframes billPaidPop {
    0% { transform: scale(0.4); opacity: 0; }
    70% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .bill-paid-check { animation: none; }
}
