.harfika-profile-page {
  background: linear-gradient(180deg, #fafdff 0%, #eef9ff 18%, #e6f4fb 100%);
}

.harfika-profile-main {
  padding-bottom: calc(var(--harfika-nav-height) + 4.5rem);
}

.harfika-profile-stack {
  gap: clamp(1rem, 2vw, 1.5rem);
}

.kinetic-gradient {
  background: var(--harfika-accent-gradient);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.harfika-profile-card {
  background: #ffffff;
  border: 1px solid rgba(171, 173, 175, 0.18);
  border-radius: clamp(1.2rem, 2vw, 1.5rem);
  padding: 1.25rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.harfika-profile-completion-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 1.2rem;
  background: linear-gradient(135deg, rgba(18, 138, 117, 0.12) 0%, rgba(46, 204, 113, 0.16) 100%);
  border: 1px solid rgba(18, 138, 117, 0.18);
  color: #0f5132;
  box-shadow: 0 12px 28px rgba(18, 138, 117, 0.08);
}

.harfika-profile-completion-banner .material-symbols-outlined {
  font-size: 1.5rem;
  line-height: 1;
  margin-top: 0.15rem;
}

.harfika-profile-completion-title {
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.harfika-profile-completion-copy {
  color: rgba(15, 81, 50, 0.88);
  font-size: 0.96rem;
  line-height: 1.55;
}

.harfika-profile-loading-icon {
  width: 4.4rem;
  height: 4.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.4rem;
  background: rgba(var(--harfika-primary-rgb), 0.08);
  color: var(--harfika-primary);
}

.harfika-profile-loading-icon .material-symbols-outlined {
  font-size: 2rem;
}

.harfika-profile-kicker {
  color: var(--harfika-primary-dim);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.harfika-profile-title,
.harfika-profile-section-title {
  color: var(--harfika-primary-ink);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.harfika-profile-title {
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.harfika-profile-section-title {
  font-size: 1.2rem;
}

.harfika-profile-copy {
  color: var(--harfika-primary-ink-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}

.harfika-profile-hero {
  box-shadow: 0 22px 45px rgba(var(--harfika-primary-rgb), 0.16);
  border-radius: clamp(1.35rem, 2vw, 1.75rem) !important;
}

.harfika-profile-orb {
  border-radius: 999px;
  filter: blur(52px);
  opacity: 0.8;
}

.harfika-profile-orb-top {
  top: -2rem;
  right: -1rem;
  width: 10rem;
  height: 10rem;
  background: rgba(255, 255, 255, 0.18);
}

.harfika-profile-orb-bottom {
  left: -2rem;
  bottom: -2rem;
  width: 8rem;
  height: 8rem;
  background: rgba(255, 255, 255, 0.12);
}

.harfika-profile-hero-copy {
  max-width: 28rem;
}

.harfika-profile-hero-kicker {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.harfika-profile-hero-title {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.harfika-profile-hero-description {
  color: rgba(255, 255, 255, 0.84);
  max-width: 27rem;
  font-size: 1rem;
  line-height: 1.6;
}

.harfika-profile-avatar-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
}

.harfika-profile-avatar-mark {
  width: 5.4rem;
  height: 5.4rem;
  border-radius: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  color: var(--harfika-primary);
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.harfika-profile-stat {
  min-height: 5.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
}

.harfika-profile-stat span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.harfika-profile-stat strong {
  color: #ffffff;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 900;
}

.harfika-profile-inline-pill {
  min-height: 2.2rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(var(--harfika-primary-rgb), 0.08);
  color: var(--harfika-primary);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.harfika-profile-label {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--harfika-primary-ink-soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.harfika-profile-form-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.harfika-profile-input {
  flex: 1 1 14rem;
  min-width: 0;
  min-height: 3.1rem;
  padding: 0.82rem 1rem;
  border: 1px solid rgba(var(--harfika-primary-rgb), 0.14);
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fdff 100%);
  color: var(--harfika-primary-ink);
  font-size: 0.96rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.harfika-profile-input::placeholder {
  color: #76a6be;
}

.harfika-profile-input:focus {
  outline: none;
  border-color: rgba(var(--harfika-primary-rgb), 0.32);
  box-shadow: 0 0 0 0.22rem rgba(var(--harfika-primary-rgb), 0.12);
}

.harfika-profile-primary-btn,
.harfika-profile-secondary-btn {
  min-height: 3.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 1rem;
  padding: 0.8rem 1rem;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.harfika-profile-primary-btn {
  border: 0;
  background: var(--harfika-accent-gradient);
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(var(--harfika-primary-rgb), 0.18);
}

.harfika-profile-secondary-btn {
  border: 0;
  background: rgba(var(--harfika-primary-rgb), 0.08);
  color: var(--harfika-primary-ink);
}

.harfika-profile-primary-btn:hover,
.harfika-profile-secondary-btn:hover {
  opacity: 0.95;
}

.harfika-profile-primary-btn:active,
.harfika-profile-secondary-btn:active {
  transform: scale(0.98);
}

.harfika-profile-primary-btn:disabled {
  opacity: 0.7;
  box-shadow: none;
}

.harfika-profile-feedback {
  margin-top: 0.9rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.harfika-profile-feedback.is-error {
  background: rgba(220, 38, 38, 0.08);
  color: #b42318;
}

.harfika-profile-feedback.is-success {
  background: rgba(22, 163, 74, 0.12);
  color: #118240;
}

.harfika-profile-detail-list {
  gap: 0.8rem;
}

.harfika-profile-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(var(--harfika-primary-rgb), 0.04);
}

.harfika-profile-detail-row span {
  color: var(--harfika-primary-ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.harfika-profile-detail-row strong {
  color: var(--harfika-primary-ink);
  font-size: 0.92rem;
  font-weight: 900;
  text-align: right;
}

.harfika-profile-metric-card,
.harfika-profile-category-card,
.harfika-profile-history-row,
.harfika-profile-badge-card,
.harfika-profile-empty {
  border-radius: 1rem;
  background: rgba(var(--harfika-primary-rgb), 0.04);
}

.harfika-profile-metric-card {
  min-height: 5rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
}

.harfika-profile-metric-card span {
  color: var(--harfika-primary-ink-soft);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.harfika-profile-metric-card strong {
  color: var(--harfika-primary-ink);
  font-size: 1.7rem;
  font-weight: 900;
}

.harfika-profile-category-list,
.harfika-profile-history-list,
.harfika-profile-badges-grid {
  gap: 0.8rem;
}

.harfika-profile-category-card {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.harfika-profile-category-card strong,
.harfika-profile-history-name,
.harfika-profile-badge-title {
  color: var(--harfika-primary-ink);
}

.harfika-profile-category-card strong {
  font-size: 1rem;
  font-weight: 800;
}

.harfika-profile-category-label,
.harfika-profile-history-meta,
.harfika-profile-badge-copy,
.harfika-profile-empty {
  color: var(--harfika-primary-ink-soft);
}

.harfika-profile-category-label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.harfika-profile-category-meter {
  height: 0.7rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(var(--harfika-primary-rgb), 0.08);
}

.harfika-profile-category-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--harfika-accent-gradient);
}

.harfika-profile-history-row {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.harfika-profile-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.harfika-profile-history-name {
  font-size: 1rem;
  font-weight: 800;
}

.harfika-profile-history-meta {
  font-size: 0.82rem;
  font-weight: 700;
}

.harfika-profile-history-tags {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.harfika-profile-history-pill,
.harfika-profile-badge-progress {
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.harfika-profile-history-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.harfika-profile-history-pill.is-rank {
  background: rgba(var(--harfika-primary-rgb), 0.1);
  color: var(--harfika-primary);
}

.harfika-profile-history-pill.is-score {
  background: rgba(22, 163, 74, 0.12);
  color: #118240;
}

.harfika-profile-history-pill.is-auto {
  background: rgba(220, 38, 38, 0.08);
  color: #b42318;
}

.harfika-profile-history-pill.is-manual {
  background: rgba(var(--harfika-primary-accent-rgb), 0.18);
  color: var(--harfika-primary-ink);
}

.harfika-profile-badges-grid {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.harfika-profile-badge-card {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  border: 1px solid transparent;
}

.harfika-profile-badge-card.is-earned {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.16);
}

.harfika-profile-badge-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.harfika-profile-badge-title {
  font-size: 1rem;
  font-weight: 800;
}

.harfika-profile-badge-copy {
  font-size: 0.86rem;
  line-height: 1.5;
}

.harfika-profile-badge-progress {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--harfika-primary-rgb), 0.08);
  color: var(--harfika-primary-ink);
}

.harfika-profile-badge-earned {
  color: #118240;
  font-size: 0.8rem;
  font-weight: 800;
}

.harfika-profile-empty {
  padding: 1rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
}

@media (max-width: 575.98px) {
  .harfika-profile-main {
    padding-bottom: calc(var(--harfika-nav-height) + 3.65rem);
  }

  .harfika-profile-stack {
    gap: 0.85rem;
  }

  .harfika-profile-card {
    padding: 0.9rem;
    border-radius: 1.1rem;
  }

  .harfika-profile-hero {
    padding: 1rem !important;
    border-radius: 1.2rem !important;
  }

  .harfika-profile-hero .position-relative.d-grid {
    gap: 0.85rem !important;
  }

  .harfika-profile-hero-title {
    font-size: 1.52rem;
    line-height: 1.02;
  }

  .harfika-profile-hero-description {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .harfika-profile-avatar-mark {
    width: 3.7rem;
    height: 3.7rem;
    border-radius: 1.1rem;
    font-size: 1.35rem;
  }

  .harfika-profile-stat {
    min-height: 4.3rem;
    padding: 0.75rem !important;
  }

  .harfika-profile-stat span {
    font-size: 0.54rem;
  }

  .harfika-profile-stat strong {
    font-size: 1.22rem;
  }

  .harfika-profile-section-title {
    font-size: 0.98rem;
  }

  .harfika-profile-copy,
  .harfika-profile-badge-copy {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .harfika-profile-form-row,
  .harfika-profile-detail-list,
  .harfika-profile-category-list,
  .harfika-profile-history-list,
  .harfika-profile-badges-grid {
    gap: 0.65rem;
  }

  .harfika-profile-input,
  .harfika-profile-primary-btn,
  .harfika-profile-secondary-btn {
    min-height: 2.85rem;
    padding: 0.72rem 0.9rem;
  }

  .harfika-profile-feedback {
    margin-top: 0.7rem;
    padding: 0.75rem 0.8rem;
    font-size: 0.78rem;
  }

  .harfika-profile-detail-row {
    padding: 0.75rem 0.85rem;
  }

  .harfika-profile-detail-row span {
    font-size: 0.72rem;
  }

  .harfika-profile-detail-row strong {
    font-size: 0.8rem;
  }

  .harfika-profile-metric-card,
  .harfika-profile-category-card,
  .harfika-profile-history-row,
  .harfika-profile-badge-card,
  .harfika-profile-empty {
    padding: 0.85rem;
  }

  .harfika-profile-metric-card {
    min-height: 4.3rem;
  }

  .harfika-profile-metric-card strong {
    font-size: 1.28rem;
  }

  .harfika-profile-history-row,
  .harfika-profile-badge-card {
    gap: 0.65rem;
  }

  .harfika-profile-history-name,
  .harfika-profile-badge-title {
    font-size: 0.9rem;
  }

  .harfika-profile-history-meta {
    font-size: 0.72rem;
  }

  .harfika-profile-history-pill,
  .harfika-profile-badge-progress {
    min-height: 1.85rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.6rem;
  }

  .harfika-profile-badges-grid {
    grid-template-columns: 1fr;
  }

  .harfika-profile-form-row {
    display: grid;
  }

  .harfika-profile-primary-btn,
  .harfika-profile-secondary-btn,
  .harfika-profile-input {
    width: 100%;
  }

  .harfika-profile-detail-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .harfika-profile-history-head,
  .harfika-profile-badge-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }
}

@media (max-width: 399.98px) {
  .harfika-profile-hero-title {
    font-size: 1.38rem;
  }

  .harfika-profile-card {
    padding: 0.82rem;
  }
}
