/* ============================================================
 *  Data Deletion Page — Page-specific styles
 *  Auto-loaded by _head.php via Session::currentScript()
 * ============================================================ */

/* Floating Orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    pointer-events: none;
    z-index: -1;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: 20%;
    left: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: var(--secondary);
    bottom: 10%;
    right: -5%;
    animation-delay: -7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--danger);
    top: 60%;
    left: 40%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 30px) scale(1.02); }
}

/* Page Hero */
.page-hero {
    padding: 8rem 2rem 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--danger-dim);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fca5a5;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards 0.1s;
}

.page-hero h1 {
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards 0.2s;
}

.page-hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards 0.35s;
}

/* Content Layout */
.content-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Policy Section (Left Column) */
.deletion-policy-section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.7s forwards 0.4s;
}

.deletion-policy-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.deletion-policy-card h2 {
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: none;
    margin-top: 0;
    padding-bottom: 0;
}

.deletion-policy-card p,
.deletion-policy-card li {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.98rem;
    line-height: 1.75;
}

.icon-badge {
    width: 38px;
    height: 38px;
    background: var(--primary-dim);
    color: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-badge.danger {
    background: var(--danger-dim);
    color: #fca5a5;
}

.icon-badge.warning {
    background: var(--warning-dim);
    color: #fcd34d;
}

.icon-badge.success {
    background: var(--success-dim);
    color: #86efac;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 1.75rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.data-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.data-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.check-icon {
    color: var(--primary-light);
    flex-shrink: 0;
}

.info-note {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-dim);
    font-style: italic;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.divider {
    height: 1px;
    background: var(--glass-border);
    margin: 2rem 0;
}

/* Steps */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.step-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary-dim);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-light);
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    display: block;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 0.15rem;
}

.step-content p {
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Form Section (Right Column) */
.form-section {
    position: sticky;
    top: 100px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.7s forwards 0.55s;
}

.form-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border-strong);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--danger), var(--primary), var(--secondary));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--danger-dim), rgba(239, 68, 68, 0.08));
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #fca5a5;
    animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
    50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.06); }
}

.form-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    border-bottom: none;
    margin-top: 0;
    padding-bottom: 0;
}

.form-header p {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.form-label .required {
    color: var(--danger);
    font-size: 0.75rem;
}

.form-label .optional-tag {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    margin-left: 0.25rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-dim);
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.06);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.form-input.error,
.form-textarea.error {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.06);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.field-error {
    display: none;
    font-size: 0.8rem;
    color: #fca5a5;
    margin-top: 0.35rem;
    align-items: center;
    gap: 0.3rem;
}

.field-error.visible {
    display: flex;
}

.char-count {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-align: right;
    margin-top: 0.25rem;
    transition: var(--transition-fast);
}

.char-count.warning {
    color: var(--warning);
}

.char-count.danger {
    color: var(--danger);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

.submit-btn:hover:not(:disabled)::before {
    opacity: 1;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

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

.submit-btn .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.submit-btn.loading .spinner {
    display: block;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-icon {
    display: none;
}

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

.form-disclaimer {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: center;
    line-height: 1.5;
}

.form-disclaimer a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

.form-disclaimer a:hover {
    text-decoration: underline;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 90px;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    max-width: 400px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
}

.toast.error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
}

.toast.warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
}

.toast-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.toast-message {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 2px;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.toast-close:hover {
    color: var(--text);
}

/* Success State */
.success-state {
    display: none;
    text-align: center;
    padding: 2rem 1rem;
}

.success-state.visible {
    display: block;
    animation: fadeInUp 0.5s forwards;
}

.success-checkmark {
    width: 72px;
    height: 72px;
    background: var(--success-dim);
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--success);
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

.success-state h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.success-state p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 340px;
    margin: 0 auto 1.5rem;
}

.success-state .reset-btn {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.6rem 1.5rem;
    border-radius: 99px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.success-state .reset-btn:hover {
    background: var(--surface-hover);
    color: var(--text);
}

/* Responsive */
@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-section {
        position: static;
    }
}

/* ============================================================
 *  OTP VERIFICATION STYLES
 * ============================================================ */

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.step-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
}

