/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: var(--font-md);
    letter-spacing: -0.01em;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: var(--brand);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(231, 90, 90, 0.3);
}
.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(231, 90, 90, 0.4);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--brand);
}
.btn-nav {
    background: var(--brand);
    color: var(--white);
    padding: 0.625rem 1.5rem;
    font-size: var(--font-base);
    box-shadow: 0 2px 8px rgba(231, 90, 90, 0.25);
}
.btn-nav:hover {
    background: var(--brand-dark);
    box-shadow: 0 4px 12px rgba(231, 90, 90, 0.35);
}
.btn-full {
    width: 100%;
}
.btn-outline-dark {
    background: transparent;
    color: var(--brand);
    border: 2px solid var(--brand);
}
.btn-outline-dark:hover { background: var(--brand); color: var(--white); transform: translateY(-2px); }

/* ===== SECTION COMMON ===== */
section {
    padding: var(--spacing-3xl) 0;
}
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.section-tag {
    display: inline-block;
    background: var(--brand-pale);
    color: var(--brand);
    padding: 0.375rem 1.125rem;
    border-radius: 50px;
    font-size: var(--font-sm);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.section-tag.light {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}
.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--text);
    margin-bottom: var(--spacing-sm);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.section-header p {
    color: var(--text-muted);
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    line-height: 1.7;
    letter-spacing: -0.01em;
}

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: 1.2rem; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 0.9rem 1rem;
    border: 2px solid var(--border); border-radius: 10px;
    font-size: 0.95rem; font-family: inherit; background: var(--white);
    transition: var(--transition); color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--brand); }

