/* =========================================================
   CIRCORA — DESIGN SYSTEM
   ========================================================= */


/* =========================================================
   1. VARIABLES
   ========================================================= */

:root {

    /* Brand */
    --color-primary: #073B91;
    --color-primary-light: #1689F5;

    --color-secondary: #119A50;
    --color-secondary-light: #20B35B;
    --color-accent: #F4B400;
    --color-accent-light: #FFC928;

    /* Neutral */
    --color-white: #FFFFFF;
    --color-background: #F3F6FA;
    --color-section-background: #EAF1F7;
    --color-surface: #FFFFFF;

    --color-text: #172B45;
    --color-text-secondary: #586B80;

    --color-border: #D8E2ED;

    /* Status */
    --color-success: #16A34A;
    --color-warning: #F4B400;
    --color-danger: #DC2626;

    /* Typography */
    --font-family: Arial, Helvetica, sans-serif;

    /* Layout */
    --container-width: 1200px;
    --site-header-height: 77px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 25px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);

    /* Transitions */
    --transition: 0.25s ease;
}


/* =========================================================
   2. RESET
   ========================================================= */

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

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--site-header-height);
}

body {
    font-family: var(--font-family);
    background: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    padding-top: var(--site-header-height);
}

body.app-loading {
    min-height: 100vh;
}

body.app-loading > * {
    visibility: hidden !important;
}

body.app-loading::before {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: block;
    padding: calc(50vh + 32px) 24px 24px;
    background: var(--color-background);
    color: var(--color-primary);
    content: attr(data-app-loading-message);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

body.app-loading::after {
    position: fixed;
    z-index: 10001;
    top: calc(50% - 86px);
    left: 50%;
    width: 92px;
    height: 92px;
    border: 3px solid rgba(7, 59, 145, 0.14);
    border-top-color: var(--color-primary);
    border-right-color: var(--color-secondary);
    border-radius: 50%;
    background-color: var(--color-white);
    background-image: url("../assets/logos/circora-brand.jpeg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60px;
    box-shadow: 0 8px 24px rgba(7, 59, 145, 0.14);
    content: "";
    transform: translateX(-50%);
    animation: circora-loader-spin 1.5s linear infinite, circora-loader-glow 1.8s ease-in-out infinite;
}

@keyframes circora-loader-spin {
    to { rotate: 360deg; }
}

@keyframes circora-loader-glow {
    50% { box-shadow: 0 10px 32px rgba(17, 154, 80, 0.28); }
}

@media (max-height: 500px) {
    body.app-loading::before {
        padding-top: calc(50vh + 20px);
    }

    body.app-loading::after {
        top: calc(50% - 63px);
        width: 68px;
        height: 68px;
        background-size: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.app-loading::after {
        animation: none;
    }
}

img {
    max-width: 100%;
    display: block;
}

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

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


/* =========================================================
   3. CONTAINER
   ========================================================= */

.navbar,
.hero,
.highlights,
.section,
.cta-content,
.footer-content,
.footer-bottom {
    width: min(100% - 40px, var(--container-width));
    margin-inline: auto;
}


/* =========================================================
   4. BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 20px;

    border: 1px solid transparent;
    border-radius: var(--radius-sm);

    font-size: 0.95rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}


/* Primary */

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}


/* Outline */

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}


/* Secondary */

.btn-secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}


/* White */

.btn-white {
    background: var(--color-white);
    color: var(--color-primary);
}

.btn-white:hover {
    background: #F1F5F9;
    transform: translateY(-2px);
}


/* Large */

.btn-large {
    min-height: 52px;
    padding-inline: 26px;
    font-size: 1rem;
}


/* =========================================================
   5. NAVBAR
   ========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;

    background: white;
    border-bottom: 1px solid var(--color-border);

    backdrop-filter: blur(12px);
}

.navbar {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* Logo */

.logo {
    display: flex;
    align-items: center;

    width: 155px;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}


/* Navigation links */

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

.nav-links a {
    position: relative;

    color: var(--color-text-secondary);

    font-size: 0.92rem;
    font-weight: 500;

    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--color-primary);
}


/* Navigation actions */

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

.mobile-menu-button {
    display: none;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 16px;
    height: 2px;
    margin: 0 auto;
    background: var(--color-primary);
    border-radius: 999px;
}


/* =========================================================
   6. HERO
   ========================================================= */

.hero {
    min-height: 650px;

    display: grid;
    grid-template-columns: 1.1fr 0.9fr;

    align-items: center;
    gap: 70px;

    padding-top: 80px;
    padding-bottom: 80px;
}


/* Hero content */

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;

    margin-bottom: 22px;
    padding: 7px 14px;

    background: rgba(17, 154, 80, 0.1);
    color: var(--color-secondary);

    border: 1px solid rgba(17, 154, 80, 0.2);
    border-radius: 999px;

    font-size: 0.85rem;
    font-weight: 700;
}


.hero h1 {
    margin-bottom: 24px;

    color: var(--color-primary);

    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero h1 span {
    display: block;
    color: var(--color-secondary);
    background: linear-gradient(105deg, var(--color-secondary), var(--color-accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.hero p {
    max-width: 580px;
    margin-bottom: 32px;

    color: var(--color-text-secondary);

    font-size: 1.1rem;
    line-height: 1.8;
}


/* Hero buttons */

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}


/* =========================================================
   7. HERO VISUAL
   ========================================================= */

.hero-visual {
    min-height: 400px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    border-radius: var(--radius-xl);

    background:
        radial-gradient(
            circle at 30% 30%,
            rgba(17, 154, 80, 0.23),
            transparent 35%
        ),
        radial-gradient(
            circle at 70% 70%,
            rgba(22, 137, 245, 0.25),
            transparent 40%
        ),
        radial-gradient(
            circle at 85% 18%,
            rgba(244, 180, 0, 0.16),
            transparent 24%
        ),
        linear-gradient(
            145deg,
            #EAF3FF,
            #F4FBF5
        );

    overflow: hidden;
}


/* Decorative circle */

.hero-visual::before {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    border-radius: 50%;

    border: 35px solid rgba(7, 59, 145, 0.08);
}


/* Hero card */

.hero-card {
    position: relative;
    z-index: 1;

    width: min(80%, 360px);

    padding: 30px;

    background: rgba(255, 255, 255, 0.92);

    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);

    backdrop-filter: blur(15px);
}


.hero-card span {
    display: block;

    margin-bottom: 12px;

    color: var(--color-text-secondary);

    font-size: 0.85rem;
    font-weight: 600;
}


.hero-card strong {
    display: block;

    margin-bottom: 8px;

    color: var(--color-primary);

    font-size: 2rem;
}


.hero-card small {
    color: var(--color-secondary);

    font-size: 0.9rem;
    font-weight: 600;
}


/* =========================================================
   8. HIGHLIGHTS
   ========================================================= */

.highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

    margin-bottom: 100px;
}


.highlight-card {
    padding: 30px;

    background: var(--color-surface);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);

    text-align: center;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}