.step-dot.completed {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
    color: #22c55e;
}

.step-line {
    flex: 1;
    height: 2px;
    max-width: 80px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.step-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #22c55e, var(--primary));
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-line.active::after {
    width: 100%;
}

/* Form Step Transitions */
.form-step {
    display: none;
    animation: stepFadeIn 0.4s ease-out;
}

.form-step.active {
    display: block;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* OTP Header Icon */
.form-header-icon.otp-icon {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.25);
    color: var(--primary);
}

/* OTP Input Group */
.otp-input-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 1.5rem 0;
    transition: transform 0.1s ease;
}

.otp-digit {
    width: 52px;
    height: 62px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    font-family: 'Inter', monospace;
    transition: all 0.2s ease;
    outline: none;
    caret-color: var(--primary);
}

.otp-digit:focus {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.06);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12), 0 0 16px rgba(99, 102, 241, 0.08);
}

.otp-digit:not(:placeholder-shown) {
    border-color: rgba(99, 102, 241, 0.3);
}

/* Shake animation on wrong OTP */
@keyframes otpShake {
    0%, 100% { transform: translateX(0); }
    10%, 50%, 90% { transform: translateX(-6px); }
    30%, 70% { transform: translateX(6px); }
}

.otp-input-group.shake {
    animation: otpShake 0.5s ease-in-out;
}

.otp-input-group.shake .otp-digit {
    border-color: var(--danger) !important;
    background: rgba(239, 68, 68, 0.06);
}

/* OTP Error */
.otp-error {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--danger);
    justify-content: center;
}

.otp-error.visible {
    display: flex;
}

/* Countdown Timer */
.otp-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.12);
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.otp-timer strong {
    color: var(--primary);
    font-variant-numeric: tabular-nums;
    font-family: 'Inter', monospace;
}

.otp-timer.expired {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.15);
}

.otp-timer.expired strong {
    color: var(--danger);
}

.otp-timer svg {
    color: var(--primary);
    flex-shrink: 0;
}

.otp-timer.expired svg {
    color: var(--danger);
}

/* Verify Button */
.verify-btn {
    background: linear-gradient(135deg, var(--primary), #7c3aed) !important;
}

.verify-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #7c3aed, var(--primary)) !important;
}

.verify-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* OTP Action Buttons */
.otp-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.otp-action-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-family: inherit;
}

.otp-action-btn:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.08);
    color: #a78bfa;
}

.otp-action-btn:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

.otp-action-sep {
    color: rgba(255, 255, 255, 0.12);
    font-size: 0.7rem;
}

/* Verified Badge in Success State */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22c55e;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .page-hero {
        padding-top: 6rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .deletion-policy-card {
        padding: 1.75rem;
    }

    .form-card {
        padding: 1.75rem;
    }

    .content-grid {
        padding: 1rem 1rem 3rem;
    }

    .toast-container {
        right: 0.75rem;
        left: 0.75rem;
    }

    .toast {
        max-width: 100%;
    }

    .otp-digit {
        width: 46px;
        height: 56px;
        font-size: 1.3rem;
    }

    .otp-input-group {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 1.75rem;
    }

    .deletion-policy-card {
        padding: 1.25rem;
        border-radius: var(--radius-md);
    }

    .form-card {
        padding: 1.25rem;
        border-radius: var(--radius-md);
    }

    .otp-digit {
        width: 40px;
        height: 50px;
        font-size: 1.15rem;
        border-radius: var(--radius-sm);
    }

    .otp-input-group {
        gap: 6px;
    }

    .step-indicator {
        padding: 0 1rem;
    }
}
