/* ═══════════════════════════════════════════════════════════
   PROFILE PAGE — /qrz/:callsign
   Hero banner (cover photo) + compact header (no cover) variants
   ═══════════════════════════════════════════════════════════ */

/* ── Hero Cover ── */
.profile-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 5;
  max-height: 340px;
  overflow: hidden;
  background: #1e293b;
}
.profile-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.82);
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}
.profile-hero__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent 0%, rgba(15,23,42,.78) 100%);
  padding: 48px 32px 24px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
}
.profile-hero__overlay--hidden {
  display: none;
}
.profile-hero__photo {
  width: 101px;
  height: 101px;
  border-radius: var(--r-sm);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  object-fit: cover;
  flex-shrink: 0;
}
.profile-hero__info {
  color: #fff;
  min-width: 0;
}
.profile-hero__callsign {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono, 'Inconsolata', monospace);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-hero__name {
  font-size: .88rem;
  opacity: .85;
  margin-top: 2px;
}
.profile-hero__address {
  font-size: .82rem;
  opacity: .7;
  margin-top: 2px;
}
.profile-hero__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.profile-hero__badge {
  background: rgba(255,255,255,.18);
  color: #fff;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.2);
  font-size: .72rem;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

/* ── Hero Owner Actions ── */
.profile-hero__owner-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.profile-hero__action-btn {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 6px 12px;
  font-size: .76rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  text-decoration: none;
  font-weight: 500;
}
.profile-hero__action-btn:hover {
  border-color: var(--pri);
  color: var(--pri);
  text-decoration: none;
}

.profile-hero__cover-menu {
  position: relative;
}
.profile-hero__cover-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  min-width: 180px;
  z-index: 10;
  padding: 4px 0;
}
.profile-hero__cover-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
  font-size: .82rem;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.profile-hero__cover-dropdown-item:hover {
  background: var(--surface, #f8f9fa);
  color: var(--pri);
}

/* ── Reposition Mode ── */
.profile-hero--repositioning {
  cursor: grab;
}
.profile-hero--repositioning .profile-hero__img {
  filter: brightness(1);
  cursor: grab;
}
.profile-hero--repositioning .profile-hero__overlay {
  opacity: 0.3;
  pointer-events: none;
}
.profile-hero__reposition-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(0,0,0,.7);
  color: #fff;
}
.profile-hero__reposition-hint {
  font-size: .82rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.profile-hero__reposition-actions {
  display: flex;
  gap: 8px;
}

/* ── Compact Header (no-cover / non-member) ── */
.profile-header-compact {
  position: relative;
  padding: 28px 19px 20px;
  background:
    linear-gradient(135deg, rgba(255,248,236,.98) 0%, rgba(236,253,245,.96) 44%, rgba(255,255,255,.98) 100%);
  border-bottom: 1px solid var(--border-light, #e2e8f0);
}
.profile-header-compact--minimal {
  padding: 14px 19px 0;
  background: none;
  border-bottom: none;
}
.profile-header-compact--minimal::before,
.profile-header-compact--minimal::after {
  display: none;
}
.profile-header-compact--minimal .profile-header-compact__owner-actions {
  position: static;
  justify-content: flex-end;
}
.profile-header-compact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(5,150,105,.04) 1px, transparent 1px),
    linear-gradient(rgba(5,150,105,.04) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .6;
  pointer-events: none;
}
.profile-header-compact::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
    rgba(255,255,255,.82) 0 18%,
    rgba(251,191,36,.18) 19%,
    rgba(251,191,36,0) 58%),
    radial-gradient(circle, rgba(16,185,129,.12) 0 36%, rgba(16,185,129,0) 68%);
  pointer-events: none;
}
.profile-header-compact__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}
.profile-header-compact__photo {
  width: 101px;
  height: 101px;
  border-radius: var(--r-sm);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  object-fit: cover;
  flex-shrink: 0;
}
.profile-header-compact__initials {
  width: 101px;
  height: 101px;
  border-radius: var(--r-sm);
  background: var(--page-bg);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-3);
  font-family: var(--font-mono, 'Inconsolata', monospace);
  flex-shrink: 0;
}
.profile-header-compact__info {
  min-width: 0;
  flex: 1;
}
.profile-header-compact__callsign {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-mono, 'Inconsolata', monospace);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text);
  line-height: 1.2;
}
.profile-header-compact__name {
  font-size: .85rem;
  color: var(--text-2);
  margin-top: 2px;
}
.profile-header-compact__address {
  font-size: .8rem;
  color: var(--text-3);
  margin-top: 2px;
}
.profile-header-compact__subtitle {
  font-size: .85rem;
  color: var(--text-2);
  margin-top: 2px;
}
.profile-header-compact__subtitle i {
  color: #b45309;
}
.profile-header-compact__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 5px;
}

