:root {
    --navy: #061324;
    --navy-2: #0d1d34;
    --red: #d41420;
    --red-2: #a80e17;
    --ink: #111827;
    --muted: #647084;
    --line: #dfe5ee;
    --paper: #f5f7fb;
    --white: #ffffff;
    --shadow: 0 22px 60px rgba(6, 19, 36, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(212, 20, 32, 0.10), transparent 28%),
        linear-gradient(135deg, #fbfcff 0%, #eef2f7 48%, #ffffff 100%);
    font-family: "Tajawal", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.55;
    background-image:
        linear-gradient(120deg, transparent 0 60%, rgba(6, 19, 36, 0.04) 60% 61%, transparent 61%),
        linear-gradient(90deg, rgba(6, 19, 36, 0.035) 1px, transparent 1px);
    background-size: 100% 100%, 72px 72px;
}

a {
    color: inherit;
    text-decoration: none;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 84px;
    padding: 12px clamp(18px, 5vw, 64px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(223, 229, 238, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(6, 19, 36, 0.06);
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    display: block;
    width: clamp(215px, 22vw, 300px);
    height: auto;
}

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

.nav a,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 15px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav a:hover,
.secondary-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 20, 32, 0.34);
}

.nav .nav-cta {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--red-2));
    box-shadow: 0 12px 24px rgba(212, 20, 32, 0.22);
}

main {
    width: min(1180px, calc(100% - 34px));
    margin: 0 auto;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 405px);
    gap: clamp(26px, 5vw, 58px);
    align-items: center;
    min-height: calc(100vh - 84px);
    padding: clamp(34px, 6vw, 72px) 0 42px;
}

.hero::after {
    content: "";
    position: absolute;
    inset-inline-end: 26%;
    top: 54px;
    width: 210px;
    height: 210px;
    border: 30px solid rgba(212, 20, 32, 0.08);
    transform: skewX(-16deg) rotate(8deg);
    pointer-events: none;
    animation: floatMark 7s ease-in-out infinite;
}

.hero-copy {
    position: relative;
    z-index: 1;
    padding: clamp(22px, 4vw, 34px);
    border-inline-start: 6px solid var(--red);
    background: rgba(255, 255, 255, 0.62);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(6, 19, 36, 0.06);
}

.eyebrow {
    display: inline-flex;
    color: var(--red);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 720px;
    margin-bottom: 14px;
    color: var(--navy);
    font-size: clamp(34px, 4.6vw, 56px);
    line-height: 1.05;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 12px;
    color: var(--navy);
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 4px;
    color: var(--navy);
    font-size: 18px;
}

.hero p,
.location-panel p,
.success-panel p,
.form-head p {
    max-width: 650px;
    color: var(--muted);
    font-size: 15px;
}

.countdown-card {
    position: relative;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin: 24px 0 0;
    padding: 16px;
    overflow: hidden;
    border: 1px solid rgba(6, 19, 36, 0.10);
    border-radius: 8px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(6, 19, 36, 0.98), rgba(13, 29, 52, 0.94)),
        linear-gradient(120deg, transparent 0 58%, rgba(212, 20, 32, 0.45) 58% 100%);
    box-shadow: 0 20px 42px rgba(6, 19, 36, 0.16);
}

.countdown-card::after {
    content: "";
    position: absolute;
    inset-inline-end: -34px;
    top: -48px;
    width: 150px;
    height: 150px;
    border: 24px solid rgba(212, 20, 32, 0.28);
    transform: skewX(-15deg) rotate(10deg);
    animation: floatMark 6s ease-in-out infinite;
}

.workout-icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 104px;
    height: 92px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.workout-icon svg {
    width: 92px;
    height: 72px;
    overflow: visible;
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4.4;
}

.workout-icon .bar,
.workout-icon .post {
    stroke: rgba(255, 255, 255, 0.78);
}

.workout-icon .bar {
    stroke-width: 5;
}

