:root {
    --navy-950: #041326;
    --navy-900: #071a33;
    --navy-850: #0a2343;
    --navy-800: #0d2f58;
    --navy-700: #174a7c;
    --gold-500: #d9a441;
    --gold-400: #efc76e;
    --ink: #142033;
    --muted: #657085;
    --paper: #f4f7fa;
    --white: #ffffff;
    --line: #dbe3ec;
    --success: #19734a;
    --danger: #a52d38;
    --shadow-sm: 0 10px 30px rgba(7, 26, 51, .08);
    --shadow-md: 0 22px 60px rgba(7, 26, 51, .13);
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 30px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
label,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

main {
    min-height: 70vh;
}

/* ===== STICKY HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 76px;
    padding: 14px clamp(18px, 5vw, 76px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #fff;
    background: var(--navy-950);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Optional: Add shadow when scrolled */
.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== BRAND WITH CFA LOGO ===== */
.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.brand-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    color: var(--navy-950);
    background: var(--gold-400);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 950;
    letter-spacing: .05em;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 15px;
    line-height: 1.25;
}

.brand small {
    margin-top: 2px;
    color: #aebdd0;
    font-size: 11px;
}

/* ===== ADMIN NAV ===== */
.admin-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-nav a {
    padding: 8px 11px;
    color: #d9e4f0;
    border-radius: 10px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 750;
}

.admin-nav a:hover,
.admin-nav a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .09);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 680px) {
    .site-header {
        min-height: 68px;
        padding: 12px 16px;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .brand small {
        display: none;
    }
    
    .brand-mark {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        font-size: 13px;
        border-radius: 12px;
    }
    
    .brand strong {
        font-size: 13px;
    }

    .admin-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 4px;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    
    .admin-nav a {
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 10px 12px;
    }
    
    .brand-mark {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
        font-size: 11px;
        border-radius: 10px;
    }
    
    .brand strong {
        font-size: 12px;
    }
    
    .brand small {
        display: none;
    }
}

/* ===== HERO SECTION - ENHANCED ===== */
.hero {
    position: relative;
    min-height: 520px;
    padding: 48px clamp(18px, 6vw, 96px);
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    background: var(--navy-950);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.30;
    transform: scale(1.05);
    transition: transform 20s ease-out;
}

.hero:hover .hero-bg {
    transform: scale(1);
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, 
            rgba(4, 19, 38, 0.95) 0%, 
            rgba(4, 19, 38, 0.88) 20%,
            rgba(4, 19, 38, 0.80) 40%,
            rgba(4, 19, 38, 0.75) 60%,
            rgba(4, 19, 38, 0.85) 80%,
            rgba(4, 19, 38, 0.95) 100%
        ),
        radial-gradient(circle at 30% 20%, rgba(217, 164, 65, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(217, 164, 65, 0.04) 0%, transparent 40%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 5px;
    z-index: 1;
    background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

.hero-content {
    width: min(100%, 1280px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0;
    color: var(--gold-400);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-align: center;
}

.eyebrow.dark {
    color: #9a680b;
}

.hero-title-three-lines {
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", Arial, sans-serif;
    font-weight: 900;
    line-height: 1.04;
    text-wrap: balance;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.8), 0 2px 20px rgba(0, 0, 0, 0.6);
    text-align: center;
    width: 100%;
}

.hero-title-three-lines span {
    display: block;
    white-space: nowrap;
    text-align: center;
}

/* LINE 1 - Pure White */
.hero-title-three-lines span:nth-child(1) {
    font-size: clamp(28px, 3.2vw, 56px);
    letter-spacing: .045em;
    color: #ffffff;
}

/* LINE 2 - Pure White with slight opacity */
.hero-title-three-lines span:nth-child(2) {
    font-size: clamp(20px, 2.2vw, 40px);
    font-weight: 800;
    letter-spacing: .025em;
    color: rgba(255, 255, 255, 0.92);
}

/* LINE 3 - Plain Gold (not gradient) */
.hero-title-three-lines span:nth-child(3) {
    font-size: clamp(30px, 4.2vw, 68px);
    letter-spacing: .065em;
    color: var(--gold-500);
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.support-count {
    color: #d7e3ef;
    font-size: 13px;
    font-weight: 650;
    text-align: center;
}

.support-count strong {
    color: #fff;
    font-size: 18px;
}

.support-count.large {
    display: block;
    color: var(--muted);
    font-size: 15px;
}

.support-count.large strong {
    color: var(--navy-900);
}

/* ===== HERO SECTION - ENHANCED ===== */
.hero {
    position: relative;
    min-height: 520px;
    padding: 48px clamp(18px, 6vw, 96px);
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    background: var(--navy-950);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.30;
    transform: scale(1.05);
    transition: transform 20s ease-out;
}

.hero:hover .hero-bg {
    transform: scale(1);
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, 
            rgba(4, 19, 38, 0.95) 0%, 
            rgba(4, 19, 38, 0.88) 20%,
            rgba(4, 19, 38, 0.80) 40%,
            rgba(4, 19, 38, 0.75) 60%,
            rgba(4, 19, 38, 0.85) 80%,
            rgba(4, 19, 38, 0.95) 100%
        ),
        radial-gradient(circle at 30% 20%, rgba(217, 164, 65, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(217, 164, 65, 0.04) 0%, transparent 40%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 5px;
    z-index: 1;
    background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

.hero-content {
    width: min(100%, 1280px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0;
    color: var(--gold-400);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-align: center;
}

.eyebrow.dark {
    color: #9a680b;
}

.hero-title-three-lines {
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", Arial, sans-serif;
    font-weight: 900;
    line-height: 1.04;
    text-wrap: balance;
    text-align: center;
    width: 100%;
}

.hero-title-three-lines span {
    display: block;
    white-space: nowrap;
    text-align: center;
}

/* LINE 1 - Pure White, no shadow */
.hero-title-three-lines span:nth-child(1) {
    font-size: clamp(28px, 3.2vw, 56px);
    letter-spacing: .045em;
    color: #ffffff;
    text-shadow: none;
}

/* LINE 2 - Pure White with slight opacity, no shadow */
.hero-title-three-lines span:nth-child(2) {
    font-size: clamp(20px, 2.2vw, 40px);
    font-weight: 800;
    letter-spacing: .025em;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: none;
}

/* LINE 3 - Plain Gold, no shadow */
.hero-title-three-lines span:nth-child(3) {
    font-size: clamp(30px, 4.2vw, 68px);
    letter-spacing: .065em;
    color: var(--gold-500);
    text-shadow: none;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.support-count {
    color: #d7e3ef;
    font-size: 13px;
    font-weight: 650;
    text-align: center;
}

.support-count strong {
    color: #fff;
    font-size: 18px;
}

.support-count.large {
    display: block;
    color: var(--muted);
    font-size: 15px;
}

.support-count.large strong {
    color: var(--navy-900);
}

/* ===== HERO SECTION - PREMIUM INTERACTIVE ===== */
.hero {
    position: relative;
    min-height: 560px;
    padding: 48px clamp(18px, 6vw, 96px);
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    background: var(--navy-950);
}

/* Animated Background */
.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.35;
    transform: scale(1.08);
    transition: transform 12s ease-out;
}

.hero:hover .hero-bg {
    transform: scale(1);
}

/* Floating particles overlay */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(217, 164, 65, 0.3);
    border-radius: 50%;
    animation: float-particle linear infinite;
}

.particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-duration: 14s;
    animation-delay: 0s;
    width: 8px;
    height: 8px;
    background: rgba(217, 164, 65, 0.15);
}

.particle:nth-child(2) {
    left: 25%;
    top: 60%;
    animation-duration: 18s;
    animation-delay: 2s;
    width: 5px;
    height: 5px;
    background: rgba(217, 164, 65, 0.2);
}

.particle:nth-child(3) {
    left: 45%;
    top: 15%;
    animation-duration: 16s;
    animation-delay: 4s;
    width: 10px;
    height: 10px;
    background: rgba(217, 164, 65, 0.1);
}

.particle:nth-child(4) {
    left: 65%;
    top: 70%;
    animation-duration: 20s;
    animation-delay: 1s;
    width: 7px;
    height: 7px;
    background: rgba(217, 164, 65, 0.18);
}

.particle:nth-child(5) {
    left: 80%;
    top: 30%;
    animation-duration: 15s;
    animation-delay: 3s;
    width: 4px;
    height: 4px;
    background: rgba(217, 164, 65, 0.25);
}

.particle:nth-child(6) {
    left: 50%;
    top: 85%;
    animation-duration: 22s;
    animation-delay: 5s;
    width: 9px;
    height: 9px;
    background: rgba(217, 164, 65, 0.12);
}

.particle:nth-child(7) {
    left: 15%;
    top: 45%;
    animation-duration: 19s;
    animation-delay: 7s;
    width: 6px;
    height: 6px;
    background: rgba(217, 164, 65, 0.2);
}

.particle:nth-child(8) {
    left: 70%;
    top: 10%;
    animation-duration: 17s;
    animation-delay: 6s;
    width: 5px;
    height: 5px;
    background: rgba(217, 164, 65, 0.15);
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-80px) translateX(20px) scale(1.2);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-160px) translateX(-15px) scale(0.8);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-240px) translateX(30px) scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: translateY(-320px) translateX(-10px) scale(1);
        opacity: 0;
    }
}

/* Premium Gradient Overlay */
.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, 
            rgba(4, 19, 38, 0.92) 0%, 
            rgba(4, 19, 38, 0.82) 20%,
            rgba(4, 19, 38, 0.72) 40%,
            rgba(4, 19, 38, 0.65) 60%,
            rgba(4, 19, 38, 0.78) 80%,
            rgba(4, 19, 38, 0.92) 100%
        ),
        radial-gradient(circle at 20% 30%, rgba(217, 164, 65, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(217, 164, 65, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(217, 164, 65, 0.04) 0%, transparent 60%);
}

/* Gold Glow Line - Animated */
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 4px;
    z-index: 1;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(217, 164, 65, 0.3) 20%,
        var(--gold-500) 50%,
        rgba(217, 164, 65, 0.3) 80%,
        transparent
    );
    animation: glow-line 4s ease-in-out infinite;
}