/* ── Compact Header Owner Actions ── */
.profile-header-compact__owner-actions {
  position: absolute;
  top: 14px;
  right: 19px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.profile-header-compact__action-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 6px 12px;
  font-size: .76rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  text-decoration: none;
  font-weight: 500;
}
.profile-header-compact__action-btn:hover {
  border-color: var(--pri);
  color: var(--pri);
  text-decoration: none;
}

/* ── Flag ── */
.profile-flag {
  width: 26px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,.08);
  object-fit: cover;
}
.profile-flag--hero {
  border-color: rgba(255,255,255,.25);
}

/* ── Content Area ── */
.main-content:has([data-qrz-owner-view]),
.main-content:has(.qrz-profile-shell),
.main-content:has(.profile-header-compact) {
  padding: 0;
}
.profile-content {
  padding: 24px;
  width: 100%;
}

/* ── CTA Row ── */
.profile-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-bottom: 20px;
}

/* ── Skeleton Placeholders (empty-state hints) ── */
.profile-skeletons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
  pointer-events: none;
  user-select: none;
}
.profile-skeleton {
  position: relative;
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  background: var(--card-bg, #fff);
  opacity: .55;
}
.profile-skeleton__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: auto;
}
.profile-skeleton__empty span {
  background: rgba(255,255,255,.88);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: .01em;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.profile-skeleton__empty a {
  color: var(--pri);
  text-decoration: none;
  font-weight: 600;
}
.profile-skeleton__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
/* Stats skeleton */
.profile-skeleton--stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
}
.profile-skeleton__bar {
  height: 48px;
  border-radius: 8px;
  background: var(--border);
}
/* Heatmap skeleton */
.profile-skeleton--heatmap .profile-skeleton__grid {
  display: flex;
  gap: 2px;
}
.profile-skeleton__col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.profile-skeleton__cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--border);
  opacity: .4;
}
.profile-skeleton__col:nth-child(3n) .profile-skeleton__cell:nth-child(odd) { opacity: .6; }
.profile-skeleton__col:nth-child(5n) .profile-skeleton__cell:nth-child(even) { opacity: .55; }
/* Gallery skeleton */
.profile-skeleton--gallery .profile-skeleton__photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.profile-skeleton__photo {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: var(--border);
}
/* Map skeleton */
.profile-skeleton__map-area {
  height: 180px;
  border-radius: 8px;
  background: var(--border);
}

/* ── Stats Bar ── */
.profile-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.profile-stats-bar--3col {
  grid-template-columns: repeat(3, 1fr);
}

/* ── Band / Mode Chips ── */
.profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.profile-chip {
  padding: 3px 9px;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  background: #dbeafe;
  color: #1e40af;
}
.profile-chip--band {
  background: #dbeafe;
  color: #1e40af;
}
.profile-chip--mode {
  background: var(--page-bg);
  color: var(--text-2);
  border: 1px solid var(--border);
}

