:root {
  --vpn-green: #2f7d2c;
  --vpn-green-dark: #1f5f23;
  --vpn-green-soft: #edf7ea;
  --vpn-line: #e8eee6;
  --vpn-text: #1f2b20;
  --vpn-muted: #687268;
  --vpn-card: #ffffff;
  --vpn-bg: #ffffff;
  --vpn-shadow: 0 10px 28px rgba(33, 70, 31, 0.08);
}

* {
  box-sizing: border-box;
}

body.account-page {
  min-height: 100vh;
  margin: 0;
  background: var(--vpn-bg);
  color: var(--vpn-text);
  font-family: "Nunito", "DM Sans", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.account-shell {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 0 14px 112px;
  transition: max-width 0.25s ease, padding 0.25s ease;
}

.account-layout,
.account-sidebar,
.account-main {
  min-width: 0;
}

.account-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 70px;
  margin: 0 -14px 14px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--vpn-line);
  backdrop-filter: blur(14px);
}

.account-back,
.logout-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--vpn-line);
  border-radius: 50%;
  background: var(--vpn-card);
  color: var(--vpn-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(47, 125, 44, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-back:hover,
.logout-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(47, 125, 44, 0.14);
}

.account-header h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(21px, 4vw, 28px);
  font-weight: 900;
}

.profile-card,
.company-banner,
.menu-card {
  background: var(--vpn-card);
  border: 1px solid var(--vpn-line);
  border-radius: 18px;
  box-shadow: var(--vpn-shadow);
}

.profile-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
}

.avatar {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e8f8df, #ffffff);
  border: 1px solid #dcebd6;
  color: var(--vpn-green);
  font-size: 32px;
  flex: 0 0 auto;
}

.profile-info h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 5vw, 36px);
  line-height: 1.05;
}

.profile-info p {
  margin: 4px 0;
  color: var(--vpn-muted);
  font-size: 14px;
}

.company-banner {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  padding: 22px;
  min-height: 132px;
  color: #fff;
  background: linear-gradient(135deg, #1f5f23, #55a646);
}

.company-banner::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -40px;
  width: 190px;
  height: 150px;
  background: radial-gradient(circle at 30% 35%, rgba(255,255,255,.35), transparent 10%),
              radial-gradient(circle at 68% 32%, rgba(255,255,255,.3), transparent 10%),
              linear-gradient(135deg, rgba(255,255,255,.24), rgba(255,255,255,.04));
  border-radius: 46% 54% 0 0;
  transform: rotate(-8deg);
}

.company-banner h3 {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0;
  font-size: clamp(23px, 5vw, 34px);
  line-height: 1.15;
}

.farm-illustration {
  position: absolute;
  right: 24px;
  bottom: 22px;
  z-index: 1;
  font-size: 42px;
  letter-spacing: 2px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.quick-card {
  min-height: 104px;
  padding: 16px 10px;
  border: 1px solid var(--vpn-line);
  border-radius: 20px;
  background: var(--vpn-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--vpn-text);
  box-shadow: 0 10px 26px rgba(31, 57, 29, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.quick-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 125, 44, 0.35);
}

.quick-card i {
  font-size: 24px;
  color: var(--vpn-green);
}

.quick-card span {
  font-size: 14px;
  font-weight: 800;
}

.section-label {
  margin: 22px 2px 10px;
  color: var(--vpn-muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.menu-card {
  overflow: hidden;
  width: 100%;
}

.account-menu-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  column-gap: 12px;
  min-height: 58px;
  padding: 0 14px;
  border-bottom: 1px solid var(--vpn-line);
  transition: background 0.2s ease;
}

.account-menu-item:last-child {
  border-bottom: 0;
}

.account-menu-item:hover {
  background: rgba(47, 125, 44, 0.06);
}

.menu-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--vpn-green-soft);
  color: var(--vpn-green);
  font-size: 15px;
}

