* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: radial-gradient(circle at top, rgba(110, 109, 255, 0.18), transparent 30%),
              linear-gradient(180deg, #050712 0%, #081226 42%, #0d1630 100%);
  color: #f5f6fb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.card {
  width: min(420px, calc(100% - 32px));
  margin: auto;
  padding: 34px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 18px;
  text-align: center;
}

.card .logo {
  width: 110px;
  margin: 0 auto 8px;
  border-radius: 18px;
}

.card form {
  display: grid;
  gap: 14px;
}

.card input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

.card input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.password-reveal-field {
  position: relative;
  display: block;
  width: 100%;
}

.password-reveal-field input {
  width: 100%;
  padding-right: 92px;
}

.password-reveal-button {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  min-width: 70px;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  color: #fff;
  background: rgba(49, 107, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 800;
}

.card .password-reveal-button {
  color: #fff;
  background: #316bff;
}

.stack-form .password-reveal-field input,
.account-password-grid .password-reveal-field input {
  padding-right: 92px;
}

.stack-form .password-reveal-button,
.account-password-grid .password-reveal-button {
  min-height: 28px;
  color: #d9e7ff;
  background: rgba(49, 107, 255, 0.22);
}

.card button {
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, #6e39ff, #2f6dff);
}

.card .password-reveal-button {
  position: absolute;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #316bff;
}

.card a {
  color: #b8c2ff;
}

.back-site-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #eef4ff !important;
}

.test-login,
.dashboard-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.test-login span,
.dashboard-panel span {
  color: #c5ccff;
  font-size: 0.92rem;
  line-height: 1.5;
}

.test-login form {
  display: block;
}

.test-login button {
  width: 100%;
  display: grid;
  gap: 4px;
  text-align: left;
}

.test-login small {
  color: rgba(255, 255, 255, 0.72);
}

.profile-badge {
  justify-self: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(126, 134, 255, 0.18);
  color: #dce2ff;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  padding: 24px 40px;
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(3, 9, 22, 0.74);
  backdrop-filter: blur(18px);
  transition: min-height 0.24s ease, padding 0.24s ease, background 0.24s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.logo-top {
  width: 136px;
  border-radius: 16px;
  object-fit: contain;
  transition: width 0.24s ease, border-radius 0.24s ease;
}

.home.is-scrolled .top-bar {
  min-height: 86px;
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(3, 9, 22, 0.9);
}

.home.is-scrolled .logo-top {
  width: 68px;
  border-radius: 12px;
}

.brand span {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #d9e0ff;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.btn-login {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-login:hover {
  background: rgba(100, 95, 255, 0.16);
  border-color: rgba(100, 95, 255, 0.55);
}

main {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 60px 0 40px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr);
  gap: 40px;
  align-items: center;
  padding: 40px 0 60px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9fa8ff;
}

.hero h1 {
  font-size: clamp(2.8rem, 4.5vw, 4.4rem);
  line-height: 1.03;
  margin-bottom: 24px;
  max-width: 610px;
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #dbe2ff;
  margin-bottom: 32px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-primary,
.btn-secondary {
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(90deg, #6e39ff, #2f6dff);
  color: #fff;
  padding: 16px 28px;
  box-shadow: 0 20px 40px rgba(82, 49, 255, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #eef2ff;
  padding: 16px 28px;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-image-panel {
  position: relative;
  width: 100%;
  min-height: 420px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.hero-image-panel img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
}

.hero-image-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 18, 0.04), rgba(5, 7, 18, 0.82));
}

.hero-image-panel > div {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.hero-image-panel span,
.risk-panel span,
.investment-card span {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: #79f2d0;
}

.hero-image-panel strong {
  max-width: 360px;
  font-size: 2rem;
  line-height: 1.08;
}

.image-placeholder {
  width: 100%;
  min-height: 340px;
  border: 2px dashed rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.03);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 28px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.stat-card strong {
  font-size: 1.7rem;
  display: block;
  color: #fff;
}

.stat-card span {
  color: #b8c2ff;
  line-height: 1.6;
}

.section-header {
  margin-bottom: 36px;
}

.section-header h2 {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.section-header p {
  color: #c7d0ff;
  max-width: 760px;
  line-height: 1.8;
}

.features {
  margin-bottom: 64px;
}

.feature-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 28px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.feature-media {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(121, 242, 208, 0.24);
  background: rgba(121, 242, 208, 0.08);
  color: #79f2d0;
  font-weight: 900;
}

.feature-card h3 {
  font-size: 1.2rem;
  color: #fff;
}

.feature-card p {
  color: #c3c8ff;
  line-height: 1.8;
}

.strategy-showcase {
  margin-bottom: 72px;
}

.strategy-header {
  display: grid;
  gap: 12px;
}

.investment-carousel {
  overflow: hidden;
  padding: 4px 0 20px;
  position: relative;
}

.investment-carousel::before,
.investment-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 78px;
  z-index: 2;
  pointer-events: none;
}

.investment-carousel::before {
  left: 0;
  background: linear-gradient(90deg, #050712, transparent);
}

.investment-carousel::after {
  right: 0;
  background: linear-gradient(270deg, #050712, transparent);
}

.investment-track {
  display: flex;
  gap: 22px;
  width: max-content;
  will-change: transform;
}

.investment-track.is-animated {
  animation: investmentMarquee 58s linear infinite;
}

.investment-track:hover {
  animation-play-state: paused;
}

@keyframes investmentMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 11px));
  }
}