@keyframes glow-line {
    0%, 100% {
        opacity: 0.6;
        transform: scaleX(0.95);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.05);
    }
}

/* Corner Accents */
.hero-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

.hero-corner-tl {
    top: 20px;
    left: 20px;
    border-top: 2px solid var(--gold-500);
    border-left: 2px solid var(--gold-500);
}

.hero-corner-tr {
    top: 20px;
    right: 20px;
    border-top: 2px solid var(--gold-500);
    border-right: 2px solid var(--gold-500);
}

.hero-corner-bl {
    bottom: 30px;
    left: 20px;
    border-bottom: 2px solid var(--gold-500);
    border-left: 2px solid var(--gold-500);
}

.hero-corner-br {
    bottom: 30px;
    right: 20px;
    border-bottom: 2px solid var(--gold-500);
    border-right: 2px solid var(--gold-500);
}

.hero-corner::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold-500);
    opacity: 0.4;
}

.hero-corner-tl::before { top: -6px; left: -6px; }
.hero-corner-tr::before { top: -6px; right: -6px; }
.hero-corner-bl::before { bottom: -6px; left: -6px; }
.hero-corner-br::before { bottom: -6px; right: -6px; }

.hero-content {
    width: min(100%, 1280px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 1;
    animation: hero-fade-in 1.2s ease-out forwards;
}

@keyframes hero-fade-in {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px 6px 12px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
    animation: hero-fade-in 1.2s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #29a466;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.eyebrow {
    margin: 0;
    color: var(--gold-400);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-align: center;
}

.eyebrow.dark {
    color: #9a680b;
}

/* Hero Title - Premium Typography */
.hero-title-three-lines {
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", Arial, sans-serif;
    font-weight: 900;
    line-height: 1.04;
    text-wrap: balance;
    text-align: center;
    width: 100%;
    animation: hero-fade-in 1.2s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-title-three-lines span {
    display: block;
    white-space: nowrap;
    text-align: center;
}

/* LINE 1 - Pure White with letter spacing */
.hero-title-three-lines span:nth-child(1) {
    font-size: clamp(28px, 3.2vw, 56px);
    letter-spacing: .045em;
    color: #ffffff;
    text-shadow: none;
}

/* LINE 2 - Pure White with slight opacity */
.hero-title-three-lines span:nth-child(2) {
    font-size: clamp(20px, 2.2vw, 40px);
    font-weight: 800;
    letter-spacing: .025em;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: none;
}

/* LINE 3 - Premium Gold */
.hero-title-three-lines span:nth-child(3) {
    font-size: clamp(30px, 4.2vw, 68px);
    letter-spacing: .065em;
    color: var(--gold-500);
    text-shadow: 0 0 40px rgba(217, 164, 65, 0.15);
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    animation: hero-fade-in 1.2s ease-out 0.6s forwards;
    opacity: 0;
}

/* Premium Button */
.button-hero {
    padding: 16px 36px;
    font-size: 17px;
    border-radius: 50px !important;
    box-shadow: 0 16px 40px rgba(217, 164, 65, 0.35);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    font-weight: 900 !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.button-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.button-hero:hover::before {
    opacity: 1;
}

.button-hero:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 24px 60px rgba(217, 164, 65, 0.5);
    text-decoration: none !important;
}

.button-hero:active {
    transform: scale(0.97);
}

.button-hero:focus,
.button-hero:active,
.button-hero:visited {
    text-decoration: none !important;
}

.button-hero span {
    font-weight: 900 !important;
}

.button-primary {
    color: #241801;
    background: linear-gradient(135deg, #f3cf7b, var(--gold-500));
    box-shadow: 0 14px 35px rgba(217, 164, 65, .25);
}

/* Support Count - Interactive */
.support-count {
    color: #d7e3ef;
    font-size: 13px;
    font-weight: 650;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: default;
}

.support-count:hover {
    transform: scale(1.05);
}

.support-count strong {
    color: #fff;
    font-size: 18px;
    transition: color 0.3s ease;
}

.support-count:hover strong {
    color: var(--gold-400);
}

.support-count.large {
    display: block;
    color: var(--muted);
    font-size: 15px;
}

.support-count.large strong {
    color: var(--navy-900);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 680px) {
    .hero {
        min-height: 0;
        height: auto;
        padding: 40px 16px 36px;
    }

    .hero-bg {
        opacity: .25;
    }

    .hero-shade {
        background:
            linear-gradient(180deg, 
                rgba(4, 19, 38, 0.97) 0%, 
                rgba(4, 19, 38, 0.90) 20%,
                rgba(4, 19, 38, 0.82) 40%,
                rgba(4, 19, 38, 0.78) 60%,
                rgba(4, 19, 38, 0.88) 80%,
                rgba(4, 19, 38, 0.97) 100%
            ),
            radial-gradient(circle at 30% 20%, rgba(217, 164, 65, 0.04) 0%, transparent 50%),
            radial-gradient(circle at 70% 80%, rgba(217, 164, 65, 0.03) 0%, transparent 40%);
    }

    .hero-corner {
        display: none;
    }

    .hero-particles {
        display: none;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
    }

    .hero-title-three-lines {
        width: min(100%, 540px);
        max-width: 100%;
        margin-top: 12px;
        gap: 4px;
        line-height: 1.1;
    }

    .hero-title-three-lines span {
        width: 100%;
        white-space: normal;
        text-align: center;
    }

    .hero-title-three-lines span:nth-child(1) {
        font-size: clamp(22px, 7vw, 32px);
        letter-spacing: .018em;
        color: #ffffff;
        text-shadow: none;
    }

    .hero-title-three-lines span:nth-child(2) {
        font-size: clamp(18px, 5.5vw, 26px);
        letter-spacing: .01em;
        color: rgba(255, 255, 255, 0.92);
        text-shadow: none;
    }

    .hero-title-three-lines span:nth-child(3) {
        font-size: clamp(26px, 8.5vw, 38px);
        letter-spacing: .025em;
        color: var(--gold-500);
        text-shadow: 0 0 30px rgba(217, 164, 65, 0.1);
    }

    .hero-actions {
        width: 100%;
        margin-top: 20px;
        gap: 12px;
        justify-content: center;
    }

    .hero-actions .button {
        width: 100%;
    }

    .support-count {
        width: 100%;
        text-align: center;
    }

    .button-hero {
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
        border-radius: 50px !important;
        text-align: center;
    }

    .hero-badge {
        font-size: 9px;
        padding: 5px 14px 5px 10px;
    }
}

@media (max-width: 380px) {
    .hero-title-three-lines span:nth-child(1) {
        font-size: 20px;
        color: #ffffff;
        text-shadow: none;
    }
    .hero-title-three-lines span:nth-child(2) {
        font-size: 16px;
        color: rgba(255, 255, 255, 0.92);
        text-shadow: none;
    }
    .hero-title-three-lines span:nth-child(3) {
        font-size: 24px;
        color: var(--gold-500);
        text-shadow: 0 0 20px rgba(217, 164, 65, 0.08);
    }

    .hero-shade {
        background:
            linear-gradient(180deg, 
                rgba(4, 19, 38, 0.98) 0%, 
                rgba(4, 19, 38, 0.95) 30%,
                rgba(4, 19, 38, 0.88) 50%,
                rgba(4, 19, 38, 0.95) 70%,
                rgba(4, 19, 38, 0.98) 100%
            );
    }
}

.support-count {
    color: #d7e3ef;
    font-size: 13px;
    font-weight: 650;
}

.support-count strong {
    color: #fff;
    font-size: 18px;
}

.support-count.large {
    display: block;
    color: var(--muted);
    font-size: 15px;
}

.support-count.large strong {
    color: var(--navy-900);
}

.button {
    min-height: 50px;
    padding: 13px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-weight: 850;
    line-height: 1.2;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.role-option input:focus-visible + .role-option-surface {
    outline: 3px solid rgba(217, 164, 65, .42);
    outline-offset: 3px;
}

.button-primary {
    color: #241801;
    background: linear-gradient(135deg, #f3cf7b, var(--gold-500));
    box-shadow: 0 14px 35px rgba(217, 164, 65, .25);
}

.button-dark {
    color: #fff;
    background: var(--navy-900);
    box-shadow: 0 12px 28px rgba(7, 26, 51, .17);
}

.button-secondary {
    color: var(--navy-900);
    background: #fff;
    border-color: #cbd5e1;
}

.button-full {
    width: 100%;
}

.content-section {
    padding: clamp(66px, 8vw, 112px) clamp(18px, 6vw, 96px);
}

.section-heading {
    width: min(100%, 860px);
    margin: 0 auto 34px;
    text-align: center;
}

.section-heading h2,
.role-panel h2,
.form-intro h1,
.legal-card h1,
.admin-heading h1,
.success-card h1,
.login-card h1 {
    margin: 8px 0 12px;
    color: var(--navy-900);
    font-size: clamp(34px, 4.5vw, 62px);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.section-heading p:last-child,
.admin-heading p:last-child {
    margin: 0;
    color: var(--muted);
}

.petition-document {
    background: linear-gradient(180deg, #f2f5f8 0%, #ffffff 100%);
}

.petition-heading {
    margin-inline: auto;
    text-align: center;
}

.petition-heading h2,
.petition-heading p {
    text-align: center;
}

.petition-heading p:last-child {
    color: var(--muted);
}

.petition-paper {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 64px);
    background: #fff;
    border: 1px solid #dfe5ec;
    border-top: 7px solid var(--gold-500);
    border-radius: 24px;
    box-shadow: 0 26px 70px rgba(7, 26, 51, .12);
    font-size: 17px;
}

.petition-paper h3 {
    margin: 0 0 30px;
    color: var(--navy-900);
    font-size: clamp(26px, 3.4vw, 43px);
    line-height: 1.17;
    letter-spacing: -.025em;
}

.petition-paper h4 {
    margin: 38px 0 14px;
    color: var(--navy-900);
    font-size: clamp(22px, 2.4vw, 30px);
}

.petition-routing {
    padding: 22px 24px;
    background: #f6f8fb;
    border-left: 5px solid var(--navy-900);
    border-radius: 0 16px 16px 0;
}

.petition-routing p {
    margin: 0 0 13px;
}

.petition-routing p:last-child {
    margin-bottom: 0;
}

.petition-declaration {
    margin: 30px 0;
    padding: 0;
    color: #172235;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 1.08rem;
}

.petition-list {
    margin: 0;
    padding-left: 27px;
}

.petition-list li {
    margin-bottom: 16px;
    padding-left: 7px;
}

.petition-demands li::marker {
    color: #9a680b;
    font-weight: 900;
}

.role-section {
    padding: clamp(58px, 7vw, 90px) clamp(18px, 5vw, 80px);
    background:
        radial-gradient(circle at 18% 15%, rgba(217, 164, 65, .12), transparent 28%),
        #f7f9fc;
}

.role-panel {
    width: min(100%, 1320px);
    margin: 0 auto;
    padding: clamp(26px, 3.6vw, 46px);
    display: grid;
    grid-template-columns: minmax(280px, .86fr) minmax(500px, 1.14fr);
    align-items: center;
    gap: clamp(28px, 4vw, 58px);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .035), transparent 45%),
        linear-gradient(135deg, var(--navy-950), #123e6d);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 28px;
    box-shadow: 0 26px 68px rgba(7, 26, 51, .18);
}

.role-intro h2 {
    margin: 10px 0 14px;
    color: #fff;
    font-size: clamp(34px, 3.8vw, 56px);
    line-height: 1.02;
}

.role-intro > p:not(.eyebrow) {
    max-width: 500px;
    margin: 0;
    color: #cbd9e8;
    font-size: 15px;
}

.role-form {
    min-width: 0;
    display: grid;
    gap: 14px;
}

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

.role-option {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.role-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.role-option-surface {
    min-height: 112px;
    padding: 16px 17px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 13px;
    color: var(--ink);
    background: #fff;
    border: 2px solid transparent;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(3, 15, 31, .12);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.role-option:hover .role-option-surface {
    transform: translateY(-2px);
    border-color: #cdd8e4;
    box-shadow: 0 16px 34px rgba(3, 15, 31, .17);
}

.role-option input:checked + .role-option-surface {
    border-color: var(--gold-500);
    background: linear-gradient(180deg, #fffdf8, #fff);
    box-shadow: 0 0 0 4px rgba(217, 164, 65, .16), 0 16px 34px rgba(3, 15, 31, .16);
}

.role-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--navy-850), var(--navy-700));
    border-radius: 14px;
    font-size: 17px;
    font-weight: 950;
    box-shadow: 0 8px 18px rgba(7, 26, 51, .17);
}

.role-option-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.role-option-copy strong {
    color: var(--navy-900);
    font-size: 18px;
    line-height: 1.18;
}

.role-option-copy small {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.42;
}

.role-check {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #cfd7e1;
    border-radius: 50%;
    opacity: .78;
    transform: scale(.88);
    transition: background .2s ease, transform .2s ease, opacity .2s ease;
}

.role-option input:checked + .role-option-surface .role-check {
    color: #26300d;
    background: var(--gold-400);
    opacity: 1;
    transform: scale(1);
}

.role-continue-button {
    width: 100%;
    min-height: 52px;
    padding-inline: 21px;
    justify-content: space-between;
    color: #251901;
    background: linear-gradient(135deg, #f5d78f, var(--gold-500));
    border-radius: 15px;
    box-shadow: 0 12px 26px rgba(217, 164, 65, .2);
}

.role-continue-button b {
    font-size: 22px;
}

.role-form-hint {
    margin: -3px 0 0;
    color: #aebdd0;
    text-align: center;
    font-size: 12px;
}

.live-signatures-section {
    padding: clamp(72px, 9vw, 120px) clamp(18px, 5vw, 80px);
    background: #eef3f7;
}

.live-signatures-shell {
    width: min(100%, 1520px);
    margin: 0 auto;
}

.live-signatures-heading {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.live-heading-copy {
    width: min(100%, 780px);
}

.live-heading-copy h2 {
    margin: 7px 0 10px;
    color: var(--navy-900);
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.live-heading-copy p:last-child {
    margin: 0;
    color: var(--muted);
}

.live-heading-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.live-status {
    min-height: 48px;
    padding: 11px 15px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #16623e;
    background: #e8f7ef;
    border: 1px solid #bde5ce;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 850;
}

.live-status::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #29a466;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(41, 164, 102, .12);
}

.register-total {
    min-height: 48px;
    padding: 8px 14px;
    display: grid;
    justify-items: center;
    color: var(--navy-900);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.register-total strong {
    font-size: 18px;
    line-height: 1;
}

.register-total small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.view-all-signatures {
    min-height: 48px;
    padding-inline: 18px;
    white-space: nowrap;
}

.signature-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
    align-items: stretch;
}

.signature-column {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 25px;
    box-shadow: var(--shadow-sm);
}

.director-column {
    border-top: 5px solid var(--navy-800);
}

.importer-column {
    border-top: 5px solid var(--gold-500);
}

.signature-column-heading {
    min-height: 130px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(180deg, #fff, #f7f9fb);
    border-bottom: 1px solid var(--line);
}

.role-heading-group {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.importer-role-heading {
    justify-content: flex-end;
    text-align: right;
}

.role-heading-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--navy-850);
    border-radius: 16px;
    font-size: 18px;
    font-weight: 950;
}

.importer-column .role-heading-icon {
    color: #332206;
    background: var(--gold-400);
}

.column-label {
    display: block;
    color: #8a96a6;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.signature-column-heading h3 {
    margin: 4px 0 2px;
    color: var(--navy-900);
    font-size: 20px;
    line-height: 1.2;
}

.signature-column-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.role-live-count {
    min-width: 52px;
    height: 52px;
    padding: 0 10px;
    display: grid;
    place-items: center;
    color: var(--navy-900);
    background: #edf2f7;
    border-radius: 15px;
    font-size: 19px;
}

.importer-column .role-live-count {
    color: #664408;
    background: #fff2d3;
}

.register-divider {
    display: grid;
    place-items: center;
}

.register-divider::before {
    content: "";
    width: 1px;
    height: 100%;
    grid-area: 1 / 1;
    background: #d3dce6;
}

.register-divider span {
    z-index: 1;
    padding: 8px 4px;
    color: #8a95a5;
    background: #eef3f7;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .08em;
    writing-mode: vertical-rl;
}

.public-signature-list {
    min-height: 190px;
    padding: 16px;
    display: grid;
    align-content: start;
    gap: 12px;
}

.public-signature-card {
    min-width: 0;
    min-height: 108px;
    padding: 13px;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 15px;
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 18px;
    box-shadow: 0 7px 20px rgba(7, 26, 51, .055);
}

.importer-signature-card {
    grid-template-columns: minmax(0, 1fr) 150px;
}

.public-signature-image {
    height: 78px;
    padding: 7px;
    display: grid;
    place-items: center;
    background: #f7f9fb;
    border: 1px solid #dde4ec;
    border-radius: 13px;
}

.public-signature-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.public-signature-details {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.importer-signature-card .public-signature-image {
    grid-column: 2;
    grid-row: 1;
}

.importer-signature-card .public-signature-details {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
}

.public-signature-details strong,
.public-signature-details span {
    overflow-wrap: anywhere;
}

.public-signature-details strong {
    color: var(--navy-900);
    font-size: 16px;
}

.public-signature-details span {
    color: #566174;
    font-size: 12px;
}

.public-signature-details time {
    color: #8a94a3;
    font-size: 10px;
    font-weight: 700;
}

.signature-empty {
    margin: auto;
    padding: 28px 18px;
    color: #778293;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5df;
    border-radius: 16px;
    font-size: 13px;
}

.form-page,
.login-page,
.success-page,
.legal-page,
.admin-page {
    padding: clamp(52px, 7vw, 92px) clamp(18px, 6vw, 92px);
}

.form-page {
    background: linear-gradient(180deg, #eef3f8, #fff);
}

.form-shell {
    width: min(100%, 1280px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, .74fr) minmax(520px, 1.26fr);
    gap: clamp(30px, 5vw, 72px);
    align-items: start;
}

.form-intro {
    position: sticky;
    top: 30px;
}

.form-intro p {
    color: var(--muted);
}

.back-link {
    display: inline-flex;
    margin-bottom: 26px;
    color: var(--navy-800);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.back-link.light {
    color: #fff;
}

.security-points {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.security-points span {
    padding: 8px 11px;
    color: #38516e;
    background: #e8eef5;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
}

.signature-form,
.login-card,
.success-card,
.legal-card,
.settings-card,
.table-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.signature-form {
    padding: clamp(24px, 4vw, 44px);
}

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

.field {
    display: grid;
    gap: 8px;
}

.field > span,
.signature-fieldset legend {
    color: var(--navy-900);
    font-size: 13px;
    font-weight: 850;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
}

.field input[readonly] {
    color: #647083;
    background: #f4f6f8;
}

.field small,
.field-help,
.form-note {
    color: var(--muted);
    font-size: 11px;
}

.signature-fieldset {
    margin: 26px 0 0;
    padding: 0;
    border: 0;
}

.signature-fieldset > p {
    margin: 4px 0 12px;
    color: var(--muted);
    font-size: 13px;
}

.canvas-wrap {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: #fff;
    border: 2px dashed #b7c4d2;
    border-radius: 16px;
    touch-action: none;
}

.canvas-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.signature-guide {
    position: absolute;
    right: 22px;
    bottom: 17px;
    color: #a1aab6;
    font-family: cursive;
    font-size: 17px;
    pointer-events: none;
}

.signature-controls {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    font-size: 12px;
}

.consent-check {
    margin: 24px 0;
    padding: 17px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f5f7fa;
    border: 1px solid #dfe6ee;
    border-radius: 14px;
    font-size: 12px;
}

.consent-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: 0 0 18px;
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.alert {
    margin-bottom: 22px;
    padding: 15px 17px;
    border-radius: 13px;
    font-size: 13px;
}

.alert ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.alert-error {
    color: #7c202a;
    background: #fff0f1;
    border: 1px solid #efc3c7;
}

.alert-success {
    color: #145b3b;
    background: #e9f7ef;
    border: 1px solid #bce3cc;
}

.login-page,
.success-page,
.legal-page {
    min-height: 72vh;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #eef3f8, #fff);
}

.login-card,
.success-card,
.legal-card {
    width: min(100%, 720px);
    padding: clamp(28px, 5vw, 54px);
}

.login-card form {
    display: grid;
    gap: 18px;
}

.success-card {
    text-align: center;
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--success);
    border-radius: 50%;
    font-size: 34px;
    font-weight: 900;
}

.reference-code {
    margin: 22px auto;
    padding: 14px 17px;
    color: var(--navy-900);
    background: #f1f4f7;
    border: 1px dashed #bac6d3;
    border-radius: 13px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    overflow-wrap: anywhere;
}

.admin-page {
    background: #f1f5f9;
}

.admin-heading {
    width: min(100%, 1420px);
    margin: 0 auto 30px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
}

.admin-heading h1 {
    font-size: clamp(36px, 4vw, 58px);
}

.stats-grid,
.settings-grid,
.settings-card,
.table-card {
    width: min(100%, 1420px);
    margin-left: auto;
    margin-right: auto;
}

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

.stat-card {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.stat-card span,
.stat-card strong {
    display: block;
}

.stat-card span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.stat-card strong {
    margin-top: 7px;
    color: var(--navy-900);
    font-size: 34px;
}

.badge {
    display: inline-flex;
    padding: 5px 9px;
    color: var(--navy-900);
    background: #e8eef5;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
}

.table-card,
.settings-card {
    padding: 24px;
}

.table-wrap {
    overflow-x: auto;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
    padding: 13px 12px;
    border-bottom: 1px solid #e3e8ee;
    text-align: left;
    white-space: nowrap;
    font-size: 12px;
}

.table-wrap th {
    color: #516073;
    background: #f5f7f9;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.settings-grid {
    align-items: start;
}

.settings-card h2 {
    margin: 0 0 16px;
    color: var(--navy-900);
}

.admin-banner-preview {
    width: 100%;
    aspect-ratio: 16 / 6;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 15px;
}

.settings-divider {
    margin: 24px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.testing-access-card {
    margin-top: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 32px;
    align-items: center;
    border-top: 4px solid var(--gold-500);
}

.connection-status {
    margin-top: 20px;
    padding: 16px 18px;
    display: grid;
    gap: 4px;
    border-radius: 15px;
}

.connection-status.is-bypassed {
    color: #125b39;
    background: #e8f7ef;
    border: 1px solid #bce6cf;
}

.connection-status.is-limited {
    color: #6c4b0c;
    background: #fff8e7;
    border: 1px solid #ecd9a6;
}

.connection-status span {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.connection-status strong {
    overflow-wrap: anywhere;
    font-size: 20px;
}

.testing-access-actions {
    display: grid;
    gap: 12px;
}

.testing-access-actions form,
.testing-access-actions .button {
    width: 100%;
}

.warning-text {
    color: #875d0e;
    font-weight: 700;
}

.all-signatures-hero {
    padding: clamp(58px, 8vw, 92px) clamp(20px, 7vw, 110px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 34px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 18%, rgba(217, 164, 65, .24), transparent 24%),
        linear-gradient(135deg, #06172c, #103b69);
}

.all-signatures-hero > div:first-child {
    max-width: 850px;
}

.all-signatures-hero h1 {
    margin: 8px 0 12px;
    font-size: clamp(38px, 5vw, 70px);
    line-height: 1;
    letter-spacing: -.035em;
}

.all-signatures-hero p:last-child {
    max-width: 700px;
    margin: 0;
    color: #d8e5f1;
    font-size: 17px;
}

.all-signature-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(104px, 1fr));
    gap: 10px;
}

.all-signature-summary span {
    min-width: 112px;
    padding: 15px 14px;
    display: grid;
    text-align: center;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 17px;
    backdrop-filter: blur(8px);
}

.all-signature-summary strong {
    font-size: 25px;
    line-height: 1;
}

.all-signature-summary small {
    margin-top: 6px;
    color: #d8e5f1;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.all-signatures-page {
    padding: clamp(58px, 8vw, 96px) clamp(18px, 6vw, 92px) clamp(82px, 10vw, 130px);
    background: #f4f7fa;
}

.signature-directory-toolbar {
    width: min(100%, 1420px);
    margin: 0 auto 30px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
}

.signature-directory-toolbar h2 {
    margin: 3px 0 7px;
    color: var(--navy-900);
    font-size: clamp(28px, 3vw, 44px);
    letter-spacing: -.025em;
}

.signature-directory-toolbar p:last-child {
    margin: 0;
    color: var(--muted);
}

.signature-filter-pills {
    display: inline-flex;
    padding: 5px;
    gap: 4px;
    background: #e6ebf1;
    border: 1px solid #d6dde6;
    border-radius: 999px;
}

.signature-filter-pills a {
    padding: 10px 16px;
    color: #455164;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.signature-filter-pills a.is-active {
    color: #fff;
    background: var(--navy-900);
    box-shadow: 0 7px 17px rgba(7, 26, 51, .18);
}

.all-signature-grid {
    width: min(100%, 1420px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.all-signature-card {
    min-width: 0;
    padding: 17px;
    background: #fff;
    border: 1px solid #dde4ec;
    border-radius: 21px;
    box-shadow: 0 13px 34px rgba(7, 26, 51, .075);
}

.all-signature-card.is-director {
    border-top: 4px solid var(--navy-800);
}

.all-signature-card.is-importer {
    border-top: 4px solid var(--gold-500);
    text-align: right;
}

.all-signature-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.all-signature-card.is-importer .all-signature-card-top {
    flex-direction: row-reverse;
}

.signature-role-badge {
    padding: 6px 10px;
    color: #fff;
    background: var(--navy-900);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.is-importer .signature-role-badge {
    color: #332206;
    background: #efcf85;
}

.all-signature-card-top time {
    color: #7a8492;
    font-size: 11px;
    font-weight: 750;
}

.all-signature-ink {
    height: 100px;
    margin: 16px 0 13px;
    padding: 9px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #fff, #f7f9fb);
    border: 1px solid #dce3eb;
    border-radius: 15px;
}

.all-signature-ink img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.all-signature-identity {
    display: grid;
    gap: 4px;
}

.all-signature-identity strong,
.all-signature-identity span {
    overflow-wrap: anywhere;
}

.all-signature-identity strong {
    color: var(--navy-900);
    font-size: 18px;
}

.all-signature-identity span {
    color: #566173;
    font-size: 13px;
}

.pagination {
    width: min(100%, 1420px);
    margin: 34px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.pagination a,
.pagination span {
    min-height: 44px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4dce6;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.pagination a {
    color: #fff;
    background: var(--navy-900);
}

.pagination span {
    color: #536073;
    background: #fff;
}

.signature-directory-empty {
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 46px 25px;
    text-align: center;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 24px;
}

.site-footer {
    padding: 28px clamp(18px, 5vw, 76px);
    display: flex;
    justify-content: space-between;
    gap: 24px;
    color: #aebdce;
    background: var(--navy-950);
    font-size: 11px;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: #fff;
}

@media (max-width: 1100px) {
    .role-panel,
    .form-shell {
        grid-template-columns: 1fr;
    }

    .role-intro,
    .form-intro {
        position: static;
    }

    .role-intro {
        text-align: center;
    }

    .role-intro > p:not(.eyebrow) {
        margin-left: auto;
        margin-right: auto;
    }

    .all-signatures-hero {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .all-signature-summary {
        width: min(100%, 560px);
    }

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

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

@media (max-width: 860px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .live-signatures-heading,
    .admin-heading,
    .signature-directory-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .live-heading-meta {
        width: 100%;
        justify-content: flex-start;
    }

    .view-all-signatures {
        flex: 1 1 100%;
    }

    .signature-columns {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .register-divider {
        height: 42px;
    }

    .register-divider::before {
        width: 100%;
        height: 1px;
    }

    .register-divider span {
        padding: 4px 10px;
        writing-mode: horizontal-tb;
    }

    .testing-access-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 15px;
    }

    .site-header {
        min-height: 68px;
        padding: 12px 16px;
    }

    .brand small {
        display: none;
    }

    .hero {
        min-height: 0;
        height: auto;
        padding: 52px 16px 46px;
    }

    .hero-bg {
        opacity: .48;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
    }

    .hero-title-three-lines {
        width: min(100%, 540px);
        max-width: 100%;
        margin-top: 16px;
        gap: 8px;
        line-height: 1.1;
    }

    .hero-title-three-lines span {
        width: 100%;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        text-align: center;
        transform: none;
    }

    .hero-title-three-lines span:nth-child(1) {
        font-size: clamp(24px, 7.2vw, 34px);
        letter-spacing: .018em;
    }

    .hero-title-three-lines span:nth-child(2) {
        font-size: clamp(21px, 6.2vw, 29px);
        letter-spacing: .01em;
    }

    .hero-title-three-lines span:nth-child(3) {
        font-size: clamp(29px, 8.7vw, 42px);
        letter-spacing: .025em;
    }

    .hero-actions {
        width: 100%;
        margin-top: 24px;
        gap: 12px;
    }

    .hero-actions .button {
        width: 100%;
    }

    .support-count {
        width: 100%;
    }

    .content-section,
    .role-section,
    .live-signatures-section,
    .form-page,
    .login-page,
    .success-page,
    .legal-page,
    .admin-page,
    .all-signatures-page {
        padding-left: 14px;
        padding-right: 14px;
    }

    .petition-paper {
        padding: 24px 19px;
        border-radius: 22px;
        font-size: 16px;
    }

    .role-panel {
        padding: 25px 17px;
        gap: 24px;
        border-radius: 22px;
    }

    .role-intro h2 {
        font-size: clamp(31px, 9vw, 43px);
    }

    .role-options,
    .field-grid,
    .settings-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .role-option-surface {
        min-height: 92px;
        padding: 13px 14px;
        grid-template-columns: 42px minmax(0, 1fr) 26px;
        gap: 11px;
        border-radius: 16px;
    }

    .role-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .role-option-copy strong {
        font-size: 17px;
    }

    .role-option-copy small {
        font-size: 12px;
    }

    .signature-column-heading {
        min-height: auto;
        padding: 18px;
    }

    .role-heading-icon {
        width: 45px;
        height: 45px;
        flex-basis: 45px;
        border-radius: 14px;
    }

    .role-live-count {
        min-width: 46px;
        height: 46px;
        font-size: 17px;
    }

    .public-signature-list {
        padding: 12px;
    }

    .public-signature-card,
    .importer-signature-card {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .public-signature-image,
    .importer-signature-card .public-signature-image,
    .importer-signature-card .public-signature-details {
        grid-column: 1;
        grid-row: auto;
    }

    .importer-signature-card .public-signature-details {
        text-align: right;
    }

    .public-signature-image {
        height: 74px;
    }

    .signature-form,
    .login-card,
    .success-card,
    .legal-card,
    .settings-card,
    .table-card {
        padding: 22px 18px;
    }

    .signature-controls,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .all-signature-summary {
        grid-template-columns: 1fr;
    }

    .all-signature-summary span {
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 12px;
        text-align: left;
    }

    .all-signature-summary small {
        margin-top: 0;
    }

    .signature-filter-pills {
        width: 100%;
    }

    .signature-filter-pills a {
        flex: 1;
        padding-inline: 8px;
        text-align: center;
    }

    .all-signature-grid {
        grid-template-columns: 1fr;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 380px) {
    .hero {
        padding-inline: 13px;
    }

    .hero-title-three-lines span:nth-child(1) {
        font-size: 23px;
    }

    .hero-title-three-lines span:nth-child(2) {
        font-size: 20px;
    }

    .hero-title-three-lines span:nth-child(3) {
        font-size: 28px;
    }
}

.role-continue-button:disabled {
    cursor: not-allowed;
    opacity: .56;
    filter: saturate(.55);
    transform: none;
    box-shadow: none;
}

/* Administrator system health */
.health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin: 22px 0;
}
.health-card {
    position: relative;
    padding: 22px;
    border: 1px solid #dce3ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(7, 26, 51, .07);
}
.health-card.is-ok { border-top: 5px solid #178a55; }
.health-card.is-failed { border-top: 5px solid #b4232d; }
.health-card h2 { margin: 12px 0 8px; font-size: 19px; }
.health-card p { margin: 0; color: #5a6678; overflow-wrap: anywhere; }
.health-status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}
.is-ok .health-status { background: #e7f7ee; color: #116a41; }
.is-failed .health-status { background: #ffe9ec; color: #941e28; }
.health-log-card { margin-top: 22px; }
.health-log {
    max-height: 420px;
    overflow: auto;
    padding: 18px;
    border-radius: 14px;
    background: #071a33;
    color: #e7eef7;
    font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.admin-heading.compact { margin-bottom: 14px; }

/* Signature register: transparent ink and collision-free responsive cards. */
.public-signature-card,
.importer-signature-card {
    width: 100%;
    min-width: 0;
    min-height: 104px;
    padding: 11px;
    gap: 13px;
    overflow: hidden;
    box-sizing: border-box;
}

.public-signature-card {
    grid-template-columns: minmax(108px, 132px) minmax(0, 1fr);
}

.importer-signature-card {
    grid-template-columns: minmax(0, 1fr) minmax(108px, 132px);
}

.public-signature-image {
    width: 100%;
    min-width: 0;
    height: 82px;
    padding: 7px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(145deg, #edf3f8, #e4ebf2);
    border: 1px solid #d5dfe9;
    border-radius: 13px;
    box-sizing: border-box;
}

.public-signature-image img,
.all-signature-ink img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    background: transparent;
    mix-blend-mode: multiply;
    filter: contrast(1.12);
}

.public-signature-details {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.public-signature-details strong,
.public-signature-details span,
.public-signature-details time {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}

.all-signature-ink {
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(145deg, #edf3f8, #e4ebf2);
}

@media (max-width: 680px) {
    .public-signature-list {
        padding: 10px;
        gap: 10px;
    }

    .public-signature-card,
    .importer-signature-card {
        min-height: 98px;
        padding: 10px;
        gap: 11px;
        align-items: center;
    }

    .director-signature-card {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .importer-signature-card {
        grid-template-columns: minmax(0, 1fr) 108px;
    }

    .director-signature-card .public-signature-image {
        grid-column: 1;
        grid-row: 1;
    }

    .director-signature-card .public-signature-details {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
    }

    .importer-signature-card .public-signature-image {
        grid-column: 2;
        grid-row: 1;
    }

    .importer-signature-card .public-signature-details {
        grid-column: 1;
        grid-row: 1;
        text-align: right;
    }

    .public-signature-image,
    .importer-signature-card .public-signature-image {
        width: 100%;
        height: 76px;
    }

    .public-signature-details strong {
        font-size: 15px;
        line-height: 1.25;
    }

    .public-signature-details span {
        font-size: 12px;
        line-height: 1.35;
    }

    .public-signature-details time {
        font-size: 10px;
    }
}

@media (max-width: 390px) {
    .director-signature-card {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .importer-signature-card {
        grid-template-columns: minmax(0, 1fr) 92px;
    }

    .public-signature-image,
    .importer-signature-card .public-signature-image {
        height: 68px;
        padding: 5px;
    }

    .public-signature-details strong {
        font-size: 14px;
    }
}


/* ===== SECTION HEADINGS - ALIGN LEFT ===== */

/* For Add Your Voice section */
.role-intro {
    text-align: left;
}

.role-intro .eyebrow {
    text-align: left;
}

.role-intro h2 {
    text-align: left;
}

.role-intro > p:not(.eyebrow) {
    text-align: left;
    margin-left: 0;
}

/* For Verified Public Register section */
.live-heading-copy {
    text-align: left;
}

.live-heading-copy .eyebrow {
    text-align: left;
}

.live-heading-copy h2 {
    text-align: left;
}

.live-heading-copy p:last-child {
    text-align: left;
}

/* For Secure Signature section */
.form-intro {
    text-align: left;
}

.form-intro .eyebrow {
    text-align: left;
}

.form-intro h1 {
    text-align: left;
}

.form-intro p {
    text-align: left;
}

.form-intro .security-points {
    justify-content: flex-start;
}

/* Fix for mobile */
@media (max-width: 1100px) {
    .role-intro {
        text-align: left;
    }
    
    .role-intro > p:not(.eyebrow) {
        margin-left: 0;
    }
}

@media (max-width: 680px) {
    .role-intro {
        text-align: left;
    }
    
    .role-intro h2 {
        text-align: left;
    }
    
    .live-heading-copy {
        text-align: left;
    }
    
    .live-heading-copy h2 {
        text-align: left;
    }
    
    .form-intro {
        text-align: left;
    }
    
    .form-intro h1 {
        text-align: left;
    }
    
    .form-intro .security-points {
        justify-content: flex-start;
    }
}