﻿* {
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@500;600&display=swap');

:root {
    --bg: #ffffff;
    --bg-alt: #f6f8fb;
    --panel: #ffffff;
    --panel-strong: #f1f4fb;
    --border: rgba(15, 23, 42, 0.08);
    --text: #0f172a;
    --muted: #475467;
    --accent: #6f61ff;
    --accent-2: #8c7bff;
    --danger: #ef4444;
    --success: #22c55e;
    --radius: 18px;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
    --shadow-soft: 0 14px 36px rgba(15, 23, 42, 0.12);
}

body {
    margin: 0;
    font-family: 'Space Grotesk', 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    background: radial-gradient(140% 120% at 20% 20%, rgba(111, 97, 255, 0.06), transparent 32%),
        radial-gradient(120% 120% at 80% 0%, rgba(76, 201, 240, 0.05), transparent 30%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.site-body {
    overflow-x: hidden;
}

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

p {
    margin: 0 0 0.5rem;
}

h1, h2, h3, h4, h5 {
    margin: 0;
    color: var(--text);
}

.container {
    width: min(1180px, 94%);
    margin: 0 auto;
    padding: 1.5rem 0;
}

.page-shell {
    padding: 56px 0 90px;
}

.page-body {
    width: 100%;
    display: grid;
    gap: clamp(2rem, 4vw, 3rem);
    margin: 0 auto;
}

.home-page {
    width: 100%;
}

.intro-section {
    margin: 0 0 2rem;
    text-align: left;
    padding: clamp(4rem, 8vw, 6rem) max(2rem, calc((100vw - 1180px) / 2 + 1.5rem));
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: clamp(520px, 70vh, 780px);
    display: grid;
    align-items: center;
    justify-items: start;
    gap: 1.25rem;
    border-radius: 0;
    border: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
        url('/assets/img/fond.png');
    background-size: 100% 100%, cover;
    background-position: center, left center;
    background-repeat: no-repeat;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.04), var(--shadow-soft);
}

.intro-section .highlight {
    margin-top: 0.5rem;
    font-weight: 700;
}

.page-title-banner {
    margin: 0 0 1.25rem;
}

.page-title-banner h1 {
    font-size: clamp(2.8rem, 4.5vw, 3.8rem);
    margin: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.nav-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: #0f172a;
    letter-spacing: 0.02em;
}

.small-brand {
    font-size: 1rem;
}

.nav {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-collapse {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
    gap: 1rem;
}

.primary-nav {
    flex: 1;
    justify-content: center;
    gap: 0.6rem;
}

.nav a {
    color: var(--muted);
    padding: 0.65rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.nav a:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.06);
}

.badge-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    margin-left: 6px;
    vertical-align: middle;
}

.locale-switcher {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-shrink: 0;
}

.admin-header .nav-bar {
    flex-wrap: wrap;
    gap: 0.9rem;
}

.admin-nav-collapse {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1 1 auto;
    justify-content: space-between;
}

.admin-nav-collapse.is-open {
    display: flex;
}

.admin-header .brand {
    margin-right: auto;
}

.admin-header .admin-nav {
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 0.4rem;
}

.admin-header .admin-nav a {
    padding: 0.55rem 0.85rem;
}

.admin-header .header-actions {
    margin-left: auto;
    gap: 0.6rem;
}

.admin-header .header-actions .btn {
    padding: 0.6rem 1.1rem;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.4rem 0.85rem;
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    gap: 0.4rem;
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.nav-toggle .toggle-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.nav-toggle .line {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    margin: 4px 0;
}

.admin-nav-toggle {
    display: none;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem 0.9rem;
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    gap: 0.35rem;
}

.admin-nav-toggle .toggle-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.admin-nav-toggle .line {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    margin: 3px 0;
}

.locale-dropdown {
    position: relative;
}

.locale-dropdown summary {
    list-style: none;
    cursor: pointer;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.locale-dropdown summary::-webkit-details-marker {
    display: none;
}

.locale-dropdown .current-locale {
    color: var(--accent);
}

.locale-dropdown .locale-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 180px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    padding: 0.35rem;
    display: grid;
    gap: 0.25rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.12s ease, transform 0.12s ease;
    z-index: 20;
}

.locale-dropdown[open] .locale-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.locale-dropdown .locale-menu a {
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    color: var(--text);
    font-weight: 600;
}

.locale-dropdown .locale-menu a:hover {
    background: rgba(15, 23, 42, 0.06);
}

.locale-dropdown .locale-menu a.active {
    background: rgba(111, 97, 255, 0.18);
    border: 1px solid rgba(111, 97, 255, 0.35);
}

main.container {
    min-height: calc(100vh - 200px);
}

main.page-shell {
    min-height: calc(100vh - 200px);
}

.page-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
    justify-items: flex-start;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    padding: clamp(2.75rem, 5vw, 3.75rem);
    width: 100%;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(90% 120% at 10% 30%, rgba(93, 126, 255, 0.2), transparent 60%),
        linear-gradient(115deg, #0d1f39, #0c3a32);
    box-shadow: var(--shadow-soft);
    color: #e9f2ff;
}

.hero {
    margin: 1.6rem 0;
    padding: 1.5rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    color: var(--text);
}

.hero h1 {
    margin-bottom: 0.75rem;
}

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

.hero.admin-hero {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.admin-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-actions .btn {
    max-width: 100%;
}

.hero-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: center;
}

.hero-copy .lead {
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-checks {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.6rem;
}

.hero-checks li {
    position: relative;
    padding-left: 1.2rem;
    color: var(--muted);
}

.hero-checks li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.hero-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    color: #f6f8fb;
    backdrop-filter: blur(8px);
    display: grid;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    min-height: 260px;
    background: radial-gradient(80% 80% at 30% 20%, rgba(59, 130, 246, 0.2), transparent 60%), #0a1f44;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.page-hero__content h1 {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.page-hero__content {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    color: #fff;
}

.lead {
    font-size: 1.05rem;
    color: #e9f2e8;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-start;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
    justify-items: flex-start;
    text-align: left;
}

.hero-meta .meta-item {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: #fff;
}

.hero-meta .meta-label {
    color: #dce7ff;
    font-weight: 700;
}

.meta-item {
    background: #f7f9ff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    color: var(--text);
}

.meta-label {
    display: block;
    color: var(--accent-2);
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.page-hero__panel {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    color: #f6f8fb;
}

.hero-banner {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    min-height: 78vh;
    padding: clamp(3rem, 6vw, 4.75rem) clamp(1.5rem, 5vw, 3.25rem);
    color: #e9f2ff;
    overflow: hidden;
    border-radius: 34px;
    background:
        radial-gradient(110% 120% at 12% 22%, rgba(93, 126, 255, 0.18), transparent 55%),
        radial-gradient(90% 120% at 90% 18%, rgba(81, 214, 167, 0.22), transparent 45%),
        linear-gradient(122deg, #0b1c34, #0c3b32),
        url('/assets/img/c60c65d90ee0e0e4d8deeba7dc67b1.jpg') center/cover no-repeat;
    box-shadow: var(--shadow);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.hero-banner::after {
    content: '';
    position: absolute;
    inset: 14px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.75rem);
    align-items: stretch;
}

.hero-copy {
    display: grid;
    gap: 1rem;
    max-width: 680px;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.05;
    margin: 0;
    color: #fff;
}

.hero-lead {
    font-size: 1.1rem;
    color: #cdd9f0;
    margin: 0;
}

.hero-glance {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.glance-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    color: #fff;
}

.glance-item strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
}

.glance-item .meta-label {
    color: #c7d6f6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.75rem;
}

.hero-actions .btn {
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.32);
    background: linear-gradient(135deg, #5dd8a5, #7b9bff);
    color: #0b1c34;
    border: none;
}

.hero-actions .btn:hover {
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.38);
}

.hero-actions .btn.ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
    color: #e9f2ff;
}

.link-cta {
    color: #cdd9f0;
    font-weight: 700;
    text-decoration: underline;
}

.hero-note {
    color: #cdd9f0;
    font-size: 0.95rem;
    margin: 0.5rem 0 0;
}

.panel-header h3 {
    margin: 0.1rem 0;
    color: #fff;
}

.panel-header .muted {
    color: #c7d6f6;
}

.stepper {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.stepper li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.step-index {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5dd8a5, #6f61ff);
    color: #0b172c;
    font-weight: 700;
}

.step-title {
    margin: 0;
    color: #fff;
    font-weight: 700;
}

.step-desc {
    margin: 0.2rem 0 0;
    color: #dbe6ff;
    font-size: 0.95rem;
}

.panel-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.mini-stat {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 0.6rem 0.9rem;
}

.mini-stat strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
}

.mini-label {
    display: block;
    color: #c7d6f6;
    font-size: 0.9rem;
}

.pill-contrast {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.spotlight-panel {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
}

.spotlight-panel .bullet-list .dot {
    background: #5dd8a5;
    box-shadow: 0 0 0 4px rgba(93, 216, 165, 0.18);
}

.hero-photo {
    margin-top: 1rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: var(--shadow-soft);
}

.hero-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.bullet-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
    display: grid;
    gap: 0.75rem;
}

.bullet-list .dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 0.5rem;
    box-shadow: 0 0 0 4px rgba(111, 97, 255, 0.12);
}