.investment-card {
  width: 360px;
  flex: 0 0 360px;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.investment-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 14, 30, 0.02) 0%, rgba(4, 14, 30, 0.4) 48%, rgba(4, 14, 30, 0.9) 100%);
}

.card-art {
  display: none;
}

.card-art::after {
  content: none;
}

.investment-card-copy {
  min-height: 216px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  background: transparent;
  border-top: none;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.78);
}

.card-bg-1 {
  background-image: url("../img/card 1.png");
}

.card-bg-2 {
  background-image: url("../img/Card 2.png");
}

.card-bg-3 {
  background-image: url("../img/Card 3.png");
}

.card-bg-4 {
  background-image: url("../img/Card 4.png");
}

.card-bg-5 {
  background-image: url("../img/Card 5.png");
}

.card-bg-6 {
  background-image: url("../img/Card 6.png");
}

.card-bg-7 {
  background-image: url("../img/Card 7.png");
}

.card-bg-8 {
  background-image: url("../img/Card 8.png");
}

.card-bg-9 {
  background-image: url("../img/Card 9.png");
}

.card-bg-10 {
  background-image: url("../img/Card 10.png");
}

.investment-card h3 {
  font-size: 1.65rem;
  line-height: 1.08;
  max-width: 280px;
}

.investment-card p {
  color: #d5e0f2;
  line-height: 1.7;
}

.art-access .card-art i {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  position: absolute;
  top: 58px;
  background: rgba(84, 182, 163, 0.45);
}

.art-access .card-art i::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 27px;
  height: 7px;
  border-radius: 999px;
  background: #d7edf2;
}

.art-access .card-art i:nth-child(1) {
  left: 58px;
}

.art-access .card-art i:nth-child(2) {
  left: 112px;
  background: rgba(84, 137, 190, 0.6);
}

.art-access .card-art i:nth-child(3) {
  left: 166px;
  background: rgba(154, 177, 197, 0.58);
}

.art-shield .card-art i:nth-child(1) {
  width: 122px;
  height: 140px;
  border: 4px solid #ffd981;
  clip-path: polygon(50% 0, 96% 22%, 96% 66%, 50% 100%, 4% 66%, 4% 22%);
  position: absolute;
  top: 36px;
}

.art-shield .card-art i:nth-child(2) {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  position: absolute;
  top: 82px;
  background: rgba(147, 166, 203, 0.28);
}

.art-shield .card-art i:nth-child(2)::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 15px;
  left: 15px;
  top: 17px;
  border-left: 6px solid #ffd981;
  border-bottom: 6px solid #ffd981;
  transform: rotate(-45deg);
}

.art-flow .card-art i {
  position: absolute;
  left: 56px;
  width: 160px;
  height: 2px;
  background: rgba(181, 201, 236, 0.48);
}

.art-flow .card-art i:nth-child(1) {
  top: 72px;
}

.art-flow .card-art i:nth-child(2) {
  top: 112px;
}

.art-flow .card-art i:nth-child(3) {
  top: 152px;
}

.art-flow .card-art i::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #55e2b5;
}

.art-flow .card-art::before {
  content: "";
  position: absolute;
  top: 62px;
  right: 56px;
  width: 48px;
  height: 48px;
  border-top: 6px solid #55e2b5;
  border-right: 6px solid #55e2b5;
  transform: rotate(45deg);
}

.art-check .card-art i:nth-child(1) {
  width: 86px;
  height: 46px;
  position: absolute;
  top: 74px;
  border-left: 8px solid #55e2b5;
  border-bottom: 8px solid #55e2b5;
  transform: rotate(-45deg);
}

.art-check .card-art i:nth-child(2) {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  position: absolute;
  top: 28px;
  right: 78px;
  background: rgba(85, 226, 181, 0.17);
}

