/* ── PROFILE PAGE ── */
.profile-page { padding-top: 0 !important; }

.profile-hero-wrap { max-width: 1200px; margin: 32px auto 0; padding: 0 24px; }

.profile-hero {
  background: linear-gradient(120deg, #1a1c2e 0%, #1a2e3a 60%, #0e2e20 100%);
  padding: 36px; border-radius: 20px;
  position: relative; overflow: hidden;
}
.profile-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,229,160,.06) 1.5px, transparent 1.5px);
  background-size: 28px 28px; border-radius: 20px;
}
.profile-hero::after {
  content: ''; position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,.15) 0%, transparent 65%);
  pointer-events: none;
}

.profile-hero-inner {
  display: flex; align-items: center; gap: 24px;
  position: relative; z-index: 1;
}
.profile-big-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #00e5a0, #6366f1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800; color: #fff;
  flex-shrink: 0; box-shadow: 0 0 0 4px rgba(255,255,255,.1);
  letter-spacing: -1px;
}
.profile-hero-name { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.profile-hero-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: .8rem; color: rgba(255,255,255,.5);
}
.profile-hero-meta span { display: flex; align-items: center; gap: 5px; }
.profile-hero-meta .material-icons-round { font-size: .9rem !important; }

.profile-grid {
  max-width: 1200px; margin: 0 auto;
  padding: 20px 24px 60px;
  display: grid; grid-template-columns: 260px 1fr;
  gap: 24px; align-items: start;
}

.profile-sidebar { display: flex; flex-direction: column; gap: 16px; }