.workout-icon .post {
    stroke-width: 5;
}

.workout-icon .athlete {
    stroke: #fff;
    animation: pullUpRep 1.9s ease-in-out infinite;
    transform-origin: 80px 18px;
}

.workout-icon circle {
    fill: var(--red);
    stroke: #fff;
    stroke-width: 4;
}

.countdown-content {
    position: relative;
    z-index: 1;
}

.countdown-content > span {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.countdown-grid div {
    min-height: 76px;
    padding: 10px 8px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    text-align: center;
}

.countdown-grid strong {
    display: block;
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    line-height: 1;
}

.countdown-grid small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 800;
}

.countdown-content p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    font-weight: 700;
}

.countdown-card.is-finished .workout-icon .athlete {
    animation-play-state: paused;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 22px 0 2px;
}

.hero-actions span {
    max-width: 420px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.facts,
.success-details,
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}

.facts div,
.success-details div,
.stats div,
.side-card {
    position: relative;
    overflow: hidden;
    padding: 16px;
    border: 1px solid rgba(223, 229, 238, 0.92);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
}

.facts div::before,
.side-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--red);
}

.facts span,
.success-details span,
.stats span,
.side-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.facts strong,
.success-details strong,
.stats strong,
.side-card strong {
    display: block;
    margin-top: 4px;
    color: var(--navy);
    font-size: 15px;
    line-height: 1.35;
}

.poster-wrap {
    position: relative;
    z-index: 1;
    animation: posterRise 0.9s ease both;
}

.poster-wrap::before {
    content: "";
    position: absolute;
    inset: 22px -16px -18px 30px;
    z-index: -1;
    background: linear-gradient(135deg, var(--navy), #020915);
    clip-path: polygon(11% 0, 100% 0, 89% 100%, 0 100%);
}

.poster-wrap img {
    display: block;
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.floating-badge {
    position: absolute;
    inset-inline-start: -18px;
    bottom: 28px;
    padding: 10px 14px;
    border-radius: 6px;
    color: #fff;
    background: var(--red);
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 15px 30px rgba(212, 20, 32, 0.28);
    animation: pulseBadge 2.8s ease-in-out infinite;
}

.highlights {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    margin: 0 0 28px;
    padding: 22px;
    border-radius: 8px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(6, 19, 36, 0.96), rgba(13, 29, 52, 0.94)),
        linear-gradient(120deg, transparent 0 64%, rgba(212, 20, 32, 0.42) 64% 100%);
    box-shadow: var(--shadow);
}

.highlights h2 {
    margin-bottom: 0;
    color: #fff;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.highlight-grid span {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 12px 13px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 14px;
    font-weight: 800;
}

.lookup-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 22px;
    align-items: end;
    margin: 0 0 28px;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid rgba(223, 229, 238, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 40px rgba(6, 19, 36, 0.08);
}

.lookup-panel h2 {
    margin: 4px 0 8px;
    font-size: clamp(24px, 3vw, 34px);
}

.lookup-panel p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.lookup-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.lookup-form.compact {
    width: min(620px, 100%);
    margin: 0 auto 22px;
}

.lookup-form button {
    width: auto;
    min-width: 150px;
}

.payment-summary,
.settings-grid {
    display: grid;
    gap: 12px;
}

.payment-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(760px, 100%);
    margin: 24px auto;
}

.payment-service-card {
    width: min(760px, 100%);
    margin: 18px auto 0;
    padding: 18px;
    border: 1px solid rgba(6, 19, 36, 0.10);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(6, 19, 36, 0.98), rgba(13, 29, 52, 0.94)),
        linear-gradient(120deg, transparent 0 66%, rgba(212, 20, 32, 0.34) 66% 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(6, 19, 36, 0.13);
}

.service-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.service-card-head span,
.service-facts span {
    display: block;
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.service-card-head strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 18px;
    line-height: 1.35;
}

