/* ============================================
   AUTH STYLES — Signal/Noise Authentication
   ============================================ */

/* ── Nav Auth Area ── */
.nav-auth-area {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-login-btn {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 6px 16px;
  transition: all 0.15s;
  text-decoration: none;
}
.nav-login-btn:hover {
  background: var(--accent);
  color: var(--black) !important;
}

/* ── Avatar Button ── */
.nav-profile-wrap {
  position: relative;
}

.nav-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-mid);
  background: var(--dark);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.15s;
}
.nav-avatar-btn:hover {
  border-color: var(--accent);
}

.nav-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.nav-avatar-initials {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
}

/* ── Profile Dropdown ── */
.nav-profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--near-black);
  border: 1px solid var(--border);
  min-width: 220px;
  z-index: 200;
}
.nav-profile-dropdown.open {
  display: block;
}

.npd-header {
  padding: 14px 16px;
}
.npd-name {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}
.npd-email {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.3px;
}
.npd-divider {
  height: 1px;
  background: var(--border);
}
.npd-item {
  display: block;
  padding: 10px 16px;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--mid);
  text-decoration: none;
  transition: all 0.12s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.npd-item:hover {
  background: var(--dark);
  color: var(--white);
}
.npd-logout {
  color: var(--accent);
}
.npd-logout:hover {
  background: var(--accent);
  color: var(--black);
}

/* ── Notification Bell ── */
.notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.notif-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  padding: 0 4px;
}

/* ── Notification Panel ── */
.notif-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--black);
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  min-width: 320px;
  max-width: 380px;
  max-height: 420px;
  z-index: 250;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  overflow: hidden;
}
.notif-panel.open {
  display: flex;
  flex-direction: column;
}
.notif-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.notif-panel-title {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.notif-mark-all {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.65rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}
.notif-mark-all:hover {
  background: var(--accent-glow);
}
.notif-panel-body {
  overflow-y: auto;
  flex: 1;
  max-height: 360px;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-item:hover {
  background: var(--dark);
}
.notif-unread {
  background: rgba(232, 64, 28, 0.06);
  border-left: 2px solid var(--accent);
}
.notif-read {
  opacity: 0.65;
  border-left: 2px solid transparent;
}
.notif-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.notif-content {
  flex: 1;
  min-width: 0;
}
.notif-msg {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--white);
  line-height: 1.35;
}
.notif-time {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 3px;
}
.notif-empty,
.notif-loading {
  padding: 28px 14px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  .notif-panel {
    min-width: 280px;
    max-width: calc(100vw - 24px);
    right: -40px;
  }
}

/* ============ AUTH PAGES ============ */

.auth-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 64px 32px 80px;
}

.auth-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 14px;
}

.auth-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 10px;
}

