* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000000;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.splash-screen {
    position: fixed;
    inset: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-logo {
    width: 55vw;
    max-width: 320px;
    height: auto;
}

.splash-text {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.splash-from {
    color: #4d4d4d;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
}

.splash-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #888888, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-top: 4px;
}

/* ===== Welcome Screen ===== */
.welcome-screen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.welcome-screen.visible {
    opacity: 1;
    visibility: visible;
}

#particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.welcome-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.welcome-logo {
    width: 38vw;
    max-width: 190px;
    height: auto;
    margin-bottom: 20px;
}

.welcome-brand {
    font-size: 1.7rem;
    font-weight: 700;
    background: linear-gradient(90deg, #888888, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.welcome-subtitle {
    margin-top: 6px;
    color: #8a8a8a;
    font-size: 0.9rem;
    font-weight: 500;
}

.bottom-section {
    position: relative;
    z-index: 1;
    margin-top: auto;
    margin-bottom: 6vh;
    width: 100%;
    padding: 0 6%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* Consent card — liquid glass */
.consent-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    transition: background 0.25s ease;
}

.consent-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.consent-circle {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #8e8e93;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.consent-arrow {
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.consent-card.active .consent-circle {
    background: #7ee08a;
    border-color: #7ee08a;
}

.consent-card.active .consent-arrow {
    opacity: 1;
    transform: scale(1);
}

.consent-text {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 500;
}

/* Username card — pill */
.username-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 999px;
    background: #161616;
    position: relative;
    overflow: hidden;
    cursor: text;
    transition: filter 0.25s ease, background 0.2s ease;
}

.username-card:hover {
    background: #1c1c1c;
}

.username-card.disabled {
    filter: brightness(0.45);
    pointer-events: none;
}

.username-label {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.username-label.hidden {
    opacity: 0;
}

.username-input {
    position: absolute;
    left: 48px;
    right: 20px;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
}

/* Continue button */
.continue-btn {
    width: 100%;
    padding: 15px 20px;
    border-radius: 999px;
    background: #ffffff;
    color: #000000;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: filter 0.25s ease, background 0.2s ease;
}

.continue-btn:hover {
    background: #e2e2e2;
}

.continue-btn.disabled {
    filter: brightness(0.45);
    pointer-events: none;
}

/* Apple-like press & drag stretch */
.pressed-stretch {
    transition: transform 0.08s ease;
}

/* Encryption row */
.encryption-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.encryption-row span {
    color: #6b6b6b;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Petite lumière qui suit le doigt pendant l'étirement */
.stretch-glow {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 70%);
    pointer-events: none;
    opacity: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
}

.stretch-glow.visible {
    opacity: 1;
}

.continue-btn .stretch-glow {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.12), transparent 70%);
}