.service-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.service-facts div {
    min-height: 72px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.service-facts strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
}

.payment-summary div,
.payment-total {
    padding: 16px;
    border: 1px solid rgba(223, 229, 238, 0.92);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
}

.payment-summary > div > span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.payment-summary strong {
    display: block;
    margin-top: 5px;
    color: var(--navy);
    font-size: 17px;
}

.payment-total {
    position: relative;
    overflow: hidden;
    grid-column: 1 / -1;
    border-color: rgba(212, 20, 32, 0.20);
    background:
        linear-gradient(135deg, rgba(212, 20, 32, 0.08), rgba(255, 255, 255, 0.96)),
        #fff;
    box-shadow: 0 16px 34px rgba(212, 20, 32, 0.08);
}

.payment-total::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: var(--red);
}

.payment-total strong {
    color: var(--red);
}

.total-amount {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 8px;
    white-space: nowrap;
}

.total-amount span {
    display: inline;
    color: var(--red);
    font-size: clamp(28px, 3.1vw, 38px);
    font-weight: 900;
    line-height: 1;
}

.total-amount small {
    color: var(--red);
    font-size: clamp(15px, 1.6vw, 20px);
    font-weight: 900;
    line-height: 1;
}

.payment-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: end;
    width: min(760px, 100%);
    margin: 0 auto;
}

.payment-form button:disabled {
    cursor: wait;
    opacity: 0.68;
    transform: none;
}

.coupon-message {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.35;
}

.coupon-message.is-invalid {
    color: var(--red);
}

.coupon-message.is-valid {
    color: #08733d;
}

.settings-form {
    display: grid;
    gap: 16px;
}

.settings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.toggle-line {
    display: flex;
    align-items: center;
    min-height: 48px;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
}

.toggle-line input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--red);
}

.settings-save {
    justify-self: end;
    width: auto;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 380px);
    gap: 26px;
    align-items: start;
    padding: 8px 0 54px;
}

.registration-form,
.location-panel,
.success-panel,
.map-wide,
.login-box,
.registration-card {
    border: 1px solid rgba(223, 229, 238, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 40px rgba(6, 19, 36, 0.08);
}

.registration-form {
    padding: clamp(20px, 3vw, 34px);
}

.form-head {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

label,
legend {
    display: block;
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
}

input,
textarea {
    width: 100%;
    margin-top: 7px;
    padding: 11px 12px;
    border: 1px solid #d5dce8;
    border-radius: 6px;
    color: var(--ink);
    background: #fbfcff;
    font: inherit;
    font-size: 14px;
    transition: border 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 20, 32, 0.12);
}

input.is-invalid {
    border-color: var(--red);
    background: rgba(212, 20, 32, 0.035);
    box-shadow: 0 0 0 3px rgba(212, 20, 32, 0.10);
}

.field-error {
    display: block;
    min-height: 18px;
    margin-top: 5px;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

fieldset {
    margin: 20px 0 0;
    padding: 0;
    border: 0;
}

.choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.choice {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px 10px 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.choice::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: background 0.18s ease;
}

.choice::after {
    content: "";
    position: absolute;
    inset-inline-end: -24px;
    bottom: -28px;
    width: 78px;
    height: 78px;
    border: 13px solid rgba(212, 20, 32, 0);
    transform: skewX(-15deg) rotate(8deg);
    transition: border-color 0.22s ease, transform 0.22s ease;
}

.choice:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 20, 32, 0.32);
    background: #fff;
}

.choice input {
    position: absolute;
    inset-inline-start: 12px;
    top: 50%;
    width: 17px;
    height: 17px;
    margin: 0;
    transform: translateY(-50%);
    accent-color: var(--red);
    opacity: 0;
}

.choice-icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(6, 19, 36, 0.10);
    border-radius: 50%;
    background: #fff;
    color: var(--navy);
    transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.choice-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.3;
}

