:root {
    --navy: #052d72;
    --navy-dark: #021d4e;
    --wine: #ad073d;
    --gold: #efb834;
    --green: #5b920c;
    --ink: #2c2b30;
    --muted: #77737a;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100svh;
    display: grid;
    place-items: center;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 20%, rgba(239, 184, 52, .2), transparent 30%),
        radial-gradient(circle at 85% 80%, rgba(173, 7, 61, .24), transparent 32%),
        linear-gradient(145deg, var(--navy), var(--navy-dark));
    font-family: "Manrope", sans-serif;
}
html[dir="rtl"] body { font-family: "Cairo", sans-serif; }

.geofence-shell { width: min(100%, 700px); padding: 28px; }
.geofence-card {
    padding: clamp(28px, 7vw, 58px);
    text-align: center;
    background: rgba(255, 255, 255, .98);
    border-radius: 30px;
    box-shadow: 0 34px 90px rgba(0, 13, 45, .42);
}
.geofence-brands { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.geofence-brands img { width: auto; height: 66px; max-width: 190px; object-fit: contain; }
.geofence-brands a { color: var(--navy); font-size: 14px; font-weight: 800; }
.geofence-icon {
    width: 84px;
    height: 84px;
    margin: 32px auto 22px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 14px 32px rgba(91, 146, 12, .28);
}
.geofence-icon svg { width: 43px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.geofence-kicker { margin: 0 0 8px; color: var(--wine); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.geofence-card h1 { margin: 0; color: var(--navy-dark); font-size: clamp(28px, 5vw, 42px); line-height: 1.25; }
.geofence-card > p:not(.geofence-kicker):not(.geofence-privacy):not(.geofence-attribution) { max-width: 510px; margin: 18px auto 28px; color: var(--muted); line-height: 1.8; }
.geofence-token { display: none; }
#verify-location {
    width: min(100%, 380px);
    min-height: 58px;
    padding: 14px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    background: var(--green);
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
#verify-location:hover { background: #406907; }
#verify-location:disabled { cursor: wait; opacity: .78; }
.geofence-spinner { display: none; width: 19px; height: 19px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
#verify-location.is-loading .geofence-spinner { display: block; }
.geofence-privacy { margin: 18px 0 0; color: #8d8990; font-size: 12px; }
.geofence-attribution { margin: 20px 0 0; color: #aaa6ad; font-size: 10px; }
.geofence-attribution a { text-decoration: underline; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
    .geofence-shell { padding: 15px; }
    .geofence-card { padding: 25px 20px; border-radius: 22px; }
    .geofence-brands img { height: 50px; max-width: 150px; }
    .geofence-icon { width: 70px; height: 70px; margin-top: 25px; }
}