.profile-card {
  background: #fff; border: 1px solid #e8eaf0;
  border-radius: 16px; padding: 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.profile-card-head  { margin-bottom: 20px; }
.profile-card-title { font-size: .88rem; font-weight: 700; color: #1e2139; }
.profile-card-sub   { font-size: .78rem; color: #94a3b8; margin-top: 3px; }

.profile-nav { display: flex; flex-direction: column; gap: 2px; }
.pn-item {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 6px; border-radius: 10px;
  font-size: .84rem; font-weight: 500; color: #374151;
  text-decoration: none; transition: background .13s;
}
.pn-item:hover { background: #f3f4f9; }
.pn-item--danger:hover { background: #fef2f2; }
.pn-item--danger .pn-label { color: #ef4444; }
.pn-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pn-icon .material-icons-round { font-size: 1rem !important; }
.pn-label { flex: 1; }
/* pn-badge → .badge.badge-muted  |  pn-badge--green → .badge.badge-green */
.pn-divider { height: 1px; background: #f1f5f9; margin: 6px 0; }

.profile-forms { display: flex; flex-direction: column; gap: 20px; }

/* profile-flash.ok → .flash.flash-success  |  profile-flash.err → .flash.flash-danger */

.profile-form { display: flex; flex-direction: column; gap: 18px; }

.pf-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.pf-row:has(.pf-field:only-child) { grid-template-columns: 1fr; max-width: 360px; }

.pf-field { display: flex; flex-direction: column; gap: 7px; }
.pf-field label {
  font-size: .74rem; font-weight: 700;
  color: #8a8ea8; letter-spacing: .05em; text-transform: uppercase;
}

.pf-input-wrap {
  display: flex; align-items: center;
  background: #f8f9fc; border: 1px solid #e2e5ef;
  border-radius: 10px; transition: border-color .18s, box-shadow .18s;
}
.pf-input-wrap:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
  background: #fff;
}
.pf-input-wrap > span { padding: 0 12px; color: #94a3b8; font-size: 1rem; flex-shrink: 0; }
.pf-input-wrap input {
  flex: 1; background: none; border: none; outline: none;
  font-family: inherit; font-size: .88rem; color: #1e2139; padding: 11px 0;
}
.pf-input-wrap input::placeholder { color: #94a3b8; }

.pf-toggle-pw {
  background: none; border: none; padding: 0 12px;
  cursor: pointer; color: #94a3b8;
  display: flex; align-items: center;
  transition: color .15s; flex-shrink: 0;
}
.pf-toggle-pw:hover { color: #8a8ea8; }
.pf-toggle-pw span  { font-size: 1rem; }

.pf-strength { display: flex; align-items: center; gap: 10px; margin-top: -6px; }
.pf-strength-bar { flex: 1; height: 4px; background: #eef0f6; border-radius: 4px; overflow: hidden; }
.pf-strength-bar div { height: 100%; border-radius: 4px; transition: width .3s, background .3s; }
#pw-strength-label { font-size: .72rem; font-weight: 600; white-space: nowrap; }

.pf-actions { display: flex; justify-content: flex-end; padding-top: 4px; }

/* pf-btn.primary → .btn.btn-primary  |  pf-btn.ghost → .btn.btn-ghost  |  pf-btn.danger → .btn.btn-danger */

/* ── Saved searches ── */
.ss-empty {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 0 4px;
}
.ss-empty-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: #f1f5f9; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.ss-empty-icon .material-icons-round { font-size: 1.2rem; color: #94a3b8; }
.ss-empty-text strong { font-size: .84rem; color: #1e2139; display: block; margin-bottom: 5px; }
.ss-empty-text p { font-size: .78rem; color: #94a3b8; line-height: 1.55; }

.ss-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }

.ss-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 12px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  transition: border-color .15s, box-shadow .15s;
}
.ss-row:hover { border-color: #c7d2fe; box-shadow: 0 2px 8px rgba(99,102,241,.07); }

.ss-icon {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.ss-icon .material-icons-round { font-size: 1rem !important; }

.ss-body { flex: 1; min-width: 0; }
.ss-title {
  font-size: .85rem; font-weight: 600; color: #1e2139;
  display: block; text-decoration: none; margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .13s;
}
.ss-title:hover { color: #6366f1; }
.ss-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: .72rem; color: #94a3b8;
  flex-wrap: nowrap; overflow: hidden;
}
.ss-meta span { display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.ss-meta .material-icons-round { font-size: .8rem !important; }

.ss-go {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; background: none; text-decoration: none;
  transition: background .15s, color .15s;
}
.ss-go:hover { background: #eef2ff; color: #6366f1; }
.ss-go .material-icons-round { font-size: 1rem !important; }

.ss-row--paused { opacity: .65; }
.ss-row--paused .ss-title { color: #94a3b8; }

.ss-paused-badge {
  display: flex; align-items: center; gap: 3px;
  font-size: .7rem; font-weight: 600; color: #f59e0b;
  margin-bottom: 3px;
}
.ss-paused-badge .material-icons-round { font-size: .8rem !important; }

.ss-del-form { flex-shrink: 0; }

.ss-pause {
  width: 30px; height: 30px; border-radius: 8px; border: none;
  background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; transition: background .15s, color .15s; flex-shrink: 0;
}
.ss-pause:hover      { background: #fffbeb; color: #f59e0b; }
.ss-pause--on        { color: #f59e0b; }
.ss-pause--on:hover  { background: #fffbeb; color: #d97706; }
.ss-pause .material-icons-round { font-size: 1rem !important; }

.ss-del {
  width: 30px; height: 30px; border-radius: 8px; border: none;
  background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; transition: background .15s, color .15s;
}
.ss-del:hover { background: #fef2f2; color: #ef4444; }
.ss-del .material-icons-round { font-size: 1rem !important; }

/* ── Delete confirm modal ── */
.ss-confirm-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(15,15,20,.55);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.ss-confirm-overlay[hidden] { display: none; }

.ss-confirm-box {
  background: #fff; border-radius: 18px;
  padding: 28px 24px 22px;
  width: 100%; max-width: 340px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  animation: ssConfirmIn .18s ease;
}
@keyframes ssConfirmIn {
  from { opacity: 0; transform: scale(.94) translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.ss-confirm-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: #fef2f2; display: flex; align-items: center; justify-content: center;
}
.ss-confirm-icon .material-icons-round { font-size: 1.4rem; color: #ef4444; }

.ss-confirm-body { text-align: center; }
.ss-confirm-title { font-size: .95rem; font-weight: 700; color: #1e2139; margin-bottom: 5px; }
.ss-confirm-sub   { font-size: .8rem;  color: #94a3b8; }

.ss-confirm-actions {
  display: flex; gap: 8px; width: 100%; margin-top: 4px;
}
.ss-confirm-actions .btn { flex: 1; justify-content: center; }
.ss-confirm-actions .btn-ghost {
  border-color: #e2e5ef; background: none; color: #64748b;
}
.ss-confirm-actions .btn-ghost:hover {
  background: #f8f9fc; border-color: #b0b8cc; color: #1e293b; box-shadow: none;
}

.danger-zone { border-color: #fecaca; }
.danger-zone-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 14px; flex-wrap: wrap;
}
.danger-zone-row strong { font-size: .85rem; color: #1e2139; display: block; margin-bottom: 3px; }
.danger-zone-row p      { font-size: .78rem; color: #94a3b8; }

@media (max-width: 768px) {
  .profile-grid { grid-template-columns: 1fr; }
  .pf-row       { grid-template-columns: 1fr; }

  .profile-hero-wrap { padding: 0 16px; }
  .profile-hero { padding: 24px 20px; }
  .profile-hero-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .profile-big-avatar { width: 64px; height: 64px; font-size: 1.4rem; }
  .profile-hero-info { min-width: 0; width: 100%; }
  .profile-hero-name { font-size: 1.2rem; }
  .profile-hero-meta { gap: 10px; }
  .profile-hero-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }
}