.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}


.highlight-card strong {
    display: block;

    margin-bottom: 5px;

    color: var(--color-primary);

    font-size: 2rem;
}


.highlight-card span {
    color: var(--color-text-secondary);

    font-size: 0.95rem;
}

.info-grid,
.pillars-grid,
.distribution-grid {
    display: grid;
    gap: 20px;
}

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

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

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

.distribution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 820px;
}

.info-card,
.pillar-card,
.distribution-card {
    padding: 28px 24px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.info-card strong,
.distribution-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--color-primary);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1;
}

.info-card span,
.pillar-card p,
.distribution-card p {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

.pillar-card h3,
.distribution-card strong {
    margin-bottom: 10px;
    color: var(--color-primary);
    font-size: 1.2rem;
}


/* =========================================================
   9. SECTION BASE
   ========================================================= */

.section {
    padding-top: 100px;
    padding-bottom: 100px;
}


.section-light {
    width: 100%;

    max-width: none;

    padding-left: max(20px, calc((100% - var(--container-width)) / 2));
    padding-right: max(20px, calc((100% - var(--container-width)) / 2));

    background: var(--color-section-background);
}


.section-heading {
    max-width: 700px;
    margin-bottom: 50px;
}


.section-label {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--color-secondary);

    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


.section-heading h2 {
    margin-bottom: 16px;

    color: var(--color-primary);

    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}


.section-heading p {
    color: var(--color-text-secondary);

    font-size: 1rem;
}


/* =========================================================
   10. STEPS
   ========================================================= */

.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);

    gap: 18px;
}


.step-card {
    padding: 25px;

    background: var(--color-white);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);
}


.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    margin-bottom: 20px;

    border-radius: 50%;

    background: rgba(7, 59, 145, 0.08);
    color: var(--color-primary);

    font-size: 0.85rem;
    font-weight: 800;
}


.step-card h3 {
    margin-bottom: 10px;

    color: var(--color-primary);

    font-size: 1rem;
}


.step-card p {
    color: var(--color-text-secondary);

    font-size: 0.9rem;
    line-height: 1.7;
}

/* =========================================================
   11. CYCLES
   ========================================================= */

.cycles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cycle-card {
    position: relative;
    padding: 35px;

    background: var(--color-white);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    overflow: hidden;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.cycle-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}


/* Bande colorée supérieure */

.cycle-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background: var(--cycle-color);
}


/* Couleurs des cycles */

.cycle-green {
    --cycle-color: var(--color-secondary);
}

.cycle-blue {
    --cycle-color: var(--color-primary-light);
}

.cycle-purple {
    --cycle-color: #7C3AED;
}


.cycle-tag {
    display: inline-block;

    margin-bottom: 22px;

    color: var(--cycle-color);

    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


.cycle-card h3 {
    margin-bottom: 8px;

    color: var(--color-primary);

    font-size: 1.6rem;
}


.cycle-card strong {
    display: block;

    margin-bottom: 18px;

    color: var(--cycle-color);

    font-size: 3rem;
    line-height: 1;
}


.cycle-card p {
    min-height: 72px;
    margin-bottom: 25px;

    color: var(--color-text-secondary);

    font-size: 0.92rem;
    line-height: 1.7;
}


.cycle-card .btn {
    width: 100%;
}


/* =========================================================
   12. PACKS
   ========================================================= */

.packs-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}


.pack-card {
    padding: 24px;

    background: var(--color-white);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.pack-card:first-child {
    color: var(--color-white);
    background:
        linear-gradient(rgba(5, 30, 76, 0.72), rgba(5, 30, 76, 0.82)),
        url("../assets/images/pack-one-background.jpeg") center / cover;
}

.pack-card:first-child > span {
    color: #A9D8FF;
}

.pack-card:first-child strong {
    color: var(--color-white);
}

.pack-card:first-child small {
    color: rgba(255, 255, 255, 0.82);
}

.pack-card:nth-child(n + 2) {
    color: var(--color-white);
    background-position: center;
    background-size: cover;
}

.pack-card:nth-child(n + 2)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: linear-gradient(rgba(5, 30, 76, 0.68), rgba(5, 30, 76, 0.84));
    pointer-events: none;
}

.pack-card:nth-child(n + 2) {
    position: relative;
    isolation: isolate;
}

.pack-card:nth-child(n + 2) > * {
    position: relative;
    z-index: 1;
}

.pack-card:nth-child(2) {
    background-image: url("../assets/images/pack-two-usdt.jpeg");
}

.pack-card:nth-child(3) {
    background-image: url("../assets/images/pack-three-solana.jpeg");
}

.pack-card:nth-child(4) {
    background-image: url("../assets/images/pack-four-xrp.jpeg");
}

.pack-card:nth-child(5) {
    background-image: url("../assets/images/pack-five-bnb.jpeg");
}

.pack-card:nth-child(6) {
    background-image: url("../assets/images/pack-six-ethereum.jpeg");
}

.pack-card:nth-child(7) {
    background-image: url("../assets/images/pack-seven-btc.jpeg");
}

.pack-card:nth-child(n + 2) > span {
    color: #A9D8FF;
}

.pack-card:nth-child(n + 2) strong {
    color: var(--color-white);
}

.pack-card:nth-child(n + 2) small {
    color: rgba(255, 255, 255, 0.82);
}


.pack-card:hover {
    transform: translateY(-4px);

    border-color: rgba(22, 137, 245, 0.3);

    box-shadow: var(--shadow-md);
}


.pack-card span {
    display: block;

    margin-bottom: 12px;

    color: var(--color-secondary);

    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}


.pack-card strong {
    display: block;

    margin-bottom: 8px;

    color: var(--color-primary);

    font-size: 1.25rem;
}


