/* Profile / Account dashboard — reuses Quaseek's own theme variables from styles.css */

.profile-topbar{
  display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--border);
}

.profile-main{max-width:640px;margin:0 auto;padding:28px 20px 60px;}

.profile-hero{text-align:center;margin-bottom:32px;}
.profile-avatar{
  width:84px;height:84px;border-radius:50%;margin:0 auto 14px;display:flex;align-items:center;justify-content:center;
  font-family:'Space Grotesk',sans-serif;font-size:1.8rem;font-weight:700;color:#fff;
  background:linear-gradient(135deg, var(--accent), var(--accent2));
}
.profile-name-row{display:flex;align-items:center;justify-content:center;gap:8px;}
.profile-name-row h1{font-family:'Space Grotesk',sans-serif;font-size:1.5rem;}
.profile-name-edit{display:flex;gap:8px;justify-content:center;margin-top:10px;}
.profile-name-edit input{
  padding:8px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);
  font-family:'Inter',sans-serif;font-size:.9rem;
}
.profile-save-btn{
  background:var(--accent);color:#fff;border:none;border-radius:8px;padding:8px 16px;font-weight:600;
  font-size:.85rem;cursor:pointer;font-family:'Inter',sans-serif;
}
.profile-email{color:var(--muted);font-size:.9rem;margin-top:6px;}
.profile-plan-chip{
  display:inline-block;margin-top:12px;background:var(--accent-soft-bg);color:var(--accent);
  font-size:.78rem;font-weight:700;padding:5px 14px;border-radius:999px;
}

.profile-section{margin-bottom:32px;}
.profile-section-title{font-size:.85rem;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px;}

.profile-glass{
  background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:18px;margin-bottom:10px;
}

.profile-row{display:flex;align-items:center;gap:14px;cursor:pointer;}
.profile-row-icon{font-size:1.4rem;flex-shrink:0;width:34px;text-align:center;}
.profile-row-body{flex:1;min-width:0;}
.profile-row-title{font-weight:600;color:var(--text);font-size:.95rem;}
.profile-row-desc{color:var(--muted);font-size:.82rem;margin-top:2px;line-height:1.4;}
.profile-row-arrow{color:var(--muted);font-size:1.2rem;}
.profile-row-btn{width:100%;border:1px solid var(--border);text-align:left;font-family:'Inter',sans-serif;}
.profile-row-danger .profile-row-title{color:var(--danger);}

.profile-memory-list{display:flex;flex-direction:column;gap:8px;max-height:260px;overflow-y:auto;}
.profile-memory-item{
  display:flex;justify-content:space-between;align-items:center;gap:10px;
  background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:10px 12px;font-size:.85rem;
}
.profile-memory-item button{background:none;border:none;color:var(--muted);cursor:pointer;font-size:.9rem;}
.profile-memory-item button:hover{color:var(--danger);}
.profile-memory-empty{color:var(--muted);font-size:.85rem;text-align:center;padding:12px;}

.profile-plans-grid{display:grid;grid-template-columns:1fr;gap:14px;}
@media (min-width:640px){ .profile-plans-grid{grid-template-columns:repeat(3,1fr);} }

.profile-plan-card{
  background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:22px;display:flex;flex-direction:column;gap:12px;
  position:relative;
}
.profile-plan-card.is-featured{border-color:var(--accent);box-shadow:0 12px 30px -14px rgba(79,60,255,.35);}
.profile-plan-badge{
  position:absolute;top:-11px;right:18px;background:var(--accent);color:#fff;font-size:.68rem;font-weight:700;
  padding:3px 10px;border-radius:999px;
}
.profile-plan-name{font-family:'Space Grotesk',sans-serif;font-size:1.1rem;font-weight:700;}
.profile-plan-price{font-family:'Space Grotesk',sans-serif;font-size:1.7rem;font-weight:700;}
.profile-plan-price span{font-size:.85rem;color:var(--muted);font-weight:500;font-family:'Inter',sans-serif;}
.profile-plan-features{list-style:none;display:flex;flex-direction:column;gap:8px;font-size:.85rem;color:var(--text);flex:1;}
.profile-plan-features li{padding-left:20px;position:relative;line-height:1.4;}
.profile-plan-features li::before{content:"✓";position:absolute;left:0;color:var(--accent2);font-weight:700;}
.profile-plan-btn{
  background:var(--text);color:var(--bg);border:none;border-radius:10px;padding:11px;font-weight:600;
  cursor:pointer;font-family:'Inter',sans-serif;font-size:.88rem;
}
.profile-plan-btn.is-current{background:var(--border);color:var(--muted);cursor:default;}
.profile-plan-btn.is-accent{background:var(--accent);color:#fff;}

/* ---------- Preferences expand rows ---------- */
.profile-expand{margin-top:-4px;}
.profile-pref-label{display:block;font-size:.8rem;color:var(--muted);margin-bottom:8px;}
.profile-pref-select{
  width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--bg);
  color:var(--text);font-family:'Inter',sans-serif;font-size:.9rem;
}
.profile-expand input[type="password"]{
  width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--bg);
  color:var(--text);font-family:'Inter',sans-serif;font-size:.9rem;margin-bottom:8px;
}