/* ── Band Spectrum ── */
.profile-band-spectrum {
  margin-top: 14px;
}
.profile-band-spectrum__track {
  display: flex;
  gap: 2px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface, #f1f5f9);
  border: 1px solid var(--border-light, #e2e8f0);
}
.profile-band-spectrum__segment {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  background: var(--surface, #f1f5f9);
  transition: background .15s, color .15s;
}
.profile-band-spectrum__segment--active {
  background: var(--pri, #16a34a);
  color: #fff;
}
.profile-band-spectrum__label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--text-3, #94a3b8);
  text-align: center;
  line-height: 1;
}
.profile-band-spectrum__segment--active .profile-band-spectrum__label {
  color: #fff;
}
.profile-modes-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.profile-mode-tag {
  font-size: .74rem;
  font-weight: 600;
  color: var(--text-2);
  padding: 2px 0;
  border-bottom: 2px solid var(--pri, #16a34a);
}

/* ── Radio Dial Band Scale ── */
.profile-dial {
  margin-top: 16px;
}
.profile-dial__track {
  display: flex;
  align-items: flex-end;
  position: relative;
  border-bottom: 2px solid var(--border, #e2e8f0);
  padding-bottom: 0;
}
.profile-dial__band {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-bottom: 6px;
}
.profile-dial__tick {
  width: 2px;
  height: 10px;
  background: var(--text-4, #cbd5e1);
  border-radius: 1px;
  transition: background .15s, height .15s;
}
.profile-dial__band--active .profile-dial__tick {
  height: 18px;
  background: var(--pri, #16a34a);
}
.profile-dial__label {
  font-size: .62rem;
  font-weight: 600;
  color: var(--text-4, #94a3b8);
  letter-spacing: .2px;
  white-space: nowrap;
  transition: color .15s;
}
.profile-dial__band--active .profile-dial__label {
  color: var(--pri, #16a34a);
  font-weight: 700;
}

/* ── Activity Heatmap (GitHub-style) ── */
.profile-heatmap {
  margin-top: 16px;
  overflow-x: auto;
}
.profile-heatmap__months {
  display: flex;
  gap: 3px;
  margin-bottom: 4px;
  margin-left: 32px;
  font-size: .65rem;
  color: var(--text-3, #94a3b8);
  font-weight: 500;
}
.profile-heatmap__month {
  flex: 1;
  text-align: left;
}
.profile-heatmap__body {
  display: flex;
  gap: 0;
}
.profile-heatmap__days {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  flex-shrink: 0;
  padding: 0;
}
.profile-heatmap__day-label {
  font-size: .6rem;
  color: var(--text-3, #94a3b8);
  height: calc((100% - 6 * 3px) / 7);
  display: flex;
  align-items: center;
}
.profile-heatmap__grid {
  display: flex;
  gap: 3px;
  flex: 1;
}
.profile-heatmap__col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.profile-heatmap__cell {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 2px;
  background: #ebedf0;
}
.profile-heatmap__cell--empty {
  background: transparent;
}
.profile-heatmap__cell--L0 {
  background: #ebedf0;
}
.profile-heatmap__cell--L1 {
  background: #9be9a8;
}
.profile-heatmap__cell--L2 {
  background: #40c463;
}
.profile-heatmap__cell--L3 {
  background: #30a14e;
}
.profile-heatmap__cell--L4 {
  background: #216e39;
}

/* ── Not-found shell ── */
.qrz-profile-shell__not-found {
  text-align: center;
  padding: 32px 16px 24px;
}
.qrz-profile-shell__callsign {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--text);
  margin-bottom: 8px;
}
.qrz-profile-shell__search-panel {
  margin-top: 24px;
}

/* ── Sparkline ── */
.profile-sparkline {
  margin-top: 14px;
}
.profile-sparkline__label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 6px;
}
.profile-sparkline__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 32px;
}
.profile-sparkline__bar {
  flex: 1;
  background: var(--pri);
  border-radius: 2px 2px 0 0;
  min-width: 4px;
  transition: opacity .15s;
}
.profile-sparkline__bar:hover {
  opacity: .75;
}
.profile-sparkline__bar--spot {
  background: #b45309;
  opacity: .75;
}
.profile-sparkline__bar--spot:hover {
  opacity: 1;
}
.profile-sparkline__bar--empty {
  background: var(--border-light, #e2e8f0);
  opacity: .4;
}
.profile-sparkline__bar--empty:hover {
  opacity: .6;
}
.profile-sparkline__dates {
  display: flex;
  justify-content: space-between;
  font-size: .68rem;
  color: var(--text-3);
  margin-top: 4px;
}

/* ── Meta Row ── */
.profile-meta-row {
  display: flex;
  gap: 14px 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light, #e2e8f0);
}
.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--text-2);
}
.profile-meta-item i {
  color: var(--text-3);
  font-size: .9rem;
}

/* ── DXCC Entity Grid ── */
.profile-dxcc__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.profile-dxcc__entity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: .76rem;
  color: var(--text-2);
  background: var(--surface);
}
.profile-dxcc__entity[hidden] { display: none; }
.profile-dxcc__flag {
  width: 16px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,.06);
}
.profile-dxcc__entity img {
  width: 16px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,.06);
}
.profile-dxcc__more {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--pri);
  border-radius: 4px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--pri);
  background: transparent;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.profile-dxcc__more:hover {
  background: var(--pri);
  color: #fff;
}

/* ── Claim Banner (non-member CTA) ── */
.profile-claim-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 20px;
}
.profile-claim-banner__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(5,150,105,.08);
  color: var(--pri);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.profile-claim-banner__text {
  font-size: .85rem;
  color: var(--text-2);
  flex: 1;
}
.profile-claim-banner__text strong {
  color: var(--text);
}

/* ── Onboarding Prompt (empty member state) ── */
.profile-onboarding {
  border: 2px dashed var(--border);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 20px;
}
.profile-onboarding__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(5,150,105,.08);
  color: var(--pri);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.profile-onboarding__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.profile-onboarding__desc {
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.profile-onboarding__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}
.profile-onboarding__step {
  padding: 14px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  text-align: center;
}
.profile-onboarding__step i {
  font-size: 1.2rem;
  color: var(--pri);
  display: block;
  margin-bottom: 6px;
}
.profile-onboarding__step span {
  font-size: .78rem;
  color: var(--text-2);
  font-weight: 500;
}

/* ── Empty Panel Placeholder ── */
.profile-panel-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-3);
  font-size: .85rem;
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 20px;
}
.profile-panel-empty i {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 8px;
  opacity: .5;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .profile-hero {
    aspect-ratio: 16 / 8;
    max-height: 240px;
  }
  .profile-hero__overlay {
    padding: 24px 16px 16px;
    gap: 12px;
  }
  .profile-hero__photo {
    width: 72px;
    height: 72px;
  }
  .profile-hero__callsign {
    font-size: 1.5rem;
  }
  .profile-header-compact {
    padding: 20px 16px 16px;
  }
  .profile-header-compact__photo,
  .profile-header-compact__initials {
    width: 72px;
    height: 72px;
  }
  .profile-header-compact__initials {
    font-size: 1.3rem;
  }
  .profile-header-compact__callsign {
    font-size: 1.4rem;
  }
  .profile-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .profile-stats-bar--3col {
    grid-template-columns: repeat(3, 1fr);
  }
  .profile-claim-banner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .profile-onboarding__steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .profile-hero {
    aspect-ratio: 16 / 10;
    max-height: 200px;
  }
  .profile-hero__photo {
    width: 56px;
    height: 56px;
  }
  .profile-hero__callsign {
    font-size: 1.3rem;
  }
  .profile-hero__name {
    font-size: .78rem;
  }
  .profile-hero__owner-actions .profile-hero__action-btn span {
    display: none;
  }
  .profile-hero__owner-actions .profile-hero__action-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  .profile-header-compact__photo,
  .profile-header-compact__initials {
    width: 56px;
    height: 56px;
  }
  .profile-header-compact__initials {
    font-size: 1.1rem;
  }
  .profile-header-compact__callsign {
    font-size: 1.2rem;
  }
  .profile-header-compact__owner-actions .profile-header-compact__action-btn span {
    display: none;
  }
  .profile-header-compact__owner-actions .profile-header-compact__action-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  .profile-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .profile-stats-bar--3col {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .profile-content {
    padding: 16px;
  }
}

/* ── Cover Photo Editor ── */
.qrz-profile-editor__cover-photo {
  padding: 12px 0 8px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}
.qrz-profile-editor__cover-preview-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.qrz-profile-editor__cover-thumb {
  width: 200px;
  height: 67px;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--border);
}
.qrz-profile-editor__cover-placeholder {
  width: 200px;
  height: 67px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--r);
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 13px;
}
.qrz-profile-editor__cover-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.qrz-profile-editor__cover-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.qrz-profile-editor__cover-status {
  margin-top: 6px;
  font-size: 13px;
}