.art-chart .card-art i:nth-child(1) {
  position: absolute;
  left: 40px;
  right: 36px;
  top: 78px;
  height: 92px;
  background:
    linear-gradient(135deg, transparent 0 22%, #55e2b5 23% 26%, transparent 27% 43%, #55e2b5 44% 47%, transparent 48% 67%, #55e2b5 68% 71%, transparent 72%);
}

.art-chart .card-art i:nth-child(2),
.art-chart .card-art i:nth-child(3) {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #a9f5e4;
}

.art-chart .card-art i:nth-child(2) {
  top: 106px;
  left: 94px;
}

.art-chart .card-art i:nth-child(3) {
  top: 64px;
  right: 66px;
}

.art-plus .card-art i:nth-child(1) {
  width: 104px;
  height: 104px;
  position: absolute;
  top: 38px;
  border-radius: 50%;
  border: 1px solid rgba(151, 241, 220, 0.32);
  background: rgba(95, 220, 194, 0.14);
}

.art-plus .card-art i:nth-child(1)::before,
.art-plus .card-art i:nth-child(1)::after {
  content: "";
  position: absolute;
  background: #a7d8df;
  border-radius: 999px;
}

.art-plus .card-art i:nth-child(1)::before {
  width: 62px;
  height: 4px;
  left: 21px;
  top: 50px;
}

.art-plus .card-art i:nth-child(1)::after {
  width: 4px;
  height: 62px;
  left: 50px;
  top: 21px;
}

.art-stable .card-art i {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  position: absolute;
  top: 58px;
  display: grid;
  place-items: center;
  color: #d7edf2;
  font-size: 2rem;
  font-style: normal;
  font-weight: 900;
}

.art-stable .card-art i:nth-child(1) {
  left: 58px;
  background: rgba(84, 182, 163, 0.45);
}

.art-stable .card-art i:nth-child(1)::before {
  content: "$";
}

.art-stable .card-art i:nth-child(2) {
  left: 112px;
  background: rgba(84, 137, 190, 0.6);
}

.art-stable .card-art i:nth-child(2)::before {
  content: "€";
}

.art-stable .card-art i:nth-child(3) {
  left: 166px;
  background: rgba(154, 177, 197, 0.58);
}

.art-stable .card-art i:nth-child(3)::before {
  content: "¥";
}

.art-long .card-art i:nth-child(1) {
  position: absolute;
  left: 38px;
  right: 36px;
  top: 56px;
  height: 114px;
  background:
    linear-gradient(135deg, transparent 0 18%, #55e2b5 19% 22%, transparent 23% 39%, #55e2b5 40% 43%, transparent 44% 61%, #55e2b5 62% 65%, transparent 66%);
}

.art-long .card-art i:nth-child(2),
.art-long .card-art i:nth-child(3) {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #a9f5e4;
}

.art-long .card-art i:nth-child(2) {
  top: 104px;
  left: 116px;
}

.art-long .card-art i:nth-child(3) {
  top: 52px;
  right: 52px;
}

.art-member .card-art i:nth-child(1) {
  position: absolute;
  top: 42px;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  background: rgba(95, 220, 194, 0.14);
  border: 1px solid rgba(151, 241, 220, 0.32);
}

.art-member .card-art i:nth-child(1)::before,
.art-member .card-art i:nth-child(1)::after {
  content: "";
  position: absolute;
  left: 25px;
  right: 25px;
  height: 4px;
  border-radius: 999px;
  background: #a7d8df;
}

.art-member .card-art i:nth-child(1)::before {
  top: 40px;
}

.art-member .card-art i:nth-child(1)::after {
  top: 62px;
}

.art-member .card-art i:nth-child(2) {
  position: absolute;
  top: 32px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(121, 242, 208, 0.18);
}

.art-authority .card-art i:nth-child(1) {
  position: absolute;
  left: 42px;
  right: 40px;
  top: 72px;
  height: 92px;
  background:
    linear-gradient(130deg, transparent 0 19%, #55e2b5 20% 23%, transparent 24% 38%, #55e2b5 39% 42%, transparent 43% 58%, #55e2b5 59% 62%, transparent 63%),
    linear-gradient(0deg, rgba(194, 210, 255, 0.34) 1px, transparent 1px);
  background-size: 100% 100%, 100% 28px;
}

.art-authority .card-art i:nth-child(2) {
  position: absolute;
  top: 112px;
  left: 78px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #a9f5e4;
}

.art-authority .card-art i:nth-child(3) {
  position: absolute;
  top: 62px;
  right: 52px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #a9f5e4;
}

.institutional {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 64px;
}

.institutional-copy h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.institutional-copy p {
  color: #d5dbff;
  line-height: 1.9;
  margin-bottom: 24px;
}

.institutional-copy ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.institutional-copy li {
  padding-left: 24px;
  position: relative;
  color: #e7ecff;
  line-height: 1.8;
}

.institutional-copy li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #7d86ff;
}

.risk-panel {
  min-height: 320px;
  display: grid;
  align-content: end;
  gap: 18px;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(4, 12, 26, 0.12), rgba(4, 12, 26, 0.92)),
    url("../img/estrategia e analise.png") center / cover;
}

.risk-panel p {
  max-width: 420px;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1.25;
  font-weight: 800;
}

.cta-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(19, 31, 58, 0.92);
  border: 1px solid rgba(118, 126, 255, 0.12);
  border-radius: 28px;
  padding: 34px 36px;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-footer h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.cta-footer p {
  color: #c5ccff;
  max-width: 720px;
  line-height: 1.75;
}

.site-footer {
  padding: 24px 0 36px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 980px) {
  .hero,
  .institutional {
    grid-template-columns: 1fr;
  }

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

  .investment-card {
    width: min(360px, 82vw);
    flex-basis: min(360px, 82vw);
  }
}

@media (max-width: 680px) {
  .top-bar {
    padding: 20px 20px;
  }

  .nav-links {
    gap: 16px;
  }

  main {
    width: min(100%, calc(100% - 24px));
    padding: 36px 0 32px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-image-panel,
  .hero-image-panel img {
    min-height: 340px;
    height: 340px;
  }

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

  .investment-card {
    min-height: 380px;
  }

  .investment-card h3 {
    font-size: 1.35rem;
  }

  .cta-footer {
    flex-direction: column;
    text-align: center;
  }
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(37, 104, 255, 0.16), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(76, 226, 159, 0.1), transparent 22%),
    linear-gradient(135deg, #03101d 0%, #061727 45%, #071d31 100%);
}

.sidebar {
  min-height: 100vh;
  padding: 34px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(2, 13, 25, 0.72);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
}

.sidebar-brand img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 16px;
}

.sidebar-brand span {
  font-size: 1.3rem;
  font-weight: 800;
}

.sidebar-brand small {
  display: block;
  margin-top: 3px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9fb0c9;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
}

.sidebar-nav a,
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 14px;
  color: #dce8f7;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-nav a span {
  color: #7ab8ff;
  font-size: 1.1rem;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: linear-gradient(90deg, rgba(31, 115, 255, 0.22), rgba(77, 163, 255, 0.12));
  color: #fff;
  transform: translateX(2px);
}