.auth-subtitle {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ── OAuth ── */
.auth-oauth {
  margin-bottom: 24px;
}

.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  background: var(--dark);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.auth-google-btn:hover {
  border-color: var(--border-mid);
  background: #161616;
}
.auth-google-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ── Form ── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.auth-input {
  background: #0a0a0a;
  border: 1px solid var(--border);
  color: var(--off-white);
  font-family: var(--sans);
  font-size: 0.875rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.15s;
}
.auth-input:focus {
  border-color: var(--accent);
}
.auth-input::placeholder {
  color: #555;
  font-size: 0.85rem;
  font-weight: 300;
}

.auth-submit {
  background: var(--accent);
  border: none;
  color: var(--black);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 14px 24px;
  cursor: pointer;
  transition: background 0.12s;
  margin-top: 4px;
}
.auth-submit:hover {
  background: var(--accent-dim);
}
.auth-submit:disabled {
  background: #0f0f0f;
  color: var(--accent);
  cursor: default;
}

/* ── Messages ── */
.auth-error {
  background: rgba(232, 64, 28, 0.08);
  border: 1px solid rgba(232, 64, 28, 0.2);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 10px 14px;
  letter-spacing: 0.3px;
  display: none;
}
.auth-error.visible {
  display: block;
}

.auth-success {
  background: rgba(90, 154, 106, 0.08);
  border: 1px solid rgba(90, 154, 106, 0.2);
  color: #5a9a6a;
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 10px 14px;
  letter-spacing: 0.3px;
  display: none;
}
.auth-success.visible {
  display: block;
}

/* ── Links ── */
.auth-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.auth-link {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.auth-link:hover {
  color: var(--accent);
}
.auth-link span {
  color: var(--accent);
}

/* ── 2FA ── */
.twofa-section {
  display: none;
  text-align: center;
}
.twofa-section.visible {
  display: block;
}

.twofa-code-input {
  background: #0a0a0a;
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  padding: 16px 24px;
  text-align: center;
  width: 260px;
  outline: none;
  transition: border-color 0.15s;
  margin: 0 auto;
  display: block;
}
.twofa-code-input:focus {
  border-color: var(--accent);
}

.twofa-info {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin: 12px 0 20px;
}

.twofa-resend {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
  margin-top: 12px;
}
.twofa-resend:hover {
  color: var(--accent);
}

/* ============ PROFILE PAGE ============ */

.profile-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--border-mid);
  background: var(--dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.profile-avatar-large .nav-avatar-initials {
  font-size: 1.5rem;
}

.profile-avatar-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-upload-btn {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--mid);
  cursor: pointer;
  transition: all 0.12s;
}
.profile-upload-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.profile-upload-note {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.profile-section {
  margin-bottom: 28px;
}

.profile-section-title {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.profile-field-label {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.profile-field-input {
  background: #0a0a0a;
  border: 1px solid var(--border);
  color: var(--off-white);
  font-family: var(--sans);
  font-size: 0.875rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s;
}
.profile-field-input:focus {
  border-color: var(--accent);
}

.profile-save-btn {
  background: var(--accent);
  border: none;
  color: var(--black);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.12s;
}
.profile-save-btn:hover {
  background: var(--accent-dim);
}
.profile-save-btn:disabled {
  background: #0f0f0f;
  color: var(--accent);
  cursor: default;
}

/* ── Auth Gate ── */
.auth-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 7, 7, 0.95);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-gate-overlay.hidden {
  display: none;
}

.auth-gate-box {
  background: var(--near-black);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 40px 48px;
  max-width: 480px;
  text-align: center;
}
.auth-gate-box .auth-eyebrow {
  margin-bottom: 16px;
}
.auth-gate-box .auth-title {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.auth-gate-desc {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.auth-gate-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--black);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 14px 28px;
  text-decoration: none;
  transition: background 0.12s;
  margin-bottom: 12px;
}
.auth-gate-cta:hover {
  background: var(--accent-dim);
}

.auth-gate-sub {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
}
.auth-gate-sub a {
  color: var(--accent);
  text-decoration: none;
}

/* ============ PAYWALL GATE ============ */

.paywall-gate-box {
  background: var(--near-black);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 48px 48px 40px;
  max-width: 520px;
  text-align: center;
}
.paywall-gate-box .auth-eyebrow {
  margin-bottom: 16px;
}
.paywall-gate-box .auth-title {
  font-size: 2rem;
  margin-bottom: 12px;
}

.paywall-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0;
  text-align: left;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
.paywall-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--light);
  letter-spacing: 0.5px;
}
.paywall-feature-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  flex-shrink: 0;
  display: inline-block;
}

.paywall-price {
  margin: 28px 0 24px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.paywall-amount {
  font-family: var(--serif);
  font-size: 2.625rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.paywall-period {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  margin-left: 6px;
}

.paywall-subscribe-btn {
  width: 100%;
  cursor: pointer;
}
.paywall-subscribe-btn:disabled {
  background: #0f0f0f;
  color: var(--accent);
  cursor: default;
}

.paywall-loading-text {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  padding: 16px 0;
}

/* ── Premium badge ── */
.premium-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 8px;
  margin-left: 8px;
  vertical-align: middle;
  line-height: 1;
}
.premium-price-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-top: 6px;
}

/* ── Subscription status on profile ── */
.subscription-section {
  margin-bottom: 28px;
  padding: 24px;
  background: #060606;
  border: 1px solid var(--border);
}
.subscription-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.subscription-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.subscription-status-dot--active {
  background: #5a9a6a;
}
.subscription-status-dot--inactive {
  background: var(--muted);
}
.subscription-status-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--light);
}
.subscription-plan {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.subscription-manage-btn {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--mid);
  cursor: pointer;
  transition: all 0.12s;
}
.subscription-manage-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .auth-page {
    padding: 40px 20px 60px;
  }
  .profile-page {
    padding: 32px 20px 60px;
  }
  .profile-avatar-section {
    flex-direction: column;
    text-align: center;
  }
  .auth-gate-box {
    margin: 0 20px;
    padding: 32px 24px;
  }
  .paywall-gate-box {
    margin: 0 16px;
    padding: 32px 24px;
  }
  .paywall-amount {
    font-size: 2.25rem;
  }
  .twofa-code-input {
    width: 220px;
    font-size: 1.5rem;
    letter-spacing: 0.4em;
  }
}

/* ============ PUBLIC PROFILE SETTINGS ============ */