/* ── Gallery Editor in Edit Panel ── */
.qrz-profile-editor__gallery {
  padding: 12px 0 8px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}

/* ── Profile Preview Modal ── */
.profile-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.profile-preview-modal[hidden] { display: none; }
.profile-preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  cursor: pointer;
}
.profile-preview-modal__container {
  position: relative;
  width: 100%;
  max-width: 960px;
  height: 85vh;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.profile-preview-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.profile-preview-modal__title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-preview-modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 1rem;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.profile-preview-modal__close:hover {
  background: var(--hover);
  color: var(--text);
}
.profile-preview-modal__body {
  flex: 1;
  overflow: hidden;
}
.profile-preview-modal__iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: var(--page-bg);
}
@media (max-width: 768px) {
  .profile-preview-modal { padding: 8px; }
  .profile-preview-modal__container { height: 90vh; border-radius: var(--r); }
}

/* ── Template Selector in Edit Panel ── */
.qrz-profile-editor__template-section {
  padding: 16px 0 8px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}
.qrz-profile-editor__template-section .template-selector__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.qrz-profile-editor__template-section .template-selector__option {
  position: relative;
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  background: var(--surface);
}
.qrz-profile-editor__template-section .template-selector__option:hover {
  border-color: var(--pri);
  box-shadow: 0 4px 12px rgba(5,150,105,.12);
}
.qrz-profile-editor__template-section .template-selector__option.is-selected {
  border-color: var(--pri);
  box-shadow: 0 0 0 3px rgba(5,150,105,.15);
}
.qrz-profile-editor__template-section .template-selector__option.is-selected .template-selector__check {
  display: flex;
}
.qrz-profile-editor__template-section .template-selector__option.is-locked {
  opacity: .5;
  cursor: not-allowed;
}
.qrz-profile-editor__template-section .template-selector__check {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pri);
  color: #fff;
  font-size: .7rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(5,150,105,.3);
}
.qrz-profile-editor__template-section .template-selector__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--page-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-light, #e2e8f0);
}
.qrz-profile-editor__template-section .template-selector__wireframe {
  width: 80%;
  height: 80%;
  opacity: .55;
}
.qrz-profile-editor__template-section .template-selector__name {
  padding: 8px 12px 2px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-1);
}
.qrz-profile-editor__template-section .template-selector__desc {
  padding: 0 12px 10px;
  font-size: .7rem;
  color: var(--text-3);
  line-height: 1.4;
}
.qrz-profile-editor__template-section .template-selector__locked-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.qrz-profile-editor__template-section .template-selector__preview-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  border-radius: var(--r-sm);
  border: none;
  background: var(--surface);
  color: var(--text-2);
  font-size: .68rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  background: var(--pri);
  color: #fff;
  opacity: 1;
  transition: background .15s, color .15s;
}
.qrz-profile-editor__template-section .template-selector__preview-btn:hover {
  background: var(--pri-dark, var(--pri));
  filter: brightness(.9);
}
.qrz-profile-editor__template-section .template-selector__status {
  margin-top: 12px;
  font-size: .84rem;
}

