/* ============================================================
   DatNenDuAn — Account / Dashboard CSS
   ============================================================ */

/* ---- Layout ---- */
.account-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
  padding: 40px 0 80px;
}
.account-main { min-width: 0; }

/* ---- Sidebar ---- */
.account-sidebar {
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--border2);
  overflow: hidden;
  position: sticky;
  top: 96px;
}
.account-user-card {
  padding: 24px 20px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--navy2) 100%);
  display: flex;
  align-items: center;
  gap: 14px;
}
.account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.3);
  flex-shrink: 0;
}
.account-user-info { flex: 1; min-width: 0; }
.account-user-info strong {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-user-info span {
  display: block;
  color: rgba(255,255,255,.65);
  font-size: 12px;
  margin-top: 2px;
}
.account-nav { padding: 10px 0; }
.account-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  transition: var(--transition);
  border-left: 3px solid transparent;
  text-decoration: none;
}
.account-nav-item svg { color: var(--muted); flex-shrink: 0; transition: var(--transition); }
.account-nav-item:hover {
  background: var(--ivory);
  color: var(--ink);
  border-left-color: var(--gold);
}
.account-nav-item:hover svg { color: var(--gold); }
.account-nav-item.active {
  background: #fff9ef;
  color: var(--ink);
  font-weight: 700;
  border-left-color: var(--gold);
}
.account-nav-item.active svg { color: var(--gold); }
.account-nav-logout { color: #c53030; margin-top: 4px; border-top: 1px solid var(--border2); }
.account-nav-logout svg { color: #c53030; }
.account-nav-logout:hover { background: #fff0f0; color: #a02020; border-left-color: #c53030; }

/* ---- Cards ---- */
.account-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border2);
  padding: 28px;
  margin-bottom: 24px;
}
.account-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-card-title svg { color: var(--gold); }

/* ---- Stats Grid ---- */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.dash-stat {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--border2);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}
.dash-stat:hover { border-color: var(--gold); box-shadow: var(--shadow-xs); }
.dash-stat__num {
  font-size: 32px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.dash-stat__num.gold { color: var(--gold); }
.dash-stat__num.green { color: #1a7a40; }
.dash-stat__num.red   { color: #c53030; }
.dash-stat__label { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---- Welcome ---- */
.dash-welcome {
  background: linear-gradient(115deg, var(--ink) 0%, var(--navy2) 100%);
  border-radius: 20px;
  padding: 28px;
  color: #fff;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.dash-welcome h2 { color: #fff; margin: 0 0 6px; font-size: 22px; }
.dash-welcome p  { color: rgba(255,255,255,.75); margin: 0; }
.dash-welcome-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- CTA Cards ---- */
.dash-ctas { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 24px; }
.dash-cta  {
  background: var(--ivory);
  border-radius: 18px;
  border: 1px solid var(--border2);
  padding: 22px;
  text-align: center;
  transition: var(--transition);
  text-decoration: none;
  display: block;
  color: var(--text);
}
.dash-cta:hover { border-color: var(--gold); background: #fff9ef; transform: translateY(-3px); }
.dash-cta__icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  border-radius: 14px;
  display: grid; place-items: center;
  margin: 0 auto 14px;
  color: var(--ink);
}
.dash-cta strong { display: block; color: var(--ink); font-size: 15px; font-weight: 700; }
.dash-cta span   { font-size: 12px; color: var(--muted); }

/* ---- Auth pages (login / register / forgot) ---- */
.auth-section {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  background: var(--ivory);
}
.auth-box {
  background: #fff;
  border-radius: 28px;
  border: 1px solid var(--border2);
  padding: 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-sm);
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}
.auth-logo-mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  display: grid; place-items: center;
  color: var(--ink); font-weight: 900; font-size: 18px;
}
.auth-logo strong { font-size: 20px; color: var(--ink); }
.auth-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}
.auth-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}
.auth-divider {
  text-align: center;
  margin: 20px 0;
  color: var(--muted);
  font-size: 13px;
  position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%; width: 38%;
  height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }
.auth-links {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-top: 16px;
}
.auth-links a { color: var(--gold); font-weight: 600; }

/* ---- Form ---- */
.acc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.acc-form-grid .full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
}
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: var(--transition);
  font-family: var(--font-body);
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,154,69,.12);
}
.form-group input.error,
.form-group select.error { border-color: #c53030; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%236d7b86' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-error-msg { color: #c53030; font-size: 12px; margin-top: 4px; }

/* Checkbox row */
.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text2);
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 2px solid var(--border);
  flex-shrink: 0;
  cursor: pointer;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  position: relative;
  transition: border-color .15s, background .15s;
}
.form-check input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.form-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 6px; height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* Section dividers inside form */
.form-section-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 14px 0 10px;
  border-top: 1px solid var(--border2);
  margin-top: 8px;
  grid-column: 1 / -1;
}

/* Submit / action row */
.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}
.form-actions .btn { flex: 1; justify-content: center; }