.sidebar-logout {
  margin-top: auto;
}

.workspace {
  min-width: 0;
  width: min(100%, 1920px);
  margin: 0 auto;
  padding: 38px 30px 50px;
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.workspace-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

.workspace-header p,
.section-title p {
  color: #c2ccdf;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #edf5ff;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.user-chip span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.panel {
  margin-bottom: 14px;
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(13, 35, 51, 0.88), rgba(5, 20, 33, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.section-title h2 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-metrics {
  margin-bottom: 14px;
}

.metric-card {
  min-height: 126px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-card span,
table small {
  color: #c7d1df;
}

.metric-card strong {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  color: #4da3ff;
}

.metric-card small {
  color: #99a9bd;
}

.positive {
  color: #45e58f !important;
}

.negative {
  color: #ff6b7a !important;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
  gap: 14px;
}

.content-grid .wide {
  min-width: 0;
}

.filter-bar {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.stack-form {
  display: grid;
  gap: 14px;
}

.filter-bar label,
.stack-form label {
  display: grid;
  gap: 8px;
  color: #dce8f7;
  font-size: 0.9rem;
}

.filter-bar input,
.filter-bar select,
.stack-form input,
.stack-form select,
.stack-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  outline: none;
}

.stack-form textarea {
  min-height: 92px;
  resize: vertical;
}

.filter-bar option,
.stack-form option {
  color: #081226;
}

.filter-bar button,
.stack-form button,
.actions-cell button,
.action-link {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, #1f73ff, #4da3ff);
}

.action-link {
  display: inline-flex;
  align-items: center;
}

.action-link.ghost {
  background: rgba(255, 255, 255, 0.07);
  color: #dbe7f6;
}

.pending-approval-alert {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 169, 64, 0.72);
  background: rgba(255, 169, 64, 0.1);
  color: #ffd39a;
}

.pending-approval-alert strong {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 169, 64, 0.2);
  color: #fff;
}

.overview-quota-shortcut {
  margin-left: auto;
}

.users-filter-bar {
  align-items: end;
}

.users-live-search {
  flex: 1 1 520px;
}

.user-status-filters {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.status-filter {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  color: #dbe7f6;
  background: rgba(255, 255, 255, 0.06);
}

.status-filter strong {
  margin-left: 6px;
}

.status-filter.active {
  border-color: rgba(77, 163, 255, 0.55);
  color: #cfe5ff;
  background: rgba(77, 163, 255, 0.12);
}

.status-filter.pending {
  border-color: rgba(255, 169, 64, 0.72);
  color: #ffd39a;
  background: rgba(255, 169, 64, 0.1);
}

.status-filter.inactive {
  border-color: rgba(255, 107, 122, 0.72);
  color: #ffc2c8;
  background: rgba(255, 107, 122, 0.1);
}

.status-filter.all {
  border-color: rgba(47, 109, 255, 0.45);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #edf4ff;
}

th {
  color: #b8c6d8;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
}

tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.actions-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.actions-cell form {
  display: inline;
}

.actions-cell button {
  padding: 8px 10px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.08);
}

.status {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.status.active {
  background: rgba(77, 163, 255, 0.14);
  color: #4da3ff;
}

.status.inactive {
  background: rgba(255, 107, 122, 0.14);
  color: #ff7d89;
}

.flash {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(69, 229, 143, 0.12);
  border: 1px solid rgba(69, 229, 143, 0.2);
  color: #b9ffd7;
}

.flash.error {
  background: rgba(255, 107, 122, 0.12);
  border-color: rgba(255, 107, 122, 0.2);
  color: #ffc2c8;
}

.line-chart,
.bar-chart {
  height: 280px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 22px;
  border-radius: 16px;
  background:
    repeating-linear-gradient(to top, rgba(255,255,255,0.055), rgba(255,255,255,0.055) 1px, transparent 1px, transparent 52px),
    rgba(255, 255, 255, 0.025);
}

.svg-chart {
  display: grid;
  gap: 16px;
}

.svg-chart svg {
  width: 100%;
  height: 320px;
  padding: 18px 12px 0;
  border-radius: 16px;
  background:
    repeating-linear-gradient(to top, rgba(255,255,255,0.055), rgba(255,255,255,0.055) 1px, transparent 1px, transparent 54px),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.018));
}

.chart-line {
  fill: none;
  stroke: #4da3ff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(77, 163, 255, 0.28));
}

.chart-area {
  fill: url(#equityFill);
  stroke: none;
}

.svg-chart text {
  fill: #9fb0c9;
  font-size: 15px;
  text-anchor: middle;
}

.svg-chart .chart-value-label {
  fill: #dcecff;
  font-size: 13px;
  font-weight: 800;
  paint-order: stroke;
  stroke: rgba(5, 20, 33, 0.82);
  stroke-width: 4px;
}

.chart-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.chart-summary span,
.account-box span {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: #b9c6d7;
}

.chart-summary strong,
.account-box strong {
  color: #fff;
}

.line-chart span {
  flex: 1;
  min-width: 8px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #48e992, rgba(28, 156, 117, 0.28));
}

.bar-chart > div {
  flex: 1;
  height: 100%;
  min-width: 58px;
  display: grid;
  align-items: end;
  gap: 8px;
}

.bar-chart span {
  display: block;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #2f6dff, #36d58f);
}

.bar-chart small {
  color: #aab8ca;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.donut-list,
.rule-list,
.report-grid {
  display: grid;
  gap: 12px;
}

.donut-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.donut-list span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 9px;
  border-radius: 50%;
  background: #4da3ff;
}

.donut-list small,
.rule-list p {
  color: #b9c6d7;
}

.portfolio-pie-wrap {
  display: grid;
  place-items: center;
  margin: 8px 0 22px;
}

.portfolio-pie {
  width: min(260px, 75vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--pie-gradient));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 22px 70px rgba(0, 0, 0, 0.22);
  position: relative;
}

.portfolio-pie::after {
  content: "";
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: #071d31;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.24);
}

.portfolio-pie > div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  text-align: center;
}

