/* Account entry in the global header */
.header__box-account {
  display: flex;
  align-items: center;
}

.user-nav__account {
  position: relative;
  display: flex !important;
  width: auto !important;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #151515;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.user-nav__account:hover,
.user-nav__account:focus-visible,
.user-nav__account.active {
  color: #187247;
}

.user-nav__account:hover {
  transform: translateY(-1px);
}

.user-nav__account-label {
  max-width: 108px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
}

/* Primary Google sign-in action */
.authorization__google-panel {
  width: 100%;
  max-width: 430px;
  margin: 18px auto 22px;
  text-align: center;
}

.authorization__google-panel .authorization__a-t {
  display: block;
  margin-bottom: 10px;
  color: #5b625e;
  font-size: 13px;
}

.authorization__google-primary {
  display: flex;
  width: 100%;
  min-height: 56px;
  padding: 12px 20px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px solid #4285f4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(66, 133, 244, .17);
  color: #1f2733;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.authorization__google-primary:hover,
.authorization__google-primary:focus-visible {
  background: #f5f9ff;
  box-shadow: 0 9px 27px rgba(66, 133, 244, .25);
  color: #111820;
  transform: translateY(-1px);
}

.authorization__google-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
}

.authorization__divider {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 22px;
  background: #e5e9e7;
}

/* Modern customer dashboard */
.account-dashboard {
  padding: 20px 0 76px;
}

.account-dashboard__inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.account-dashboard__hero {
  position: relative;
  display: flex;
  min-height: 210px;
  padding: 42px 46px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(125deg, #edf8f1 0%, #f8fbf9 58%, #fff4e8 100%);
  box-shadow: 0 14px 45px rgba(29, 70, 49, .08);
}

.account-dashboard__hero::after {
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(238, 192, 90, .16);
  content: "";
}

.account-dashboard__hero-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.account-dashboard__welcome {
  display: block;
  margin-bottom: 8px;
  color: #187247;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
}

.account-dashboard__title {
  margin: 0 0 12px;
  color: #18251f;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.08;
}

.account-dashboard__intro {
  max-width: 610px;
  margin: 0;
  color: #59645f;
  font-size: 16px;
  line-height: 1.6;
}

.account-dashboard__logout {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 48px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 0 0 auto;
  border: 1px solid rgba(24, 114, 71, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #145f3d;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}

.account-dashboard__logout:hover,
.account-dashboard__logout:focus-visible {
  background: #fff;
  color: #0d4e31;
  transform: translateY(-1px);
}

.account-dashboard__success {
  margin-top: 20px;
  padding: 14px 18px;
  border: 1px solid #b7dfc6;
  border-radius: 12px;
  background: #effaf3;
  color: #18653f;
  font-size: 14px;
}

.account-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.account-dashboard__card {
  padding: 28px;
  border: 1px solid #e3e9e5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(27, 54, 40, .06);
}

.account-dashboard__card-heading {
  display: flex;
  margin-bottom: 22px;
  align-items: center;
  gap: 13px;
}

.account-dashboard__card-heading h2 {
  margin: 0;
  color: #1c2822;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.account-dashboard__card-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 14px;
  background: #edf8f1;
  color: #187247;
}

.account-dashboard__links {
  display: grid;
  gap: 10px;
}

.account-dashboard__link {
  display: flex;
  min-height: 52px;
  padding: 13px 15px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f7f9f8;
  color: #2f3934;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.account-dashboard__link:hover,
.account-dashboard__link:focus-visible {
  border-color: #b9dcc8;
  background: #f0f8f3;
  color: #125c39;
  transform: translateX(2px);
}

.account-dashboard__arrow {
  color: #187247;
  font-size: 21px;
  line-height: 1;
}

@media (max-width: 980px) {
  .user-nav__account-label {
    display: none;
  }

  .account-dashboard__hero {
    padding: 34px;
  }
}

@media (max-width: 720px) {
  .header__box-account {
    margin: 0 2px;
  }

  .user-nav__account {
    min-width: 36px;
    min-height: 36px;
  }

  .user-nav__account-ic {
    width: 21px;
    height: 23px;
  }

  .authorization__google-panel {
    margin-top: 14px;
  }

  .authorization__google-primary {
    min-height: 54px;
    padding-right: 14px;
    padding-left: 14px;
    font-size: 15px;
  }

  .account-dashboard {
    padding: 8px 0 48px;
  }

  .account-dashboard__hero {
    min-height: 0;
    padding: 28px 22px;
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    border-radius: 18px;
  }

  .account-dashboard__title {
    font-size: 31px;
  }

  .account-dashboard__intro {
    font-size: 15px;
  }

  .account-dashboard__logout {
    width: 100%;
  }

  .account-dashboard__grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 18px;
  }

  .account-dashboard__card {
    padding: 21px 18px;
    border-radius: 16px;
  }
}
