@import url(../../../../assets/css/base.css);
@import url(./huetten_base.css);

body {
  margin-bottom: 1rem !important;
}

/* Page */
.profile-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Hero */
.profile-hero {
  position: relative;
  width: 100%;
  min-height: 13rem;
  overflow: hidden;
  border-radius: 1.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  margin-top: 2rem;
}

.profile-back {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 3;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;

  padding: .55rem .85rem;
  border-radius: 1rem;

  background: rgba(22, 26, 32, .85);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);

  color: var(--text-primary);
  text-decoration: none;
  font-weight: 900;
  font-size: .8rem;
}

.profile-back:active {
  transform: scale(.98);
}

.profile-hero-content {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
}

.profile-kicker {
  margin: 0 0 .3rem 0;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.profile-hero-content h1 {
  margin: 0;
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  line-height: 1;
  font-weight: 950;
  color: var(--text-primary);
}

.profile-hero-content p:last-child {
  margin: .45rem 0 0 0;
  font-size: .8rem;
  color: var(--text-secondary);
}

/* Stats */
.profile-stats {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.profile-stat {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1.2rem;
  box-shadow: var(--shadow-soft);
  padding: .9rem;

  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.profile-stat-wide {
  grid-column: 1 / -1;
}

.profile-stat span {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.profile-stat strong {
  font-size: 1.15rem;
  font-weight: 950;
  color: var(--text-primary);
}

/* Cards */
.profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1.2rem;
  box-shadow: var(--shadow-soft);
  padding: 1rem;

  display: flex;
  flex-direction: column;
  gap: .9rem;
  width: calc(100% - 2rem);
}

.profile-card h1 {
  margin: 0;
  font-size: 1.3rem;
}

.profile-card p {
  margin: 0;
  color: var(--text-secondary);
}

.profile-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.profile-card-head h2 {
  margin: 0;
  font-size: .98rem;
  font-weight: 950;
}

.profile-linkbtn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 900;
  font-size: .8rem;
  opacity: .85;
  padding: .25rem .3rem;
  cursor: pointer;
}

.profile-linkbtn:active {
  transform: scale(.98);
}

/* Lists */
.profile-list {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;

  padding: .7rem .75rem;
  border-radius: .95rem;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-main);
}

.profile-row > div {
  display: flex;
  flex-direction: column;
  gap: .18rem;
  min-width: 0;
}

.profile-row strong {
  font-size: .86rem;
  font-weight: 950;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 18rem;
}

.profile-row span {
  font-size: .73rem;
  color: var(--text-secondary);
  opacity: .9;
}

.profile-row b {
  font-size: .85rem;
  font-weight: 950;
  white-space: nowrap;
}

/* Pills / Status */
.profile-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: .25rem .6rem;
  border-radius: 999px;

  font-size: .72rem !important;
  font-weight: 950;
  line-height: 1;

  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
}

.profile-pill.is-work {
  color: rgba(74, 163, 255, .95);
  border-color: rgba(74, 163, 255, .28);
}

.profile-pill.is-fun {
  color: rgba(46, 204, 113, .95);
  border-color: rgba(46, 204, 113, .28);
}

.is-positive {
  color: var(--green-main);
}

.is-negative {
  color: var(--negative);
}

/* Mobile */
@media (max-width: 420px) {
  .profile-page {
    width: 92%;
  }

  .profile-hero {
    min-height: 12rem;
    border-radius: 1.2rem;
  }

  .profile-row strong {
    max-width: 12rem;
  }
}

@media (max-width: 300px) {
  .profile-stats {
    grid-template-columns: 1fr;
  }

  .profile-stat-wide {
    grid-column: auto;
  }

  .profile-row {
    align-items: flex-start;
    flex-direction: column;
  }
}



.profile-hero {
  position: relative;
  min-height: 13rem;
  overflow: hidden;
  border-radius: 1.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}

.profile-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(74, 163, 255, .25), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(46, 204, 113, .18), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.20));
}

.profile-hero-content {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;

  display: flex;
  align-items: center;
  gap: .9rem;
}

.profile-avatar {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 1.4rem;
  object-fit: cover;
  background: var(--bg-surface-2);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}










.profile-hero-bg {
  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: center;

  filter: blur(18px);
  transform: scale(1.15);
  opacity: .45;
}

.profile-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.15),
    rgba(0,0,0,.65)
  );
  z-index: 1;
}

.profile-hero-content,
.profile-back {
  z-index: 3;
}

.is-positive{
    color: var(--money-green);
}
















.profile-stat-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.finance-info-button {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.15s ease, background 0.15s ease;
}

.finance-info-button:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.28);
}

.finance-info-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.finance-info-modal.is-open {
    display: grid;
}

.finance-info-box {
    position: relative;
    width: 90%;
    max-height: min(78vh, 680px);
    overflow-y: auto;
    border-radius: 22px;
    padding: 24px;
    background: linear-gradient(180deg, #1d1d1d, #101010);
    color: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.finance-info-box h2 {
    margin: 0 42px 14px 0;
    font-size: 1.35rem;
}

.finance-info-box h3 {
    margin: 20px 0 6px;
    font-size: 1rem;
}

.finance-info-box p {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
}

.finance-info-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

.finance-info-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.finance-formula {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 1rem;
    line-height: 1.8;
}

.finance-formula-explain {
    margin-top: 10px !important;
    font-size: 0.85rem;
    opacity: 0.75;
}

body:has(.finance-info-modal.is-open) {
    overflow: hidden;
}