/* ============================================
   Profil-Seite — Premium redesign
   ============================================ */
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 4px 0;
  position: relative;
  z-index: 10;
}

.profile-name {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.settings-button {
  border: 1px solid var(--color-border, rgba(255,255,255,0.08));
  background: rgba(255,255,255,0.04);
  color: var(--color-text-secondary);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
              transform 0.25s var(--ease-spring, ease);
}

.settings-button:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--color-border-strong, rgba(255,255,255,0.14));
  color: var(--text);
  transform: rotate(45deg) scale(1.05);
}

/* ============================================
   Rating Card
   ============================================ */
.profile-rating-card {
  margin: 4px 0 18px;
  padding: 13px 16px;
  border: 1px solid var(--color-border, rgba(255,255,255,0.08));
  border-radius: var(--radius, 16px);
  background: rgba(244, 197, 66, 0.04);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  transition: border-color 0.2s ease;
}

.profile-rating-card:hover {
  border-color: var(--color-accent-border, rgba(244,197,66,0.25));
}

.profile-rating-label {
  color: var(--color-text-tertiary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-rating-stars {
  display: inline-flex;
  gap: 3px;
  font-size: 15px;
  color: var(--color-accent);
}

.profile-rating-value {
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 600;
  margin-left: auto;
}

/* ============================================
   Auth Panel
   ============================================ */
.auth-panel {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--color-border, rgba(255,255,255,0.08));
  border-radius: var(--radius, 16px);
  padding: 16px;
  margin-bottom: 20px;
  transition: border-color 0.2s ease;
}

.auth-panel:hover {
  border-color: var(--color-border-strong, rgba(255,255,255,0.12));
}

.auth-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.auth-panel-header h2 {
  font-size: 1rem;
  margin: 0;
}

.auth-status {
  font-size: 12px;
  color: var(--color-text-tertiary);
  font-weight: 500;
}

.auth-user {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0 0 12px;
}

.auth-button {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--color-accent);
  color: #111;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.25s var(--ease-spring, ease),
              box-shadow 0.2s ease;
  box-shadow: 0 3px 14px rgba(244, 197, 66, 0.2);
  letter-spacing: 0.02em;
}

.auth-button:hover {
  background: var(--color-accent-hover, #ffd45e);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(244, 197, 66, 0.3);
}

.auth-button:active {
  transform: translateY(0);
}

/* ============================================
   Own Listings Section
   ============================================ */
.own-listings h2 {
  margin-bottom: 14px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

/* ============================================
   Profile Header Avatar
   ============================================ */
.profile-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-header-left h1 {
  margin: 0;
  font-size: 1.5rem;
}

.profile-avatar-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--color-primary, #0e0e0e),
              0 0 0 3.5px rgba(244, 197, 66, 0.45);
  transition: box-shadow 0.3s ease;
}

.profile-avatar-wrap:hover {
  box-shadow: 0 0 0 2px var(--color-primary, #0e0e0e),
              0 0 0 3.5px var(--color-accent),
              0 0 16px rgba(244, 197, 66, 0.25);
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-initial {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #111;
  font-family: "Plus Jakarta Sans", sans-serif;
}

/* ============================================
   Settings Modal Avatar
   ============================================ */
.avatar-setting-row {
  align-items: center;
}

.avatar-upload-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-preview-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(244, 197, 66, 0.3);
}

.avatar-preview-initial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  font-family: "Plus Jakarta Sans", sans-serif;
  box-shadow: 0 0 0 2px rgba(244, 197, 66, 0.25);
}

.avatar-upload-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--color-border, rgba(255,255,255,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.avatar-upload-btn:hover {
  background: rgba(244, 197, 66, 0.12);
  border-color: var(--color-accent-border, rgba(244,197,66,0.3));
  color: var(--color-accent);
  transform: scale(1.1);
}

/* ============================================
   Profile Header Right — Bell & Gear
   ============================================ */
.profile-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.notif-bell-btn {
  border: 1px solid var(--color-border, rgba(255,255,255,0.08));
  background: rgba(255,255,255,0.04);
  color: var(--color-text-secondary);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease,
              color 0.2s ease, transform 0.25s var(--ease-spring, ease);
}

.notif-bell-btn:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--color-border-strong, rgba(255,255,255,0.14));
  color: var(--text);
  transform: scale(1.06);
}

.notif-bell-wrap {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
  font-family: "Plus Jakarta Sans", sans-serif;
  box-shadow: 0 0 0 2px var(--color-primary, #0e0e0e);
}

/* ============================================
   Notification Dropdown — Glass
   ============================================ */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, 88vw);
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--color-border-strong, rgba(255,255,255,0.12));
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 999;
  overflow: hidden;
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid var(--color-border, rgba(255,255,255,0.08));
}

.notif-read-all-btn {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.notif-read-all-btn:hover { opacity: 1; }

.notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}

.notif-list::-webkit-scrollbar {
  width: 4px;
}

.notif-list::-webkit-scrollbar-track {
  background: transparent;
}

.notif-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
}

.notif-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.22);
}

.notif-empty {
  padding: 20px 14px;
  text-align: center;
  color: var(--color-text-tertiary);
  font-size: 13px;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border, rgba(255,255,255,0.06));
  cursor: pointer;
  transition: background 0.15s ease;
}

.notif-item:last-child { border-bottom: none; }

.notif-item:hover {
  background: rgba(255,255,255,0.04);
}

.notif-item--unread {
  background: rgba(244, 197, 66, 0.04);
}

.notif-item--unread:hover {
  background: rgba(244, 197, 66, 0.07);
}

.notif-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(244, 197, 66, 0.12);
  border: 1px solid rgba(244, 197, 66, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--color-accent);
  margin-top: 1px;
}

.notif-item-body {
  flex: 1;
  min-width: 0;
}

.notif-item-title {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-item-body-text {
  margin: 0;
  font-size: 12px;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.notif-item-time {
  font-size: 11px;
  color: var(--color-text-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.notif-item-icon--initial {
  background: var(--color-accent);
  color: #111;
  font-size: 14px;
  font-weight: 700;
  font-family: "Plus Jakarta Sans", sans-serif;
  border-color: var(--color-accent);
}

/* Light mode adjustments */
:root.light-mode .profile-avatar-wrap {
  box-shadow: 0 0 0 2px #f5f5f5, 0 0 0 3.5px rgba(224,168,0,0.5);
}

:root.light-mode .auth-panel {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
}

:root.light-mode .notif-dropdown {
  background: rgba(255,255,255,0.97);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