/* ---- Alert messages ---- */
.acc-alert {
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.acc-alert--success { background: #d4f5e2; color: #1a7a40; border: 1px solid #a8e6c0; }
.acc-alert--error   { background: #fde8e8; color: #c53030; border: 1px solid #f5b8b8; }
.acc-alert--info    { background: #fff8e7; color: #8c641f; border: 1px solid #f1d18a; }

/* ---- My Listings ---- */
.listing-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.listing-filter-btn {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}
.listing-filter-btn.active,
.listing-filter-btn:hover {
  border-color: var(--gold);
  color: var(--ink);
  background: #fff9ef;
}
.listing-search {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.listing-search input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}
.listing-search input:focus { border-color: var(--gold); }

.listing-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border2);
  margin-bottom: 12px;
  align-items: center;
  transition: var(--transition);
}
.listing-item:hover { border-color: var(--border); box-shadow: var(--shadow-xs); }
.listing-item__thumb { width: 100px; height: 72px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.listing-item__info h4 { font-size: 15px; color: var(--ink); font-weight: 700; margin: 0 0 6px; }
.listing-item__meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.listing-item__actions { display: flex; gap: 8px; flex-direction: column; align-items: flex-end; }

/* empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--ivory);
  display: grid; place-items: center;
  margin: 0 auto 20px;
  color: var(--muted);
}
.empty-state h3 { color: var(--ink); font-size: 18px; margin-bottom: 8px; }
.empty-state p  { font-size: 14px; margin-bottom: 24px; }

/* ---- Gallery Upload ---- */
.gallery-upload-area {
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--muted);
}
.gallery-upload-area:hover { border-color: var(--gold); background: #fff9ef; }
.gallery-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.gallery-preview-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
}
.gallery-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-remove-btn {
  position: absolute;
  top: 4px; right: 4px;
  width: 24px; height: 24px;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: 0;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: grid; place-items: center;
  line-height: 1;
}

/* ---- Favorite button ---- */
.dnd-fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.dnd-fav-btn:hover { border-color: #e53e6e; color: #e53e6e; }
.dnd-fav-btn.is-saved { border-color: #e53e6e; color: #e53e6e; background: #fff5f8; }
.dnd-fav-btn .fav-icon-on { display: none; }
.dnd-fav-btn.is-saved .fav-icon-off { display: none; }
.dnd-fav-btn.is-saved .fav-icon-on  { display: inline; }
.dnd-fav-btn svg { flex-shrink: 0; }

/* ---- Header user menu ---- */
.header-user-menu {
  position: relative;
  flex-shrink: 0;
}
.header-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--ivory2);
  cursor: pointer;
  transition: var(--transition);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.header-user-btn:hover { border-color: var(--gold); }
.header-user-btn img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: var(--transition);
  z-index: 200;
}
.header-user-menu:hover .user-dropdown,
.header-user-menu:focus-within .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border-radius: 12px;
  transition: var(--transition);
  text-decoration: none;
}
.user-dropdown a:hover { background: var(--ivory2); color: var(--ink); }
.user-dropdown a svg { color: var(--muted); }
.user-dropdown .separator {
  height: 1px;
  background: var(--border2);
  margin: 4px 0;
}
.user-dropdown .logout-link { color: #c53030; }
.user-dropdown .logout-link:hover { background: #fff0f0; }
.user-dropdown .logout-link svg { color: #c53030; }

/* Mobile account nav */
.account-mobile-nav {
  display: none;
  overflow-x: auto;
  gap: 8px;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.account-mobile-nav::-webkit-scrollbar { display: none; }
.account-mobile-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--border2);
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  transition: var(--transition);
}
.account-mobile-nav a.active,
.account-mobile-nav a:hover { border-color: var(--gold); color: var(--ink); background: #fff9ef; }

/* ---- Account section / layout aliases ---- */
.account-section {
  padding: 120px 0 80px;
  min-height: calc(100vh - 80px);
  background: var(--ivory);
}
.account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}
.account-panel {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border2);
  padding: 24px 28px;
}
.account-panel-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border2);
}
.account-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border2);
}