.portfolio-pie span {
  color: #aebcd0;
}

.portfolio-pie strong {
  color: #fff;
  font-size: 1.05rem;
}

.pie-legend {
  display: grid;
  gap: 12px;
}

.pie-legend div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.pie-legend span::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--legend-color);
}

.pie-legend small {
  color: #b9c6d7;
}

.allocation-ring {
  width: 190px;
  height: 190px;
  margin: 6px auto 22px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #071d31 0 55%, transparent 56%),
    conic-gradient(#4da3ff calc(var(--p) * 1%), #1f73ff 0, rgba(255,255,255,0.08));
}

.allocation-ring > div {
  width: 58%;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  line-height: 1.15;
}

.allocation-ring strong {
  display: block;
  font-size: 1.05rem;
}

.allocation-ring span {
  display: block;
  margin-top: 4px;
  color: #aebcd0;
  font-size: 0.8rem;
}

.monthly-bars {
  height: 280px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.monthly-bars div {
  flex: 1;
  height: 100%;
  min-width: 72px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
}

.monthly-bars span {
  width: 100%;
  display: block;
  border-radius: 14px 14px 4px 4px;
  background: linear-gradient(180deg, #4da3ff, #1f73ff);
}

.monthly-bars strong {
  font-size: 0.9rem;
}

.monthly-bars small {
  color: #9fb0c9;
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-list div,
.return-track div {
  display: grid;
  gap: 4px;
  padding: 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.mini-list span,
.mini-list small,
.score-card span,
.score-card small,
.return-track span {
  color: #aebcd0;
}

.contribution-metrics .metric-card {
  position: relative;
  padding-left: 86px;
}

.metric-icon {
  position: absolute;
  left: 22px;
  top: 24px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #7ab8ff;
  background: rgba(77, 163, 255, 0.11);
  border: 1px solid rgba(77, 163, 255, 0.16);
  font-weight: 900;
}

.contribution-metrics .metric-card strong,
.contribution-metrics .metric-card strong.positive {
  color: #4da3ff !important;
}

.contributions-layout {
  grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1.25fr);
  align-items: start;
}

.contribution-month-list {
  display: grid;
  gap: 12px;
}

.contribution-month-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.month-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #7ab8ff;
  background: rgba(77, 163, 255, 0.11);
}

.contribution-month-card small,
.contribution-month-card em {
  color: #aebcd0;
  font-style: normal;
}

.contribution-month-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.1rem;
  color: #4da3ff !important;
}

.contribution-month-card b {
  color: #aebcd0;
  font-size: 1.45rem;
  font-weight: 400;
}

.export-link {
  border-color: rgba(77, 163, 255, 0.28);
  color: #7ab8ff;
  background: rgba(77, 163, 255, 0.06);
}

.contributions-table table {
  min-width: 720px;
}

.contributions-table th:first-child,
.contributions-table td:first-child {
  width: 28px;
  padding-right: 0;
}

.table-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 50%;
  background: #4da3ff;
  box-shadow: 0 0 12px rgba(77, 163, 255, 0.38);
}

.contributions-table td.positive {
  color: #4da3ff !important;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 0;
  color: #c9d6e8;
}

.score-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  margin-bottom: 12px;
}

.score-card strong {
  font-size: 2.1rem;
}

.score-card.compact strong {
  font-size: 1.45rem;
}

.return-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.positive-bg {
  border: 1px solid rgba(69, 229, 143, 0.16);
}

.negative-bg {
  border: 1px solid rgba(255, 107, 122, 0.16);
}

.empty-state {
  padding: 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: #b9c6d7;
}

.account-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.account-settings-form {
  max-width: 920px;
}

.admin-account-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-account-form .account-photo-preview,
.admin-account-form button {
  grid-column: 1 / -1;
}

.account-photo-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.account-photo-preview label {
  min-width: 0;
}

.account-page {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.account-profile-card,
.account-section-card,
.account-danger-panel,
.account-help-panel {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 0%, rgba(31, 115, 255, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(12, 35, 53, 0.95), rgba(5, 20, 33, 0.92));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.16);
}

.account-profile-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 26px;
  position: sticky;
  top: 24px;
}

.account-avatar-wrap {
  position: relative;
}