.pack-card small {
    color: var(--color-text-secondary);

    font-size: 0.82rem;
}

.pack-card > .btn {
    width: 100%;
    margin-top: 16px;
}


/* =========================================================
   13. PAYMENT METHODS
   ========================================================= */

.payment-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;

    max-width: 800px;
}


.payment-card {
    padding: 35px;

    background: var(--color-white);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}


.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}


.payment-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: var(--radius-md);

    background: rgba(7, 59, 145, 0.08);

    color: var(--color-primary);

    font-size: 0.75rem;
    font-weight: 800;
}

.payment-icon--usdt {
    padding: 0;
    overflow: hidden;
    background: transparent;
}

.payment-icon--usdt img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
}

.payment-provider-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.payment-provider-list li {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 6px;
    min-width: 0;
    color: var(--color-text-secondary);
    font-size: 0.68rem;
    line-height: 1.2;
    text-align: center;
}

.payment-provider-list img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
}

.payment-card .payment-provider-note {
    margin-top: 16px;
    font-size: 0.78rem;
}

.payment-cash-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 0 20px;
    object-fit: cover;
    border-radius: var(--radius-md);
}


.payment-card h3 {
    margin-bottom: 8px;

    color: var(--color-primary);

    font-size: 1.25rem;
}


.payment-card p {
    color: var(--color-text-secondary);

    font-size: 0.92rem;
}

.currency-reference {
    max-width: 800px;
    margin-top: 28px;
    padding: 24px 28px;
    display: grid;
    gap: 8px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.currency-reference .section-label {
    margin: 0;
}

.currency-reference strong {
    color: var(--color-primary);
    font-size: 1.35rem;
}

.currency-reference > span:not(.section-label),
.currency-reference p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}


/* =========================================================
   14. CTA
   ========================================================= */

.cta-section {
    margin: 80px 20px;

    padding: 80px 30px;

    border-radius: var(--radius-xl);

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(0, 200, 150, 0.25),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(22, 137, 245, 0.3),
            transparent 35%
        ),
        var(--color-primary);

    color: var(--color-white);

    overflow: hidden;
}


.cta-content {
    text-align: center;
}


.cta-section .section-label {
    color: var(--color-secondary-light);
}


.cta-section h2 {
    margin-bottom: 15px;

    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}


.cta-section p {
    margin-bottom: 30px;

    color: rgba(255, 255, 255, 0.75);

    font-size: 1rem;
}


/* =========================================================
   15. FOOTER
   ========================================================= */

.site-footer {
    background: #EAF3FF;

    color: var(--color-primary);
}


.footer-content {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 50px;

    padding-top: 60px;
    padding-bottom: 40px;
}


.footer-brand img {
    display: block;
    width: 170px;
    height: auto;
    margin-bottom: 8px;
    border-radius: 4px;
}


.footer-brand p {
    color: var(--color-text-secondary);

    font-size: 0.9rem;
}


.footer-links {
    display: flex;
    flex-wrap: wrap;

    gap: 25px;
}


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

    font-size: 0.9rem;

    transition: color var(--transition);
}


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


.footer-bottom {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 30px;

    padding-top: 20px;
    padding-bottom: 25px;

    border-top: 1px solid var(--color-border);
}


.footer-bottom p {
    max-width: 600px;

    color: var(--color-text-secondary);

    font-size: 0.75rem;
    line-height: 1.6;
}
/* =========================================================
   16. HERO VISUAL — CIRCORA
   ========================================================= */

.hero-visual {
    position: relative;

    min-height: 500px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: var(--radius-xl);

    background:
        radial-gradient(
            circle at 30% 30%,
            rgba(17, 154, 80, 0.23),
            transparent 35%
        ),
        radial-gradient(
            circle at 70% 70%,
            rgba(22, 137, 245, 0.25),
            transparent 40%
        ),
        radial-gradient(
            circle at 85% 18%,
            rgba(244, 180, 0, 0.16),
            transparent 24%
        ),
        linear-gradient(
            145deg,
            #EAF3FF,
            #F4FBF5
        );

    overflow: hidden;
}


/* =========================================================
   CIRCORA ORBITS
   ========================================================= */

.hero-orbit {
    position: absolute;

    border-radius: 50%;

    border: 1px solid rgba(7, 59, 145, 0.12);

    pointer-events: none;
}


.hero-orbit-one {
    width: 380px;
    height: 380px;
}


.hero-orbit-two {
    width: 280px;
    height: 280px;

    border-color: rgba(17, 154, 80, 0.18);
}


/* =========================================================
   HERO LOGO
   ========================================================= */

.hero-logo {
    position: absolute;

    top: 75px;
    left: 50%;

    transform: translateX(-50%);

    width: 175px;

    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.88);

    border: 1px solid rgba(255, 255, 255, 0.9);

    border-radius: 50%;

    box-shadow: var(--shadow-md);

    z-index: 2;

    backdrop-filter: blur(10px);
}


.hero-logo img {
    width: 100%;
    height: auto;
}


/* =========================================================
   PARTICIPATION CARD
   ========================================================= */

.hero-card {
    position: absolute;

    right: 8%;
    bottom: 65px;

    z-index: 3;

    width: min(82%, 370px);

    padding: 28px;

    background: rgba(255, 255, 255, 0.94);

    border: 1px solid rgba(255, 255, 255, 0.9);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);

    backdrop-filter: blur(15px);
}


/* Header */

.hero-card-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 14px;
}


.hero-card-header span:first-child {
    color: var(--color-text-secondary);

    font-size: 0.82rem;
    font-weight: 600;
}


/* Status */

.status-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: var(--color-secondary);

    box-shadow:
        0 0 0 5px rgba(17, 154, 80, 0.12);
}


/* Amount */

.hero-card strong {
    display: block;

    margin-bottom: 14px;

    color: var(--color-primary);

    font-size: 2rem;
    line-height: 1;
}


/* Details */

.hero-card-details {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
}


.hero-card-details span {
    color: var(--color-secondary);

    font-size: 0.85rem;
    font-weight: 700;
}


.hero-card-details span:last-child {
    color: var(--color-text-secondary);

    font-weight: 500;
}


/* Progress */

.hero-progress {
    width: 100%;
    height: 7px;

    margin-bottom: 12px;

    background: #E8EEF7;

    border-radius: 999px;

    overflow: hidden;
}


