/* User account / settings page — matches AtlasClés premium auth theme */
:root {
  --gold: #C9A24B;
  --gold-dark: #b88a00;
  --bg: #0c0e14;
  --bg-card: #11141c;
  --bg-elevated: #161920;
  --border: #273043;
  --text: #e5e7eb;
  --text-muted: #B3AEA3;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 12px;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.account-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(212, 175, 55, 0.09), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(184, 138, 0, 0.07), transparent 35%),
    linear-gradient(160deg, #0a0c12, #10141c 55%, #0a0c12);
  min-height: 100vh;
  color: var(--text);
  line-height: 1.5;
}

.account-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(17, 20, 28, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.account-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  font-size: 1.1rem;
}

.account-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.account-back:hover {
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.06);
}

.account-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.account-hero {
  margin-bottom: 1.75rem;
}

.account-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  background: linear-gradient(135deg, #fff 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.account-hero p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.account-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.badge.verified { border-color: rgba(16, 185, 129, 0.4); color: var(--success); }
.badge.google { border-color: rgba(66, 133, 244, 0.4); color: #93c5fd; }

.account-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.account-nav {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: var(--shadow);
}

.account-nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}

.account-nav button:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.account-nav button.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(184, 138, 0, 0.1));
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.account-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  min-height: 380px;
}

.account-section { display: none; }
.account-section.active { display: block; }

.account-section h2 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-group input:disabled,
.form-group input[readonly] {
  opacity: 0.65;
  cursor: not-allowed;
}

.input-with-toggle {
  position: relative;
}

.input-with-toggle input {
  padding-right: 2.75rem;
}

.toggle-pw {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 6px;
}

.toggle-pw:hover { color: var(--gold); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.2s, box-shadow 0.2s;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #111;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover:not(:disabled) {
  color: var(--text);
  border-color: rgba(212, 175, 55, 0.4);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover:not(:disabled) { filter: brightness(1.08); }

.alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: none;
}

.alert.show { display: block; }
.alert.success { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.35); color: #6ee7b7; }
.alert.error { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.35); color: #fca5a5; }
.alert.info { background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.35); color: #93c5fd; }

.info-card {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #bfdbfe;
}

.info-card i { margin-right: 0.35rem; }

.danger-zone {
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(239, 68, 68, 0.25);
}

.danger-zone h3 {
  color: #f87171;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.warning-box {
  display: none;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 0.85rem;
  margin: 0.75rem 0;
  font-size: 0.85rem;
}

.warning-box.show { display: block; }

.warning-box ul {
  margin: 0.5rem 0 0 1.1rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.checkbox-row input { margin-top: 0.2rem; accent-color: var(--gold); }

@media (max-width: 768px) {
  .account-shell { grid-template-columns: 1fr; }
  .account-nav {
    display: flex;
    overflow-x: auto;
    gap: 0.35rem;
    padding: 0.5rem;
  }
  .account-nav button {
    width: auto;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .form-grid { grid-template-columns: 1fr; }
}
