:is(.member-auth, .member-onboarding, .member-dashboard) {
  --member-green: #185e46;
  --member-soft: #e9f5ef;
  --member-border: #d7e2ea;
  --member-padding: clamp(14px, 2vw, 24px);
  color: var(--guide-ink);
}

.member-primary,
.member-secondary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.member-primary {
  background: var(--member-green);
  color: #fff;
}

.member-primary:hover { background: #104935; color: #fff; text-decoration: none; }
.member-secondary { border-color: var(--member-border); background: #fff; color: var(--guide-primary); }
.member-secondary:hover { background: #edf5fa; text-decoration: none; }

.member-surface {
  min-width: 0;
  margin: 0;
  padding: var(--member-padding);
  border: 1px solid var(--member-border);
  border-radius: 14px;
  background: var(--guide-paper);
  box-shadow: 0 3px 12px #17395708;
}

.member-banner {
  min-height: 155px;
  padding: clamp(20px, 4vw, 40px);
  border: 0;
  border-radius: 16px;
  background: #143c56 linear-gradient(90deg, #102b44 4%, #102b44eb 36%, #102b4470 77%, #102b4468);
  background-image: linear-gradient(90deg, #102b44 4%, #102b44e8 36%, #102b4480 77%), url(media/ayvalik-kapak.webp);
  background-position: center, center 45%;
  background-size: cover;
  color: #fff;
}

.member-onboarding .member-banner { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
.member-dashboard-banner { display: flex; }
.member-banner h1 { margin: 0; color: inherit; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.03em; }
.member-banner p { max-width: 34rem; margin: 6px 0 0; color: #eef6fe; }
.member-banner a { flex-shrink: 0; background: #fff; color: #163751; }
.member-banner a:hover { background: #edf5fa; color: #163751; }

.member-auth {
  display: grid;
  width: min(100%, 65rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin: 12px auto 24px;
  overflow: hidden;
  border: 1px solid var(--member-border);
  border-radius: 18px;
  background: var(--guide-paper);
  box-shadow: 0 10px 32px #17395712;
}

.member-auth-narrow { width: min(100%, 31rem); grid-template-columns: minmax(0, 1fr); }

.member-auth-scene {
  position: relative;
  display: grid;
  min-height: 420px;
  align-items: end;
  isolation: isolate;
  padding: clamp(20px, 4vw, 42px);
  background: #193d55;
  color: #fff;
}

.member-auth-scene picture,
.member-auth-scene::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.member-auth-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 45% center; }
.member-auth-scene::after { background: linear-gradient(0deg, #102b44 4%, #102b44d9 45%, #102b4415 88%); content: ""; }
.member-auth-scene h2 { margin: 8px 0; color: #fff; font-size: clamp(28px, 3.4vw, 46px); letter-spacing: -.035em; line-height: 1.07; }
.member-auth-scene p { margin: 0; color: #ecf6ff; }
.member-auth-scene > div > span { font-size: 13px; font-weight: 650; }
.member-auth-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.member-auth-steps li { padding: 4px 9px; border: 1px solid #b9d0e6; border-radius: 6px; font-size: 12px; }
.member-auth-steps [aria-current] { border-color: #fff; background: #fff; color: #163751; font-weight: 700; }

.member-auth-card {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 12px;
  padding: clamp(18px, 4vw, 40px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.member-auth-card h1 { margin: 2px 0; color: var(--guide-ink); font-size: clamp(25px, 3vw, 34px); letter-spacing: -.035em; }
.member-auth-card > p { margin: 0; color: var(--guide-muted); font-size: 14px; }
.member-auth-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 9px; background: #edf3f8; }
.member-auth-nav a { display: grid; min-height: 44px; place-items: center; border-radius: 7px; color: var(--guide-ink); }
.member-auth-nav [aria-current] { background: var(--guide-paper); color: var(--guide-primary); box-shadow: 0 1px 4px #102b4430; }
:is(.member-auth-card, .member-dashboard-side) form,
:is(.member-choices, .member-profile-form) { max-width: none; margin: 0; padding: 0; border: 0; background: transparent; }
.member-auth-card form { gap: 8px; }
.member-auth-card form > .member-primary { width: 100%; margin-top: 8px; }
.member-auth-card label { font-size: 14px; }
.member-password-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 8px; margin-top: 7px; }
.member-password-label a, .member-auth-back { font-size: 13px; }
.member-password { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.member-password:has([hidden]) { grid-template-columns: 1fr; }
.member-password button { min-width: 72px; min-height: 44px; border: 1px solid var(--member-border); background: #f2f6fa; color: var(--guide-primary); font-size: 13px; }
.member-consents { display: grid; gap: 5px; margin-top: 4px; }
.member-consents > div { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; align-items: start; padding-block: 4px; }
.member-consents label { display: inline; cursor: pointer; font-size: 13px; font-weight: 550; }
.member-consents a { display: inline-block; margin-left: 3px; font-size: 13px; text-decoration: underline; }
.member-consents input, .member-area-grid input, .member-choice input { width: 18px; height: 18px; margin: 1px 0; accent-color: var(--member-green); }

.member-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 14px 0 20px;
  padding: 0;
  list-style: none;
}

.member-steps li {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--member-border);
  border-radius: 9px;
  background: var(--guide-paper);
  color: var(--guide-muted);
  font-size: clamp(12px, 1.5vw, 14px);
  font-weight: 650;
  text-align: center;
}

.member-steps li > span { display: grid; width: 25px; height: 25px; flex-shrink: 0; place-items: center; border-radius: 50%; background: #edf4f9; color: #31516d; }
.member-steps [aria-current] { border-color: #9bc8b1; background: var(--member-soft); color: var(--member-green); }
.member-steps [aria-current] > span { background: var(--member-green); color: #fff; }
.member-choices fieldset, .member-area-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.member-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.member-choice {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--member-border);
  border-radius: 14px;
  background: var(--guide-paper);
  cursor: pointer;
  box-shadow: 0 3px 12px #1739570d;
}
.member-choice:has(:checked) { border-color: var(--member-green); outline: 2px solid var(--member-green); outline-offset: -2px; background: var(--member-soft); }
.member-choice:focus-within { outline: 3px solid #ad5300; outline-offset: 2px; }
.member-choice:has(:disabled) { cursor: default; background: #ecf2f7; }
.member-choice input { position: absolute; z-index: 1; top: 12px; right: 12px; margin: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #fff; }
.member-choice-photo { display: grid; aspect-ratio: 16 / 7; min-width: 0; overflow: hidden; background: #e2edf4; }
.member-choice-photo-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
.member-choice-photo img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.member-choice-copy { display: grid; gap: 3px; padding: var(--member-padding); color: var(--guide-muted); font-size: 14px; font-weight: 450; }
.member-choice-copy strong { color: var(--guide-ink); font-size: clamp(17px, 1.6vw, 22px); line-height: 1.22; }
.member-choice-copy small { color: var(--member-green); font-weight: 700; }

.member-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.member-form-actions a { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; }
.member-choices .member-form-actions { margin-top: 4px; }
.member-existing h2, .member-existing p { margin: 0 0 6px; }

.member-profile-form {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  align-content: start;
}

.member-profile-form > .member-form-actions { grid-column: 1 / -1; }
.member-form-fields, .member-profile-aside { display: grid; min-width: 0; gap: 12px; }
.member-form-section { display: grid; gap: 12px; }
.member-form-section h2, .member-profile-aside h2 { margin: 0; font-size: 17px; line-height: 1.35; }
.member-form-section h2 span { display: inline-grid; width: 25px; height: 25px; place-items: center; margin-right: 4px; border-radius: 7px; background: var(--member-soft); color: var(--member-green); font-size: 13px; }
.member-fields-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; align-items: end; }
.member-profile-form label { min-width: 0; font-size: 14px; }
.member-optional, .member-form-section small, .member-area-picker small, .member-auth-card form > small { color: var(--guide-muted); font-weight: 450; }

:is(.member-auth-card, .member-profile-form) :is(input:not([type="checkbox"],[type="hidden"]), select, textarea) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #aebfce;
  background: #fff;
  color: var(--guide-ink);
  font-size: 16px;
}

.member-profile-form input:disabled, .member-profile-form select:disabled { background: #f0f4f7; color: var(--guide-muted); }
.member-profile-form textarea { min-height: 106px; resize: vertical; }
.member-coordinates { padding-top: 8px; border-top: 1px solid var(--member-border); }
.member-coordinates summary { display: list-item; min-height: 42px; align-content: center; color: var(--guide-primary); font-size: 14px; font-weight: 650; cursor: pointer; }
.member-coordinates > small { display: block; margin-top: 7px; }
.member-area-picker legend { margin-bottom: 5px; color: var(--guide-ink); font-size: 14px; font-weight: 650; }
.member-area-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.member-area-grid label { display: flex; min-height: 44px; align-items: center; gap: 6px; padding: 5px 7px; border: 1px solid var(--member-border); border-radius: 7px; cursor: pointer; overflow-wrap: anywhere; font-size: 13px; font-weight: 550; }
.member-area-grid label:has(:checked) { border-color: #9bc8b1; background: var(--member-soft); color: var(--member-green); }
.member-area-grid input { flex: 0 0 18px; }

.member-preview header, .member-dashboard-heading { display: flex; gap: 8px 12px; padding: 0; border: 0; background: transparent; }
.member-preview figure { margin: 12px 0 0; }
.member-preview-photo {
  display: grid;
  aspect-ratio: 16 / 8;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(135deg, #e4f1fa, #ecf6ef);
  color: #426078;
  font-size: 13px;
}
.member-preview-photo img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.member-preview figcaption { margin-top: 11px; overflow-wrap: anywhere; }
.member-preview h3 { margin: 0 0 3px; font-size: 20px; line-height: 1.22; }
.member-preview p { margin: 4px 0 0; color: var(--guide-muted); font-size: 14px; }
.member-preview .member-profile-description { margin-top: 10px; color: var(--guide-ink); white-space: pre-wrap; }
.member-profile-form:not(.member-profile-confirm) .member-profile-description { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.member-preview-cover { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 9px; margin-bottom: 9px; }
.member-preview-cover:not([hidden]) { display: block; }
.member-preview figure:has(.member-preview-cover:not([hidden])) .member-preview-photo {
  position: relative;
  width: clamp(68px, 27%, 106px);
  margin: -33px 0 0 10px;
  aspect-ratio: 1;
  border: 3px solid var(--guide-paper);
  box-shadow: 0 2px 8px #17395729;
}
.member-photo-inputs > div { display: grid; min-width: 0; align-content: start; gap: 5px; }
.member-profile-form .member-photo-remove { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; }
.member-photo-remove input { width: 16px; height: 16px; margin: 0; accent-color: #185e46; }
.member-profile-help details > summary { cursor: pointer; font-size: 14px; font-weight: 650; color: var(--guide-primary); }
.member-profile-help details > button { margin-top: 7px; }
.member-map-picker { min-width: 0; --member-border: #d7e2ea; }
.member-map-controls:not([hidden]) { display: grid; gap: 8px; margin-top: 9px; }
.member-map-canvas { width: 100%; height: clamp(250px, 36vw, 350px); overflow: hidden; isolation: isolate; border: 1px solid #d7e2ea; border-radius: 9px; background: #edf3f6; }
.member-map-canvas a { color: #1255a5; }
.member-map-status { margin: 0; color: var(--guide-muted); font-size: 13px; }
.member-map-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.member-draft-list { display: grid; gap: 6px; margin-top: 12px; }
.member-draft-list a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: 8px; font-size: 14px; }
.member-draft-list a small { color: var(--guide-muted); }
.account-profile-media-preview { display: flex; flex-wrap: wrap; gap: 8px; }
.account-profile-media-preview img { width: min(180px, 100%); height: 100px; object-fit: cover; border-radius: 8px; }
.member-profile-help p, .member-review-summary dl { margin: 8px 0 0; color: var(--guide-muted); font-size: 14px; }
.member-review-summary dl > div + div { margin-top: 10px; }
.member-review-summary dt { font-weight: 700; }
.member-review-summary dd { margin: 0; color: var(--guide-ink); overflow-wrap: anywhere; }
.member-profile-confirm { grid-template-columns: minmax(0, 1fr); }
.member-profile-confirm .member-profile-aside { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; }
.member-profile-confirm .member-preview { grid-row: span 2; }

.member-dashboard-layout { display: grid; grid-template-columns: minmax(180px, .24fr) minmax(0, 1fr); gap: 16px; margin-top: 18px; align-items: start; }
.member-dashboard-content { display: grid; grid-column: 2; grid-row: 1; min-width: 0; gap: 18px; }
.member-dashboard-side { grid-column: 1; grid-row: 1; padding: 14px; }
.member-dashboard-side h2, .member-dashboard-heading h2 { margin: 0; font-size: 17px; line-height: 1.28; }
.member-dashboard-side nav { display: grid; gap: 3px; margin-top: 10px; }
.member-dashboard-side a { display: flex; min-height: 44px; align-items: center; padding: 7px 9px; border-radius: 7px; color: var(--guide-ink); font-weight: 550; }
.member-dashboard-side a:hover { background: #edf4f8; text-decoration: none; }
.member-dashboard-side form { margin-top: 12px; }
.member-dashboard-heading { flex-wrap: wrap; margin-bottom: 9px; }
.member-dashboard-heading > a { display: flex; min-height: 44px; align-items: center; font-size: 13px; white-space: normal; }
.member-dashboard-profiles, .member-dashboard-activity { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.member-dashboard-profile { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 11px; align-items: start; padding: 14px; }
.member-dashboard-photo { display: grid; aspect-ratio: 1; place-items: center; overflow: hidden; border-radius: 9px; background: var(--member-soft); color: var(--member-green); font-size: 29px; font-weight: 700; }
.member-dashboard-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-dashboard-profile small { color: var(--guide-muted); font-size: 13px; }
.member-dashboard-profile h3 { margin: 2px 0; overflow-wrap: anywhere; font-size: 18px; line-height: 1.2; }
.member-dashboard-profile p { margin: 0; color: var(--guide-muted); overflow-wrap: anywhere; font-size: 13px; }
.member-profile-status { display: inline-block; margin-top: 6px; padding: 2px 7px; border-radius: 5px; background: #fff1d5; color: #784218; font-size: 12px; font-weight: 650; }
.member-profile-status-live { background: var(--member-soft); color: var(--member-green); }
.member-dashboard-profile-actions { display: flex; flex-wrap: wrap; grid-column: 1 / -1; gap: 8px; }
.member-dashboard-profile-actions a, .member-profile-switcher a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--member-border);
  border-radius: 7px;
  background: #f2f7fa;
  font-size: 13px;
}
.member-profile-switcher { display: flex; width: auto; gap: 5px; padding: 0; }
.member-profile-switcher a[aria-current] { border-color: #a1cdb7; background: var(--member-soft); color: var(--member-green); }
.member-dashboard .account-kpi-grid { gap: 9px; margin: 0; }
.member-dashboard .account-kpi-grid > a { display: grid; min-height: 108px; align-content: start; gap: 2px; padding: 11px; }
.member-dashboard .account-kpi-grid small, .member-dashboard .account-kpi-grid span { font-size: 12px; line-height: 1.4; }
.member-dashboard .account-kpi-grid strong { font-size: 24px; line-height: 1.25; }
.member-dashboard-activity .member-surface { padding: 14px; }
.member-dashboard-empty { margin: 6px 0; color: var(--guide-muted); font-size: 14px; }
.member-activity-row { display: flex; min-width: 0; justify-content: space-between; align-items: start; gap: 8px; padding: 9px 0; border-top: 1px solid var(--member-border); overflow-wrap: anywhere; font-size: 14px; }
.member-activity-row small { display: block; color: var(--guide-muted); font-size: 12px; }
.member-activity-row p { margin: 3px 0; color: var(--guide-muted); font-size: 13px; }
.member-activity-row > span { flex-shrink: 0; font-size: 13px; font-weight: 650; }
.member-unread-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--guide-primary); }

@media (max-width: 1050px) {
  .member-area-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .member-dashboard .account-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .member-dashboard-layout, .member-profile-form { grid-template-columns: minmax(0, 1fr); }
  .member-dashboard-content, .member-dashboard-side { grid-column: auto; grid-row: auto; }
  .member-dashboard-side nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-profile-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

@media (max-width: 620px) {
  .member-banner { min-height: 132px; background-image: linear-gradient(90deg, #102b44, #102b44b5), url(media/ayvalik-kapak-mobil.webp); }
  .member-banner p { font-size: 14px; }
  .member-dashboard-banner { flex-direction: column; align-items: flex-start; gap: 13px; }
  .member-auth { grid-template-columns: minmax(0, 1fr); }
  .member-auth-scene { min-height: 165px; padding: 17px; }
  .member-auth-scene h2 { font-size: 25px; }
  .member-auth-scene p { font-size: 14px; }
  .member-auth-steps { margin-top: 9px; }
  .member-steps li { flex-direction: column; gap: 4px; min-height: 67px; padding: 5px 3px; }
  .member-steps li > span { width: 21px; height: 21px; }
  .member-choice-grid, .member-fields-row, .member-profile-aside,
  .member-profile-confirm .member-profile-aside, .member-dashboard-profiles,
  .member-dashboard-activity { grid-template-columns: minmax(0, 1fr); }
  .member-profile-confirm .member-profile-aside { grid-template-rows: auto; }
  .member-profile-confirm .member-preview { grid-row: auto; }
  .member-choice { grid-template-columns: minmax(64px, .31fr) minmax(0, 1fr); align-content: stretch; }
  .member-choice-photo { aspect-ratio: auto; height: 100%; }
  .member-choice-copy { padding: 12px 38px 12px 12px; }
  .member-choice-copy strong { font-size: 17px; }
  .member-choice-copy > span { font-size: 13px; }
  .member-area-grid, .member-dashboard .account-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-dashboard .account-kpi-grid > :last-child { grid-column: 1 / -1; }
}
