:root {
    --violet: #a855f7;
    --turquoise: #14f1d9;
    --bg: #070A1A;
    --text: #fff;
    --nav-height: 78px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: calc(var(--nav-height) + 40px);
    font-family: 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* BACKGROUND */
.blob, .blob2 {
    position: fixed;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    animation: move 12s infinite alternate;
}

.blob {
    background: var(--violet);
    top: 10%;
    left: 10%;
}

.blob2 {
    background: var(--turquoise);
    bottom: 10%;
    right: 10%;
}

@keyframes move {
    0% { transform: translate(0,0); }
    100% { transform: translate(140px,-140px); }
}

/* GLASS */
.glass {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(18px);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* NAV */
.nav {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 30px;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.nav h2 {
    margin: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (min-width: 781px) {
    .nav-links {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

.nav a {
    position: relative;
    padding: 11px 15px;
    border-radius: 999px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    opacity: 0.86;
    transition: color 0.3s ease, opacity 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--turquoise);
    opacity: 1;
    background: rgba(20,241,217,0.10);
    box-shadow: 0 0 24px rgba(20,241,217,0.16);
    transform: translateY(-2px) scale(1.06);
}

.nav a:focus-visible {
    outline: 2px solid rgba(20,241,217,0.65);
    outline-offset: 3px;
}

.btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 12px 18px;
    border-radius: 12px;
    color: white;
    cursor: pointer;
}

/* HAMBURGER */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    cursor: pointer;
    z-index: 100;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.hamburger:active {
    background: rgba(255,255,255,0.15);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    border-radius: 99px;
    background: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.nav.menu-open .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav.menu-open .hamburger span:nth-child(2) {
    opacity: 0;
}

.nav.menu-open .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* HERO */
.hero {
    width: min(1120px, calc(100% - 40px));
    margin: 20px auto 50px;
    padding: 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    align-items: center;
    gap: 42px;
    box-sizing: border-box;
}

.hero-text {
    max-width: 620px;
    text-align: center;
    justify-self: center;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 14px;
    border: 1px solid rgba(20,241,217,0.24);
    border-radius: 999px;
    color: var(--turquoise);
    background: rgba(20,241,217,0.08);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.95;
    background: linear-gradient(90deg, var(--violet), var(--turquoise));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    margin: 0 0 28px;
    opacity: 0.78;
}

.hero .buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-animation {
    position: relative;
    min-height: 360px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.14);
    background: radial-gradient(circle at 50% 35%, rgba(20,241,217,0.18), rgba(168,85,247,0.10) 45%, rgba(255,255,255,0.04));
    box-shadow: 0 28px 80px rgba(0,0,0,0.38), 0 0 45px rgba(168,85,247,0.24);
}

.hero-animation::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(20,241,217,0.18);
    filter: blur(36px);
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

#lottie {
    position: relative;
    z-index: 1;
    width: min(100%, 390px);
    min-height: 320px;
}

@keyframes pulseGlow {
    0% { transform: scale(0.85); opacity: 0.55; }
    100% { transform: scale(1.25); opacity: 0.95; }
}

/* BUTTONS */
.primary {
    background: linear-gradient(90deg, var(--violet), var(--turquoise));
    border: none;
    padding: 12px 18px;
    border-radius: 12px;
    color: white;
    cursor: pointer;
}

.secondary {
    background: transparent;
    border: 1px solid var(--turquoise);
    padding: 12px 18px;
    border-radius: 12px;
    color: white;
}

/* STATS */
.stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 50px;
}

.stat {
    padding: 20px;
    transition: 0.3s;
}

.stat:hover {
    transform: translateY(-10px);
}

/* PROJECTS */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px;
}

.card {
    padding: 15px;
    transition: 0.3s;
}

.card:hover {
    transform: scale(1.05);
}

.img {
    width: 100%;
    border-radius: 12px;
    animation: float 5s infinite ease-in-out;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* LICENSE */
.license {
    margin: 50px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input {
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.05);
    color: white;
}

/* =========================
   FEATURED SECTION
========================= */

.featured {
    padding: 60px;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    opacity: 0.7;
    margin-bottom: 40px;
}

/* GRID */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* CARD */
.app-card {
    overflow: hidden;
    border-radius: 18px;
    transition: transform 0.4s, box-shadow 0.4s;
    cursor: pointer;
    border: 1px solid rgba(139,92,246,0.2);
}

.app-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 40px rgba(139,92,246,0.3);
}

/* IMAGE */
.app-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: 0.5s;
}

.app-card:hover img {
    transform: scale(1.1);
}

/* CONTENT */
.app-content {
    padding: 15px;
}

.app-content h3 {
    margin: 10px 0;
}

.app-content p {
    font-size: 14px;
    opacity: 0.7;
}

/* TAGS */
.tags {
    margin: 10px 0;
}

.tags span {
    display: inline-block;
    padding: 5px 10px;
    margin: 3px;
    font-size: 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
}

/* BUTTONS INSIDE CARD */
.app-content .buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}


