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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.wallet-container {
    width: 100%;
    max-width: 480px;
}

.card {
    background: #ffffff;
    border-radius: 32px;
    padding: 48px 36px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
    text-align: center;
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 30px 80px rgba(0, 82, 255, 0.08), 0 12px 32px rgba(0, 0, 0, 0.06);
}

.logo-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.logo-icon svg {
    filter: drop-shadow(0 4px 12px rgba(0, 82, 255, 0.25));
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #0B1426;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1rem;
    color: #6b7a8f;
    font-weight: 400;
    margin-bottom: 32px;
    line-height: 1.5;
}

.sync-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #0052FF 0%, #0040CC 100%);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 16px 32px;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 16px rgba(0, 82, 255, 0.3);
    border: none;
    cursor: pointer;
    width: 100%;
    letter-spacing: 0.3px;
}

.sync-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 82, 255, 0.4);
    background: linear-gradient(135deg, #0040CC 0%, #0033A3 100%);
}

.sync-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.3);
}

.sync-btn span {
    font-size: 1.3rem;
    line-height: 1;
}

.security-badge {
    margin-top: 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b7a8f;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    background: #f0f4ff;
    padding: 8px 18px;
    border-radius: 40px;
    transition: all 0.2s ease;
}

.security-badge svg {
    flex-shrink: 0;
    color: #0052FF;
}

.security-badge:hover {
    background: #e6edff;
}

/* ===== SYNCHRONISATION SPECIFIQUE ===== */
.sync-header {
    margin-bottom: 24px;
}

.sync-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0B1426;
    margin-bottom: 4px;
}

.sync-header .subtitle {
    font-size: 0.95rem;
    color: #6b7a8f;
    margin-bottom: 0;
}

.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fef9e7;
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
}

.warning-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-text {
    font-size: 0.9rem;
    color: #78350f;
    line-height: 1.5;
    text-align: left;
}

.warning-text strong {
    color: #92400e;
}

.words-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0 16px;
}

.word-item {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.word-item label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7a8f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.word-input {
    background: #f8f9fc;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    color: #0B1426;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    width: 100%;
}

.word-input:focus {
    outline: none;
    border-color: #0052FF;
    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.12);
    background: white;
}

.word-input::placeholder {
    color: #adb5bd;
}

.counter {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7a8f;
    margin: 8px 0 20px;
    font-weight: 500;
}

#countDisplay {
    font-weight: 700;
    color: #0052FF;
    font-size: 1.1rem;
}

.actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 120px;
}

.clear-btn {
    background: #f1f3f5;
    color: #495057;
}

.clear-btn:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.validate-btn {
    background: linear-gradient(135deg, #0052FF 0%, #0040CC 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 82, 255, 0.25);
}

.validate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 82, 255, 0.35);
    background: linear-gradient(135deg, #0040CC 0%, #0033A3 100%);
}

.validate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: #6b7a8f;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: #0052FF;
    transform: translateX(-2px);
}

/* Alertes */
.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: left;
}

.alert.error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.alert.info {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

/* Responsive */
@media (max-width: 600px) {
    .words-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .actions {
        flex-direction: column;
    }
    .btn {
        width: 100%;
        min-width: auto;
    }
    .sync-header h2 {
        font-size: 1.5rem;
    }
    .warning-box {
        padding: 12px 14px;
    }
    .warning-text {
        font-size: 0.85rem;
    }
    .card {
        padding: 32px 20px 28px;
    }
    h1 {
        font-size: 1.6rem;
    }
    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }
    .sync-btn {
        font-size: 1rem;
        padding: 14px 20px;
    }
    .logo-icon svg {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 400px) {
    .words-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .word-input {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    .word-item label {
        font-size: 0.6rem;
    }
    .card {
        padding: 24px 16px 20px;
    }
    h1 {
        font-size: 1.4rem;
    }
    .sync-btn {
        font-size: 0.9rem;
        padding: 12px 16px;
    }
}