.account-avatar {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(145deg, #1c2e44, #111d2f);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.04);
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-avatar-edit {
  position: absolute;
  right: 0;
  bottom: 4px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #062033;
  background: linear-gradient(135deg, #4da3ff, #1f73ff);
  font-weight: 900;
}

.account-profile-card h2 {
  margin: 0;
  text-align: center;
}

.account-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4da3ff;
  font-weight: 700;
}

.account-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.account-status.pending {
  color: #ffbf55;
}

.account-status.inactive {
  color: #ff6b7a;
}

.account-contact-list {
  width: 100%;
  display: grid;
}

.account-contact-list div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 2px 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.account-contact-list span {
  grid-row: span 2;
  color: #dce8f7;
  font-size: 1.25rem;
}

.account-contact-list small,
.account-profile-sheet span {
  color: #aebcd0;
}

.account-contact-list strong,
.account-profile-sheet strong {
  color: #fff;
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-password-shortcut,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(77, 163, 255, 0.28);
  border-radius: 12px;
  padding: 12px 18px;
  color: #7ab8ff;
  background: rgba(77, 163, 255, 0.06);
  font-weight: 800;
}

.account-password-shortcut {
  width: 100%;
}

.account-main {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.account-profile-sheet {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-settings-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-settings-form button {
  grid-column: 1 / -1;
}

.account-danger-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 107, 122, 0.16), transparent 36%),
    linear-gradient(145deg, rgba(59, 20, 35, 0.82), rgba(28, 15, 28, 0.9));
  border-color: rgba(255, 107, 122, 0.28);
}

.account-danger-panel h2 {
  color: #ff6b7a;
  margin-bottom: 8px;
}

.account-danger-panel p,
.account-help-panel p {
  color: #c9d6e8;
  line-height: 1.55;
}

.account-danger-button {
  flex: 0 0 auto;
  color: #ff8390;
}

.account-help-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
}

.help-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: #dce8f7;
}

.account-deactivate-modal label {
  width: 100%;
  display: grid;
  gap: 8px;
  color: #dce8f7;
  text-align: left;
}

.account-deactivate-modal input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  outline: none;
}

.account-hero-form {
  margin-bottom: 26px;
}

.account-hero-panel {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 28px;
  padding: 42px;
  border: 1px solid rgba(31, 115, 255, 0.62);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(31, 115, 255, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(9, 34, 64, 0.95), rgba(4, 18, 34, 0.94));
  box-shadow: inset 0 0 0 1px rgba(77, 163, 255, 0.04), 0 24px 80px rgba(0, 0, 0, 0.18);
}

.account-hero-profile {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 16px;
  padding-right: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.account-avatar-xl {
  width: 142px;
  height: 142px;
  font-size: 2.8rem;
}

.account-avatar-edit {
  cursor: pointer;
}

.account-alias-field {
  display: grid;
  gap: 7px;
  width: min(220px, 100%);
  text-align: center;
  color: #7ab8ff;
  font-weight: 800;
}

.account-alias-field input {
  min-height: 40px;
  border: 1px solid rgba(77, 163, 255, 0.2);
  border-radius: 999px;
  padding: 9px 12px;
  text-align: center;
  color: #fff;
  background: rgba(77, 163, 255, 0.08);
  outline: none;
}

.account-hero-info {
  display: grid;
  gap: 26px;
}

.account-info-grid,
.account-password-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 28px;
}

.account-info-grid label,
.account-password-grid label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.account-info-grid span,
.account-password-grid span {
  color: #b8c6d8;
}

.account-info-grid strong {
  color: #fff;
  overflow-wrap: anywhere;
}

.account-info-grid input,
.account-password-grid input {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.account-password-grid {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.account-save-button {
  justify-self: end;
  border: 1px solid rgba(77, 163, 255, 0.45);
  border-radius: 12px;
  padding: 14px 22px;
  cursor: pointer;
  color: #7ab8ff;
  background: rgba(31, 115, 255, 0.08);
  font-weight: 900;
}

.account-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 22px;
}

.period-chip {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  align-self: end;
  border: 1px solid rgba(77, 163, 255, 0.22);
  border-radius: 999px;
  padding: 10px 16px;
  color: #7ab8ff;
  background: rgba(77, 163, 255, 0.09);
  font-weight: 800;
}

.period-chip small {
  margin-right: 8px;
  color: #aebcd0;
  font-size: 0.78rem;
  font-weight: 700;
}

.dashboard-period-filter {
  width: 100%;
}

.dashboard-filter-stats {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
  flex: 1 1 320px;
  margin-left: auto;
}

.quota-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.floating-help {
  position: fixed;
  top: 96px;
  right: 28px;
  z-index: 70;
}

.floating-help button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(77, 163, 255, 0.38);
  border-radius: 50%;
  cursor: help;
  color: #dcecff;
  background: linear-gradient(145deg, rgba(31, 115, 255, 0.95), rgba(77, 163, 255, 0.78));
  font-weight: 900;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.floating-help > div {
  position: absolute;
  top: 52px;
  right: 0;
  width: min(340px, calc(100vw - 40px));
  display: none;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, #0c2335, #061727);
  border: 1px solid rgba(77, 163, 255, 0.22);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.floating-help:hover > div,
.floating-help:focus-within > div {
  display: grid;
}

.floating-help strong {
  color: #fff;
}

.floating-help p {
  color: #c9d6e8;
  line-height: 1.55;
}

.empty-state-panel .empty-state {
  display: grid;
  gap: 12px;
}

.empty-state-panel .action-link {
  width: fit-content;
}

.quota-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 10%, rgba(77, 163, 255, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(13, 35, 51, 0.96), rgba(5, 20, 33, 0.94));
  border: 1px solid rgba(77, 163, 255, 0.18);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
}

.quota-card > span {
  color: #c9d6e8;
  font-weight: 700;
}

.quota-card > strong {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  color: #4da3ff;
  letter-spacing: -0.04em;
}

.quota-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.quota-card small {
  color: #9fb0c9;
}

.quota-card b {
  color: #fff;
  text-align: right;
}

.quota-card-form {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(77, 163, 255, 0.2);
}

.quota-card-form label {
  display: grid;
  gap: 7px;
  color: #c9d6e8;
  font-size: 0.88rem;
}

.quota-card-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  outline: none;
}