.bullet-list.compact {
    margin-top: 1rem;
    gap: 0.5rem;
}

.panel-cta {
    display: flex;
    justify-content: flex-start;
}

.stat-row {
    margin: 2.6rem 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.image-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 0;
}

.image-tile {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    background: var(--panel);
}

.image-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    right: 12px;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    color: #0f172a;
    box-shadow: var(--shadow-soft);
}

.image-caption strong {
    display: block;
    color: #0f172a;
}

.stat-card {
    background: var(--panel-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-soft);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
}

.section {
    margin: 3.5rem 0;
}

.section-heading {
    max-width: 760px;
    display: grid;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.section-heading h2 {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
}

.section-heading .muted {
    color: var(--muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.tile {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tile:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: var(--shadow);
}

.tile h3 {
    margin-bottom: 0.4rem;
}

.tile-eyebrow {
    color: var(--accent-2);
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.numbered {
    position: relative;
    padding-top: 1.8rem;
    padding-left: 3.1rem;
}

.numbered .num {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
}

.services-section .tile,
.method-section .tile {
    background: #ffffff;
}

.signup-section {
    background: var(--panel-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.signup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.signup-copy .muted {
    max-width: 640px;
}

.signup-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: grid;
    gap: 1rem;
}

.field-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.field-group input,
.field-group textarea,
.field-group select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(111, 97, 255, 0.25);
}

textarea {
    min-height: 130px;
    resize: vertical;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.35rem;
}

form {
    display: grid;
    gap: 1rem;
    background: var(--panel);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    letter-spacing: 0.01em;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(111, 97, 255, 0.35);
}

.btn.secondary {
    background: transparent;
    color: var(--accent);
    border-color: rgba(111, 97, 255, 0.35);
}

.btn.danger {
    background: #dc2626;
    border-color: #dc2626;
}

.btn.ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn.header-cta {
    padding-inline: 1.3rem;
}

.btn.pill {
    border-radius: 999px;
}

.btn.is-disabled,
.btn.secondary.is-disabled,
.btn.danger.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    color: var(--muted);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(111, 97, 255, 0.08);
    color: var(--text);
    font-weight: 600;
    border: 1px solid var(--border);
}

.pill-soft {
    background: linear-gradient(135deg, rgba(111, 97, 255, 0.25), rgba(76, 201, 240, 0.18));
    border-color: rgba(111, 97, 255, 0.35);
}

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

.small-note {
    font-size: 0.9rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.card.danger-card {
    border-color: #fecdd3;
    background: #3c1216;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.metric-card {
    background: #f7f9ff;
    color: #0f172a;
    border-radius: var(--radius);
    padding: 1.25rem;
}

.metric-card .metric-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
    margin-bottom: 0.35rem;
}

.metric-card .metric-value {
    font-size: 2rem;
    margin: 0;
    font-weight: 600;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    background: var(--panel);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.table-responsive .data-table {
    min-width: 720px;
}

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

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    white-space: nowrap;
    color: var(--text);
}

.data-table thead {
    background: #f7f9ff;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.data-table tbody tr:hover {
    background: rgba(15, 23, 42, 0.04);
}

.badge {
    display: inline-flex;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

.badge.neutral {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

.badge.status-awaiting_validation,
.badge.status-awaiting-validation {
    background: #f59e0b;
    color: #0b0f1a;
}

.badge.status-ready_for_formalities {
    background: #22c55e;
    color: #0b0f1a;
}

.badge.status-completed {
    background: #10b981;
    color: #0b0f1a;
}

.badge.status-in_review,
.badge.status-in-review {
    background: #3b82f6;
    color: #0b0f1a;
}

.badge.status-draft,
.badge.status-cancelled {
    background: #ef4444;
    color: #0b0f1a;
}

.info-card .info-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.info-grid li {
    background: #f7f9ff;
    border-radius: 0.85rem;
    padding: 1rem;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.info-grid .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.generation-card .card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.inline-form {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.account-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.account-dashboard .acct-tile {
    background: linear-gradient(145deg, #ffffff, #f1f4fb 70%, rgba(111, 97, 255, 0.08) 110%);
    border: 1px solid var(--border);
    color: #0f172a;
}

.account-dashboard .acct-tile .eyebrow,
.account-dashboard .acct-tile .inline-hint {
    color: var(--muted);
}

.account-dashboard .acct-tile .badge.neutral {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.acct-tile .tile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.acct-tile .tile-value {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
}

.acct-tile .tile-value.small {
    font-size: 1.2rem;
}

.code-chip {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 0.85rem;
    background: var(--panel-strong);
    color: var(--text);
}

.steps-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.step-card {
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.25rem;
    background: var(--panel);
}

.step-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.payload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.payload-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    background: var(--panel-strong);
}

.payload-item .label {
    display: block;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.payload-json {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 0.6rem;
    overflow-x: auto;
}

.upload-thumb {
    display: block;
    margin-top: 0.4rem;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

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

.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    background: #3c2a12;
    border: 1px solid #f59e0b;
    color: #fff;
}

.alert.success {
    background: #0f2f1a;
    border-color: #22c55e;
}

.input-error {
    border-color: var(--danger) !important;
    background: rgba(239, 68, 68, 0.1);
}

.inline-hint {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.35rem;
}

.is-hidden {
    display: none !important;
}

.step4-hero .step4-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.step4-overview {
    margin-top: 2rem;
}

.balance-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.balance-card .balance-value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #0f172a;
}

.step4-transfer {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-top: 1rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.12), rgba(37, 99, 235, 0.08));
    padding: 1rem;
    border-radius: 1.25rem;
}

.transfer-progress-shell {
    position: relative;
}

.step4-transfer form {
    background: var(--panel);
    box-shadow: none;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.25rem;
}

.field-pair {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.transfer-progress {
    background: var(--panel-strong);
    color: var(--text);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.3);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.transfer-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.progress-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.progress-note {
    margin: 0.5rem 0 0;
}

.progress-bar {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #22c55e, #2563eb);
    transition: width 0.35s ease;
}

.fee-block {
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 1rem;
    background: var(--panel-strong);
    border: 1px solid var(--border);
}

.fee-chip {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    font-weight: 600;
}

.code-block {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.5rem;
}

.code-block input {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid var(--border);
}

.transfer-actions {
    justify-content: flex-start;
    gap: 0.75rem;
}

.chat-panel {
    background: #f7f9ff;
    color: #0f172a;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}

.chat-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: auto;
    height: 50px;
    padding: 0 1.3rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(111, 97, 255, 0.45);
    border: none;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    z-index: 50;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.chat-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(111, 97, 255, 0.55);
}

.chat-fab:active {
    transform: translateY(0);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.chat-window {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
    min-height: 180px;
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-message {
    display: flex;
}

.chat-message .bubble {
    padding: 0.75rem 1rem;
    border-radius: 0.9rem;
    background: #f6f7fb;
    max-width: 85%;
}

.chat-message.agent .bubble {
    background: #edf1f7;
    border: 1px solid var(--border);
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.user .bubble {
    background: var(--accent);
    color: #fff;
}

.chat-message.user {
    text-align: right;
}

.chat-bubble-header {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.chat-meta {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    opacity: 0.7;
}

.chat-input {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.chat-input input {
    flex: 1;
    background: #fff;
    color: #0f172a;
    border: 1px solid var(--border);
    min-width: 180px;
}

.attachment-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px dashed var(--accent);
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    background: rgba(111, 97, 255, 0.06);
}

.attachment-pill input {
    display: none;
}

.attachment-pill .file-name {
    font-weight: 600;
    color: var(--text);
}

.chat-attachment,
.chat-attachment-img,
.chat-attachment-link {
    margin-top: 0.75rem;
    border-radius: 0.75rem;
}

.chat-attachment img,
.chat-attachment-img {
    max-width: 240px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
}

.chat-attachment-link {
    display: inline-block;
}

.site-footer {
    background: #f8f9fc;
    border-top: 1px solid var(--border);
    color: var(--muted);
    padding: 28px 0 12px;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.footer-links {
    display: grid;
    gap: 0.35rem;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: #0f172a;
}

.footer-meta {
    padding-top: 8px;
}

@media (max-width: 1024px) {
    .page-shell {
        padding: 40px 0 70px;
    }

    .section {
        margin: 2.5rem 0;
    }

    .page-hero,
    .intro-section {
        padding: clamp(2.5rem, 5vw, 3.5rem);
        gap: 1.5rem;
    }

    .hero-banner {
        min-height: 70vh;
        padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 5vw, 2.75rem);
    }

    .hero-grid {
        gap: 1.5rem;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .hero-meta {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .card-grid,
    .stat-row,
    .image-strip,
    .signup-grid,
    .method-grid,
    .service-tiles {
        gap: 0.85rem;
    }
}

@media (max-width: 768px) {
    .page-shell {
        padding: 32px 0 60px;
    }

    .section {
        margin: 2rem 0;
    }

    .container,
    .page-body {
        width: 94%;
    }

    .nav-bar {
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .nav-collapse {
        position: static;
        width: 100%;
        margin-top: 0.75rem;
        background: var(--panel);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow-soft);
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1rem;
        display: none;
    }

    .site-header.nav-open .nav-collapse {
        display: flex;
    }

    .primary-nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.4rem;
    }

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

    .header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .header-actions .btn,
    .nav-collapse .btn,
    .locale-dropdown,
    .locale-dropdown summary {
        width: 100%;
    }

    .admin-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .admin-header .nav-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .admin-nav-collapse {
        display: none;
        width: 100%;
    }

    .admin-header.admin-nav-open .admin-nav-collapse,
    .admin-nav-collapse.is-open {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
        background: var(--panel);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 0.85rem;
        box-shadow: var(--shadow-soft);
    }

    .admin-header .admin-nav {
        width: 100%;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 0.6rem;
        background: var(--panel);
    }

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

    .admin-header .header-actions {
        width: 100%;
        justify-content: flex-start;
        gap: 0.6rem;
    }

    .hero-banner {
        margin-left: 0;
        margin-right: 0;
        border-radius: 24px;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        justify-items: center;
        text-align: center;
    }

    .hero-glance {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .hero-actions,
    .panel-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn,
    .panel-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-panel {
        padding: 1.25rem;
    }

    .page-hero,
    .intro-section {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .page-hero__content,
    .page-hero__panel {
        width: 100%;
    }

    .page-hero__content {
        align-items: center;
    }

    .hero-meta {
        width: 100%;
        justify-items: center;
        text-align: center;
    }

    .cta-row {
        justify-content: center;
    }

    .stat-row {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .card-grid,
    .method-grid,
    .service-tiles,
    .signup-grid {
        grid-template-columns: 1fr;
    }

    .image-strip {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .signup-card,
    .form-actions {
        width: 100%;
    }
}

@media (max-width: 540px) {
    .page-shell {
        padding: 24px 0 50px;
    }

    .section {
        margin: 1.75rem 0;
    }

    .page-hero,
    .intro-section {
        padding: 2rem 1.25rem;
    }

    .hero-banner {
        padding: 2.25rem 1.25rem;
        min-height: 60vh;
    }

    .cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-row .btn,
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .stat-row {
        grid-template-columns: 1fr;
    }

    .image-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    form {
        padding: 1.25rem;
    }

    .generation-card .card-header,
    .step4-transfer {
        grid-template-columns: 1fr;
    }

    .locale-dropdown {
        width: 100%;
    }

    .locale-dropdown summary {
        width: 100%;
    }

    .locale-dropdown .locale-menu {
        position: static;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        width: 100%;
    }
}