/* ── Upgrade CTA in Edit Panel ── */
.qrz-profile-editor__upgrade-cta {
  padding: 20px 24px;
  border: 1px solid #fcd34d;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(255,252,235,.98), rgba(236,253,245,.96));
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.qrz-profile-editor__upgrade-cta .upgrade-cta__icon {
  font-size: 2rem;
  color: #f59e0b;
  flex-shrink: 0;
}
.qrz-profile-editor__upgrade-cta .upgrade-cta__text {
  flex: 1;
  min-width: 200px;
}
.qrz-profile-editor__upgrade-cta .upgrade-cta__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}
.qrz-profile-editor__upgrade-cta .upgrade-cta__desc {
  font-size: .84rem;
  color: var(--text-2);
  line-height: 1.5;
}
@media (max-width: 960px) {
  .qrz-profile-editor__template-section .template-selector__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .qrz-profile-editor__upgrade-cta {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }
}

/* ═══════════════════════════════════════════════════════════
   GALLERY EDITOR — Masonry Grid + Drag Reorder
   Mobile-first: 2 columns base, 3 on tablet+
   ═══════════════════════════════════════════════════════════ */
.gallery-editor {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (min-width: 576px) { .gallery-editor { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px) { .gallery-editor { grid-template-columns: repeat(5, 1fr); } }

.gallery-editor__item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform .15s, box-shadow .15s, opacity .2s;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.gallery-editor__item:active { cursor: grabbing; }
.gallery-editor__item--dragging {
  opacity: 0.5;
  transform: scale(0.95);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.gallery-editor__item--ghost {
  opacity: 0.8;
  border: 2px solid var(--pri);
  border-radius: 8px;
  overflow: hidden;
}
.gallery-editor__item--uploading {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.gallery-editor__shimmer {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--surface) 25%, var(--page-bg) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.gallery-editor__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.gallery-editor__drag-handle {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(0,0,0,.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: grab;
  z-index: 2;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 768px) {
  .gallery-editor__drag-handle {
    opacity: 0;
    transition: opacity .15s;
  }
  .gallery-editor__item:hover .gallery-editor__drag-handle { opacity: 1; }
}
.gallery-editor__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(220,38,38,.85);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 768px) {
  .gallery-editor__remove {
    opacity: 0;
    transition: opacity .15s;
  }
  .gallery-editor__item:hover .gallery-editor__remove { opacity: 1; }
}
.gallery-editor__add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 1 / 1;
  border: 2px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  min-height: 100px;
  transition: border-color .15s, color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.gallery-editor__add:hover,
.gallery-editor__add:active {
  border-color: var(--pri);
  color: var(--pri);
  background: rgba(5,150,105,.03);
}
.gallery-editor__add i { font-size: 28px; }
.gallery-editor__status { margin-top: 8px; font-size: 13px; }

/* ═══════════════════════════════════════════════════════════
   GALLERY VIEW — Horizontal Carousel (mobile-first)
   ═══════════════════════════════════════════════════════════ */
.gallery-view__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.gallery-view__count { font-size: .76rem; color: var(--text-3); }

.gallery-view {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.gallery-view__track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
  scrollbar-width: none;
}
.gallery-view__track::-webkit-scrollbar { display: none; }
.gallery-view__item {
  flex: 0 0 70vw;
  max-width: 260px;
  scroll-snap-align: start;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 576px) { .gallery-view__item { flex: 0 0 220px; } }
@media (min-width: 768px) { .gallery-view__item { flex: 0 0 240px; } }
.gallery-view__item:hover { transform: scale(1.02); }
.gallery-view__item:active { transform: scale(0.98); }
.gallery-view__item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
@media (min-width: 576px) { .gallery-view__item img { height: 160px; } }

.gallery-view__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  display: none; /* hidden on mobile — swipe is primary */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-1);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 768px) {
  .gallery-view__nav { display: flex; }
}
.gallery-view__nav--prev { left: 8px; }
.gallery-view__nav--next { right: 8px; }

/* ═══════════════════════════════════════════════════════════
   LIGHTBOX — Full-screen with prev/next + swipe
   ═══════════════════════════════════════════════════════════ */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.92);
}
.gallery-lightbox__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 60px 16px 80px;
}
@media (min-width: 768px) {
  .gallery-lightbox__content { padding: 60px 80px 80px; }
}
.gallery-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  user-select: none;
  -webkit-user-select: none;
}
.gallery-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.gallery-lightbox__close:hover { background: rgba(255,255,255,.25); }

