/* ============================================
   MindCards — Account Deletion Page
   Colores oficiales del design system:
   Primary: #0052FF | Secondary: #7C3AED
   Error: #E11D48 | Background: #F4F4F5
   Surface: #FFFFFF | OnSurface: #09090B
   ============================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0052FF 0%, #7C3AED 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #09090B;
}

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

/* ── Card ─────────────────────────────────── */

.card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.hidden {
    display: none !important;
}

/* ── Logo ─────────────────────────────────── */

.logo {
    margin-bottom: 20px;
}

/* ── Typography ───────────────────────────── */

h1 {
    font-size: 28px;
    font-weight: 700;
    color: #09090B;
    margin-bottom: 8px;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    color: #09090B;
    margin-bottom: 4px;
}

h3 {
    font-size: 16px;
    font-weight: 600;
    color: #09090B;
    margin-bottom: 12px;
}

p {
    color: #3F3F46;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ── Landing info blocks ──────────────────── */

.landing-intro {
    margin-bottom: 24px;
}

.landing-intro p {
    font-size: 15px;
}

.developer-badge {
    display: inline-block;
    background: #F4F4F5;
    color: #3F3F46;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

/* ── Steps ────────────────────────────────── */

.steps-section {
    text-align: left;
    margin-bottom: 24px;
}

.steps-section h3 {
    text-align: center;
    margin-bottom: 16px;
}

.step-list {
    list-style: none;
    padding: 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #E4E4E7;
}

.step-item:last-child {
    border-bottom: none;
}

.step-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: #0052FF;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.step-text {
    font-size: 14px;
    color: #3F3F46;
    line-height: 1.5;
    padding-top: 3px;
}

/* ── Data info ────────────────────────────── */

.data-section {
    background: #F4F4F5;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}

.data-section h3 {
    text-align: left;
    font-size: 14px;
    margin-bottom: 8px;
}

.data-list {
    list-style: none;
    padding: 0;
}

.data-list li {
    font-size: 13px;
    color: #3F3F46;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-list li::before {
    content: "•";
    color: #0052FF;
    font-weight: 700;
    font-size: 18px;
}

.retention-note {
    font-size: 12px;
    color: #6B6B73;
    margin-top: 8px;
    font-style: italic;
}

/* ── Login notice ─────────────────────────── */

.login-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #E0EAFF;
    border-left: 3px solid #0052FF;
    border-radius: 0 8px 8px 0;
    padding: 12px 14px;
    margin-bottom: 24px;
    text-align: left;
}

.login-notice p {
    font-size: 13px;
    color: #001B66;
    margin-bottom: 0;
    line-height: 1.5;
}

.login-notice-icon {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
}

/* ── Google button ────────────────────────── */

.google-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #FFFFFF;
    border: 1.5px solid #D4D4D8;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.google-btn:hover {
    background: #F4F4F5;
    border-color: #0052FF;
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.15);
    transform: translateY(-1px);
}

.google-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 82, 255, 0.08);
}

.google-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.google-icon {
    flex-shrink: 0;
}

/* ── Error ────────────────────────────────── */

.error {
    color: #E11D48;
    font-size: 13px;
    margin-top: 12px;
    margin-bottom: 0;
    padding: 10px;
    background: #FFE4E6;
    border-radius: 8px;
}

/* ── User screen (post-login) ─────────────── */

.user-header {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    margin-bottom: 24px;
}

.user-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #D4D4D8;
}

/* ── Delete section ───────────────────────── */

.delete-section {
    background: #FFE4E6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.delete-section h3 {
    color: #881337;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.delete-section p {
    color: #881337;
    font-size: 13px;
    margin-bottom: 0;
    line-height: 1.5;
}

.delete-btn {
    background: #E11D48;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.delete-btn:hover {
    background: #BE123C;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.delete-btn:active {
    transform: translateY(0);
}

.delete-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Confirmation modal ───────────────────── */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal-box {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 32px 28px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    animation: scaleIn 0.2s ease;
}

.modal-box h2 {
    margin-bottom: 12px;
}

.modal-box p {
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-cancel-btn {
    flex: 1;
    background: #F4F4F5;
    color: #3F3F46;
    border: 1.5px solid #D4D4D8;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.modal-cancel-btn:hover {
    background: #E4E4E7;
}

.modal-confirm-btn {
    flex: 1;
    background: #E11D48;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.modal-confirm-btn:hover {
    background: #BE123C;
}

.modal-confirm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ── Success screen ───────────────────────── */

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

.success-screen h2 {
    color: #003B1A;
    margin-bottom: 12px;
}

.success-screen p {
    color: #003B1A;
}

/* ── Loading ──────────────────────────────── */

#loading-screen {
    text-align: center;
    color: #FFFFFF;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

.spinner-inline {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

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

/* ── Back button ──────────────────────────── */

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #3F3F46;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 16px;
    transition: color 0.15s ease;
}

.back-btn:hover {
    color: #0052FF;
}