/* Toggle switch */
.pp-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}
.pp-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.pp-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--border-mid);
  transition: 0.2s;
  border-radius: 10px;
}
.pp-toggle-slider::before {
  content: '';
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background: var(--muted);
  transition: 0.2s;
  border-radius: 50%;
}
.pp-toggle input:checked + .pp-toggle-slider {
  background: rgba(232, 64, 28, 0.3);
}
.pp-toggle input:checked + .pp-toggle-slider::before {
  transform: translateX(20px);
  background: var(--accent);
}

/* LinkedIn box */
.pp-linkedin-box {
  padding: 20px;
  background: #060606;
  border: 1px solid var(--border);
}

/* Skills tags */
.pp-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pp-skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--dark);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--light);
  letter-spacing: 0.5px;
}
.pp-skill-src {
  font-size: 0.5625rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 1px 4px;
  letter-spacing: 0.03em;
}
.pp-skill-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0 2px;
  line-height: 1;
}
.pp-skill-remove:hover {
  color: var(--accent);
}

/* Certifiable skills grid */
.pp-certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pp-cert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #060606;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s;
}
.pp-cert-item:hover {
  border-color: var(--border-mid);
}
.pp-cert-item--certified {
  border-color: rgba(90, 154, 106, 0.3);
}
.pp-cert-check {
  accent-color: var(--accent);
  flex-shrink: 0;
}
.pp-cert-name {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--light);
  letter-spacing: 0.3px;
  flex: 1;
}
.pp-cert-badge {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 2px 6px;
  flex-shrink: 0;
}
.pp-cert-item--certified .pp-cert-badge {
  color: #5a9a6a;
  border-color: rgba(90, 154, 106, 0.3);
}

/* AI preview box */
.pp-ai-preview-box {
  padding: 16px 20px;
  background: #060606;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
}

/* ============ PUBLIC PROFILE PAGE ============ */

/* Loading */
.pub-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.pub-loading-text {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  animation: pub-pulse 1.5s ease infinite;
}
@keyframes pub-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Error */
.pub-error-page {
  text-align: center;
  padding: 80px 32px;
  max-width: 480px;
  margin: 0 auto;
}
.pub-back-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--accent);
  margin-top: 24px;
}

/* Hero */
.pub-hero {
  border-bottom: 1px solid var(--border);
  background: var(--near-black);
}
.pub-hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.pub-hero-main {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.pub-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--border-mid);
  background: var(--dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pub-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.pub-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  padding: 3px 8px;
  border: 1px solid;
}
.pub-badge--linkedin {
  color: #0a66c2;
  border-color: #0a66c2;
}
.pub-badge--ai {
  color: var(--accent);
  border-color: var(--accent);
}
.pub-badge--strong {
  color: var(--gold);
  border-color: rgba(201,168,76,0.4);
  background: rgba(201,168,76,0.08);
}
.pub-badge--admin {
  color: #e0c068;
  border-color: rgba(224,192,104,0.4);
  background: rgba(224,192,104,0.1);
  font-weight: 600;
}
.pub-name {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 6px;
}
.pub-headline {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.5;
  margin-bottom: 6px;
}
.pub-location {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.pub-hero-meta {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
}
.pub-meta-item {
  text-align: center;
  padding: 16px 20px;
  background: var(--dark);
  border: 1px solid var(--border);
}
.pub-meta-value {
  display: block;
  font-family: var(--mono);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.pub-meta-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* Sections */
.pub-section {
  border-bottom: 1px solid var(--border);
}
.pub-section-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 32px;
}
.pub-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.pub-section-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.pub-ai-badge {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 8px;
}

/* AI content */
.pub-ai-headline {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}
.pub-ai-summary p, .pub-summary-text p {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Skill highlights */
.pub-skill-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pub-skill-highlight {
  padding: 16px;
  background: var(--dark);
  border: 1px solid var(--border);
}
.pub-skill-highlight-name {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.pub-skill-highlight-rel {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Skills grid */
.pub-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pub-skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--dark);
  border: 1px solid var(--border);
}
.pub-skill-name {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--light);
  letter-spacing: 0.5px;
}
.pub-skill-source {
  font-family: var(--mono);
  font-size: 0.5625rem;
  color: #0a66c2;
  border: 1px solid #0a66c2;
  padding: 1px 4px;
  letter-spacing: 0.03em;
}
.pub-skill--linkedin {
  border-color: rgba(10, 102, 194, 0.2);
}

/* Certifications grid */
.pub-certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pub-cert-item {
  padding: 14px 16px;
  background: var(--dark);
  border: 1px solid var(--border);
}
.pub-cert-item--certified {
  border-color: rgba(90, 154, 106, 0.3);
}
.pub-cert-status {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}
.pub-cert-item--certified .pub-cert-status {
  color: #5a9a6a;
}
.pub-cert-name {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--light);
  letter-spacing: 0.3px;
}