.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  display: none; /* swipe on mobile */
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 768px) {
  .gallery-lightbox__nav { display: flex; }
}
.gallery-lightbox__nav:hover { background: rgba(255,255,255,.25); }
.gallery-lightbox__nav--prev { left: 12px; }
.gallery-lightbox__nav--next { right: 12px; }

.gallery-lightbox__footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 16px;
  text-align: center;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
}
.gallery-lightbox__counter {
  display: block;
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 4px;
}
.gallery-lightbox__caption {
  color: #fff;
  font-size: .88rem;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

/* ═══════════════════════════════════════════════════════════
   EQUIPMENT
   ═══════════════════════════════════════════════════════════ */
.profile-equipment__list { display: grid; gap: 8px; }
.profile-equipment__item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--surface);
}
.profile-equipment__icon {
  width: 36px; height: 36px; border-radius: 6px; background: rgba(5,150,105,.08);
  color: var(--pri); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.profile-equipment__name { font-weight: 600; font-size: .88rem; }
.profile-equipment__detail { font-size: .78rem; color: var(--text-2); }

/* ═══════════════════════════════════════════════════════════
   BAND CHIP COLORS
   ═══════════════════════════════════════════════════════════ */
.profile-chip--160m { background: #f3e8ff; color: #6b21a8; }
.profile-chip--80m  { background: #fee2e2; color: #991b1b; }
.profile-chip--60m  { background: #ffedd5; color: #9a3412; }
.profile-chip--40m  { background: #fef3c7; color: #92400e; }
.profile-chip--30m  { background: #ecfccb; color: #3f6212; }
.profile-chip--20m  { background: #dbeafe; color: #1e40af; }
.profile-chip--17m  { background: #e0e7ff; color: #3730a3; }
.profile-chip--15m  { background: #d1fae5; color: #065f46; }
.profile-chip--12m  { background: #cffafe; color: #155e75; }
.profile-chip--10m  { background: #ede9fe; color: #5b21b6; }
.profile-chip--6m   { background: #fce7f3; color: #9d174d; }
.profile-chip--2m   { background: #fce7f3; color: #9d174d; }
.profile-chip--70cm { background: #f0fdf4; color: #166534; }

/* ═══════════════════════════════════════════════════════════
   TEMPLATE VARIATIONS
   Driven by data-profile-template attribute on [data-qrz-owner-view]
   ═══════════════════════════════════════════════════════════ */

/* ── Classic with Gallery ── */
/* Masonry-style photo grid — auto-balances columns based on available width */
.profile-classic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
  width: 100%;
}
@media (max-width: 600px) {
  .profile-classic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.profile-classic-grid__item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r-sm, 6px);
  cursor: pointer;
  background: var(--bg-3, #e2e8f0);
}
.profile-classic-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s ease;
}
.profile-classic-grid__item:hover img {
  transform: scale(1.05);
}

/* ── Stations Section (compact cards) ── */
.profile-stations {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
  scrollbar-width: none;
}
.profile-stations::-webkit-scrollbar { display: none; }
.profile-stations__card {
  flex: 0 0 auto;
  min-width: 200px;
  max-width: 260px;
  background: var(--bg-2, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--r-sm, 6px);
  padding: 14px 16px;
  scroll-snap-align: start;
}
.profile-stations__callsign {
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 8px;
  color: var(--text-1, #1e293b);
}
.profile-stations__callsign i {
  color: var(--accent, #059669);
  margin-right: 4px;
}
.profile-stations__field {
  font-size: .82rem;
  color: var(--text-2, #64748b);
  line-height: 1.7;
}
.profile-stations__label {
  font-weight: 600;
  color: var(--text-1, #334155);
  display: inline-block;
  min-width: 42px;
}

/* ── Two-Column vCard ── */
[data-profile-template="two-column"] .profile-hero {
  aspect-ratio: 16 / 3;
  max-height: 180px;
}
[data-profile-template="two-column"] .profile-hero__overlay {
  padding: 24px 32px 16px;
}

/* ── Magazine Grid: Gallery Mosaic Hero ── */
.profile-magazine-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-lg, 12px) var(--r-lg, 12px) 0 0;
}
.profile-magazine-hero__owner-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}
.profile-magazine-hero__mosaic {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 220px;
  max-height: 340px;
}
.profile-magazine-hero__mosaic--1 {
  grid-template-columns: 1fr;
}
.profile-magazine-hero__mosaic--2 {
  grid-template-columns: 1fr 1fr;
}
.profile-magazine-hero__mosaic--3 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.profile-magazine-hero__mosaic--3 .profile-magazine-hero__tile:first-child {
  grid-row: 1 / -1;
}
.profile-magazine-hero__mosaic--4 {
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.profile-magazine-hero__mosaic--4 .profile-magazine-hero__tile:first-child {
  grid-row: 1 / -1;
}
.profile-magazine-hero__mosaic--5 {
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.profile-magazine-hero__mosaic--5 .profile-magazine-hero__tile:first-child {
  grid-row: 1 / -1;
}
.profile-magazine-hero__tile {
  overflow: hidden;
  min-height: 0;
  cursor: pointer;
}
.profile-magazine-hero__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-magazine-hero__empty {
  min-height: 160px;
  background: linear-gradient(135deg, var(--bg-2, #f1f5f9) 0%, var(--bg-3, #e2e8f0) 100%);
}
.profile-magazine-hero__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 60px 24px 20px;
  background: linear-gradient(transparent 0%, rgba(15, 23, 42, 0.85) 100%);
  pointer-events: none;
}
.profile-magazine-hero__photo {
  width: 101px;
  height: 101px;
  border-radius: var(--r-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.profile-magazine-hero__info {
  color: #fff;
  min-width: 0;
}
.profile-magazine-hero__callsign {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-magazine-hero__name {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 2px;
}
.profile-magazine-hero__address {
  font-size: 0.82rem;
  opacity: 0.7;
  margin-top: 2px;
}
.profile-magazine-hero__badges {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.profile-magazine-hero__badge {
  font-size: 0.75rem;
  background: rgba(255,255,255,0.15);
  padding: 2px 8px;
  border-radius: var(--r-sm, 6px);
  backdrop-filter: blur(4px);
}
@media (max-width: 600px) {
  .profile-magazine-hero__mosaic { max-height: 220px; min-height: 160px; }
  .profile-magazine-hero__callsign { font-size: 1.3rem; }
  .profile-magazine-hero__overlay { padding: 40px 16px 14px; gap: 12px; }
  .profile-magazine-hero__photo { width: 60px; height: 60px; }
}

/* ── Minimal Focus ── */
[data-profile-template="minimal"] .profile-hero,
[data-profile-template="two-column"] .profile-hero,
[data-profile-template="magazine"] .profile-hero,
[data-profile-template="classic"] .profile-hero {
  display: none;
}
[data-profile-template="minimal"] .profile-hero__overlay {
  position: relative;
  background: none;
  justify-content: center;
  padding: 32px 16px 16px;
}
[data-profile-template="minimal"] .profile-hero__info {
  color: var(--text-1);
  text-align: center;
}
[data-profile-template="minimal"] .profile-hero__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}
[data-profile-template="minimal"] .profile-hero__callsign {
  font-size: 1.6rem;
}
[data-profile-template="minimal"] .profile-hero__badges {
  justify-content: center;
}
[data-profile-template="minimal"] .profile-hero__badge {
  background: var(--surface);
  color: var(--text-2);
}
[data-profile-template="minimal"] .profile-stats-bar {
  justify-content: center;
}
[data-profile-template="minimal"] .profile-cta-row {
  justify-content: center;
}

/* ── Two-Column Sidebar (structural) ── */
.profile-content--two-column {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px;
}
.profile-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
}
.profile-sidebar .profile-stats-bar {
  grid-template-columns: repeat(2, 1fr);
}
.profile-sidebar__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r);
  margin-bottom: 12px;
}
.profile-sidebar__callsign {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-mono, 'Inconsolata', monospace);
}
.profile-sidebar__name {
  font-size: .9rem;
  color: var(--text-2);
  margin-top: 2px;
}
.profile-sidebar__address {
  font-size: .82rem;
  color: var(--text-3);
  margin-top: 4px;
}
.profile-sidebar__qth,
.profile-sidebar__country {
  font-size: .82rem;
  color: var(--text-3);
  margin-top: 4px;
}
.profile-main {
  min-width: 0;
}
@media (max-width: 768px) {
  .profile-content--two-column {
    grid-template-columns: 1fr;
  }
  .profile-sidebar {
    position: static;
  }
}

/* ── Classic Template ── */
.profile-content--classic {
  max-width: none;
}

/* ── Magazine Template ── */
.profile-content--magazine {
  max-width: 960px;
  margin: 0 auto;
}

/* ── Minimal Header (structural) ── */
.profile-minimal-header {
  text-align: center;
  padding: 40px 16px 24px;
}
.profile-minimal-header__photo-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto 12px;
}
.profile-minimal-header__photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.profile-minimal-header__photo-flag {
  position: absolute;
  bottom: 2px;
  right: -2px;
  width: 24px;
  height: 17px;
  border-radius: 3px;
  border: 2px solid #fff;
  object-fit: cover;
}
.profile-minimal-header__callsign {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-mono, 'Inconsolata', monospace);
}
.profile-minimal-header__name {
  font-size: .95rem;
  color: var(--text-2);
  margin-top: 4px;
}
.profile-minimal-header__country {
  font-size: .84rem;
  color: var(--text-3);
  margin-top: 4px;
}
.profile-minimal-header__badges {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.profile-minimal-header__address {
  margin-top: 4px;
  color: var(--text-3);
  font-size: .85rem;
}
.profile-content--minimal {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.profile-content--minimal .panel {
  text-align: left;
}