.hero-progress-bar {
    width: 42%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--color-primary-light),
            var(--color-secondary)
        );

    border-radius: inherit;
}


.hero-card small {
    color: var(--color-text-secondary);

    font-size: 0.78rem;
}
/* =========================================
   DASHBOARD
========================================= */

.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 80px);
    background: var(--color-background);
}

.dashboard-main {
    flex: 1;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}


/* -----------------------------------------
   HEADER
----------------------------------------- */

.dashboard-header {
    margin-bottom: 32px;
}

.dashboard-header h1 {
    margin: 8px 0 10px;
    font-size: 36px;
    line-height: 1.2;
    color: var(--color-primary);
}

.dashboard-header p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
}


/* -----------------------------------------
   STATISTIQUES
----------------------------------------- */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.dashboard-stat-card {
    background: #ffffff;
    border: 1px solid #e6edf3;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 42, 70, 0.05);
}

.dashboard-stat-card .stat-label {
    display: block;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 14px;
}

.dashboard-stat-card strong {
    display: block;
    color: var(--color-primary);
    font-size: 28px;
}


/* -----------------------------------------
   SECTIONS
----------------------------------------- */

.dashboard-section {
    margin-bottom: 32px;
    background: #ffffff;
    border: 1px solid #e6edf3;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(15, 42, 70, 0.04);
}

.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-section-header h2 {
    margin: 8px 0 0;
    color: var(--color-primary);
    font-size: 22px;
}

.dashboard-section-header a {
    color: var(--color-secondary);
    font-weight: 600;
    text-decoration: none;
}

.dashboard-section-header a:hover {
    text-decoration: underline;
}


/* -----------------------------------------
   EMPTY STATE
----------------------------------------- */

.dashboard-empty {
    text-align: center;
    padding: 50px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
}

.dashboard-empty h3 {
    margin: 0 0 10px;
    color: var(--color-primary);
    font-size: 19px;
}

.dashboard-empty p {
    max-width: 500px;
    margin: 0 auto 24px;
    color: #64748b;
    line-height: 1.6;
}
/* =========================================
   CYCLES PAGE
========================================= */

.cycles-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cycle-page-card {
    background: #ffffff;
    border: 1px solid #e6edf3;
    border-radius: 20px;
    padding: 26px;

    box-shadow: 0 8px 24px rgba(15, 42, 70, 0.05);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.cycle-page-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 42, 70, 0.08);
}

.cycle-page-card-featured {
    border: 2px solid var(--color-secondary);
}

.cycle-page-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.cycle-code {
    display: block;
    color: var(--color-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.cycle-page-card h2 {
    margin: 8px 0 0;
    color: var(--color-primary);
    font-size: 22px;
}

.cycle-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 58px;
    padding: 8px 12px;

    border-radius: 999px;

    background: rgba(17, 154, 80, 0.1);
    color: var(--color-secondary);

    font-size: 14px;
    font-weight: 700;
}

.cycle-page-duration,
.cycle-page-attribution {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 0;

    border-bottom: 1px solid #edf2f7;
}

.cycle-page-duration span,
.cycle-page-attribution span {
    color: #64748b;
    font-size: 14px;
}

.cycle-page-duration strong,
.cycle-page-attribution strong {
    color: var(--color-primary);
    font-size: 16px;
}

.cycle-page-description {
    margin: 22px 0;
    color: #64748b;
    line-height: 1.6;
    font-size: 14px;
}

.cycle-page-button {
    width: 100%;
}
/* =========================================
   SIDEBAR
========================================= */

.sidebar {
    width: 250px;
    flex-shrink: 0;
    min-height: calc(100vh - 80px);

    padding: 28px 16px;

    background: #ffffff;
    border-right: 1px solid #e6edf3;
}

.sidebar-header {
    padding: 0 14px 20px;
}

.sidebar-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 13px 14px;

    border-radius: 12px;

    color: #64748b;
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.sidebar-link:hover {
    background: rgba(17, 154, 80, 0.08);
    color: var(--color-secondary);
}

.sidebar-link.active {
    background: rgba(17, 154, 80, 0.12);
    color: var(--color-secondary);
}

.sidebar-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    font-size: 18px;
    flex-shrink: 0;
}


/* =========================================
   AUTH PAGES
========================================= */

.auth-page {
    padding: 72px 20px 90px;
    background: linear-gradient(135deg, #f3f7ff 0%, #eef9f9 100%);
}

.auth-shell {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: center;
}

.auth-copy {
    padding: 20px 10px;
}

.auth-copy h1 {
    margin: 8px 0 18px;
    color: var(--color-primary);
    font-size: clamp(2.3rem, 4vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.auth-copy p {
    max-width: 550px;
    color: var(--color-text-secondary);
    font-size: 1.04rem;
    line-height: 1.8;
}

.auth-features {
    margin-top: 26px;
    display: grid;
    gap: 12px;
}

.auth-features li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text);
    font-weight: 600;
}

.auth-features li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(17, 154, 80, 0.12);
    color: var(--color-secondary);
}

.auth-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.auth-card h2 {
    margin-bottom: 18px;
    color: var(--color-primary);
    font-size: 2rem;
}

.auth-card [data-mfa-qr] {
    width: 256px;
    height: 256px;
    margin: 18px auto;
    padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    image-rendering: pixelated;
}

.mfa-settings-qr {
    width: min(256px, 100%);
    height: auto;
    margin: 18px 0;
    padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    image-rendering: pixelated;
}

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

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

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

.field label {
    color: var(--color-text);
    font-weight: 700;
    font-size: 0.88rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #f8fafc;
    color: var(--color-text);
    font: inherit;
}

.password-input-group {
    position: relative;
}

.password-input-group input {
    padding-right: 88px;
}

.password-visibility-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    padding: 6px;
    border: 0;
    background: transparent;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-visibility-toggle:focus-visible {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 2px;
    border-radius: 4px;
}

.field textarea {
    min-height: 110px;
    resize: vertical;
}

