/* SCIZAR Web — Account Deletion Page Styles */
:root {
  --bg-primary: #07111F;
  --bg-secondary: #0D1B2A;
  --bg-card: #1B2838;
  --bg-input: #0D1B2A;
  --text-primary: #E8EDF2;
  --text-secondary: #8899AA;
  --text-muted: #5C6B7A;
  --accent: #4A90D9;
  --accent-hover: #5BA0E9;
  --danger: #D94A4A;
  --danger-hover: #E95A5A;
  --success: #4AD97A;
  --border: #1E3045;
  --border-focus: #4A90D9;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans Arabic', 'Noto Sans', sans-serif;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

[dir="rtl"] body { direction: rtl; text-align: right; }
[dir="ltr"] body { direction: ltr; text-align: left; }

/* ── Layout ─────────────────────────────────── */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* ── Header ─────────────────────────────────── */
.header {
  text-align: center;
  margin-bottom: 32px;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.logo-ar {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Language Toggle ────────────────────────── */
.lang-toggle {
  display: inline-flex;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.lang-btn {
  padding: 6px 16px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: var(--font-sans);
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

.lang-btn:hover:not(.active) {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* ── Cards ──────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card p, .card li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.card ul {
  list-style: none;
  padding: 0;
}

.card li {
  padding: 4px 0;
  padding-inline-start: 16px;
  position: relative;
}

[dir="rtl"] .card li { padding-inline-start: 0; padding-inline-end: 16px; }

.card li::before {
  content: '•';
  position: absolute;
  color: var(--text-muted);
}

[dir="rtl"] .card li::before { right: 0; }
[dir="ltr"] .card li::before { left: 0; }

/* ── Section labels ─────────────────────────── */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.label-deleted { color: var(--danger); }
.label-anonymized { color: #D9A04A; }
.label-retained { color: var(--text-muted); }

/* ── Divider ────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

/* ── Sections (hidden by default, shown via .visible) ── */
.auth-section,
.confirmation-section,
.processing-section,
.result-section { display: none; }
.auth-section.visible,
.confirmation-section.visible,
.processing-section.visible,
.result-section.visible { display: block; }

/* ── Auth Tabs ──────────────────────────────── */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: var(--font-sans);
}

.auth-tab.active {
  background: var(--accent);
  color: #fff;
}

.auth-tab:hover:not(.active) {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* ── Forms ──────────────────────────────────── */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--border-focus);
}

.form-input::placeholder {
  color: var(--text-muted);
}

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  font-family: var(--font-sans);
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover:not(:disabled) { background: var(--danger-hover); }

.btn-google {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  margin-top: 12px;
}

.btn-google:hover:not(:disabled) { background: #f5f5f5; }

.btn-google svg {
  width: 18px;
  height: 18px;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* ── Spinner ────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* ── Messages ───────────────────────────────── */
.message {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}

.message.visible { display: block; }

.message-error {
  background: rgba(217, 74, 74, 0.1);
  border: 1px solid rgba(217, 74, 74, 0.3);
  color: #F08080;
}

.message-success {
  background: rgba(74, 217, 122, 0.1);
  border: 1px solid rgba(74, 217, 122, 0.3);
  color: #90EE90;
}

/* ── Confirmation checkbox ──────────────────── */
.confirmation-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  cursor: pointer;
}

.confirmation-checkbox input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--danger);
  flex-shrink: 0;
}

.confirmation-checkbox span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ── Processing / Result ────────────────────── */
.processing-section { text-align: center; padding: 32px 0; }
.result-section { text-align: center; padding: 32px 0; }

.result-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.result-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.result-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ── Step indicator ─────────────────────────── */
.steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s;
}

.step-dot.active { background: var(--accent); }
.step-dot.done { background: var(--success); }

/* ── Footer ─────────────────────────────────── */
.footer {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-secondary); }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 480px) {
  .container { padding: 16px 12px 32px; }
  .card { padding: 16px; }
  .logo { font-size: 1.5rem; }
}