.quota-card-form button {
  min-height: 44px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, #1f73ff, #4da3ff);
}

.movement-form {
  display: grid;
  gap: 16px;
}

.movement-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 14px;
  align-items: start;
}

.movement-user-search {
  position: relative;
}

.movement-row {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr 0.7fr 0.7fr;
  gap: 12px;
}

.movement-form label {
  display: grid;
  gap: 8px;
  color: #dce8f7;
  font-size: 0.9rem;
}

.movement-form input,
.movement-form select,
.movement-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  outline: none;
}

.movement-amount-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.movement-amount-field.contribution,
.movement-amount-field.contribution input {
  color: #45e58f;
  font-weight: 800;
}

.movement-amount-field.withdrawal,
.movement-amount-field.withdrawal input {
  color: #ff6b7a;
  font-weight: 800;
}

.movement-amount-wrap button {
  min-height: 44px;
  border: 1px solid rgba(77, 163, 255, 0.3);
  border-radius: 12px;
  padding: 0 12px;
  color: #dcecff;
  background: rgba(77, 163, 255, 0.12);
  cursor: pointer;
}

.movement-amount-wrap button[hidden] {
  display: none;
}

.movement-amount-wrap button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.movement-form option {
  color: #081226;
}

.movement-form textarea {
  min-height: 92px;
  resize: vertical;
}

.movement-form > button {
  width: fit-content;
  min-width: 120px;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, #1f73ff, #4da3ff);
}

.movement-user-search small {
  color: #9fb0c9;
}

.user-search-results {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 6px;
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  border-radius: 14px;
  background: #0c2335;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.user-search-results[hidden] {
  display: none;
}