.choice-text {
    position: relative;
    z-index: 1;
    display: block;
    padding-inline-start: 0;
}

body[dir="rtl"] .choice span {
    padding-inline-start: 0;
    padding-inline-end: 0;
}

.choice:has(input:checked),
.choice.is-selected {
    border-color: rgba(212, 20, 32, 0.55);
    background: linear-gradient(135deg, rgba(212, 20, 32, 0.08), #fff);
    box-shadow: 0 10px 26px rgba(212, 20, 32, 0.09);
    transform: translateY(-1px);
}

.choice:has(input:checked)::before,
.choice.is-selected::before {
    background: var(--red);
}

.choice:has(input:checked)::after,
.choice.is-selected::after {
    border-color: rgba(212, 20, 32, 0.12);
    transform: translateY(-4px) skewX(-15deg) rotate(8deg);
}

.choice:has(input:checked) .choice-icon,
.choice.is-selected .choice-icon {
    color: #fff;
    border-color: var(--red);
    background: var(--red);
    animation: iconPop 0.34s ease both;
}

.choice:has(input:checked) .choice-text,
.choice.is-selected .choice-text {
    color: var(--navy);
}

.other-field {
    display: block;
    margin-top: 10px;
    padding: 13px;
    border: 1px dashed rgba(212, 20, 32, 0.36);
    border-radius: 8px;
    background: rgba(212, 20, 32, 0.05);
    animation: softDrop 0.24s ease both;
}

.other-field[hidden] {
    display: none;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 24px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--red-2));
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(212, 20, 32, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button.primary-btn {
    width: 100%;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(212, 20, 32, 0.32);
}

.link-btn {
    width: auto;
    min-width: 170px;
    padding: 0 22px;
}

.alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(212, 20, 32, 0.28);
    border-radius: 6px;
    color: var(--red-2);
    background: rgba(212, 20, 32, 0.08);
    font-size: 13px;
    font-weight: 800;
}

.location-panel {
    position: sticky;
    top: 104px;
    padding: 20px;
}

.side-card {
    margin-bottom: 18px;
}

iframe {
    display: block;
    width: 100%;
    height: 340px;
    border: 0;
    border-radius: 8px;
}

.thanks-page {
    padding: 42px 0 56px;
}

.success-panel {
    padding: clamp(22px, 4vw, 40px);
    overflow: hidden;
    animation: successPanelIn 0.72s ease both;
}

.success-panel img,
.login-box img {
    width: 230px;
    max-width: 72%;
    margin-bottom: 22px;
}

.success-hero {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 10px;
    margin: 4px auto 18px;
    text-align: center;
}

.success-hero .eyebrow {
    margin-top: 4px;
}

.success-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(28px, 4.2vw, 46px);
    line-height: 1.22;
    text-align: center;
    animation: welcomeNameIn 0.8s ease 0.18s both;
}

.success-panel p {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.success-check {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(24, 160, 88, 0.16), rgba(24, 160, 88, 0.04) 62%, transparent 64%),
        #fff;
    box-shadow: 0 18px 38px rgba(24, 160, 88, 0.18);
    animation: checkPop 0.78s cubic-bezier(0.2, 1.2, 0.35, 1) both;
}

.success-check svg {
    width: 64px;
    height: 64px;
    fill: none;
    overflow: visible;
}

.success-check circle {
    stroke: rgba(24, 160, 88, 0.22);
    stroke-width: 4;
}

.success-check path {
    stroke: #18a058;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 44;
    stroke-dashoffset: 44;
    animation: drawCheck 0.55s ease 0.34s forwards;
}

.receipt-strip {
    display: grid;
    justify-items: center;
    gap: 9px;
    width: min(560px, 100%);
    margin: 22px auto 24px;
    padding: 18px;
    border: 1px dashed rgba(6, 19, 36, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
        #fff;
}

.receipt-page {
    position: relative;
}

.receipt-page::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 92px;
    pointer-events: none;
    background:
        linear-gradient(90deg, var(--red) 0 18px, transparent 18px),
        linear-gradient(135deg, rgba(6, 19, 36, 0.98), rgba(18, 36, 61, 0.94));
}