/* ---- Dashboard stat grid (template alias) ---- */
.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 4px;
}
.dash-stat b {
  font-size: 30px;
  font-weight: 900;
  color: var(--ink);
  display: block;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.dash-stat span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

/* ---- Listing card list (used in tin-da-dang, tai-khoan, yeu-thich) ---- */
.listing-card-list { display: grid; gap: 14px; }
.listing-card-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border2);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
}
.listing-card-item:hover { border-color: var(--border); box-shadow: var(--shadow-xs); }
.listing-card-thumb {
  height: 100%;
  min-height: 120px;
  background-size: cover;
  background-position: center;
  background-color: var(--ivory2);
  text-decoration: none;
  display: block;
}
.listing-card-body {
  padding: 16px 16px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.listing-card-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.listing-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin: 0;
}
.listing-card-title a { color: inherit; }
.listing-card-title a:hover { color: var(--gold); }
.listing-card-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.listing-card-meta span::before { content: '· '; }
.listing-card-meta span:first-child::before { content: ''; }
.listing-card-notice {
  background: #fff8e7;
  border-left: 3px solid var(--gold);
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
}
.listing-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
}
.btn-action {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text2);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-action:hover { border-color: var(--gold); color: var(--ink); background: #fff9ef; }
.btn-action--danger { color: #c53030; border-color: #f5b8b8; }
.btn-action--danger:hover { background: #fff0f0; border-color: #c53030; }

.listing-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  font-size: 15px;
}

/* ---- Filter bar & search (tin-da-dang) ---- */
.listing-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.filter-tab {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}
.filter-tab.active, .filter-tab:hover {
  border-color: var(--gold);
  color: var(--ink);
  background: #fff9ef;
}
.listing-search-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  font-family: var(--font-body);
  transition: var(--transition);
}
.listing-search-input:focus { border-color: var(--gold); }

/* ---- Form messages ---- */
.form-msg {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}
.form-msg--ok, .form-msg.ok {
  background: #d4f5e2;
  color: #1a7a40;
  border: 1px solid #a8e6c0;
}
.form-msg--err, .form-msg.err {
  background: #fde8e8;
  color: #c53030;
  border: 1px solid #f5b8b8;
}

/* ---- Password strength indicator ---- */
.pw-strength { font-size: 11px; font-weight: 600; }
.pw-strength.weak   { color: #c53030; }
.pw-strength.medium { color: #c98000; }
.pw-strength.strong { color: #1a7a40; }

/* ---- Badges (status labels in listings) ---- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--ivory2); color: var(--muted); }
.badge--green { background: #d4f5e2; color: #1a7a40; }
.badge--gold  { background: #fff8e7; color: #8c641f; }
.badge--red   { background: #fde8e8; color: #c53030; }

/* ============================================================
   IN-APP NOTIFICATIONS
   ============================================================ */

/* Red badge dot on nav items and bell */
.notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #c53030;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  margin-left: auto;
}

/* Bell button in user card */
.notif-bell-btn {
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
  transition: background .2s;
}
.notif-bell-btn:hover { background: rgba(255,255,255,.25); }
.notif-bell-btn .notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  font-size: 9px;
  margin-left: 0;
}

/* Notification panel (dropdown) */
.account-sidebar { position: relative; }
.notif-panel {
  position: absolute;
  top: 85px;
  left: 12px;
  right: 12px;
  z-index: 200;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(7,25,37,.18);
  border: 1px solid var(--border2);
  overflow: hidden;
  max-height: 440px;
  display: flex;
  flex-direction: column;
}
.notif-panel[hidden] { display: none; }

.notif-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border2);
  background: var(--ivory);
}
.notif-panel__head strong { font-size: 14px; color: var(--ink); }
.notif-panel__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background .2s;
}
.notif-panel__close:hover { background: var(--ivory2); }

.notif-panel__body {
  overflow-y: auto;
  max-height: 360px;
  padding: 8px 0;
}

.notif-loading {
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 13px;
}
.notif-empty {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 13px;
}

/* Individual notification item */
.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border2);
  background: var(--notif-bg, #f8f9fa);
  transition: opacity .2s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item--read {
  background: #fff;
  opacity: 0.75;
}
.notif-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
  padding-top: 2px;
}
.notif-body { flex: 1; min-width: 0; }
.notif-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--notif-color, var(--ink));
  margin: 0 0 2px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.notif-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-title:hover { color: var(--gold); }
.notif-msg {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 4px;
}
.notif-time {
  font-size: 11px;
  color: var(--muted2);
}

/* Badge on nav item */
.account-nav-item { position: relative; }
.account-nav-item .notif-badge { margin-left: auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .account-wrap, .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { display: none; }
  .account-mobile-nav { display: flex; }
  .dash-stats, .dash-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-ctas  { grid-template-columns: repeat(2, 1fr); }
  .acc-form-grid { grid-template-columns: 1fr; }
  .acc-form-grid .full { grid-column: 1; }
}
@media (max-width: 600px) {
  .auth-section { padding: 100px 16px 60px; }
  .auth-box { padding: 28px 20px; border-radius: 20px; }
  .account-section { padding: 100px 0 60px; }
  .account-panel { padding: 18px; }
  .dash-stats, .dash-stat-grid { grid-template-columns: 1fr 1fr; }
  .dash-ctas  { grid-template-columns: 1fr; }
  .listing-item { grid-template-columns: 80px 1fr; }
  .listing-item__actions { grid-column: 1/-1; flex-direction: row; justify-content: flex-end; }
  .listing-card-item { grid-template-columns: 1fr; }
  .listing-card-thumb { min-height: 180px; height: 180px; }
  .listing-card-body { padding: 14px; }
  .gallery-preview { grid-template-columns: repeat(3, 1fr); }
  .account-wrap { padding: 20px 0 60px; }
}
