*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #081B33;
    --navy-hover: #0d2a4a;
    --blue: #246BFD;
    --teal: #16B8A6;
    --teal-bg: rgba(22, 184, 166, 0.1);
    --canvas: #F8FAFC;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --border-light: #EDF2F7;
    --text: #0F172A;
    --text-secondary: #475569;
    --text-muted: #8492A6;
    --error: #DC2626;
    --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
    min-height: 100%;
    font-family: var(--font-sans);
    background: var(--canvas);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Background ── */
.gw-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: url('/img/london_towers.jpg') center center / cover no-repeat;
}

.gw-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(248, 250, 252, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ── Main Layout ── */
.gw-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
}

/* ── Horizontal Card ── */
.gw-card-horizontal {
    width: 100%;
    max-width: 820px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.75);
    border-radius: 20px;
    padding: 2.8rem 2.8rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.02),
        0 16px 48px rgba(8, 27, 51, 0.08);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    opacity: 0;
    animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ── Left Column: Info ── */
.gw-col-info {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    padding-right: 1.5rem;
}

.gw-badge-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.gw-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    transition: all 0.35s ease;
    flex-shrink: 0;
}

.gw-card-horizontal.verified .gw-badge {
    background: var(--teal-bg);
    border-color: rgba(22, 184, 166, 0.35);
    color: var(--teal);
    transform: scale(1.05);
}

.gw-badge-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.gw-heading {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.65rem;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.gw-subtext {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.8rem;
    font-weight: 400;
}

.gw-info-badges {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: auto;
}

.gw-sec-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.gw-sec-badge svg {
    color: var(--teal);
    flex-shrink: 0;
}

/* ── Divider ── */
.gw-divider {
    width: 1px;
    background: var(--border-light);
    margin: 0 1.5rem;
    align-self: stretch;
}

/* ── Right Column: Action ── */
.gw-col-action {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-left: 1.5rem;
}

.gw-action-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1.4rem;
}

.gw-step-indicator {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--blue);
    background: rgba(36, 107, 253, 0.08);
    padding: 0.28rem 0.65rem;
    border-radius: 6px;
}

.gw-step-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Turnstile Widget ── */
.gw-turnstile-wrapper {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    width: 100%;
}

/* ── Status Text ── */
.gw-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    min-height: 22px;
    margin-bottom: 1.3rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.gw-status .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue);
    display: inline-block;
    animation: pulse 1.8s infinite;
}

.gw-status.ok {
    color: var(--teal);
}

.gw-status.ok .status-dot {
    background: var(--teal);
    animation: none;
}

.gw-status.err {
    color: var(--error);
}

.gw-status.err .status-dot {
    background: var(--error);
    animation: none;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.25); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

/* ── Button ── */
.gw-btn {
    width: 100%;
    padding: 0.9rem 1.4rem;
    background: var(--navy);
    border: none;
    border-radius: 10px;
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(8, 27, 51, 0.15);
}

.gw-btn .btn-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.gw-btn:not(:disabled):hover {
    background: var(--navy-hover);
    box-shadow: 0 6px 20px rgba(8, 27, 51, 0.25);
    transform: translateY(-1px);
}

.gw-btn:not(:disabled):hover .btn-arrow {
    transform: translateX(4px);
}

.gw-btn:not(:disabled):active {
    transform: translateY(0);
}

.gw-btn:disabled {
    opacity: 0.45;
    background: #64748B;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ── Action Note ── */
.gw-action-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1.1rem;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.gw-action-note svg {
    color: var(--text-muted);
}

/* ── Footer ── */
.gw-footer {
    margin-top: 2rem;
    text-align: center;
    opacity: 0;
    animation: fadeUp 0.5s ease 0.3s forwards;
}

.gw-footer-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    line-height: 1.7;
    font-weight: 400;
}

/* ── Animations ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive Behavior ── */
@media (max-width: 768px) {
    .gw-card-horizontal {
        flex-direction: column;
        max-width: 440px;
        padding: 2.2rem 1.8rem;
    }

    .gw-col-info {
        padding-right: 0;
        margin-bottom: 1.5rem;
    }

    .gw-heading {
        font-size: 1.3rem;
    }

    .gw-subtext {
        margin-bottom: 1.2rem;
    }

    .gw-info-badges {
        margin-bottom: 0.5rem;
    }

    .gw-divider {
        width: 100%;
        height: 1px;
        margin: 1.2rem 0 1.5rem;
    }

    .gw-col-action {
        padding-left: 0;
    }
}