/* CONTACT */
.contact {
    width: min(1120px, calc(100% - 40px));
    margin: 70px auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 28px;
    align-items: stretch;
}

.contact-info,
.contact-form {
    padding: 34px;
    box-sizing: border-box;
}

.contact-info h2 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
}

.contact-info p {
    margin: 0 0 24px;
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
}

.contact-methods {
    display: grid;
    gap: 14px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.09);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.contact-method:hover {
    transform: translateX(8px);
    border-color: rgba(20,241,217,0.34);
    background: rgba(20,241,217,0.08);
}

.contact-method span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(168,85,247,0.28), rgba(20,241,217,0.18));
}

.contact-method strong,
.contact-method small {
    display: block;
}

.contact-method small {
    margin-top: 3px;
    color: rgba(255,255,255,0.65);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

input,
textarea {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.055);
    color: white;
    font: inherit;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: rgba(20,241,217,0.55);
    box-shadow: 0 0 0 4px rgba(20,241,217,0.10);
    background: rgba(255,255,255,0.08);
}

/* FOOTER */
.footer {
    width: min(1120px, calc(100% - 40px));
    margin: 30px auto 24px;
    padding: 28px 34px;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto auto;
    gap: 26px;
    align-items: center;
    box-sizing: border-box;
}

.footer h2,
.footer p {
    margin: 0;
}

.footer p {
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    padding: 9px 13px;
    border-radius: 999px;
    transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--turquoise);
    background: rgba(20,241,217,0.09);
    transform: translateY(-2px);
}

.copyright {
    text-align: right;
    white-space: nowrap;
}

/* SCROLL ANIMATIONS */
.scroll-animate {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.scroll-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

.featured-grid .scroll-animate:nth-child(2) {
    transition-delay: 0.12s;
}

.featured-grid .scroll-animate:nth-child(3) {
    transition-delay: 0.24s;
}

/* TABLETTE - Réduction de la luminosité pour améliorer la lisibilité */
@media (max-width: 1024px) {
    .hero-animation {
        filter: brightness(0.5);
        background: radial-gradient(circle at 50% 35%, rgba(20,241,217,0.08), rgba(168,85,247,0.05) 45%, rgba(255,255,255,0.02));
    }
    
    .hero-animation::before {
        opacity: 0.3;
    }
    
    #lottie {
        opacity: 0.7;
    }
}