.receipt-page > img {
    position: relative;
    z-index: 1;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(6, 19, 36, 0.14);
}

.receipt-page .receipt-strip {
    margin-top: 10px;
    border-style: solid;
    border-color: rgba(212, 20, 32, 0.18);
    box-shadow: 0 18px 42px rgba(6, 19, 36, 0.08);
}

.receipt-page .success-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(760px, 100%);
    margin-right: auto;
    margin-left: auto;
}

.receipt-strip > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.receipt-strip > strong {
    color: var(--navy);
    font-size: clamp(28px, 5vw, 42px);
    letter-spacing: 0.08em;
    line-height: 1;
}

.barcode-svg {
    display: block;
    width: min(360px, 100%);
    height: auto;
    fill: var(--navy);
}

.barcode-bg {
    fill: #fff;
}

.barcode-svg text {
    font-family: "Courier New", monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 999px;
    font-style: normal;
    font-size: 13px;
    font-weight: 900;
}

.status-pill.confirmed {
    color: #08733d;
    background: rgba(24, 160, 88, 0.12);
}

.status-pill.pending {
    color: #9f5400;
    background: rgba(245, 158, 11, 0.14);
}

.status-pill.paid {
    color: #08733d;
    background: rgba(24, 160, 88, 0.12);
}

.status-pill.unpaid {
    color: var(--red);
    background: rgba(212, 20, 32, 0.10);
}

.account-state {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    width: min(760px, 100%);
    margin: 18px auto 10px;
    padding: 13px 14px;
    border-radius: 8px;
    border: 1px solid rgba(223, 229, 238, 0.92);
    background: #fff;
}

.account-state.paid {
    border-color: rgba(24, 160, 88, 0.28);
    background: rgba(24, 160, 88, 0.08);
}

.account-state.unpaid {
    border-color: rgba(212, 20, 32, 0.24);
    background: rgba(212, 20, 32, 0.06);
}

.state-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--red);
    font-size: 14px;
    font-weight: 900;
}

.account-state.paid .state-icon {
    background: #18a058;
}

.account-state strong,
.account-state span {
    display: block;
}

.account-state strong {
    color: var(--navy);
    font-size: 15px;
    line-height: 1.25;
}

.account-state span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.pay-now-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--red), #a80f19);
    box-shadow: 0 14px 30px rgba(212, 20, 32, 0.22);
    font-weight: 900;
    text-decoration: none;
}

.success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid rgba(6, 19, 36, 0.14);
    border-radius: 8px;
    color: var(--navy);
    background: #fff;
    font-weight: 900;
    text-decoration: none;
}

.primary-btn,
.secondary-btn,
.pay-now-btn,
.link-btn,
button.primary-btn {
    width: auto;
    min-width: 176px;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}

.success-actions .primary-btn,
.success-actions .secondary-btn,
.success-actions .pay-now-btn,
.success-actions .link-btn {
    flex: 0 1 220px;
}

.centered-alert {
    width: min(620px, 100%);
    margin: 16px auto;
    text-align: center;
}

.map-wide {
    margin-top: 24px;
    padding: 20px;
}

.map-wide iframe {
    height: 420px;
}

.admin-login {
    display: grid;
    min-height: calc(100vh - 160px);
    place-items: center;
    padding: 38px 0;
}

.login-box {
    width: min(420px, 100%);
    padding: 28px;
}

.dashboard {
    padding: 36px 0 52px;
}

.admin-pro {
    width: min(1380px, calc(100% - 34px));
}

