:root {
    --primary: #26388f;
    --primary-dark: #17235f;
    --primary-soft: #eef1ff;

    --accent: #efa31d;
    --accent-dark: #d88908;
    --accent-soft: #fff5df;

    --bg: #ffffff;
    --bg-soft: #f7f8fc;
    --bg-warm: #fffaf2;

    --text: #1c2233;
    --text-muted: #687087;

    --border: #e4e7ef;
    --border-dark: #d4d8e2;

    --shadow-sm: 0 8px 24px rgba(26, 36, 75, .07);
    --shadow-md: 0 18px 50px rgba(26, 36, 75, .10);
    --shadow-lg: 0 28px 80px rgba(26, 36, 75, .13);

    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

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

a:hover {
    color: var(--primary-dark);
}


/* =========================
   NAVBAR
========================= */

.site-navbar {
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(28, 34, 51, .08);
    box-shadow: 0 6px 30px rgba(23, 35, 95, .05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.brand-logo {
    display: block;
    width: auto;
    max-width: 230px;
    max-height: 46px;
}

.site-navbar .text-white,
.site-navbar .check-link {
    color: var(--text) !important;
}

.site-navbar .check-link {
    font-weight: 600;
}

.site-navbar .check-link:hover {
    color: var(--primary) !important;
}


/* =========================
   LANGUAGE SWITCH
========================= */

.lang-switch {
    padding: 3px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.lang-switch .btn {
    border: 0;
    color: var(--text-muted);
    border-radius: 9px !important;
    min-width: 42px;
    font-weight: 700;
}

.lang-switch .btn:hover {
    color: var(--primary);
}

.lang-switch .btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(38, 56, 143, .22);
}


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

.hero-section {
    min-height: 100vh;
    padding-top: 90px;
    position: relative;
    background:
        radial-gradient(circle at 82% 20%, rgba(239, 163, 29, .15), transparent 30%),
        radial-gradient(circle at 15% 30%, rgba(38, 56, 143, .08), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #fbfbff 50%, #fff9ef 100%);
}

.hero-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(247, 248, 252, .75));
    pointer-events: none;
}

.hero-section .container {
    z-index: 2;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(3px);
    pointer-events: none;
}

.hero-orb-1 {
    width: 420px;
    height: 420px;
    right: -170px;
    top: 90px;
    background: rgba(239, 163, 29, .08);
}

.hero-orb-2 {
    width: 320px;
    height: 320px;
    left: -150px;
    bottom: 30px;
    background: rgba(38, 56, 143, .055);
}

.eyebrow,
.section-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .11em;
}

.eyebrow span {
    display: inline-block;
    width: 34px;
    height: 3px;
    border-radius: 10px;
    background: var(--accent);
}

.hero-section h1 {
    color: var(--text);
    letter-spacing: -.045em;
}

.text-accent {
    color: var(--accent) !important;
}

.hero-lead {
    color: var(--text-muted);
    max-width: 650px;
    line-height: 1.7;
}


/* =========================
   HERO IMAGE
========================= */

.hero-section img {
    display: block;
    width: 100%;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(38, 56, 143, .06);
}


/* =========================
   MINI STEPS
========================= */

.step-chip {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 15px 16px;
    min-height: 74px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.step-chip b {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: .8rem;
}

.step-chip span {
    color: var(--text);
    font-size: .74rem;
    font-weight: 650;
    line-height: 1.35;
}


/* =========================
   COUNTDOWN
========================= */

.countdown-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
}

.countdown-card .opacity-75 {
    color: var(--text-muted);
    opacity: 1 !important;
}

.count-item {
    height: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.count-item strong {
    color: var(--primary);
    font-size: 1.5rem;
    line-height: 1;
}

.count-item small {
    color: var(--text-muted);
    font-size: .67rem;
    margin-top: 7px;
}


/* =========================
   SECTIONS
========================= */

.registration-section {
    background: var(--bg-soft);
}

.registration-copy {
    top: 120px !important;
}

.registration-section h2,
.legal-section h2 {
    color: var(--text);
    letter-spacing: -.035em;
}

.text-secondary {
    color: var(--text-muted) !important;
}


/* =========================
   RULES LIST
========================= */

.rules-list {
    background: transparent;
}

.rules-list .list-group-item {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.rules-list .list-group-item strong {
    color: var(--accent-dark);
    font-size: 1.05rem;
}


/* =========================
   FORM CARD
========================= */

.promo-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg) !important;
}

.form-label {
    color: var(--text);
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.form-control,
.form-select {
    min-height: 56px;
    background-color: #fff;
    color: var(--text);
    border: 1px solid var(--border-dark);
    border-radius: 13px;
    box-shadow: none;
}

.form-control::placeholder {
    color: #a3a8b6;
}

.form-control:hover,
.form-select:hover {
    border-color: #bdc3d2;
}

.form-control:focus,
.form-select:focus {
    background-color: #fff;
    color: var(--text);
    border-color: var(--primary);
    box-shadow: 0 0 0 .22rem rgba(38, 56, 143, .11);
}


/* =========================
   CHECKBOX
========================= */

.form-check-input {
    border-color: #b8bdca;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(38, 56, 143, .1);
}

.form-check-label {
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.55;
}

.form-check-label a {
    color: var(--primary);
    font-weight: 650;
}


/* =========================
   UPLOAD
========================= */

.upload-box {
    cursor: pointer;
    background: var(--bg-soft);
    border: 1.5px dashed #c7cad5;
    border-radius: 15px;
    transition: .2s ease;
}

.upload-box:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.upload-plus {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: #171717;
    font-size: 1.8rem;
    font-weight: 400;
}

.upload-box b {
    color: var(--text);
}


/* =========================
   BUTTONS
========================= */

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #171717;
    border-radius: 13px;
    box-shadow: 0 10px 25px rgba(239, 163, 29, .22);
    transition: .2s ease;
}

.btn-accent:hover,
.btn-accent:focus,
.btn-accent:active {
    background: var(--accent-dark) !important;
    border-color: var(--accent-dark) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-outline-light {
    color: var(--primary);
    border-color: #cdd2df;
    background: #fff;
    border-radius: 13px;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}


/* =========================
   LEGAL
========================= */

.legal-section {
     background: var(--bg-soft);
}

.legal-card {
    background: var(--bg-soft);
    border: 1px solid var(--border) !important;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.legal-dl dt {
    color: var(--text);
    font-weight: 750;
    padding-top: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.legal-dl dd {
    color: var(--text-muted);
    line-height: 1.7;
    padding-top: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.legal-dl dt:last-of-type,
.legal-dl dd:last-of-type {
    border-bottom: 0;
}

.legal-card hr {
    border-color: var(--border) !important;
}


/* =========================
   FOOTER
========================= */

.site-footer {
    background: #f5f6fa;
    border-top: 1px solid var(--border);
}

.footer-logo {
    width: auto;
    max-width: 190px;
    max-height: 42px;
}

.site-footer .text-white,
.site-footer .btn-link {
    color: var(--primary) !important;
}

.site-footer .btn-link:hover {
    color: var(--primary-dark) !important;
}

.legal-footer-links .btn {
    color: var(--text-muted) !important;
    text-decoration: none;
}

.legal-footer-links .btn:hover {
    color: var(--primary) !important;
}


/* =========================
   MODALS
========================= */

.modal-backdrop.show {
    opacity: .32;
}

.dark-modal {
    background: #fff;
    color: var(--text);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
}

.dark-modal .modal-header {
    border-color: var(--border);
}

.dark-modal .modal-footer {
    border-color: var(--border);
}

.dark-modal .btn-close-white {
    filter: none;
}

.dark-modal .text-secondary {
    color: var(--text-muted) !important;
}

.legal-text {
    color: var(--text-muted);
    line-height: 1.75;
}

.legal-text h1,
.legal-text h2,
.legal-text h3,
.legal-text h4,
.legal-text h5,
.legal-text strong {
    color: var(--text);
}

.legal-text a {
    color: var(--primary);
}


/* =========================
   SUCCESS
========================= */

.success-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf8ef;
    color: #269950;
    font-size: 2rem;
    font-weight: 800;
}

.success-number {
    padding: 18px;
    background: var(--primary-soft);
    border: 1px solid rgba(38, 56, 143, .15);
    border-radius: 16px;
    color: var(--primary);
    font-weight: 800;
    font-size: clamp(1.35rem, 4vw, 2rem);
    letter-spacing: .08em;
}


/* =========================
   ALERTS
========================= */

.alert-danger {
    background: #fff1f1;
    color: #a33131;
    border-color: #f0cccc;
}


/* =========================
   SELECTION
========================= */

::selection {
    background: var(--accent);
    color: #111;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 991.98px) {

    .hero-section {
        min-height: auto;
        padding-top: 95px;
    }

    .hero-section .row {
        padding-top: 15px !important;
    }

    .hero-section h1 {
        font-size: clamp(2.5rem, 9vw, 4rem);
    }

    .hero-section img {
        max-height: 480px;
        object-fit: cover;
    }

    .registration-copy {
        position: static !important;
    }
}


@media (max-width: 767.98px) {

    .brand-logo {
        max-width: 165px;
        max-height: 38px;
    }

    .site-navbar {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .hero-section {
        padding-top: 80px;
    }

    .hero-section h1 {
        margin-bottom: 18px !important;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .step-chip {
        min-height: 60px;
    }

    .countdown-card {
        padding: 16px !important;
    }

    .count-item {
        height: 66px;
        padding: 5px;
    }

    .count-item strong {
        font-size: 1.25rem;
    }

    .count-item small {
        font-size: .58rem;
    }

    .promo-card .card-body {
        padding: 24px !important;
    }

    .legal-card .card-body {
        padding: 24px !important;
    }

    .legal-dl dt {
        padding-bottom: 5px;
        border-bottom: 0;
    }

    .legal-dl dd {
        padding-top: 0;
    }

    .footer-logo {
        max-width: 170px;
    }
}


@media (max-width: 430px) {

    .lang-switch .btn {
        min-width: 36px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .hero-section h1 {
        font-size: 2.35rem;
    }

    .count-item {
        border-radius: 10px;
    }

    .count-item strong {
        font-size: 1.05rem;
    }

    .count-item small {
        font-size: .52rem;
    }

    .promo-card,
    .legal-card,
    .dark-modal {
        border-radius: 18px;
    }
}
a.step-chip {
    position: relative;
    z-index: 0;
    overflow: hidden;
    border: 0;
    text-decoration: none;
}

a.step-chip::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: -50%;
    background: conic-gradient(
        transparent 0deg,
        transparent 300deg,
        #efa31d 330deg,
        #ffd76a 345deg,
        #efa31d 355deg,
        transparent 360deg
    );
    animation: stepBorderRotate 3s linear infinite;
}

a.step-chip::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 2px;
    border-radius: 14px;
    background: #fff;
}

@keyframes stepBorderRotate {
    to {
        transform: rotate(360deg);
    }
}