/* Experience & education */
.pub-exp-item, .pub-edu-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.pub-exp-item:last-child, .pub-edu-item:last-child {
  border-bottom: none;
}
.pub-exp-title, .pub-edu-degree {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}
.pub-exp-company, .pub-edu-school {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--mid);
}
.pub-exp-period, .pub-edu-year {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.pub-exp-desc {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 8px;
}

/* Attribution */
.pub-attribution {
  border-bottom: 1px solid var(--border);
  background: var(--dark);
}
.pub-attribution-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 32px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.8;
}
.pub-attribution a {
  color: var(--accent);
}

/* Public profile responsive */
@media (max-width: 768px) {
  .pub-hero-inner {
    flex-direction: column;
  }
  .pub-hero-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .pub-badges {
    justify-content: center;
  }
  .pub-hero-meta {
    align-self: stretch;
    justify-content: center;
  }
  .pub-skill-highlights, .pub-certs-grid {
    grid-template-columns: 1fr;
  }
  .pp-certs-grid {
    grid-template-columns: 1fr;
  }
  .li-review-modal {
    width: 95vw;
    max-height: 90vh;
  }
}

/* LinkedIn Import Review Modal */
.li-review-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.li-review-modal {
  background: #0a0a0a;
  border: 1px solid var(--border);
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}
.li-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.li-review-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.li-review-close:hover {
  color: var(--light);
}
.li-review-field {
  border: 1px solid var(--border);
  padding: 16px;
  margin-bottom: 12px;
  background: #060606;
}
.li-review-field-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.li-review-field-label {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}
.li-review-field-check {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
.li-review-field-tag {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.03em;
  padding: 2px 6px;
  border: 1px solid;
}
.li-review-field-tag--new {
  color: #5a9a6a;
  border-color: rgba(90, 154, 106, 0.4);
}
.li-review-field-tag--replace {
  color: var(--accent);
  border-color: rgba(232, 64, 28, 0.4);
}
.li-review-field-tag--same {
  color: var(--muted);
  border-color: var(--border);
}
.li-review-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.li-review-val {
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.5;
}
.li-review-val-label {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-bottom: 4px;
}
.li-review-val--current {
  color: var(--mid);
}
.li-review-val--linkedin {
  color: var(--light);
}
.li-review-val--empty {
  color: var(--muted);
  font-style: italic;
}
.li-review-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.li-review-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Step indicator for unified pipeline */
.li-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  flex: 1;
  justify-content: center;
  transition: all 0.3s ease;
}
.li-step--active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(232,64,28,0.06);
}
.li-step--done {
  color: var(--light);
  border-color: var(--light);
  background: rgba(255,255,255,0.04);
}
.li-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 0.5625rem;
}

/* Confidence badges */
.li-confidence-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 6px;
}
.li-confidence-badge--high {
  color: #4caf50;
  border: 1px solid rgba(76,175,80,0.3);
  background: rgba(76,175,80,0.08);
}
.li-confidence-badge--medium {
  color: #ff9800;
  border: 1px solid rgba(255,152,0,0.3);
  background: rgba(255,152,0,0.08);
}
.li-confidence-badge--user {
  color: var(--accent);
  border: 1px solid rgba(232,64,28,0.3);
  background: rgba(232,64,28,0.08);
}

/* Source tags */
.li-source-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.03em;
  padding: 1px 5px;
  border-radius: 2px;
  margin-left: 4px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.li-source-tag--api { color: #4caf50; border-color: rgba(76,175,80,0.3); }
.li-source-tag--ai { color: #2196f3; border-color: rgba(33,150,243,0.3); }
.li-source-tag--apiai { color: #9c27b0; border-color: rgba(156,39,176,0.3); }

/* Enrichment option hover */
.li-enrich-option:hover {
  border-color: var(--accent) !important;
}
.li-enrich-option:hover span:first-child {
  color: var(--accent);
}

/* Progressive live extraction */
.li-enrich-live-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  animation: fadeInField 0.3s ease;
}
.li-enrich-live-field .li-live-label {
  color: var(--muted);
  min-width: 80px;
  letter-spacing: 0.03em;
  font-size: 0.5625rem;
}
.li-enrich-live-field .li-live-value {
  color: var(--light);
  font-family: var(--sans);
  font-size: 0.75rem;
}
@keyframes fadeInField {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