.phone-input-group {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.phone-dial-code {
    min-width: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #eef2f7;
    color: var(--color-primary);
    font-weight: 700;
}

.phone-input-group input {
    flex: 1;
    min-width: 0;
}

.auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.auth-remember input {
    accent-color: var(--color-primary);
}

.auth-link {
    color: var(--color-primary);
    font-weight: 700;
}

.password-reset-open {
    border: 0;
    padding: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.password-reset-panel {
    display: grid;
    gap: 14px;
    margin-top: 20px;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-background);
}

.password-reset-panel h3 {
    color: var(--color-primary);
    font-size: 1.05rem;
}

.password-reset-panel > p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.password-reset-panel > p[data-state="error"] {
    color: var(--color-danger);
}

.password-reset-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.auth-switch,
.auth-note {
    margin-top: 20px;
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    text-align: center;
}

.auth-switch a,
.auth-note a {
    color: var(--color-primary);
    font-weight: 700;
}


/* =========================================
   MEMBER PAGE ELEMENTS
========================================= */

.member-panel {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 42, 70, 0.04);
}

.wallet-grid,
.referral-grid,
.profile-grid {
    display: grid;
    gap: 22px;
}

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

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

.profile-grid {
    grid-template-columns: 1.2fr 0.8fr;
}

.profile-overview .profile-grid {
    grid-template-columns: minmax(0, 1fr);
}

.profile-overview .profile-card {
    max-width: 680px;
}

.wallet-card,
.referral-card,
.profile-card,
.notice-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 20px rgba(15, 42, 70, 0.04);
}

.wallet-card .label,
.referral-card .label,
.profile-card .label {
    display: block;
    margin-bottom: 10px;
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.wallet-card strong,
.referral-card strong,
.profile-card strong {
    display: block;
    color: var(--color-primary);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.wallet-card p,
.referral-card p,
.profile-card p,
.notice-card p {
    margin-top: 10px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.copyable-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
}

.copyable-link a {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.btn-copy {
    white-space: nowrap;
    flex: 0 0 auto;
}

.balance-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(17, 154, 80, 0.1);
    color: var(--color-secondary);
    font-size: 0.75rem;
    font-weight: 800;
}

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

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    gap: 18px;
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: 14px;
}

.list-item > div {
    min-width: 0;
    flex: 1 1 auto;
}

.list-item strong {
    color: var(--color-primary);
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.list-item span,
.list-item small {
    color: var(--color-text-secondary);
}

.list-item p,
.list-item small,
.list-item a {
    overflow-wrap: anywhere;
}

.list-item .status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-pill.success {
    background: rgba(22, 163, 74, 0.12);
    color: var(--color-success);
}

.status-pill.warning {
    background: rgba(245, 158, 11, 0.12);
    color: var(--color-warning);
}

.status-pill.info {
    background: rgba(22, 137, 245, 0.12);
    color: var(--color-primary-light);
}

.table-card {
    overflow: hidden;
}

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

.data-table th,
.data-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    font-size: 0.93rem;
}

.data-table th {
    color: var(--color-primary);
    background: #f8fafc;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.data-table td {
    color: var(--color-text);
}

.profile-card .avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 18px;
    object-fit: cover;
}

.profile-photo-preview {
    width: 112px;
    height: 112px;
    border: 3px solid var(--color-border);
    border-radius: 50%;
    object-fit: cover;
}

.profile-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.referral-network-level {
    display: grid;
    gap: 10px;
}

.referral-network-level + .referral-network-level {
    margin-top: 20px;
}

.referral-network-level h3 {
    color: var(--color-primary);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .auth-shell,
    .wallet-grid,
    .referral-grid,
    .profile-grid,
    .info-grid,
    .pillars-grid,
    .distribution-grid,
    .field-row {
        grid-template-columns: 1fr;
    }
}

.form-intro {
    max-width: 760px;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.payment-details-section {
    margin-top: 28px;
}

.payment-details-form {
    max-width: 780px;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.form-feedback {
    min-height: 1.5em;
    color: var(--color-secondary);
    font-size: 0.9rem;
}

.form-feedback[data-state="error"] {
    color: var(--color-danger);
}

.demo-notice {
    margin-bottom: 22px;
    border-left: 4px solid var(--color-warning);
    background: #fffbeb;
}

.demo-notice strong {
    display: block;
    margin-bottom: 5px;
    color: #92400e;
}

.demo-notice p {
    color: #78350f;
    line-height: 1.6;
}

.policy-page {
    width: min(100% - 40px, var(--container-width));
    margin-inline: auto;
    padding-bottom: 40px;
}

.policy-intro {
    font-size: 1.05rem;
}

.policy-deadline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.policy-deadline-card {
    padding: 24px;
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-accent);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.policy-deadline-card h2 {
    margin-top: 12px;
    color: var(--color-primary);
    font-size: 1.25rem;
    line-height: 1.35;
}

.policy-deadline-card p,
.policy-page .dashboard-section > p {
    margin-top: 12px;
    color: var(--color-text-secondary);
}

.policy-deadline-card .policy-consequence {
    padding: 12px;
    border-radius: var(--radius-sm);
    background: #fffbeb;
    color: #78350f;
}

.policy-fee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 14px;
}

.policy-fee-grid article {
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #f8fafc;
}

.policy-fee-grid h3 {
    color: var(--color-primary);
    font-size: 1rem;
}

.policy-fee-grid p,
.policy-fee-exemption {
    margin-top: 8px;
    color: var(--color-text-secondary);
}

.policy-fee-exemption {
    padding: 14px;
    border-left: 4px solid var(--color-secondary);
    border-radius: var(--radius-sm);
    background: rgba(17, 154, 80, .08);
}

.policy-list {
    display: grid;
    gap: 10px;
    padding-left: 24px;
    color: var(--color-text-secondary);
}

.policy-important-note {
    border-left: 4px solid var(--color-warning);
    background: #fffbeb;
}

.policy-important-note strong {
    color: #92400e;
}

.policy-important-note p {
    margin-top: 8px;
    color: #78350f;
}

.policy-signoff {
    padding: 8px 0 24px;
    color: var(--color-primary);
    font-weight: 700;
    text-align: center;
}

.dashboard-policy-notice {
    margin-bottom: 32px;
}

.dashboard-policy-notice .btn {
    margin-top: 14px;
}

.policy-register-notice {
    padding: 16px;
    border-radius: var(--radius-md);
}

.policy-register-notice span {
    color: #78350f;
}

.policy-register-notice a {
    font-weight: 700;
    text-decoration: underline;
}

.distribution-workflow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 22px;
    margin-bottom: 22px;
}

.distribution-form-panel,
.beneficiary-panel,
.proof-panel {
    min-width: 0;
}

