:root {
  --abc-blue: #001A26;
  --abc-red: #E60000;
  --abc-white: #FFFFFF;
  --abc-text: #001A26;
  --abc-muted: #90A7B2;
  --max-width: 1180px;
}

*, *::before, *::after {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--abc-blue);
  color: var(--abc-white);
}

.app {
  min-height: 100%;
  display: flex;
  justify-content: center;
  padding: 50px 18px 120px;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 42px;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.brand {
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--abc-white);
}

.logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--abc-white);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.logout-btn::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--abc-red);
}

.lang-switcher {
  position: relative;
  display: inline-flex;
}

.lang-toggle {
  min-width: 64px;
  height: 42px;
  border-radius: 999px;
  border: 2px solid var(--abc-white);
  background: transparent;
  color: var(--abc-white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
}

.lang-flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background-color: rgba(255, 255, 255, 0.2);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.lang-caret {
  line-height: 1;
  font-size: 0.56rem;
  opacity: 0.86;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

.lang-toggle:active {
  transform: scale(0.96);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 182px;
  border-radius: 16px;
  border: 2px solid #001A26;
  background: #FFFFFF;
  padding: 6px;
  box-shadow: 0 16px 34px rgba(0, 26, 38, 0.24);
  z-index: 120;
  display: grid;
  gap: 4px;
}

.lang-menu[hidden] {
  display: none;
}

.lang-option {
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #001A26;
  padding: 9px 10px;
  width: 100%;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-option-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid rgba(0, 26, 38, 0.22);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #E5E7E9;
}

.lang-option-name {
  line-height: 1.2;
}

.lang-option-code {
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-option:hover {
  background: #F2F4F5;
}

.lang-option.active {
  background: #001A26;
  color: #FFFFFF;
}

.flag-us {
  background:
    linear-gradient(#3C3B6E, #3C3B6E) 0 0 / 40% 55% no-repeat,
    repeating-linear-gradient(
      to bottom,
      #B22234 0 7.69%,
      #FFFFFF 7.69% 15.38%
    );
}

.flag-es {
  background: linear-gradient(
    to bottom,
    #AA151B 0 25%,
    #F1BF00 25% 75%,
    #AA151B 75% 100%
  );
}

.flag-de {
  background: linear-gradient(
    to bottom,
    #000000 0 33.33%,
    #DD0000 33.33% 66.66%,
    #FFCE00 66.66% 100%
  );
}

.profile-container {
  background: var(--abc-white);
  color: var(--abc-text);
  padding: 44px 38px;
  border-radius: 34px;
  overflow: hidden;
}

.profile-header {
  margin-bottom: 30px;
}

.profile-pic {
  width: 150px;
  height: 150px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 3px solid var(--abc-red);
  background: #E5E7E9;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.profile-pic::after {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--abc-red);
}

.profile-pic.has-image::after {
  display: none;
}

.profile-name {
  margin: 0;
  text-align: center;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.02;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.profile-role {
  margin: 12px 0 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 500;
  color: var(--abc-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-bio {
  margin-bottom: 34px;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.5px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.stat {
  padding: 16px 12px;
  border: 2px solid #E5E7E9;
  text-align: center;
  border-radius: 22px;
}

.stat-number {
  margin-bottom: 6px;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1;
  font-weight: 700;
  color: var(--abc-red);
}

.stat-label {
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--abc-text);
  font-weight: 600;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.change-counter {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 2px solid #E5E7E9;
  border-radius: 999px;
  background: #FFFFFF;
}

.change-counter-label {
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--abc-muted);
  font-weight: 700;
}

.change-counter-value {
  min-width: 28px;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1;
  font-weight: 700;
  color: var(--abc-red);
}

.btn {
  position: relative;
  z-index: 0;
  display: inline-block;
  transition-property: all !important;
  transition-duration: .4s !important;
  border: 2px solid #E60000;
  border-radius: 100px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 74px 8px 24px;
  color: #E60000;
  font-weight: 500;
  font-size: 0.95rem;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.btn::before {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  clip-path: circle(0 at center);
  border: 2px solid #E60000;
  border-radius: 25px;
  background-color: #E60000;
  transition-property: all;
  transition-duration: .4s;
}

.btn::after {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  transition-property: all;
  transition-duration: .4s;
  top: 50%;
  left: auto;
  right: 22px;
  margin-top: -15px;
  width: 35px;
  height: 35px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='35' height='30' viewBox='0 0 35 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform='matrix(1,0,0,1,0,-224.751)'%3E%3Cpath d='M21.348,224.751L19.773,224.751C19.738,230.698 23.069,236.18 28.364,238.889L0,238.889L0,240.464L28.365,240.464C23.071,243.172 19.739,248.653 19.773,254.6L21.348,254.6C21.226,246.982 27.382,240.607 35,240.463L35,238.888C27.382,238.744 21.226,232.369 21.348,224.751Z' style='fill:rgb(226,10,19);fill-rule:nonzero;'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

.btn:hover {
  padding: 8px 49px;
  color: #FFFFFF;
}

.btn:hover::before {
  clip-path: circle(70% at center);
}

.btn:hover::after {
  right: -35px;
  opacity: 0;
}

.btn.primary {
  background: #E60000;
  border-color: #E60000;
  color: #FFFFFF;
}

.btn.primary::after {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='35' height='30' viewBox='0 0 35 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform='matrix(1,0,0,1,0,-224.751)'%3E%3Cpath d='M21.348,224.751L19.773,224.751C19.738,230.698 23.069,236.18 28.364,238.889L0,238.889L0,240.464L28.365,240.464C23.071,243.172 19.739,248.653 19.773,254.6L21.348,254.6C21.226,246.982 27.382,240.607 35,240.463L35,238.888C27.382,238.744 21.226,232.369 21.348,224.751Z' style='fill:rgb(255,255,255);fill-rule:nonzero;'/%3E%3C/g%3E%3C/svg%3E");
}

.bottomNav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #001A26;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: center;
  padding: 14px 18px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

.navInner {
  width: 100%;
  max-width: var(--max-width);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-radius: 24px;
  overflow: hidden;
}

.navLink {
  color: #FFFFFF;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  padding: 10px 8px;
  border: 2px solid transparent;
  border-radius: 16px;
}

.navLink.active {
  color: #E60000;
  border-color: #E60000;
}

@media (max-width: 860px) {
  .app {
    padding: 30px 10px 106px;
  }

  .topbar {
    margin-bottom: 28px;
  }

  .topbar-actions {
    gap: 8px;
  }

  .lang-toggle {
    min-width: 58px;
    height: 38px;
    gap: 5px;
    padding: 0 8px;
    font-size: 0.66rem;
  }

  .lang-flag {
    width: 17px;
    height: 11px;
  }

  .lang-menu {
    min-width: 166px;
    border-radius: 14px;
  }

  .lang-option {
    font-size: 0.75rem;
    padding: 8px 9px;
  }

  .lang-option-code {
    font-size: 0.64rem;
  }

  .profile-container {
    padding: 30px 18px;
  }

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

  .profile-actions {
    flex-direction: column;
  }

  .change-counter {
    width: 100%;
    justify-content: center;
  }

  .btn {
    width: 100%;
    text-align: left;
  }
}