/* ===== FAQ ===== */
.faq { padding: var(--spacing-3xl) 0; background: var(--bg); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.faq-item {
    background: var(--white); border-radius: var(--radius);
    margin-bottom: 0.8rem; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.faq-question {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 1.5rem; background: none; border: none; cursor: pointer;
    font-size: 0.95rem; font-weight: 600; color: var(--text); text-align: left;
    gap: 1rem; transition: var(--transition);
}
.faq-question:hover { color: var(--brand); }
.faq-question[aria-expanded="true"] { color: var(--brand); }
.faq-icon { flex-shrink: 0; transition: transform 0.3s ease; color: var(--brand); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-answer.open { max-height: 200px; }
.faq-answer p { padding: 0 1.5rem 1.2rem; color: var(--text-muted); font-size: 0.9rem; line-height: 1.8; }

/* ===== PAGE CONTENT: PRIVACY & TERMS ===== */
.privacy-content,
.terms-content {
    margin-top: 80px;
    padding: 2rem 1.5rem 4rem;
    background: var(--white);
    min-height: calc(100vh - 80px);
}
.privacy-container,
.terms-container {
    max-width: 860px;
    margin: 0 auto;
}
.page-title {
    margin-bottom: 1.5rem;
    text-align: center;
}
.page-title h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.last-updated {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.last-updated strong { color: var(--text); }
.intro-text {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Sections */
.privacy-section,
.terms-section {
    margin-bottom: 2rem;
    scroll-margin-top: 100px;
    animation: fadeInUp 0.5s ease;
}
.privacy-section h3,
.terms-section h3 {
    font-size: clamp(1.0625rem, 3vw, 1.25rem);
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.section-number { color: var(--brand); font-weight: 700; flex-shrink: 0; }
.privacy-section h4,
.terms-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 1rem 0 0.5rem;
}
.privacy-section p,
.terms-section p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.75rem;
    word-wrap: break-word;
}
.privacy-section ul,
.terms-section ul,
.terms-section ol {
    margin: 0.75rem 0 0.75rem 1.25rem;
    padding: 0;
}
.privacy-section ul li,
.terms-section ul li,
.terms-section ol li {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}
.privacy-section ul li::marker,
.terms-section ul li::marker { color: var(--brand); }
.terms-section ol li::marker { color: var(--brand); font-weight: 600; }
.privacy-section a,
.terms-section a { color: var(--brand); font-weight: 500; }
.privacy-section a:hover,
.terms-section a:hover { text-decoration: underline; }

/* Highlight section */
.highlight-section {
    background: linear-gradient(135deg, rgba(231,90,90,0.05), rgba(255,138,138,0.05));
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--brand);
}

/* Important box */
.important-box {
    background: var(--info);
    color: var(--white);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}
.important-box p { color: var(--white); margin: 0; font-size: 0.875rem; line-height: 1.6; }
.important-box strong { font-weight: 600; }

/* Contact box */
.contact-box {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
}
.contact-box h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 1.25rem;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--white);
    border-radius: var(--radius-sm);
}
.contact-item:last-child { margin-bottom: 0; }
.contact-item i {
    width: 40px; height: 40px; min-width: 40px;
    background: var(--brand); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 1rem; flex-shrink: 0;
}
.contact-item > div { flex: 1; min-width: 0; }
.contact-item strong {
    display: block; font-size: 0.8125rem; color: var(--text-muted);
    margin-bottom: 0.25rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.contact-item p { margin: 0; font-size: 0.9375rem; color: var(--text); font-weight: 500; }
.contact-item a { color: var(--brand); font-weight: 500; word-break: break-all; }
.contact-item a:hover { text-decoration: underline; }

/* Final agreement */
.final-agreement {
    background: var(--brand);
    color: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.final-agreement i { font-size: 1.5rem; flex-shrink: 0; }
.final-agreement p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--white); }

/* ===== PAGE CONTENT: DELETE ACCOUNT ===== */
.delete-content {
    margin-top: 80px;
    padding: 2rem 1rem 3rem;
    background: var(--bg);
    min-height: calc(100vh - 80px);
}
.delete-container { max-width: 600px; margin: 0 auto; }

.page-header { text-align: center; margin-bottom: 2rem; }
.icon-warning {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--error-light), var(--error-dark));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem; animation: pulse 2s infinite;
}
.icon-warning i { font-size: 2.25rem; color: var(--white); }
.page-header h2 { font-size: 1.75rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.subtitle { font-size: 1rem; color: var(--text-muted); }

/* Progress */
.progress-indicator {
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 2rem; padding: 0 1.25rem;
}
.progress-step { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.step-circle {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--border); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 1rem; transition: var(--transition);
}
.progress-step.active .step-circle { background: var(--brand); color: var(--white); box-shadow: 0 4px 12px rgba(231,90,90,0.4); }
.progress-step.completed .step-circle { background: var(--success); color: var(--white); }
.progress-step span { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.progress-step.active span { color: var(--brand); font-weight: 600; }
.progress-line { width: 60px; height: 2px; background: var(--border); margin: 0 0.5rem 1.25rem; }

/* Step containers */
.step-container { display: none; animation: fadeInUp 0.4s ease; }
.step-container.active { display: block; }
.step-card {
    background: var(--white); border-radius: var(--radius);
    padding: 2rem; box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.step-card h3 { font-size: 1.375rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.step-description { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.step-description strong { color: var(--brand); }

/* Phone input */
.phone-input-wrapper {
    display: flex; align-items: center;
    border: 2px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
    transition: var(--transition);
}
.phone-input-wrapper:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(231,90,90,0.1); }
.country-code { padding: 0.875rem 1rem; background: var(--bg); font-weight: 600; color: var(--text); border-right: 2px solid var(--border); }
.phone-input-wrapper input { flex: 1; border: none; padding: 0.875rem 1rem; font-size: 1rem; outline: none; }

/* Captcha */
.captcha-container { display: flex; flex-direction: column; gap: 0.75rem; }
.captcha-question {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg); padding: 1rem 1.25rem;
    border-radius: var(--radius-sm); border: 2px solid var(--border);
}
.captcha-question span { font-size: 1.25rem; font-weight: 700; color: var(--text); letter-spacing: 2px; font-family: 'Courier New', monospace; }
.captcha-refresh {
    background: var(--brand); border: none; color: var(--white);
    width: 36px; height: 36px; border-radius: 8px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.captcha-refresh:hover { background: var(--brand-dark); transform: rotate(180deg); }
.captcha-container input {
    width: 100%; border: 2px solid var(--border); border-radius: var(--radius-sm);
    padding: 0.875rem 1rem; font-size: 1rem; font-weight: 600; transition: var(--transition);
}
.captcha-container input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(231,90,90,0.1); outline: none; }

/* OTP */
.otp-input-group { display: flex; gap: 0.75rem; justify-content: center; }
.otp-input {
    width: 50px; height: 56px; border: 2px solid var(--border);
    border-radius: var(--radius-sm); text-align: center;
    font-size: 1.5rem; font-weight: 600; color: var(--text); transition: var(--transition);
}
.otp-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(231,90,90,0.1); outline: none; }

/* Error */
.error-message {
    display: block !important; color: var(--error-light) !important;
    font-size: 0.875rem !important; font-weight: 600 !important;
    margin-top: 0.5rem !important; min-height: 20px !important;
    padding: 0.5rem 0.75rem !important; line-height: 1.4 !important;
    background: #ffe6e6 !important; border-left: 3px solid var(--error-light) !important;
    border-radius: 4px !important;
}

/* Resend */
.resend-section { text-align: center; margin: 1rem 0; }
.resend-section p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.resend-section #timer { font-weight: 600; color: var(--brand); }
.btn-link {
    background: none; border: none; color: var(--brand);
    font-size: 0.875rem; font-weight: 600; cursor: pointer; text-decoration: underline;
}
.btn-link:disabled { color: var(--border); cursor: not-allowed; }

/* Delete page buttons */
.delete-content .btn {
    width: 100%; padding: 1rem 1.5rem; border: none; border-radius: var(--radius-sm);
    font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 0.75rem;
}
.delete-content .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.delete-content .btn-primary { background: var(--brand); color: var(--white); }
.delete-content .btn-primary:hover:not(:disabled) { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(231,90,90,0.4); }
.delete-content .btn-secondary { background: var(--bg); color: var(--text); }
.delete-content .btn-secondary:hover:not(:disabled) { background: var(--border); }
.delete-content .btn-danger { background: var(--error-light); color: var(--white); }
.delete-content .btn-danger:hover:not(:disabled) { background: var(--error-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(255,107,107,0.4); }
.btn-loader { display: none; }
.btn.loading .btn-text { display: none; }
.btn.loading .btn-loader { display: inline-block; }

/* Warning box */
.warning-box {
    background: rgba(255,107,107,0.08); border-left: 4px solid var(--error-light);
    padding: 1rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem;
    display: flex; gap: 0.75rem;
}
.warning-box i { font-size: 1.5rem; color: var(--error-light); flex-shrink: 0; }
.warning-box strong { display: block; color: var(--error-light); margin-bottom: 0.25rem; }
.warning-box p { color: var(--text-muted); font-size: 0.875rem; margin: 0; }

/* Deletion info */
.deletion-info, .retention-info { margin-bottom: 1.5rem; }
.deletion-info h4, .retention-info h4 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.75rem; }
.deletion-info ul, .retention-info ul { list-style: none; padding: 0; margin: 0; }
.deletion-info ul li, .retention-info ul li {
    padding: 0.625rem 0; border-bottom: 1px solid var(--border);
    display: flex; align-items: flex-start; gap: 0.75rem;
    font-size: 0.875rem; color: var(--text-muted);
}
.deletion-info ul li:last-child, .retention-info ul li:last-child { border-bottom: none; }
.deletion-info ul li i { color: var(--error-light); margin-top: 2px; }
.retention-info ul li i { color: var(--info); margin-top: 2px; }

/* Checkbox */
.checkbox-group { margin-bottom: 1.5rem; }
.checkbox-label { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; position: relative; }
.checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; cursor: pointer; }
.checkmark {
    width: 24px; height: 24px; border: 2px solid var(--border);
    border-radius: 6px; flex-shrink: 0; transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.checkbox-label input[type="checkbox"]:checked ~ .checkmark { background: var(--brand); border-color: var(--brand); }
.checkbox-label input[type="checkbox"]:checked ~ .checkmark::after {
    content: '\f00c'; font-family: 'Font Awesome 5 Free'; font-weight: 900;
    color: var(--white); font-size: 0.75rem;
}
.checkbox-text { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }

/* Support section */
.support-section {
    text-align: center; margin-top: 2rem; padding: 1.5rem;
    background: var(--white); border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.support-section p { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 1rem; }
.support-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--brand); text-decoration: none; font-weight: 600;
    font-size: 0.9375rem; margin: 0 0.75rem; transition: var(--transition);
}
.support-link:hover { color: var(--brand-dark); transform: translateY(-2px); }

/* Delete page modal */
.modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.6); z-index: 2000;
    align-items: center; justify-content: center; padding: 1.25rem;
}
.modal.active { display: flex; }
.modal-content {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 2.5rem; max-width: 500px; width: 100%;
    text-align: center; animation: fadeInUp 0.3s ease;
}
.modal-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--error-light), var(--error-dark));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
}
.modal-icon.success { background: linear-gradient(135deg, var(--success), var(--success-dark)); }
.modal-icon i { font-size: 2.25rem; color: var(--white); }
.modal-content h3 { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 0.75rem; }
.modal-content p { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 0.75rem; line-height: 1.6; }
.small-text { font-size: 0.8125rem; color: var(--text-muted); }
.modal-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.modal-actions .btn { margin-bottom: 0; }