.distribution-form-panel h2,
.beneficiary-panel h2,
.proof-panel h2 {
    margin: 6px 0 0;
    color: var(--color-primary);
    font-size: 1.3rem;
}

.distribution-split {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.split-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 16px;
    border-radius: 12px;
    background: #f8fafc;
}

.split-line span {
    color: var(--color-text);
    font-weight: 600;
}

.split-line small {
    display: block;
    margin-top: 3px;
    color: var(--color-text-secondary);
    font-size: 0.8rem;
}

.split-line strong {
    color: var(--color-primary);
    white-space: nowrap;
}

.beneficiary-split {
    border: 1px solid rgba(17, 154, 80, 0.25);
    background: rgba(17, 154, 80, 0.06);
}

.company-split {
    border: 1px solid rgba(7, 59, 145, 0.12);
}

.marketing-breakdown {
    display: grid;
    gap: 7px;
    margin-top: 18px;
    padding: 16px;
    border-radius: 12px;
    background: var(--color-background);
}

.marketing-breakdown strong {
    color: var(--color-primary);
}

.marketing-breakdown p {
    color: var(--color-text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.beneficiary-name {
    display: grid;
    gap: 5px;
    margin-bottom: 14px;
}

.beneficiary-name strong {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.beneficiary-name small {
    color: var(--color-text-secondary);
    font-size: 0.78rem;
    font-weight: 400;
}

.recipient-detail {
    display: grid;
    gap: 5px;
    padding: 13px 0;
    border-top: 1px solid var(--color-border);
}

.recipient-detail span {
    color: var(--color-text-secondary);
    font-size: 0.8rem;
}

.recipient-detail strong {
    color: var(--color-text);
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.coordination-link {
    margin-top: 16px;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.coordination-link a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.transfer-instructions {
    display: grid;
    gap: 12px;
    padding-left: 22px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.proof-form {
    margin-top: 22px;
}

.proof-form small {
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.current-distribution {
    margin-top: 22px;
}

.current-distribution h2 {
    margin: 6px 0;
    color: var(--color-primary);
}

.current-distribution p {
    margin-bottom: 16px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.chat-panel {
    max-width: 900px;
    margin: 0 auto;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--color-border);
}

.chat-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    font-weight: 800;
}

.chat-header > div:nth-child(2) {
    display: grid;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.chat-header strong {
    color: var(--color-primary);
}

.chat-header strong small,
.chat-header span {
    color: var(--color-text-secondary);
    font-size: 0.82rem;
    font-weight: 400;
}

.chat-notice {
    margin: 16px 0;
    padding: 14px 16px;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 260px;
    max-height: 520px;
    overflow-y: auto;
    padding: 18px 4px;
}

.admin-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 360px;
    overflow-y: auto;
    padding: 8px 0;
}

.admin-chat-messages .chat-message {
    max-width: 100%;
}

.chat-message {
    width: fit-content;
    max-width: min(82%, 560px);
    padding: 12px 14px;
    border-radius: 14px;
}

.chat-message-theirs {
    align-self: flex-start;
    background: #f1f5f9;
    border-bottom-left-radius: 4px;
}

.chat-message-mine {
    align-self: flex-end;
    background: rgba(22, 137, 245, 0.1);
    border-bottom-right-radius: 4px;
}

.chat-message-sender,
.chat-message time {
    display: block;
    color: var(--color-text-secondary);
    font-size: 0.72rem;
}

.chat-message p {
    margin: 5px 0;
    color: var(--color-text);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.chat-attachment {
    display: block;
    max-width: min(100%, 360px);
    max-height: 300px;
    margin: 10px 0;
    object-fit: contain;
    border-radius: 10px;
}

.chat-confirmation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 10px 0 18px;
    padding: 16px;
    border-radius: 12px;
    background: #f0fdf4;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.chat-confirmation strong {
    color: var(--color-primary);
}

.chat-confirmation p {
    margin-top: 5px;
    color: var(--color-text-secondary);
    font-size: 0.82rem;
    line-height: 1.5;
}

.chat-composer {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.chat-composer textarea {
    flex: 1;
    min-width: 0;
    resize: vertical;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #f8fafc;
    font: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

/* Parcours de contribution et surfaces réutilisables — palette CIRCORA inchangée */
:focus-visible { outline: 3px solid var(--color-primary-light); outline-offset: 3px; }
.dashboard-main { min-width: 0; }
.dashboard-header { margin-bottom: 28px; }
.dashboard-header h1 { letter-spacing: -0.035em; }
.member-panel, .dashboard-section, .table-card, .workflow-card {
    border: 1px solid rgba(7, 59, 145, 0.08);
    box-shadow: var(--shadow-sm);
}
.member-panel, .workflow-card { border-radius: var(--radius-lg); }
.dashboard-section, .member-panel { transition: box-shadow var(--transition), transform var(--transition); }
.dashboard-section:hover, .member-panel:hover { box-shadow: var(--shadow-md); }
.field input:focus, .field select:focus, .field textarea:focus, .chat-composer textarea:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(22, 137, 245, 0.12);
    outline: none;
}
.contribution-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); gap: 22px; align-items: start; }
.contribution-form, .contribution-aside { padding: clamp(20px, 3vw, 32px); }
.matching-wizard { display: grid; gap: 24px; }
.journey-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0 0 18px; list-style: none; border-bottom: 1px solid var(--color-border); }
.journey-progress li { display: flex; align-items: center; gap: 10px; color: var(--color-text-secondary); font-size: .9rem; }
.journey-progress li > span { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border: 1px solid var(--color-border); border-radius: 50%; background: var(--color-white); font-weight: 800; }
.journey-progress li[aria-current="step"] { color: var(--color-primary); }
.journey-progress li[aria-current="step"] > span { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.matching-wizard [data-contribution-step] h2 { margin: 8px 0 12px; color: var(--color-primary); }
.wizard-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.wizard-actions-end { justify-content: flex-end; }
.wizard-choice-group { min-width: 0; margin: 20px 0; padding: 0; border: 0; }
.wizard-choice-group legend { margin-bottom: 12px; color: var(--color-primary); font-weight: 800; }
.preference-summary, .request-review { margin: 16px 0; padding: 18px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-background); line-height: 1.6; }
.preference-summary[data-state="error"] { border-color: var(--color-danger); color: var(--color-danger); }
.preference-summary[data-state="success"] { border-color: var(--color-secondary); color: var(--color-secondary); }
.request-review { display: grid; gap: 0; }
.request-review > div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.request-review > div:last-child { border-bottom: 0; }
.request-review span { color: var(--color-text-secondary); }
.request-review strong { color: var(--color-primary); text-align: right; }
.workflow-card[data-request-highlight="true"] { border-color: var(--color-primary-light); box-shadow: 0 0 0 3px rgba(22, 137, 245, .12); }
.contribution-summary { display: grid; gap: 8px; margin: 18px 0 24px; padding: 18px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-white); }
.contribution-summary > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.contribution-summary > div:last-of-type { border: 0; }
.contribution-summary span, .contribution-summary small, .contribution-aside li, .contribution-aside p { color: var(--color-text-secondary); }
.contribution-summary strong { color: var(--color-primary); white-space: nowrap; }
.contribution-summary small { font-size: .82rem; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice-card { position: relative; display: flex; min-width: 0; align-items: flex-start; gap: 12px; margin: 0; padding: 18px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-white); cursor: pointer; transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition); }
.choice-card:hover { border-color: var(--color-primary-light); }
.choice-card:has(input:checked) { border-color: var(--color-primary); background: rgba(22, 137, 245, .045); box-shadow: 0 0 0 2px rgba(22, 137, 245, .12); }
.choice-card input { flex: 0 0 auto; margin: 5px 0 0; accent-color: var(--color-primary); }
.choice-card span { display: block; min-width: 0; }
.choice-card strong { display: block; color: var(--color-primary); }
.choice-card small { display: block; margin-top: 5px; color: var(--color-text-secondary); line-height: 1.45; }
.choice-card-icon { display: grid !important; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 10px; background: rgba(22, 137, 245, .1); color: var(--color-primary); font-size: 1.1rem; font-weight: 800; }
.choice-helper { margin: 12px 0 0; color: var(--color-text-secondary); }
.contribution-aside { position: sticky; top: calc(var(--site-header-height) + 20px); }
.contribution-aside ol { display: grid; gap: 14px; padding: 16px 0 16px 22px; }
.contribution-aside p { padding: 14px; border-radius: var(--radius-sm); background: var(--color-background); font-size: .9rem; }
.workflow-stack { display: grid; gap: 16px; }
.workflow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 22px 0; }
.workflow-card { min-width: 0; padding: 20px; background: var(--color-surface); }
.workflow-card h3 { margin: 8px 0; color: var(--color-primary); }
.workflow-card p { margin: 8px 0; overflow-wrap: anywhere; }
.workflow-card-heading, .workflow-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.workflow-actions { justify-content: flex-start; margin-top: 14px; }
.workflow-subheading { margin: 26px 0 0; color: var(--color-primary); }
.workflow-notice { margin-bottom: 20px; padding: 18px 22px; }
.workflow-notice p { margin-top: 6px; color: var(--color-text-secondary); }
.payment-destination, .payment-instruction { min-width: 0; margin: 14px 0; padding: 15px; border-radius: var(--radius-md); background: var(--color-background); overflow-wrap: anywhere; }
.payment-instruction { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; border: 1px solid var(--color-border); }
.payment-instruction-content { min-width: 0; flex: 1 1 auto; }
.payment-instruction strong { display: block; color: var(--color-primary); overflow-wrap: anywhere; }
.payment-instruction p { margin: 7px 0 0; overflow-wrap: anywhere; word-break: break-word; }
.payment-instruction .payment-holder { color: var(--color-text-secondary); font-weight: 700; }
.payment-coordinates { min-width: 0; overflow-wrap: anywhere; word-break: normal; white-space: pre-wrap; }
.payment-instruction .btn-copy { flex: 0 0 auto; }
.payment-destination-warning { border: 1px solid rgba(217, 119, 6, .35); background: rgba(217, 119, 6, .08); }
.payment-destination h4 { margin-bottom: 8px; color: var(--color-primary); }
.payment-destination code { word-break: break-all; }
.cycle-timer { display: inline-flex; margin: 12px 0; padding: 8px 12px; border-radius: 999px; background: var(--color-background); color: var(--color-primary); font-weight: 700; font-variant-numeric: tabular-nums; }
.proof-form, .admin-payout-form, .admin-withdrawal-form { display: grid; gap: 12px; margin-top: 16px; }
.proof-form label, .admin-payout-form label, .admin-withdrawal-form label { display: grid; gap: 6px; color: var(--color-text-secondary); font-size: .9rem; }
.chat-workspace { display: grid; grid-template-columns: minmax(220px, .34fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.chat-threads-panel, .chat-panel { min-width: 0; padding: 20px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.chat-thread-list { display: grid; gap: 8px; margin-top: 14px; }
.chat-thread { display: grid; gap: 3px; width: 100%; padding: 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-white); color: var(--color-text); text-align: left; cursor: pointer; }
.chat-thread.is-active { border-color: var(--color-primary-light); }
.chat-thread small { color: var(--color-text-secondary); }
.chat-file-button { flex: 0 0 auto; }
.chat-composer { flex-wrap: wrap; }
.chat-composer [data-chat-note] { flex-basis: 100%; }
.admin-main { width: min(100% - 40px, 1440px); margin: 28px auto; }
.admin-main > .dashboard-section, .admin-main > .workflow-grid { margin-block: 22px; }
.admin-main .data-table th { white-space: nowrap; }
.admin-main .data-table td { vertical-align: top; }
.unread-badge { display: inline-flex; min-width: 20px; height: 20px; align-items: center; justify-content: center; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #c62828; color: #fff; font-size: .72rem; font-weight: 800; line-height: 1; }
.unread-badge[hidden] { display: none; }
.sidebar-link .unread-badge { margin-left: auto; }
.unread-message-item { color: inherit; text-decoration: none; }
.unread-message-item:hover { border-color: var(--color-primary); }
.unread-message-item p { margin: 6px 0 0; color: var(--color-text-secondary); }
.message-toast { position: fixed; z-index: 10000; right: 20px; bottom: 20px; max-width: min(360px, calc(100vw - 40px)); padding: 14px 18px; border-radius: 12px; background: var(--color-primary); color: #fff; box-shadow: var(--shadow-md); }
.admin-tabs { position: sticky; top: 12px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; padding: 10px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-white); box-shadow: 0 8px 24px rgba(16, 24, 40, .08); }
.admin-tabs[hidden] { display: none; }
.admin-main:not([data-admin-ready="true"]) [data-admin-panel],
.admin-main:not([data-admin-ready="true"]) [data-admin-tabs] { display: none !important; }
.admin-tab { min-height: 40px; padding: 8px 16px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-white); color: var(--color-text-secondary); font: inherit; font-weight: 650; cursor: pointer; }
.admin-tab[aria-pressed="true"] { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-white); }
.forum-panel { display: grid; gap: 14px; max-width: 1040px; margin: 0 auto; padding: 22px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.forum-status { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--color-background); color: var(--color-text-secondary); }
.forum-status[data-state="open"] { background: rgba(17, 154, 80, .1); color: var(--color-secondary); }
.forum-status[data-state="closed"] { background: rgba(217, 119, 6, .12); color: #9a5800; }
.forum-messages { display: flex; min-height: 340px; max-height: min(64vh, 720px); flex-direction: column; gap: 12px; overflow-y: auto; padding: 16px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-white); }
.forum-message { width: fit-content; max-width: min(88%, 760px); padding: 12px 15px; border: 1px solid var(--color-border); border-radius: 14px 14px 14px 4px; background: #f5f7fa; overflow-wrap: anywhere; }
.forum-message-mine { align-self: flex-end; border-color: rgba(22, 137, 245, .2); border-radius: 14px 14px 4px 14px; background: rgba(22, 137, 245, .09); }
.forum-message header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.forum-message header strong { color: var(--color-primary); }
.forum-message time, .forum-message > p { color: var(--color-text-secondary); font-size: .86rem; }
.forum-message > p { margin: 7px 0 0; color: var(--color-text); line-height: 1.55; white-space: normal; }
.forum-staff-badge { padding: 2px 7px; border-radius: 999px; background: rgba(22, 137, 245, .12); color: var(--color-primary); font-size: .72rem; font-weight: 700; }
.forum-empty { margin: auto; color: var(--color-text-secondary); text-align: center; }
.forum-load-older { justify-self: center; }
.forum-composer, .forum-ban-form { display: grid; gap: 10px; }
.forum-composer label, .forum-ban-form label { color: var(--color-text-secondary); font-weight: 650; }
.forum-composer textarea, .forum-ban-form textarea, .forum-ban-form select { width: 100%; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-text); font: inherit; }
.forum-composer textarea { resize: vertical; }
.forum-composer-footer, .forum-admin-status { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.forum-composer-footer small { color: var(--color-text-secondary); }
.forum-admin-status { margin: 16px 0 24px; padding: 16px; border-radius: var(--radius-md); background: var(--color-background); }
.forum-admin-status [data-state="open"] { color: var(--color-secondary); }
.forum-admin-status [data-state="closed"] { color: #9a5800; }
.forum-ban-form { max-width: 680px; margin-bottom: 24px; }
.forum-ban-form button { justify-self: start; }
@media (max-width: 560px) {
    .forum-panel { padding: 14px; }
    .forum-messages { min-height: 280px; padding: 10px; }
    .forum-message { max-width: 96%; }
    .forum-composer-footer, .forum-admin-status { align-items: stretch; flex-direction: column; }
    .forum-composer-footer .btn, .forum-admin-status .btn { width: 100%; }
}
.admin-main [data-admin-panel][hidden] { display: none !important; }
.admin-main .dashboard-stats { margin: 0 0 20px; }
.admin-main .data-table { min-width: 820px; }
.admin-match-controls { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(220px, 1fr) auto; align-items: center; gap: 12px; margin-top: 18px; }
.admin-match-controls .choice-card { height: 100%; }
.admin-match-controls .btn { min-height: 48px; white-space: normal; }
.admin-main [data-matching-feedback] { min-height: 1.5em; margin-top: 12px; }
.admin-main .workflow-stack { gap: 14px; }
.admin-main .workflow-card { padding: 20px; }
.instruction-form { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--color-border); }
.status-pill { white-space: nowrap; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.admin-match-controls {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr);
    align-items: start;
    gap: 16px 20px;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #F8FAFC;
}
.admin-match-controls [data-matching-selection],
.admin-match-controls [data-regional-guidance] { grid-column: 1 / -1; margin: 0; }
.admin-match-controls [data-matching-selection] { padding: 12px 14px; border-radius: var(--radius-sm); background: #EAF1F7; }
.admin-match-controls [data-matching-selection][data-state="error"] { background: #FEF2F2; }
.admin-match-controls .choice-card { grid-column: 1 / -1; }
.admin-match-controls .matching-reason { display: grid; gap: 8px; color: var(--color-text); font-weight: 650; }
.admin-match-controls .matching-reason input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
}
.matching-role-choice { display: flex; align-items: center; gap: 7px; margin: 3px 0; white-space: nowrap; }
.matching-role-choice input { accent-color: var(--color-primary); }
.admin-main .data-table td small { display: inline-block; margin-top: 4px; color: var(--color-text-secondary); line-height: 1.45; }
.admin-main .dashboard-header p,
.admin-main .dashboard-section-header p { max-width: 76ch; }
.admin-main [data-matching-feedback] { grid-column: 1 / -1; }
.payment-category {
    margin: 4px 0;
    padding: 12px 16px 4px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #F8FAFC;
    transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
}
.payment-category.is-preferred {
    border-color: var(--color-secondary);
    background: #F1FAF4;
    box-shadow: 0 0 0 2px rgba(17, 154, 80, .1);
}
.payment-category-status {
    min-height: 1.4em;
    margin: 0 0 6px;
    color: var(--color-text-secondary);
    font-size: .78rem;
    font-weight: 700;
}
.payment-category.is-preferred .payment-category-status { color: var(--color-secondary); }

@media (max-width: 560px) {
    .admin-match-controls { grid-template-columns: 1fr; padding: 16px; }
    .admin-match-controls [data-matching-selection],
    .admin-match-controls [data-regional-guidance],
    .admin-match-controls .choice-card,
    .admin-main [data-matching-feedback] { grid-column: 1; }
    .admin-match-controls .btn { width: 100%; }
    .journey-progress li { align-items: flex-start; flex-direction: column; gap: 6px; font-size: .8rem; }
    .wizard-actions { align-items: stretch; flex-direction: column-reverse; }
    .wizard-actions .btn { width: 100%; }
    .request-review > div { align-items: flex-start; flex-direction: column; gap: 4px; }
    .request-review strong { text-align: left; }
}