.user-search-item {
  display: grid;
  gap: 4px;
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.user-search-item:hover {
  background: rgba(77, 163, 255, 0.12);
}

.user-search-item span {
  color: #aebcd0;
  font-size: 0.84rem;
}

.user-search-item.muted {
  color: #aebcd0;
  cursor: default;
}

.compact-history > div {
  display: grid;
  gap: 10px;
}

.history-card {
  display: grid;
  gap: 7px;
  padding: 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.history-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.history-card span,
.history-card small {
  color: #aebcd0;
}

.history-card b {
  color: #fff;
  font-size: 1.15rem;
}

.movement-user-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.movement-user-totals article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(77, 163, 255, 0.08);
  border: 1px solid rgba(77, 163, 255, 0.14);
}

.movement-user-totals span {
  color: #aebcd0;
}

.movement-user-totals strong {
  color: #4da3ff;
  font-size: 1.05rem;
}

.inline-add-group-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.inline-add-group-form label {
  display: grid;
  gap: 8px;
  color: #dce8f7;
  font-size: 0.9rem;
}

.inline-add-group-form select,
.inline-add-group-form button {
  min-height: 44px;
  border-radius: 12px;
  padding: 10px 13px;
}

.inline-add-group-form select {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.inline-add-group-form option {
  color: #081226;
}

.inline-add-group-form button {
  border: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, #1f73ff, #4da3ff);
}

.history-card.contribution {
  border-color: rgba(69, 229, 143, 0.18);
}

.history-card.withdrawal {
  border-color: rgba(255, 107, 122, 0.2);
}

.admin-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.group-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.group-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 0%, rgba(77, 163, 255, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(13, 35, 51, 0.96), rgba(5, 20, 33, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
}

.group-card-photo,
.member-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f73ff, #4da3ff);
  color: #fff;
  font-weight: 900;
}

.group-card-photo.large {
  width: 82px;
  height: 82px;
  font-size: 1.7rem;
}

.group-card-head,
.group-detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.group-card-head h2,
.group-detail-hero h2 {
  margin-bottom: 8px;
}

.group-card-head p,
.group-detail-hero p {
  color: #b9c6d7;
  line-height: 1.5;
}

.group-card-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.group-card-metrics span {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: #9fb0c9;
}

.group-card-metrics strong {
  color: #fff;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 34px 18px;
  background: rgba(0, 5, 12, 0.76);
  backdrop-filter: blur(12px);
  overflow-y: auto;
}

.modal-overlay:target {
  display: flex;
}

.modal-card {
  width: min(620px, 100%);
  position: relative;
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(145deg, #0c2335, #061727);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.modal-card-large {
  width: min(1180px, 100%);
  display: grid;
  gap: 20px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.4rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-start;
}

.modal-actions button {
  border: 1px solid rgba(255, 107, 122, 0.25);
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 107, 122, 0.14);
}

.danger-action {
  display: inline-flex;
  border: 1px solid rgba(255, 107, 122, 0.25);
  border-radius: 999px;
  padding: 12px 16px;
  color: #fff;
  background: rgba(255, 107, 122, 0.14);
}

.confirm-card {
  max-width: 460px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.confirm-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 107, 122, 0.16);
  border: 1px solid rgba(255, 107, 122, 0.28);
  color: #ff7d89;
  font-size: 1.8rem;
  font-weight: 900;
}

.confirm-card p {
  color: #c9d6e8;
  line-height: 1.6;
}

.confirm-card > strong {
  color: #fff;
}

.temporary-password-code {
  display: inline-flex;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.confirm-actions button {
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, #ff5f73, #c13b56);
}

.group-description-box {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.group-description-box span {
  color: #9fb0c9;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.group-description-box p {
  color: #e5edf8;
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 920px;
}

.member-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.member-card {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 18px;
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.member-card h3 {
  font-size: 1rem;
}

.member-card strong {
  color: #4da3ff;
}

.member-card span {
  color: #aebcd0;
  font-size: 0.88rem;
}

.user-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.user-card-grid.filtered {
  grid-template-columns: repeat(auto-fill, minmax(230px, 280px));
  justify-content: start;
}

.user-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 22px;
  border-radius: 20px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 0%, rgba(47, 109, 255, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(13, 35, 51, 0.96), rgba(5, 20, 33, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
}

.user-card.is-hidden {
  display: none !important;
}

.user-card.pending {
  border-color: rgba(255, 169, 64, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 169, 64, 0.18), 0 22px 60px rgba(0, 0, 0, 0.18);
}

.user-card.inactive {
  border-color: rgba(255, 107, 122, 0.78);
  box-shadow: 0 0 0 1px rgba(255, 107, 122, 0.18), 0 22px 60px rgba(0, 0, 0, 0.18);
}

.user-avatar {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f73ff, #4da3ff);
  color: #fff;
  font-weight: 900;
  font-size: 1.45rem;
}

.user-avatar.large {
  width: 96px;
  height: 96px;
  font-size: 1.9rem;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-card h2 {
  font-size: 1.05rem;
}

.user-card > span {
  color: #aebcd0;
  font-size: 0.88rem;
  word-break: break-word;
}

.user-card > em {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(77, 163, 255, 0.12);
  color: #7ab8ff;
  font-style: normal;
  font-size: 0.78rem;
}

.user-card.pending > em {
  background: rgba(255, 169, 64, 0.14);
  color: #ffb35a;
}

.user-card.inactive > em {
  background: rgba(255, 107, 122, 0.14);
  color: #ff7d89;
}

.user-card-stats {
  display: grid;
  gap: 4px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.user-card-stats strong {
  font-size: 1.6rem;
  color: #4da3ff;
}

.user-card-stats small {
  color: #aebcd0;
}

.user-view-panel {
  display: grid;
  gap: 20px;
}

.user-view-panel .metric-grid {
  margin-bottom: 2px;
}

.user-view-panel .section-title {
  margin-bottom: 10px;
}

.user-view-panel > section {
  display: grid;
  gap: 12px;
}

.user-view-panel > .modal-actions {
  margin-top: 4px;
}

.user-detail-modal {
  gap: 22px;
}

.user-detail-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 42px;
}

.user-detail-hero p {
  color: #aebcd0;
  margin-top: 5px;
}

.profile-sheet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.profile-sheet h3 {
  grid-column: 1 / -1;
}

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

.profile-sheet div,
.member-group-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.profile-sheet span,
.member-group-card span,
.member-group-card small {
  color: #aebcd0;
}

.profile-sheet strong,
.member-group-card strong {
  color: #fff;
}

.member-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.member-group-card strong {
  color: #4da3ff;
  font-size: 1.25rem;
}

.member-group-actions {
  margin-top: 10px;
}

.danger-action.compact {
  width: fit-content;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.86rem;
}

.danger-action.compact:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.action-link.compact,
.danger-action.compact {
  padding: 8px 12px;
  font-size: 0.86rem;
}

.statement-edit-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.statement-edit-description,
.statement-edit-form .form-actions-inline {
  grid-column: 1 / -1;
}

.user-actions {
  gap: 10px;
}

.neutral-action {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 12px 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.user-edit-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.user-edit-form label:first-of-type,
.user-edit-form .form-actions-inline {
  grid-column: 1 / -1;
}

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

.password-reveal-field .password-reveal-button {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: auto;
  min-width: 70px;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1;
}

.form-actions-inline button,
.stack-form > button {
  width: fit-content;
  min-width: 132px;
  justify-self: flex-start;
}

@media (min-width: 1800px) {
  .metric-grid {
    grid-template-columns: repeat(4, minmax(260px, 1fr));
  }

  .user-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .user-card-grid.filtered {
    grid-template-columns: repeat(auto-fill, minmax(260px, 300px));
  }

  .group-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  }
}

.report-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-grid span {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #dfeaff;
}

@media (max-width: 1180px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid,
  .report-grid,
  .chart-summary,
  .account-page,
  .contributions-layout,
  .account-box,
  .return-track,
  .movement-layout {
    grid-template-columns: 1fr;
  }

  .account-profile-card {
    position: static;
  }

  .account-hero-panel,
  .account-bottom-grid {
    grid-template-columns: 1fr;
  }

  .account-hero-profile {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 0;
    padding-bottom: 24px;
  }

  .account-info-grid,
  .account-password-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-settings-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    position: static;
    padding: 18px;
  }

  .sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-logout {
    margin-top: 0;
  }

  .workspace {
    padding: 24px 14px 34px;
  }

  .workspace-header {
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .user-card-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    display: grid;
  }

  .account-profile-sheet,
  .account-settings-form,
  .account-info-grid,
  .account-password-grid,
  .account-help-panel {
    grid-template-columns: 1fr;
  }

  .account-hero-panel {
    padding: 24px;
  }

  .account-danger-panel {
    display: grid;
  }

  .account-danger-button,
  .account-help-panel .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .contribution-metrics .metric-card {
    padding-left: 74px;
  }

  .contribution-month-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .contribution-month-card em,
  .contribution-month-card b {
    grid-column: 2;
  }

  .monthly-bars {
    overflow-x: auto;
  }

  .panel {
    padding: 18px;
  }
}