.account-menu-item span {
  font-size: 16px;
  font-weight: 800;
  min-width: 0;
}

.account-menu-item .fa-chevron-right {
  justify-self: end;
  color: #a3aaa2;
  font-size: 12px;
}

.logout-btn {
  width: 100%;
  min-height: 54px;
  margin: 22px 0 8px;
  border: 1.5px solid #d13e35;
  border-radius: 16px;
  background: #fff;
  color: #d13e35;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.logout-btn:hover {
  background: #d13e35;
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 575px) {
  .account-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .account-header {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .profile-card {
    align-items: flex-start;
    padding: 18px;
  }

  .avatar {
    width: 64px;
    height: 64px;
    border-radius: 20px;
  }

  .company-banner {
    min-height: 142px;
  }

  .farm-illustration {
    right: 14px;
    bottom: 14px;
    font-size: 32px;
  }

  .quick-actions {
    gap: 9px;
  }

  .quick-card {
    min-height: 92px;
    border-radius: 16px;
  }

  .quick-card span {
    font-size: 12px;
  }

  .account-menu-item {
    padding: 0 12px;
    column-gap: 10px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .account-shell {
    width: min(100%, 720px);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
  }

  .account-header {
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1025px) {
  body.account-page {
    background:
      linear-gradient(90deg, rgba(237, 247, 234, 0.38), transparent 34%),
      var(--vpn-bg);
  }

  .account-shell {
    width: min(calc(100% - 64px), 1400px);
    margin: 0 auto;
    padding: 0 0 72px;
  }

  .account-header {
    position: sticky;
    top: 0;
    min-height: 82px;
    margin: 0 0 28px;
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--vpn-line);
  }

  .account-header h1 {
    font-size: 34px;
  }

  .account-layout {
    display: grid;
    grid-template-columns: minmax(280px, 30%) minmax(0, 70%);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
  }

  .account-sidebar {
    position: sticky;
    top: 112px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
  }

  .account-main {
    min-width: 0;
  }

  .profile-card,
  .company-banner,
  .menu-card {
    border-radius: 20px;
  }

  .profile-card {
    align-items: flex-start;
    padding: clamp(22px, 2.1vw, 30px);
  }

  .avatar {
    width: 72px;
    height: 72px;
    border-radius: 22px;
  }

  .profile-info h2 {
    font-size: clamp(26px, 2.5vw, 38px);
    line-height: 1.08;
  }

  .profile-info p {
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .company-banner {
    margin-top: 0;
    min-height: 178px;
    padding: clamp(24px, 2.2vw, 34px);
  }

  .company-banner h3 {
    max-width: 340px;
    font-size: clamp(28px, 2.7vw, 42px);
  }

  .farm-illustration {
    right: 20px;
    bottom: 24px;
    font-size: clamp(34px, 3.3vw, 48px);
  }

  .quick-actions {
    margin: 0;
    gap: 14px;
  }

  .quick-card {
    min-height: 118px;
    border-radius: 18px;
  }

  .section-label {
    margin: 0 0 14px;
    font-size: 14px;
  }

  .menu-card {
    overflow: hidden;
  }

  .account-menu-item {
    min-height: 64px;
    padding: 0 22px;
    grid-template-columns: 44px minmax(0, 1fr) 22px;
    column-gap: 16px;
  }

  .menu-icon {
    width: 40px;
    height: 40px;
  }

  .account-menu-item span {
    font-size: 17px;
  }

  .logout-btn {
    max-width: 360px;
    margin-top: 24px;
  }
}

@media (min-width: 1280px) {
  .account-layout {
    grid-template-columns: minmax(340px, 30%) minmax(0, 70%);
  }

  .menu-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-menu-item:nth-child(odd) {
    border-right: 1px solid var(--vpn-line);
  }

  .account-menu-item:nth-last-child(2) {
    border-bottom: 0;
  }

  .account-menu-item:last-child {
    border-right: 0;
  }
}