.dashboard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.dashboard-head p {
    max-width: 720px;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.success-alert {
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid rgba(24, 160, 88, 0.25);
    border-radius: 8px;
    color: #08733d;
    background: rgba(24, 160, 88, 0.10);
    font-size: 14px;
    font-weight: 800;
}

.stats {
    grid-template-columns: 170px minmax(0, 1fr);
    margin-bottom: 26px;
}

.stats strong {
    font-size: 22px;
}

.admin-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.admin-kpis div {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    padding: 18px;
    border: 1px solid rgba(223, 229, 238, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(6, 19, 36, 0.08);
}

.admin-kpis div::after {
    content: "";
    position: absolute;
    inset-inline-end: -32px;
    bottom: -42px;
    width: 120px;
    height: 120px;
    border: 22px solid rgba(212, 20, 32, 0.08);
    transform: skewX(-14deg) rotate(10deg);
}

.admin-kpis span,
.admin-kpis small {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.admin-kpis strong {
    display: block;
    margin: 8px 0 2px;
    color: var(--navy);
    font-size: 40px;
    line-height: 1;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.analytics-card,
.admin-table-panel {
    padding: 20px;
    border: 1px solid rgba(223, 229, 238, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 40px rgba(6, 19, 36, 0.08);
}

.wide-card {
    grid-column: 1 / -1;
}

.panel-head {
    margin-bottom: 16px;
}

.panel-head h2 {
    margin-bottom: 0;
    font-size: 21px;
}

.donut-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.donut-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 122px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.donut {
    display: grid;
    flex: 0 0 auto;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #fff 0 54%, transparent 55%),
        conic-gradient(var(--red) calc(var(--pct) * 1%), #dfe5ee 0);
}

.donut-green {
    background:
        radial-gradient(circle at center, #fff 0 54%, transparent 55%),
        conic-gradient(#18a058 calc(var(--pct) * 1%), #dfe5ee 0);
}

.donut span {
    color: var(--navy);
    font-size: 16px;
    font-weight: 900;
}

.donut-card strong,
.donut-card small {
    display: block;
}

.donut-card strong {
    color: var(--navy);
    font-size: 15px;
}

.donut-card small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.bar-list {
    display: grid;
    gap: 12px;
}

.bar-row {
    display: grid;
    gap: 7px;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
}

.bar-label strong {
    color: var(--red);
}

.bar-track {
    overflow: hidden;
    height: 10px;
    border-radius: 999px;
    background: #e6ebf2;
}

.bar-track span {
    display: block;
    height: 100%;
    min-width: 4px;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--red), var(--navy));
    animation: growBar 0.8s ease both;
}

.table-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.table-hint {
    color: #08733d;
    font-size: 13px;
    font-weight: 800;
}

.table-scroll {
    overflow-x: auto;
    margin-top: 14px;
}

.admin-table {
    width: 100%;
    min-width: 1260px;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.admin-table th {
    padding: 0 12px 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-align: start;
    white-space: nowrap;
}

.admin-table td {
    padding: 14px 12px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
    vertical-align: top;
    font-size: 14px;
}

.admin-table td:first-child {
    border-inline-start: 1px solid var(--line);
    border-radius: 8px 0 0 8px;
}

.admin-table td:last-child {
    border-inline-end: 1px solid var(--line);
    border-radius: 0 8px 8px 0;
}

body[dir="rtl"] .admin-table td:first-child {
    border-radius: 0 8px 8px 0;
}

body[dir="rtl"] .admin-table td:last-child {
    border-radius: 8px 0 0 8px;
}

.admin-table tr.is-confirmed td {
    border-color: rgba(24, 160, 88, 0.28);
    background: #effaf4;
}

.admin-table tr.is-archived td {
    border-color: rgba(148, 163, 184, 0.32);
    background: #f8fafc;
}

.archive-panel {
    margin-top: 24px;
}

.archive-table {
    min-width: 900px;
}

.admin-table td strong,
.admin-table td span {
    display: block;
}

.admin-table td span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.row-form {
    margin: 0;
}

.mini-check {
    display: flex;
    align-items: center;
    min-height: 40px;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    font-weight: 900;
}

.mini-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #18a058;
}

.admin-table textarea {
    width: 100%;
    min-width: 230px;
    min-height: 40px;
    margin: 0;
    padding: 9px 10px;
    font-size: 13px;
}

.table-details {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.72);
}

.table-details summary {
    color: var(--navy);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}

.table-details dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
}

.table-save {
    width: 72px;
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: var(--navy);
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.archive-form {
    margin: 0;
}

.archive-btn {
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid rgba(212, 20, 32, 0.22);
    border-radius: 6px;
    color: var(--red);
    background: rgba(212, 20, 32, 0.08);
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.archive-btn:hover {
    background: rgba(212, 20, 32, 0.14);
}

.registrations {
    display: grid;
    gap: 16px;
}

.registration-card {
    padding: 18px;
}

.card-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.card-top span {
    color: var(--muted);
    font-size: 13px;
}

dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 18px;
    margin: 16px 0 0;
}

dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

dd {
    margin: 2px 0 0;
    color: var(--ink);
    font-size: 14px;
}

.empty {
    color: var(--muted);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px clamp(18px, 5vw, 64px);
    border-top: 1px solid rgba(223, 229, 238, 0.95);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.94);
    font-size: 13px;
}

.site-footer div,
.site-footer p {
    margin: 0;
}

.site-footer strong,
.site-footer span {
    display: block;
}

.site-footer strong {
    color: var(--navy);
    font-size: 14px;
}

.site-footer a {
    color: var(--red);
    font-weight: 900;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes floatMark {
    0%,
    100% {
        transform: translateY(0) skewX(-16deg) rotate(8deg);
    }

    50% {
        transform: translateY(18px) skewX(-16deg) rotate(8deg);
    }
}

@keyframes posterRise {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulseBadge {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes pullUpRep {
    0%,
    100% {
        transform: translateY(10px);
    }

    42% {
        transform: translateY(-7px);
    }

    62% {
        transform: translateY(-7px);
    }
}

@keyframes softDrop {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes successPanelIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes checkPop {
    0% {
        opacity: 0;
        transform: scale(0.66);
    }

    68% {
        opacity: 1;
        transform: scale(1.08);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes welcomeNameIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes iconPop {
    0% {
        transform: scale(0.82);
    }

    62% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes growBar {
    from {
        width: 0;
    }
}

@media (max-width: 960px) {
    .hero,
    .content-grid,
    .highlights,
    .lookup-panel,
    .analytics-grid,
    .admin-kpis {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .poster-wrap {
        max-width: 430px;
    }

    .location-panel {
        position: static;
    }

    .facts,
    .success-details,
    dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .highlight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wide-card {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14px;
    }

    main {
        width: min(100% - 24px, 1180px);
    }

    .topbar {
        min-height: 70px;
        padding: 10px 14px;
        gap: 10px;
    }

    .brand img {
        width: 190px;
        max-width: 58vw;
    }

    .nav {
        gap: 6px;
    }

    .nav a {
        min-height: 34px;
        padding: 7px 9px;
        font-size: 12px;
    }

    .nav .nav-cta {
        display: none;
    }

    .hero {
        gap: 22px;
        padding: 22px 0 28px;
    }

    .hero-copy {
        padding: 20px 18px;
        border-inline-start-width: 4px;
    }

    .hero::after {
        width: 130px;
        height: 130px;
        border-width: 20px;
        inset-inline-end: 8px;
        top: 88px;
    }

    h1 {
        font-size: 31px;
    }

    h2 {
        font-size: 21px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .lookup-form {
        grid-template-columns: 1fr;
    }

    .lookup-form button {
        width: 100%;
    }

    .payment-summary,
    .payment-form,
    .service-facts,
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .service-card-head {
        align-items: stretch;
        flex-direction: column;
    }

    .settings-save,
    .payment-form button {
        width: 100%;
    }

    .countdown-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
    }

    .workout-icon {
        width: 100%;
        height: 78px;
    }

    .workout-icon svg {
        width: 86px;
        height: 66px;
    }

    .countdown-grid {
        gap: 7px;
    }

    .countdown-grid div {
        min-height: 68px;
        padding: 9px 5px;
    }

    .countdown-grid strong {
        font-size: 24px;
    }

    .link-btn {
        width: 100%;
    }

    .field-row,
    .choices,
    .facts,
    .success-details,
    .stats,
    .highlight-grid,
    dl {
        grid-template-columns: 1fr;
    }

    .facts {
        gap: 9px;
    }

    .facts div {
        padding: 13px 14px;
    }

    .poster-wrap {
        max-width: 100%;
    }

    .floating-badge {
        inset-inline-start: 12px;
        bottom: 16px;
    }

    .highlights {
        padding: 18px;
    }

    .receipt-strip {
        padding: 14px;
    }

    .receipt-strip > strong {
        font-size: 28px;
    }

    .success-actions {
        flex-direction: column;
    }

    .account-state {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .pay-now-btn {
        width: 100%;
    }

    .content-grid {
        padding-bottom: 34px;
    }

    .registration-form,
    .location-panel {
        padding: 18px;
    }

    iframe,
    .map-wide iframe {
        height: 300px;
    }

    .success-check {
        width: 64px;
        height: 64px;
    }

    .success-check svg {
        width: 56px;
        height: 56px;
    }

    .dashboard-head,
    .card-top,
    .site-footer,
    .table-title,
    .donut-grid {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-pro {
        width: min(100% - 24px, 1380px);
    }

    .admin-kpis div {
        min-height: 112px;
    }

    .analytics-card,
    .admin-table-panel {
        padding: 16px;
    }

    .site-footer {
        position: relative;
        align-items: center;
        gap: 22px;
        padding: 22px 18px 24px;
        text-align: center;
    }

    .site-footer::before {
        content: "";
        order: 2;
        display: block;
        width: 92px;
        height: 1px;
        border-radius: 999px;
        background: linear-gradient(90deg, transparent, rgba(6, 19, 36, 0.18), transparent);
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    .site-footer div {
        order: 1;
        width: 100%;
    }

    .site-footer p {
        order: 3;
        width: 100%;
    }

    .site-footer strong {
        font-size: 15px;
    }

    .site-footer span {
        margin-top: 3px;
    }
}

@media (min-width: 641px) {
    .success-actions {
        align-items: center;
    }

    .success-actions .primary-btn,
    .success-actions .secondary-btn,
    .success-actions .pay-now-btn,
    .success-actions .link-btn {
        width: 220px;
    }
}

@media (max-width: 640px) {
    .primary-btn,
    .secondary-btn,
    .pay-now-btn,
    .link-btn,
    button.primary-btn {
        width: 100%;
        min-width: 0;
        min-height: 46px;
        padding: 11px 16px;
        font-size: 13px;
    }

    .account-state {
        padding: 14px;
        gap: 9px;
    }

    .account-state strong {
        font-size: 14px;
    }

    .account-state span {
        font-size: 12px;
    }
}

.success-actions .primary-btn,
.success-actions .secondary-btn,
.success-actions .pay-now-btn,
.success-actions .link-btn {
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
}

@media (max-width: 640px) {
    .success-actions {
        gap: 10px;
    }

    .success-actions .primary-btn,
    .success-actions .secondary-btn,
    .success-actions .pay-now-btn,
    .success-actions .link-btn {
        flex: 0 0 48px;
        width: 100%;
        height: 48px;
        min-height: 48px;
        max-height: 48px;
        padding: 0 14px;
        font-size: 13px;
        line-height: 1;
        box-shadow: 0 10px 20px rgba(212, 20, 32, 0.16);
    }
}