/* MOBILE */
@media (max-width: 780px) {
    body {
        padding-top: calc(var(--nav-height) + 28px);
    }

    .nav {
        top: 14px;
        left: 14px;
        right: 14px;
        min-height: 68px;
        padding: 0 16px;
    }

    .hamburger {
        display: block;
        order: 3;
    }

    .nav .btn {
        display: none;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        z-index: 99;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        padding: 0 18px;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 18px;
        background: rgba(7,10,26,0.98);
        backdrop-filter: blur(18px);
        box-shadow: 0 24px 60px rgba(0,0,0,0.35);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px) scale(0.98);
        transform-origin: top;
        transition: max-height 0.45s ease, padding 0.3s ease, opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    }

    .nav.menu-open .nav-links {
        max-height: 460px;
        padding: 14px 18px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .nav-links a {
        margin: 0;
        padding: 15px 12px;
        border-radius: 12px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        font-size: 17px;
    }

    .nav-links a:last-child {
        border-bottom: 0;
    }

    .hero {
        width: calc(100% - 28px);
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
        padding: 34px 22px;
    }

    .hero-animation {
        min-height: 260px;
        /* Réduire la luminosité de l'animation pour améliorer la lisibilité du texte */
        filter: brightness(0.4);
        background: radial-gradient(circle at 50% 35%, rgba(20,241,217,0.06), rgba(168,85,247,0.04) 45%, rgba(255,255,255,0.015));
    }

    /* Réduire l'effet de glow en mode mobile */
    .hero-animation::before {
        opacity: 0.25;
        filter: blur(36px);
    }

    #lottie {
        min-height: 240px;
        opacity: 0.6;
    }

    .stats {
        flex-direction: column;
        align-items: center;
    }

    .featured {
        padding: 40px 20px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .license {
        margin: 30px 20px;
    }

    .contact {
        width: calc(100% - 28px);
        grid-template-columns: 1fr;
        margin: 46px auto;
    }

    .contact-info,
    .contact-form {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer {
        width: calc(100% - 28px);
        grid-template-columns: 1fr;
        text-align: center;
        padding: 26px 22px;
    }

    .copyright {
        text-align: center;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* =============================================
   AUTH MODAL — DevHub
   Append this block to the end of stylecss.css
   ============================================= */

/* OVERLAY */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(7,10,26,0.72);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* BOX */
.modal-box {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 32px 32px;
    box-sizing: border-box;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.34, 1.46, 0.64, 1), opacity 0.35s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(168,85,247,0.3) transparent;
}

.modal-overlay.open .modal-box {
    transform: translateY(0) scale(1);
}

/* CLOSE BUTTON */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.modal-close:hover {
    background: rgba(168,85,247,0.2);
    color: white;
    transform: scale(1.1);
}

/* TABS */
.auth-tabs {
    position: relative;
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 5px;
    margin-bottom: 28px;
}

.auth-tab {
    flex: 1;
    position: relative;
    z-index: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(255,255,255,0.55);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.auth-tab.active {
    color: white;
}

.tab-indicator {
    position: absolute;
    top: 5px;
    left: 5px;
    bottom: 5px;
    width: calc(50% - 5px);
    background: linear-gradient(90deg, var(--violet), var(--turquoise));
    border-radius: 10px;
    transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
    box-shadow: 0 4px 20px rgba(168,85,247,0.35);
}

.auth-tabs[data-active="register"] .tab-indicator {
    transform: translateX(calc(100% + 5px));
}

/* PANELS */
.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
    animation: panelIn 0.38s ease forwards;
}

@keyframes panelIn {
    from { opacity: 0; transform: translateX(10px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* HEADER */
.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-icon {
    font-size: 36px;
    margin-bottom: 10px;
    display: block;
}

.auth-header h2 {
    margin: 0 0 6px;
    font-size: 24px;
    background: linear-gradient(90deg, var(--violet), var(--turquoise));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.6;
}

/* FORM */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* FIELD */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.8;
    letter-spacing: 0.03em;
}

/* INPUT WRAP */
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap .input-icon {
    position: absolute;
    left: 14px;
    font-size: 15px;
    pointer-events: none;
    z-index: 1;
}

.input-wrap input {
    width: 100%;
    padding: 12px 44px 12px 42px;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.055);
    color: white;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.input-wrap input:focus {
    outline: none;
    border-color: rgba(20,241,217,0.55);
    box-shadow: 0 0 0 4px rgba(20,241,217,0.10);
    background: rgba(255,255,255,0.08);
}

.input-wrap input.error {
    border-color: rgba(239,68,68,0.7);
    box-shadow: 0 0 0 4px rgba(239,68,68,0.10);
}

/* TOGGLE PASSWORD */
.toggle-pw {
    position: absolute;
    right: 12px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 0;
    display: grid;
    place-items: center;
}

.toggle-pw svg {
    width: 16px;
    height: 16px;
    color: currentColor;
}

.toggle-pw:hover {
    opacity: 1;
}

/* FIELD ERROR */
.field-error {
    font-size: 12px;
    color: #f87171;
    min-height: 16px;
    padding-left: 2px;
}

/* STRENGTH BAR */
.strength-bar {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 2px;
}

.strength-bar span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 99px;
    transition: width 0.4s ease, background 0.4s ease;
}

.strength-label {
    font-size: 11px;
    opacity: 0.6;
}

/* FORGOT */
.forgot-row {
    text-align: right;
    margin-top: -6px;
}

.forgot-link {
    font-size: 13px;
    color: var(--turquoise);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.forgot-link:hover {
    opacity: 1;
}

/* CHECKBOX */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    opacity: 0.8;
    cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--violet);
    cursor: pointer;
    padding: 0;
}

.terms-link {
    color: var(--turquoise);
    text-decoration: none;
}

/* SUBMIT BUTTON */
.auth-submit {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168,85,247,0.4);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* AUTH MSG (success / error) */
.auth-msg {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    text-align: center;
    margin-top: -4px;
}

.auth-msg.success {
    background: rgba(20,241,217,0.1);
    border: 1px solid rgba(20,241,217,0.3);
    color: var(--turquoise);
}

.auth-msg.error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #f87171;
}

/* SWITCH HINT */
.switch-hint {
    text-align: center;
    font-size: 13px;
    opacity: 0.65;
    margin: 18px 0 0;
}

.switch-link {
    background: none;
    border: none;
    color: var(--turquoise);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    padding: 0;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.switch-link:hover {
    opacity: 1;
}

/* SUCCESS STATE */
.success-state {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 56px;
    margin-bottom: 16px;
    display: block;
    animation: bounceIn 0.5s cubic-bezier(0.34, 1.6, 0.64, 1);
}

@keyframes bounceIn {
    from { transform: scale(0.3); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.success-state h2 {
    font-size: 22px;
    background: linear-gradient(90deg, var(--violet), var(--turquoise));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 10px;
}

.success-state p {
    opacity: 0.7;
    font-size: 14px;
    margin: 0 0 24px;
}

/* MOBILE MODAL */
@media (max-width: 520px) {
    .modal-box {
        padding: 28px 20px 24px;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .auth-header h2 {
        font-size: 20px;
    }
}

/* CONTACT FORM MESSAGE */
.form-message {
    display: none;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    margin-top: 8px;
    animation: fadeIn 0.3s ease;
}

.form-message.success {
    background: rgba(20, 241, 217, 0.12);
    border: 1px solid rgba(20, 241, 217, 0.35);
    color: var(--turquoise);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button disabled state */
.contact-form .primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
