.notice-wrap { position: relative; }

.notification-panel {
  display: none;
  position: absolute;
  z-index: 50;
  right: 0;
  top: 49px;
  width: 300px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-hover);
  color: var(--ink);
}

.notification-panel.open {
  display: block;
  animation: pop .18s ease;
}

.notification-panel > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.notification-panel b {
  font: 700 15px 'Playfair Display';
  color: var(--ink);
}

.notification-panel button {
  background: none;
  border: 0;
  color: var(--purple);
  font: 600 11px 'DM Sans';
  cursor: pointer;
}

.notification-panel p {
  display: flex;
  gap: 9px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.notification-panel p span {
  color: var(--orange);
}

.profile-modal {
  position: relative;
  width: min(520px, 100%);
  background: var(--card-bg);
  border-radius: 18px;
  padding: 31px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.45);
  border: 1px solid var(--card-border);
  animation: pop .25s ease;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  color: var(--ink);
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.profile-top > span {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--avatar-bg);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.profile-top img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-top .eyebrow { margin-bottom: 4px; }
.profile-top h2 {
  font: 700 24px 'Playfair Display';
  margin: 0;
  color: var(--ink);
}

.profile-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 17px 0;
}

.profile-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  align-items: start;
}

.profile-fields label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
}

.profile-fields label.full-width {
  grid-column: span 2;
}

.profile-fields input, .profile-fields select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  padding: 11px;
  font: 13px 'DM Sans';
  color: var(--ink);
  outline-color: var(--purple);
}

.profile-email-readonly {
  background: var(--tip-bg, rgba(120, 120, 150, 0.08)) !important;
  color: var(--muted) !important;
  border-color: var(--card-border) !important;
  cursor: not-allowed !important;
  user-select: none;
  font-weight: 500;
}

.profile-fields input[type='file'] {
  padding: 8px 10px;
}

.profile-fields label:nth-child(1), .profile-fields label:nth-child(3) {
  grid-column: 1/-1;
}

.profile-submit-btn {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--purple);
  color: #fff;
  padding: 13px;
  font: 600 14px 'DM Sans';
  cursor: pointer;
  margin-top: 20px;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.profile-submit-btn:hover {
  background: var(--purple-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 17px rgba(76, 60, 148, 0.2);
}

@media(max-width: 650px) {
  .notification-panel { right: -49px; width: min(300px, calc(100vw - 36px)); }
  .profile-modal { padding: 25px 20px; }
  .profile-fields { grid-template-columns: 1fr; }
}