/* Delete page toast */
.delete-content ~ .toast,
body:has(.delete-content) .toast {
    top: 80px; bottom: auto;
    transform: translateX(-50%) translateY(-20px);
    min-width: 280px; max-width: 450px;
    display: flex; align-items: center; gap: 0.75rem;
    border-radius: var(--radius-sm); padding: 1rem 1.5rem;
}
.delete-content ~ .toast.show,
body:has(.delete-content) .toast.show {
    transform: translateX(-50%) translateY(0);
}
.toast i { font-size: 1.25rem; flex-shrink: 0; }
.toast-message { flex: 1; font-size: 0.875rem; font-weight: 500; line-height: 1.5; }

/* SweetAlert custom */
.swal-custom-popup { border-radius: 20px !important; padding: 1.875rem !important; }
.swal-custom-title { font-size: 1.5rem !important; font-weight: 700 !important; color: var(--text) !important; }
.swal-custom-confirm, .swal-custom-cancel { border-radius: var(--radius-sm) !important; padding: 0.75rem 2rem !important; font-size: 1rem !important; font-weight: 600 !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .section-header h2 { font-size: 1.9rem; }
    .faq-grid { grid-template-columns: 1fr; }
    .privacy-content, .terms-content { padding: 1.5rem 1rem 3rem; }
    .delete-content { padding: 1.5rem 0.75rem 2rem; }
    .step-card { padding: 1.5rem; }
    .otp-input { width: 44px; height: 52px; font-size: 1.25rem; }
    .modal-content { padding: 2rem 1.5rem; }
    .modal-actions { flex-direction: column; }
}
@media (max-width: 480px) {
    .otp-input-group { gap: 0.5rem; }
    .otp-input { width: 40px; height: 48px; font-size: 1.125rem; }
}
